Skip to main content
POST
Create an API key

Authorizations

Authorization
string
header
required

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

Body

application/json
organization_id
string
required

Organization the key is bound to.

name
string
required

Name shown in the key list.

service_account_id
string

Create a key that acts as this service account.

audience
enum<string>

Limit the key to one audience's routes. code_relay is accepted only under /api/code-environments/ and is what a terminal host should hold.

Available options:
code_relay

Response

Successful response

The response is of type object.