Skip to main content
POST
cURL
This endpoint is in Preview and subject to change. Refer to the API support policy for more details.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

The name of the api key.

Example:

"example name"

service_account_id
string<uuid>
required

The ID of the service account to create the api key for.

Example:

"1234abcd-1234-1234-abcd-12345678abcd"

Response

A successful response.

api_key
object
required
Example:
secret
string<password>
required

The full api key. This is the value that would be passed in the Authorization header. It is not stored by the backend and is therefore not recoverable if lost.

Example:

"CCDB1_12345abcdefGHIJKLMnopq_NkdXLI9d81Mnx3djs45iwPfgtnaRv0XCh0Z9047K"