Auth

post

Generate api key

🔒 Requires the create:organization_api_key permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
namestringOptional

Name of the api key. e.g. default

Responses
200

Generated api key

application/json
post
/api/v1/auth/key
get

Get list api key details

🔒 Requires the read:organization_api_key permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
offsetnumberOptional

Results offset to allow pagination e.g. 10

Default: 0Example: 10
limitnumberOptional

Results limit to allow pagination, e.g. 50

Default: 20Example: 10
orderstringOptional

Specifies the order - ascending or descending - by which the returned list should be sorted e.g. ASC

sortstring · enumOptional

Specifies the attribute by which the returned list should be sorted. Can include the sort direction as ‘asc’ or ‘desc’. e.g. sort=name&order=asc

Default: created_atPossible values:
searchstringOptional

Enables searching within the list for api keys names that match a particular query. coming soon

Responses
200

List of api keys details

application/json
get
/api/v1/auth/keys
post

Activate api key

🔒 Requires the update:organization_api_key permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
namestringRequired

Name of the api key. e.g. default

Responses
200

Activated api key

application/json
post
/api/v1/auth/key/activate
post

Deactivate api key

🔒 Requires the update:organization_api_key permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
namestringRequired

Name of the api key. e.g. default

Responses
200

Deactivated api key

application/json
post
/api/v1/auth/key/deactivate

Last updated

Was this helpful?