Skip to content

API Tokens ​

Manage your workspace's API tokens programmatically. For how to use tokens, see Authentication.

The token object ​

json
{
  "id": 3,
  "name": "Zapier integration",
  "permissions": ["contacts:read", "contacts:write"],
  "last_used_at": "...",
  "expires_at": null,
  "created_at": "...",
  "updated_at": "..."
}

Endpoints ​

MethodPathPermissionDescription
GET/api-tokensapi_tokens:readList tokens (paginated)
POST/api-tokensapi_tokens:writeCreate a token
GET/api-tokens/permissionsapi_tokens:readEvery available permission
GET/api-tokens/{id}api_tokens:readGet a token
PUT/api-tokens/{id}api_tokens:writeUpdate the name, permissions or expiry
DELETE/api-tokens/{id}api_tokens:writeRevoke a token. Returns 204.

List tokens ​

GET /api-tokens returns only tokens belonging to the authenticated token's workspace.

ParameterTypeDefaultDescription
pageinteger1Page number, starting at 1
per_pageinteger15Results per page, from 1 to 100
searchstringPartial token name
permissionstringA permission returned by GET /api-tokens/permissions
sortstringcreated_atname, last_used_at, expires_at, created_at or updated_at
directionstringdescasc or desc
http
GET /api/v1/api-tokens?search=zapier&permission=contacts%3Aread&sort=name&direction=asc&per_page=15

The response follows the pagination contract. Equal sort values are ordered consistently by token ID.

Create a token ​

json
{
  "name": "Zapier integration",
  "permissions": ["contacts:read", "contacts:write"],
  "expires_at": "2027-01-01T00:00:00Z"
}
FieldRules
nameRequired. Max 255 characters
permissionsRequired. At least one value from GET /api-tokens/permissions
expires_atA date in the future. Leave it out for a token that never expires

201

json
{
  "data": { "id": 4, "name": "Zapier integration", "token": "Xk3...48 chars", "permissions": ["contacts:read", "contacts:write"] },
  "message": "Token created successfully. Make sure to copy it now..."
}

WARNING

The plain token appears only in this response. Beeving can't show it to you again.

API v1.0