API Keys

POST /api-keys/{id}/activate

Changed on

Request

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

Path parameters

idinteger required

API key ID

Response

API key activated successfully

created_atstring date-time required
environment_idinteger nullable
expires_atstring date-time nullable
idinteger required
is_activeboolean required
key_prefixstring required
last_used_atstring date-time nullable
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",
  "last_used_at": "2024-01-01T00:00:00Z"
}

Changes

    • info

      added the optional property environment_id to the response with the status

    • info

      added the optional property project_id to the response with the status