API reference

Every Trellis REST endpoint an application can call, with the scopes, parameters and response each one takes.

The Trellis REST API lets an application read and change a workspace with its own identity. This reference is generated from the OpenAPI 3.0.3 document the API is built from, so it covers all 86 public operations across 16 resource groups.

Base URL

Every path below is relative to https://trellisapp.co.uk/api/v1, and begins with the workspace handle as it appears in the Trellis URL.

Authentication

Send an application access token as a Bearer token: Authorization: Bearer $ACCESS_TOKEN. Tokens come from the client credentials or authorization code grant — see Applications for how to register an application and get one. Requests are rate limited to 300 per minute per installation.

Scopes

Each operation lists the scopes that authorise it. A token holding any one of them can make the call, and a write scope implies its matching read scope.

ScopeGrants
issues:readView issues, comments, sprints, workflows, labels, and attachments
issues:writeCreate, update, and delete issues, comments, sprints, and attachments
projects:readView projects, their issues, roadmaps, and timeline history
timeline:readView timeline milestones and version history
timeline:writeCreate, update, and delete timeline milestones and versions
timelogs:readView time logged by members of this workspace on the projects this application can access
timelogs:writeLog, edit, and delete time on behalf of members of this workspace, on the projects this application can access
workflows:writeCreate, rename, reorder, and delete workflows and the statuses issues move through
workspace:readView basic information about you, the workspace, and its members

Errors

Any operation can fail. Handlers answer with the JSON body below; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message instead.

codestring

Machine-readable error code, when the error has one.

dataanynullable

Extra context for coded errors.

errorstringRequired

Human-readable error message.

errorsarray of object

Field errors, present on 422 validation failures.

2 fields
fieldstring
messagestring
messagestring

Same as `error`; present on most errors.

statusstringRequired

HTTP status text.

status_codeintegerRequired

HTTP status code.

Endpoints