Appearance
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:
| Parameter | Description |
|---|---|
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:valueFor example, filter deployment actions by several releases:
release_id=in:ID1,ID2Supported filter types:
| Type | Meaning |
|---|---|
eq | Equal (the default if no type is given). |
ne | Not equal. |
in | Value is in the comma-separated list. |
nin | Value is not in the comma-separated list. |
exists | The field is present. |
lt / lte | Less than / less than or equal. |
gt / gte | Greater than / greater than or equal. |
all | All listed values are present in an array field. |
Sorting
Sort with sort_by, listing fields with a direction:
sort_by=asc:field1,desc:field2You 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 fieldsRoles
Access within a workspace is governed by roles:
| Role | Access |
|---|---|
owner | Full access to all resources in the workspace. |
manager | Can manage all resources in the workspace. |
member | Can view and interact with resources. |
contributor | Can contribute to resources. |
viewer | Read-only access. |
Roles can be granted workspace-wide or scoped to an environment. See the Permissions screen to manage them.
Related
- Authentication (PKCE) — obtain a token for the API.
- API Reference — every endpoint and schema.