v1

latestOpenAPI 3.1.02026-07-26269227514.8 KB
service_user_api_keys

Create API key for service user

Create a new API key for a service user.

The caller must have ManageAccountServiceUsers permission.

post/v3beta1/enterprise/service-users/{service_user_id}/api-keys

Path parameters

service_user_idstring required
Example:service-user-abc123def456

Service user ID (prefix: service-user-)

Request body

expires_atinteger nullable

Optional expiration as a UNIX timestamp in seconds. Must be in the future if provided.

namestring required

Response

Successful Response

api_key_idstring required
api_key_namestring required
tokenstring required

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