Skip to content
Sign in Create account

Delete an API key (v1 / programmatic)

DELETE /api/v1/api-keys/{id}

Revokes an API key owned by the authenticated account. Requires api-keys.revoke and returns {deleted: true}. A missing or out-of-scope key returns 404.

Authenticate with a portal session token.

Parameters

  • id string path required

Responses

200 Key revoked.

application/json object

  • deleted boolean required
    Value: true

Generated sample

{
  "deleted": true
}
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