Skip to content

API conventions ​

The Fleet API is token-authenticated and follows the same conventions across every endpoint that returns a list. Once you know them, they apply everywhere.

For authenticating an integration, see Authentication (PKCE). For the full endpoint and schema details, see the API Reference. For what the resources mean, see Concepts.

Pagination ​

List endpoints are paginated with query parameters:

ParameterDescription
page[size]The number of items per page.
page[offset]Offset-based paging. Don't combine with the time cursors below.
page[after]Time cursor: items with created_at at or before this value.
page[before]Time cursor: items with created_at at or after this value.

Use either page[offset] or the page[after]/page[before] cursors — not both at once.

Filtering ​

Lists can be filtered by a set of whitelisted attributes (identifiers, references, timestamps, and the like). The syntax is:

field=type:value

For example, filter deployment actions by several releases:

release_id=in:ID1,ID2

Supported filter types:

TypeMeaning
eqEqual (the default if no type is given).
neNot equal.
inValue is in the comma-separated list.
ninValue is not in the comma-separated list.
existsThe field is present.
lt / lteLess than / less than or equal.
gt / gteGreater than / greater than or equal.
allAll listed values are present in an array field.

Sorting ​

Sort with sort_by, listing fields with a direction:

sort_by=asc:field1,desc:field2

You can sort by as many fields as you need.

Selecting fields ​

Trim or extend the response payload with fields:

fields=+extra_field_1,+extra_field_2     # add fields
fields=-unwanted_field_1,-unwanted_field_2   # remove fields

Roles ​

Access within a workspace is governed by roles:

RoleAccess
ownerFull access to all resources in the workspace.
managerCan manage all resources in the workspace.
memberCan view and interact with resources.
contributorCan contribute to resources.
viewerRead-only access.

Roles can be granted workspace-wide or scoped to an environment. See the Permissions screen to manage them.