Docs

Rotate an analytics key

Rotate a public or read-only secret key for a hosted Chunkify Analytics server. Update the player, dashboard, or MCP client with the new key; the old key stops working immediately. Requires a team owner and a Team Access Key.

POST
/projects/{projectId}/analytics/connections/{connectionId}/keys/{keyId}/rotate

Authorization

Authorization
header
string
required

Enter the team access token with the Bearer prefix, e.g. "Bearer team_access_token"

Path Parameters

projectId
string
required

The owning Chunkify project ID.

connectionId
string
required

The saved analytics connection ID.

keyId
string
required

The analytics key ID.

Responses

application/json
data
object
required
key
string
required

Key is the new credential. Save read and MCP keys now; later reads omit their values. Public keys remain available.

status
"success"
string
required

New key, returned once.