Skip to main content
Every Trellis API operation follows the conventions on this page. For how a partner app gets a key and what it can reach, see the Partner API guide.

Base URL and paths

Every path starts with the workspace. The workspace comes from the path, never from the request body. Operations have dotted names such as tasks.list or apiKeys.create, which error messages and this documentation use.

Authentication

Send a workspace API key as a Bearer token:
A key works only for the workspace that issued it.

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:
  • pageSize defaults to 50 and allows at most 200.
  • Pass nextCursor as cursor for the next page. A cursor is bound to the filters and caller that produced it; reused elsewhere it answers 422 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 answer 422.
  • A record you cannot see answers 404 notFound, as if it did not exist.
Clients must ignore response fields they do not recognize. Trellis adds operations, optional inputs, and response fields without a version change. Removing or renaming one goes through deprecation: the operation answers with a Deprecation header, and a Sunset header once a removal date is set.

Writes

Idempotency-Key

Every write needs an Idempotency-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 requires If-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 answers 200, 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 as application/problem+json:
Branch on 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.