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.
Machine-readable spec
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.
| Scope | Grants |
|---|---|
issues:read | View issues, comments, sprints, workflows, labels, and attachments |
issues:write | Create, update, and delete issues, comments, sprints, and attachments |
projects:read | View projects, their issues, roadmaps, and timeline history |
timeline:read | View timeline milestones and version history |
timeline:write | Create, update, and delete timeline milestones and versions |
timelogs:read | View time logged by members of this workspace on the projects this application can access |
timelogs:write | Log, edit, and delete time on behalf of members of this workspace, on the projects this application can access |
workflows:write | Create, rename, reorder, and delete workflows and the statuses issues move through |
workspace:read | View 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.
codestringMachine-readable error code, when the error has one.
dataanynullableExtra context for coded errors.
errorstringRequiredHuman-readable error message.
errorsarray of objectField errors, present on 422 validation failures.
2 fields
fieldstringmessagestringmessagestringSame as `error`; present on most errors.
statusstringRequiredHTTP status text.
status_codeintegerRequiredHTTP status code.
Endpoints
- Application — 1 operation
- Attachments — 4 operations
- Comments — 6 operations
- Inline comments — 6 operations
- Issue dependencies — 3 operations
- Issues — 11 operations
- Labels — 2 operations
- Members — 2 operations
- Milestones — 4 operations
- Projects — 6 operations
- Resourcing — 11 operations
- Roadmap — 2 operations
- Sprints — 8 operations
- Time logs — 5 operations
- Timeline — 6 operations
- Workflows — 9 operations