Skip to content
Sign in Create account

Get a specific dashboard API key

GET /api/keys/{id}

Returns one API-key resource owned by the authenticated account. Requires keys.read and api-keys.read; plaintext is not returned. A missing or other-account ID returns 404.

Authenticate with a portal session token.

Parameters

  • id integer path required

Responses

200 API key resource owned by the authenticated account, without plaintext token.

application/json object

Generated sample

{
  "api_key": {
    "allowed_ips": [
      "string"
    ],
    "created_at": "2026-01-01T00:00:00Z",
    "expires_at": "2026-01-01T00:00:00Z",
    "id": 0,
    "is_active": true,
    "is_default": true,
    "last_used_at": "2026-01-01T00:00:00Z",
    "mirrors_account_settings": true,
    "name": "string",
    "permissions": [
      "string"
    ],
    "prefix": "string",
    "privacy_tier_override": "balanced",
    "rate_limit_rpm": 0
  }
}
401 Missing or invalid bearer token.

application/json object

Any keys are accepted.

403 Authenticated caller lacks the required permission, ability, or role.

application/json object

Any keys are accepted.

404 Key was not found for this account.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

429 The request was rate limited. API-generated responses are JSON;

Response headers

  • Retry-After string header

    Seconds to wait before retrying, when provided.

  • X-RateLimit-Scope string header

    Identifies the scope of the request limit, when provided.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

text/html string