Skip to content
Sign in Create account

Reveal a newly created default API key once

GET /api/keys/reveal/{jti}

Returns the one-time plaintext for the authenticated account’s newly created default key. The 32-character hexadecimal JTI is consumed atomically. Invalid JTI returns 400; missing, expired, or already used JTI returns 404.

Authenticate with a portal session token.

Parameters

  • jti string path required
    Length: 32 to 32 characters. Pattern: ^[0-9a-f]{32}$

Responses

200 One-time plaintext returned.

application/json object

  • plaintext string required
    Write only

Generated sample

{
  "plaintext": "string"
}
400 Invalid JTI format.

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.

401 Missing or invalid bearer token.

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.

403 Authenticated caller lacks required permission or ability.

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.

404 JTI is missing, expired, already used, or belongs to another user.

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