Skip to content
Navigation

Create API key

Issues a new API key for the organization. Body: { name: string (1-255 chars, required), v1Only?: boolean (default false) }. The plaintext key value is returned ONCE in this 201 response and is never retrievable again. Authorization: organization administrators only. Returns 400 on an invalid body.

POST
https://api.cloudraker.com/api-keys
Try it
Request body
Live API request

This request can change data or incur charges for the selected organization.

Authorization

  • bearerAuth
    HTTP
    required

Request body JSON required

  • name
    string
    required
    maxLength: 255 · minLength: 1
  • v1Only
    optional
    boolean

    When true, the key may only call the public /v1 API; every other route answers 403 api_key_v1_only.

    default: false

Returns

201

The created API key, including its one-time plaintext value.

JSON
  • id
    string
    required
  • name
    string
    required
  • permissions
    array of
    string
    required
  • v1Only
    boolean
    required

    Restricted to the public /v1 API — all other routes answer 403.

  • lastUsedAt
    required

    Any of the following:

    • string
    • null
  • createdAt
    string
    required
    format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
  • createdBy
    required

    Who created the key, or null when that is not known.

    Any of the following:

    • ApiKeyCreator
      • id
        string
        required
      • type
        user
        or
        apiKey
        required
      • name
        string | null
        required
      • email
        string | null
        required

        Null for an API-key creator.

    • null
  • value
    string
    required

    The plaintext key. Returned ONCE, at creation, and never retrievable again.

Type to search…

↑↓ navigate↵ selectEsc close