Skip to navigation

Create API key for service user

Create a new API key for a service user. The caller must have ManageAccountServiceUsers permission.

Authentication

AuthorizationBearer

Personal API Key (apk_user_) or Service API Key (apk_)

Path parameters

service_user_idstringRequired

Service user ID (prefix: service-user-)

Request

This endpoint expects an object.
namestringRequired1-256 characters
expires_atinteger or nullOptional
Optional expiration as a UNIX timestamp in seconds. Must be in the future if provided.

Response

Successful Response
api_key_idstring
api_key_namestring
tokenstring

The raw API token. This is only shown once at creation/rotation time.

Errors

422
Unprocessable Entity Error