API · v1.4.0
Tokens
3 endpoints. Paths are relative to /api/v1 on your own instance; authentication is described on the overview page.
GET /workspaces/{workspace}/tokens
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
cursor | query | string | Opaque cursor taken from |
limit | query | integer | Page size. |
Responses
200404Not found401Unauthenticated
POST /workspaces/{workspace}/tokens
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
Request body
| Name | Type |
|---|---|
namerequired | string |
abilitiesrequired | list<TokenAbility (workspace:read, workspace:manage, members:manage, audit:read, monitors:read, monitors:write, notifications:read, notifications:write, incidents:read, incidents:write, status-pages:read, status-pages:write)> |
expires_at | string | null |
Responses
201422Validation error404Not found401Unauthenticated
DELETE /workspaces/{workspace}/tokens/{id}
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
idrequired | path | string |
Responses
204No content404Not found401Unauthenticated