Skip to content
Website API / Access tokens

Create an access token

POSThttps://<your Reveata origin>/api/v1/access-tokens

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.

Try in playground

Request

Headers

Authorizationstringrequired

Bearer followed by an account token with the tokens:write scope.

Content-Typestringrequired

Send the body as JSON.

One of: application/json

Body fields

namestringoptional

Up to 60 characters

scopesstring[]required

Each 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

websiteScopeobjectrequired

Response

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

FieldTypeDescription
status"ok"
dataobject
data.tokenobject
data.token.idstring
data.token.namestring
data.token.maskedTokenstring
data.token.scopesstring[]
data.token.websiteScopeobject
data.token.createdAtstring (date-time)
data.token.lastUsedAtstring (date-time) | null | null
data.token.rolledAtstring (date-time) | null | null
data.secretstring