API Keys

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Request body

environment_idinteger nullable
expires_atstring date-time nullable
namestring required
permissionsstring[] nullable
project_idinteger nullable

Immutable optional deployment resource scope.

role_typestring required

Example request

{
  "expires_at": "2024-12-31T23:59:59Z",
  "permissions": [
    "projects:read",
    "deployments:read"
  ],
  "role_type": "admin"
}

Response

API key created successfully

api_keystring required
created_atstring date-time required
environment_idinteger nullable
expires_atstring date-time nullable
idinteger required
key_prefixstring required
namestring required
permissionsstring[] nullable
project_idinteger nullable

Immutable optional deployment resource scope.

role_typestring required

Example response

{
  "created_at": "2024-01-01T00:00:00Z",
  "expires_at": "2024-12-31T23:59:59Z"
}

Changes

    • info

      added the new optional request property environment_id

    • info

      added the new optional request property project_id

    • info

      added the optional property environment_id to the response with the status

    1 more change in this revision