REST API overview

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

NameInTypeDescription
workspacerequiredpathstring

The workspace slug

cursorquerystring

Opaque cursor taken from meta.next_cursor of the previous page; omit it for the first page.

limitqueryinteger

Page size.

Responses

  • 200
  • 404 Not found
  • 401 Unauthenticated

POST /workspaces/{workspace}/tokens

Parameters

NameInTypeDescription
workspacerequiredpathstring

The workspace slug

Request body

NameType
namerequiredstring
abilitiesrequiredlist<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_atstring | null

Responses

  • 201
  • 422 Validation error
  • 404 Not found
  • 401 Unauthenticated

DELETE /workspaces/{workspace}/tokens/{id}

Parameters

NameInTypeDescription
workspacerequiredpathstring

The workspace slug

idrequiredpathstring

Responses

  • 204 No content
  • 404 Not found
  • 401 Unauthenticated