Generates an API key for the specified client application.

POST

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.

Request

This endpoint expects an object.
apiUserIdstringOptional

The API user to generate the key for.

Response

OK

token_typestringOptional

The type of the token, typically ‘Bearer’.

expires_inlongOptional

The expiration date of the access token, in seconds.

access_tokenstringOptional

The access token.

refresh_tokenstringOptional

The refresh token to get a new access token.