Skip to main content
POST
/
service
/
organization
/
{id}
/
api-keys
Create Organization API Key
curl --request POST \
  --url https://api.example.com/service/organization/{id}/api-keys \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "id": "<string>",
    "key": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>"
  },
  "code": "health_status_ok",
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Response

API key created successfully

data
object
required
code
enum<string>
Available options:
health_status_ok,
health_status_error,
validation_error,
bad_request,
unauthorized,
forbidden,
not_found,
method_not_allowed,
internal_server_error,
organization_not_found,
cannot_access_organization,
api_key_not_found,
resource_already_exists
message
string