const url = 'https://app.monitorly.cloud/api/v1/workspaces/WORKSPACE_ID/api-tokens';const options = { method: 'GET', headers: {cookie: '__Host-monitorly_session=<__Host-monitorly_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The workspace’s id.
Example
WORKSPACE_IDResponses
Section titled “Responses”The tokens.
object
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.
mly_ and the first 8 random characters of the value.
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
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
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 endedtoken.invalid: the token is malformed, unknown, revoked or expired, or its creator left the workspace
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
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 thistoken.not_allowed: this operation needs a signed-in session; tokens cannot call it
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
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
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}