Skip to content

List API tokens

GET
/api/v1/workspaces/{workspaceId}/api-tokens
curl --request GET \
--url https://app.monitorly.cloud/api/v1/workspaces/WORKSPACE_ID/api-tokens \
--cookie __Host-monitorly_session=<__Host-monitorly_session>

The workspace’s API tokens and OAuth sign-ins of agents, newest first: all of them for the owner and admins, one’s own for members. Values are never shown.

workspaceId
required
string format: uuid

The workspace’s id.

Example

WORKSPACE_ID

The tokens.

Media typeapplication/json
Array<object>
object
clientId

OAuth grants: the MCP client they were approved for (a metadata document URL or a registered client id); null for personal tokens. Always sent; optional in the schema because it was added after the first clients.

string | null
createdAt
required
string
createdBy
required
string format: uuid
createdByName
string | null
expiresAt
string | null
id
required
string format: uuid
kind
required
string
Allowed values: pat oauth
lastUsedAt
string | null
name
required
string
prefix
required

mly_ and the first 8 random characters of the value.

string
projectId
string | null format: uuid
revokedAt
string | null
scopes
required
Array<string>
Allowed values: checks:read checks:write incidents:read incidents:write maintenance:read maintenance:write pages:read pages:write nodes:read nodes:write telegram:read alerts:read alerts:write projects:write
workspaceId
required
string format: uuid

Example

[
{
"createdBy": "CREATED_BY",
"id": "ID",
"kind": "pat",
"projectId": "PROJECT_ID",
"scopes": [
"checks:read"
],
"workspaceId": "WORKSPACE_ID"
}
]

Bad Request.

  • auth.credentials_conflict: the request carries both a session cookie and a token
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}

Unauthorized.

  • auth.unauthenticated, auth.session_expired: no session, or it ended
  • token.invalid: the token is malformed, unknown, revoked or expired, or its creator left the workspace
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}

Forbidden.

  • auth.forbidden: your role is too low for this
  • token.not_allowed: this operation needs a signed-in session; tokens cannot call it
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}

Not Found.

  • request.not_found: it does not exist, or you cannot see it
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}