Organizations

Add API key

Add an API key. This API is only available through JWT token authentication.

post/api/organizations/{organizationId}/apikeys

Request

Path parameters

organizationIdinteger required

Organization ID

Request body

namestring required

Description of the key

apiKeystring

Optional: API key. This needs to start with ei_ and will need to be at least 32 characters long. If this field is not passed in, a new API key is generated for you.

role'admin' | 'member' required
ttlinteger

Optional: time to live in seconds.

organizationExtensionIdinteger

Optional: organization extension ID when this API key is created for an organization extension.

Response

OK

successboolean required

Whether the operation succeeded

errorstring

Optional error description (set if 'success' was false)

idinteger required

ID of the new API key

apiKeystring required

New API Key (starts with "ei_...") - this'll be shared only once.

Changes

No recorded changes to this operation across all 1 revision of this API.