Create an access token
A new account token. It can never have more permissions or websites than the token that creates it (403 insufficient_scope / website_not_in_scope), and connected apps cannot create tokens. Write permissions are refused on websites where you are a viewer. At most 20 tokens per account. secret is shown once.
Related: List access tokens and Edit an access token in Access tokens.
Request
Headers
AuthorizationstringrequiredBearer followed by an account token with the tokens:write scope.
Content-TypestringrequiredSend the body as JSON.
One of: application/json
Body fields
namestringoptionalUp to 60 characters
scopesstring[]requiredEach one of: notes:read, notes:write, analytics:read, goals:read, goals:write, funnels:read, funnels:write, segments:read, segments:write, alerts:read, alerts:write, websites:read, websites:write, settings:read, settings:write, team:read, team:write, api_keys:read, api_keys:write, payments:read, payments:write, identify:write, visitors:write, account:read, account:write, tokens:read, tokens:write · At least 1 items
websiteScopeobjectrequiredResponse
The token and its secret.
{
"status": "string",
"data": {
"token": {
"id": "string",
"name": "string",
"maskedToken": "string",
"scopes": [],
"websiteScope": {},
"createdAt": "2026-01-01T00:00:00.000Z",
"lastUsedAt": "2026-01-01T00:00:00.000Z",
"rolledAt": "2026-01-01T00:00:00.000Z"
},
"secret": "string"
}
}Response fields
| Field | Type | Description |
|---|---|---|
| status | "ok" | |
| data | object | |
| data.token | object | |
| data.token.id | string | |
| data.token.name | string | |
| data.token.maskedToken | string | |
| data.token.scopes | string[] | |
| data.token.websiteScope | object | |
| data.token.createdAt | string (date-time) | |
| data.token.lastUsedAt | string (date-time) | null | null | |
| data.token.rolledAt | string (date-time) | null | null | |
| data.secret | string |