Open MCP Portaldocs
ReferenceAutomation tokens

Describe the automation token used for this request (for CI debugging)

GET
/v1/token

Returns the token's kind, name, scopes, team and expiry (never the secret). Takes any valid automation token whatever its scopes. 401 invalid_token for a request without one (a browser session doesn't count), or with an unknown, expired or revoked one, or an MCP credential (omp_, omp_sa_, ompat_). docs/automation-tokens.md.

Response Body

The token

application/json
  1. response
data*

An automation token's metadata. The secret is never returned after creation.

curl -X GET 'https://mcp.example.com/v1/token'
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "kind": "platform_admin",    "name": "string",    "prefix": "string",    "scopes": [      "platform:read"    ],    "status": "active",    "team": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "slug": "string",      "name": "string"    },    "createdAt": "2019-08-24T14:15:22Z",    "createdByName": "string",    "expiresAt": "2019-08-24T14:15:22Z",    "lastUsedAt": "2019-08-24T14:15:22Z",    "revokedAt": "2019-08-24T14:15:22Z",    "blockedReason": "creator_not_platform_admin"  }}