Generates an API key for the specified client application.

Generates an API key for the specified client application. Requires an API user.

Required Permissions
The user must be an admin or have workspace-manage-config:read permissions.

Path parameters

clientIdstringRequired

The id of the client application.

Headers

AuthorizationstringRequired

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

Request

This endpoint expects an object.
apiUserIdUUIDOptional

The API user to generate the key for.

Response

OK

token_typestring or nullOptional

The type of the token, typically ‘Bearer’.

expires_inlongOptional

The expiration date of the access token, in seconds.

access_tokenstring or nullOptional

The access token.

refresh_tokenstring or nullOptional

The refresh token to get a new access token.