Docs

Create an analytics key

Generate a public key for players to send events, or a read-only secret key for a dashboard or MCP client to query a hosted Chunkify Analytics server. Save secret keys when returned. Requires a team owner and a Team Access Key.

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

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.

Bodyapplication/json
purpose
string
required

Purpose distinguishes player ingestion, read-only API access and a separate read-only MCP credential. Read and MCP keys have the same collector permissions.

Available options:
playerreadmcp

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.