Skip to content
Start in Cloud

Roll API client token

POST
/api/user/api-clients/{id}/rotate
curl --request POST \
--url https://hitkeep.com/api/user/api-clients/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/rotate \
--cookie hk_token=<hk_token>

Generates a new one-time token for an active delegated API client and immediately invalidates the previous token.

id
required
string format: uuid

Rolled API client token

Media type application/json
object
client
object
created_at
string format: date-time
description
string
expires_at
string format: date-time
id
string format: uuid
instance_role
string
last_used_at
string format: date-time
name
string
owner_type
string
Allowed values: personal team
revoked_at
string format: date-time
site_roles

Explicit site grants. Empty means the API client has no site-scoped analytics, MCP, or ingest access.

Array<object>
object
role
string
site_id
string format: uuid
tenant_id
string format: uuid
updated_at
string format: date-time
user_id
string format: uuid
token
string
Example
{
"client": {
"owner_type": "personal"
}
}

API client is revoked or expired