Base URL and paths
tasks.list or apiKeys.create, which error messages and this documentation use.
Authentication
Send a workspace API key as a Bearer token:Operation reference
Trellis shares the operations an approved partner app can call when it approves the app, scoped to the areas that app reaches. Ask support for the full reference of your integration.Reading lists
Lists are cursor-paged:pageSizedefaults to 50 and allows at most 200.- Pass
nextCursorascursorfor the next page. A cursor is bound to the filters and caller that produced it; reused elsewhere it answers422 invalidCursor. - Different filters combine with AND. Values in one list filter are comma-separated and combine with OR (
propertyIds=a,b). Unknown filters and repeated query parameters answer422. - A record you cannot see answers
404 notFound, as if it did not exist.
Deprecation header, and a Sunset header once a removal date is set.
Writes
Idempotency-Key
Every write needs anIdempotency-Key header of 8 to 300 printable ASCII characters. Generate one per logical change and reuse it when you retry that change.
Trellis keeps keys for at least 24 hours.
If-Match
A write that could overwrite someone else’s change requiresIf-Match with the ETag from your latest read of the record. Without it the write answers 428 preconditionRequired; with an outdated value, 412 preconditionFailed. Read the record again, then reapply your change. Treat ETags as opaque.
Results
A completed write answers200, or 201 for a create, with data and a receipt. A 202 means the work was accepted but not finished. The body is an Execution, Location points to it, and Retry-After says how many seconds to wait before polling.
Errors
Errors are RFC 9457 problem details, served asapplication/problem+json:
code. Validation errors add fieldErrors ([{ "path", "message" }]). Every response carries X-Request-Id; include it when you contact Trellis about a call. New codes may appear, so handle unknown codes by their HTTP status.
Rate limits
Trellis counts reads and writes separately, in fixed 10-second windows:
Responses carry
RateLimit-Policy and RateLimit headers for the budgets that apply. A spent budget answers 429 rateLimited with Retry-After in seconds; the refused request does nothing and does not count.