API tokens and permissions
Create a private integration token, choose what it may do, and rotate, revoke or delete it safely.
Every API request carries a private integration token. The token decides which account the request reaches and what it may do there.
Create a token
Open Settings → Private integrations.
Click Create token.
Fill in Name (after the tool that will use it, up to 100 characters) and, if it helps your team, Description (optional).
Under Mode, tick Test mode: messages are recorded but never sent if you want a test token. You can only choose this when you create the token.
Under Permissions, tick what the tool needs. Each group (Contacts, Conversations, Appointments and so on) has its own boxes, such as Read and Write, with a line saying what each allows. Use Search permissions to find one.
Click Create token, then Copy token. It is shown once and can never be read back. Click I've saved it when you're done.
Only account admins can create tokens or change their permissions. An account can have up to 10 active tokens.
We store only a fingerprint of each token, never the token itself, so nobody (including our support team) can look it up for you later.
Select all
Select all (at the top, and on each group) ticks only the read-style permissions. Anything that writes, sends, publishes, deletes or hands over sensitive data must be ticked one by one, so granting it is always a deliberate choice. Permissions that hand over customer details or act in public show a warning line.
Send it with every request
Put the token in the Authorization header with the Bearer scheme:
curl "https://YOUR-CRM-ADDRESS/api/v1/contacts" \
-H "Authorization: Bearer sk_live_YOUR_TOKEN"A missing, mistyped or unknown token gets 401 UNAUTHORIZED.
Permissions
Give each tool only what it needs. A call that needs a permission the token lacks gets 403 FORBIDDEN, and the message names the missing permission by its code (for example contacts:read).
To change a token's permissions later, click the Edit permissions button on its row, change the boxes and click Save changes. The token itself stays the same, so the tool keeps working. Changes take effect at once: removing a permission a tool is still using starts refusing its requests straight away.
On screen | Code | What it allows |
|---|---|---|
Contacts: Read / Write |
| See contacts, their fields, tags and notes. Write creates, updates, tags and deletes contacts and adds notes. |
Conversations: Read / Write |
| Read conversations and messages. Write starts conversations, sends messages and changes status or assignee. |
Appointments: Read / Write |
| Read is every booked appointment, including each customer's name, email and phone. Write books, cancels and reschedules any appointment. |
Calendars: Read |
| Open times, the calendar list and appointment types. No customer details. |
Appointment types: Write / Delete |
| Create, change and delete appointment types. |
Service types: Read |
| The price list a booking conversation quotes from. |
Customer appointments: Read / Write |
| One caller's own appointments after they prove who they are. Write cancels or moves that caller's appointment. |
Estimates: Read |
| Quotes for the contact being spoken to. |
Estimates: Read all / Write / Send / Delete |
| Every estimate with line items; create, send and delete estimates. |
Tasks: Read / Write |
| See tasks; create, update, complete and delete them. |
Opportunities: Read / Write |
| See opportunities and pipelines; create, move, win, lose and delete opportunities. |
Opportunity notes: Read / Write / Delete |
| Notes on opportunities. Contact notes come with Contacts. |
Pipelines: Write / Delete |
| Create, change and delete pipelines and stages. |
Team: Read |
| Team members (name, email, role), so work can be assigned to them. |
Tags: Read / Write / Delete |
| The tag list. |
Smart lists: Read / Write / Delete |
| Smart lists and which contacts are on them, by contact ID. |
Custom objects: Read / Write |
| Object types, records and their links. |
Community: Read / Write / Paid offers |
| Community lists; posting, course enrollment and direct messages. Paid offers also needs Write. |
Websites: Read / Write / Publish |
| Sites and pages; draft edits; making pages live without review. |
Campaigns: Read / Write |
| Campaign status and counts; create, send and schedule email campaigns. |
Flyers: Read / Write / Send / Share / Delete |
| Flyers, their content, sending, public links and deleting. |
Documents: Read / Write / Send / Delete / Read drafts |
| Documents, sending for signature (a token can never sign) and draft text. |
Buyer matching: Read |
| Which buyers matched a record, by contact ID and score. |
Commissions: Read |
| What each person earned, as the Commissions report shows it. |
Forms: Read / Write / Publish / Delete |
| Forms, their questions, putting them live and deleting them. |
Form submissions: Read |
| What people typed into your forms. |
Products: Read / Write / Delete |
| Products and prices. |
Invoices: Read / Write / Send / Delete |
| Invoices, drafts, sending and voiding. |
Payments: Read |
| Payments, orders and subscriptions. No token can charge or refund. |
Workflows: Read / Write / Publish / Enroll / Delete |
| Workflows, their steps and runs, going live and enrolling contacts. |
Reviews: Read / Reply / Send requests |
| Reviews, public replies and review requests. |
Webhooks: Manage |
| Create, change and delete webhook subscriptions. |
Commissions: Read only shows for people who manage commissions, and only on a token for this one account. It can't be added to an agency-wide token.
Booking bots: prefer Calendars: Read and the Customer appointments pair over Appointments: Read and Write. They let a bot find open times and change one verified caller's own appointment without ever seeing your customer list. See API for booking assistants.
A token can't do more than its creator. Many endpoints act as the person who created the token, narrowed by its permissions. If that person later loses access to the account, those calls are refused with 403 FORBIDDEN. Create tokens from an account you expect to keep.
Your account ID
A token only works for the account it was created in, so most tools need nothing else. Some tools also ask for an account ID or location ID. Copy it from the Your account ID card at the top of Settings → Private integrations with Copy ID. It is the 20-character code in the account's address bar.
Agency tokens
The agency owner can create an agency token (sk_agency_live_...) that can reach every account in the agency. When they create a token from the agency view, a Works in choice appears: pick All accounts (agency-wide) instead of This account only. An agency can have up to 5 active agency tokens.
An agency token must say which account each call is for, on every request. Use either header:
X-Location-Id: the account's 20-character account ID (from Your account ID in that account's settings).X-Sub-Account-Id: theidthatGET /api/v1/sub-accountsreturns for the account.
# 1. Find the accounts this agency token can reach
curl "https://YOUR-CRM-ADDRESS/api/v1/sub-accounts" \
-H "Authorization: Bearer sk_agency_live_YOUR_TOKEN"
# 2. Name one on every other call, using an id from step 1
curl "https://YOUR-CRM-ADDRESS/api/v1/contacts" \
-H "Authorization: Bearer sk_agency_live_YOUR_TOKEN" \
-H "X-Sub-Account-Id: ID_FROM_STEP_1"No header:
400 MISSING_SUB_ACCOUNT.An account ID that matches no account, an account outside the agency, or one the token is not allowed to reach:
403 INVALID_SUB_ACCOUNT.If you send both headers,
X-Sub-Account-Idis used.
Rotate a token
Rotating gives a token a new secret while keeping its name, permissions and history. Click the Rotate secret button on the token and choose:
Keep the old secret working for 24 hours: paste the new secret into your tool any time that day, with no downtime. The list shows "Old secret works until" with the time.
Expire the old secret now: for a secret that may have leaked. Anything still using it is refused at once with
401.
Click Rotate. The new secret is shown once, just like when the token was created. Rotating again inside the 24 hours ends the older secret.
Revoke or delete a token
Revoke stops a token at once, including an old secret still inside its 24-hour window. Calls then get
401 KEY_REVOKED. The token stays in the list as a record.Delete removes the token and its usage history for good. This can't be undone.
Paused accounts
While an account is paused or canceled, its tokens are refused with 403 FORBIDDEN and error.details.reason set to account_paused. They work again as soon as the account is resumed; you do not need new tokens.
HIPAA accounts
The API isn't available on HIPAA accounts. Create token doesn't show there, and any token for a HIPAA account is refused with 403 FORBIDDEN and error.details.reason set to hipaa_account.
Tokens your connected apps manage
Some connections create their own token and use it behind the scenes:
Conversation AI tokens are labelled CONVERSATION AI in the list. You can rename one, but you can't change its permissions, rotate, revoke or delete it there. Your agency can disconnect Conversation AI, which revokes the token for you.
Tokens for an app installed from the Module Marketplace can't be rotated, revoked, deleted or re-scoped either. Remove the app in Agency Settings → Modules → Installed instead; that revokes its token automatically.
Keep tokens safe
Store tokens in your tool's secret settings, never in web pages, shared documents or code you publish.
Use one token per tool, so you can revoke one without breaking the others.
Rotate a token whenever someone who had it leaves your team.
Was this article helpful?
Your answer helps us improve this article.
Related articles
- Getting started with the APIWhat the API does, the address to call, and how to make your first request in a few minutes.
- API errorsThe error format every endpoint uses, what each code means, and which errors are safe to retry.
- API: team members and sub-accountsLook up team member IDs to assign records, and list the accounts an agency token can reach.
- Private integrations: API tokens for your own toolsCreate a token so a tool like Zapier, Make, n8n or a chatbot can read or update your account, with only the permissions you pick.