Skip to navigation

Create API key

Creates an API key for a service account; the secret is returned only once. | authz: cedar=createServiceAccountApiKey | (AuthzServiceAccountApiKeyCreateReq) -> (AuthzServiceAccountApiKeyCreateRes)

Authentication

AuthorizationBearer

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

Path parameters

user_idstringRequired

Must be a string starting with user_

Request

This endpoint expects an object.
namestringRequired>=1 character
expires_at_timestampstring or nullOptionalformat: "date-time"

Response

Successful Response
api_key_idstring
expires_at_timestampstring or nullformat: "date-time"
namestring
obfuscated_valuestring
valuestring
The API key secret. Shown only in this response.

Errors

403
Forbidden Error
422
Unprocessable Entity Error