The Advanzo CRM API is a RESTful JSON interface for contacts, companies, deals, activities, calls, notes, documents, products, users and more. Use it to sync data with your ERP or website, build internal tools, or feed your own AI agents. If you want an AI assistant to work with your CRM conversationally, use the MCP server instead; it sits on top of the same permissions.
Want to try a call first? The API request builder writes the request as cURL, JavaScript, Python or PHP.
Always use HTTPS and send Accept: application/json. Every request is scoped to the workspace the token belongs to (see Workspace scope). There is no public OpenAPI file yet; this page and the /api/{resource}/create-fields endpoints are the reference.
Quick start
- Open your tokens. Open the user menu at the top right and choose Personal Access Tokens. Your user needs API access, which a workspace admin enables.
- Create a token. Click Create token and copy it. It belongs to your user and to the workspace that is active right now.
- Call the API. Send the token as a Bearer header. The answer is JSON.
- Ask a workspace admin to enable API access for your user (Settings → Users → edit user), or be a super admin.
- Open your user menu (top right) → Personal Access Tokens → Create token. Copy the token; it is shown once.
- Call the API:
curl https://advanzo.app/api/contacts?per_page=5 \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Accept: application/json"Authentication
Personal access tokens
Tokens are Laravel Sanctum tokens. They are bound to the user who created them and to the workspace that was active at creation time. They do not expire, carry no scopes, and inherit the user's permissions (for example "view own deals only").
Create, list and revoke tokens in the UI (user menu → Personal Access Tokens) or via the API:
GET /api/personal-access-tokens # list your tokens
POST /api/personal-access-tokens # { "name": "ERP sync" } → returns the plain-text token once
DELETE /api/personal-access-tokens/{id} # revokeA token gives full API access with the rights of its user. Store it in a secret manager, never in client-side code or a public repository, and revoke it when it is no longer needed.
Exchanging credentials for a token
Integrations can also obtain a token with email and password. The token is bound to the user's oldest workspace membership.
curl -X POST https://advanzo.app/api/token \
-H "Content-Type: application/json" -H "Accept: application/json" \
-d '{ "email": "user@example.com", "password": "secret", "device_name": "ERP sync" }'{
"accessToken": "12|k8Yx...",
"userId": 7,
"email": "user@example.com",
"name": "Anna Keller",
"workspaceId": 3
}Sending the token
Authorization: Bearer YOUR_ACCESS_TOKEN
Accept: application/json
Content-Type: application/jsonBase URL
All endpoints are relative to https://advanzo.app/api. Self-hosted Enterprise installations use https://your-domain/api.
Workspace scope
- A bearer request is pinned to the token's workspace. The
X-Workspace-IDheader is ignored for tokens that carry a workspace. - If the user has left that workspace, every request returns
403. Create a new token from the workspace you need. - To work in several workspaces, create one token per workspace.
- Tokens created before workspace binding existed fall back to the
X-Workspace-IDheader, then the user's default workspace.
Rate limiting
90 requests per minute per user (per IP when unauthenticated). Exceeding it returns 429 Too Many Requests with a Retry-After header. The limit is shared with MCP tool calls.
Resources
Every resource below supports the generic CRUD routes. {resource} is the plural, kebab-case name.
| Resource | Notes |
|---|---|
contacts, companies, deals | Main records, with timeline and associations |
activities, calls, notes, documents, products | Related records |
users, workspaces, workspace-users | People and workspace membership |
activity-types, call-outcomes, industries, sources, lost-reasons, pipelines, pipeline-stages, document-templates, document-types | Lookup and configuration resources |
emails | Read-only table listing; sending goes through the mail endpoints |
CRUD endpoints
GET /api/{resource} # list (paginated)
GET /api/{resource}/{id} # single record, including available actions
POST /api/{resource} # create → 201
PUT /api/{resource}/{id} # update
DELETE /api/{resource}/{id} # delete → 204Discover fields
Field names, labels, types and validation rules differ per workspace because of custom fields. Fetch them instead of hard-coding:
GET /api/{resource}/create-fields # fields accepted by POST
GET /api/{resource}/{id}/update-fields # fields accepted by PUT
GET /api/{resource}/{id}/detail-fields # fields shown on the detail viewCustom fields are sent with their attribute name (for example cf_industry_segment) like any other field.
Example: create a contact with a company and a deal
curl -X POST https://advanzo.app/api/contacts \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" -H "Accept: application/json" -H "Content-Type: application/json" \
-d '{
"first_name": "Reto",
"last_name": "Bürki",
"email": "reto.buerki@muellerelektro.ch",
"phones": [{ "number": "+41 44 123 45 67", "type": "work" }],
"source_id": 2,
"companies": [14],
"deals": [88]
}'Association fields (companies, contacts, deals) take arrays of ids and can also be managed with the association endpoints.
Listing, searching and sorting
| Parameter | Meaning | Example |
|---|---|---|
q | Search term across the resource's searchable columns. field:value;field2:value2 targets specific fields. | ?q=Bürki |
search_fields | Restrict the search to columns, separated by ; | ?q=zürich&search_fields=city;address |
search_match | and or or between search fields | ?search_match=and |
order | field|direction; relation fields as relation|field. Or order[field]=…&order[direction]=… | ?order=created_at|desc |
select | Columns to return, separated by ; | ?select=id;first_name;email |
with | Relations to include, separated by ; | ?with=companies;deals |
per_page | Page size (default 15) | ?per_page=100 |
page | Page number | ?page=3 |
take | Hard limit without pagination | ?take=5 |
exclude | Ids to leave out, comma-separated | ?exclude=1,2,3 |
filters | Filter rules (see below) or the id of a saved filter |
Filter rules
The filters parameter accepts the same rule tree the UI filter builder produces. Send it JSON-encoded in the query string or as the request body on GET:
{
"condition": "and",
"children": [
{ "type": "rule", "query": { "type": "numeric", "rule": "amount", "operator": "greater", "value": 10000 } },
{ "type": "rule", "query": { "type": "select", "rule": "status", "operator": "equal", "value": "open" } },
{ "type": "group", "query": { "condition": "or", "children": [
{ "type": "rule", "query": { "type": "date", "rule": "expected_close_date", "operator": "between", "value": ["2026-11-01", "2026-12-31"] } },
{ "type": "rule", "query": { "type": "text", "rule": "name", "operator": "contains", "value": "Offerte" } }
] } }
]
}Operators: equal, not_equal, contains, not_contains, starts_with, ends_with, less, less_or_equal, greater, greater_or_equal, between, not_between, in, not_in, is_null, is_not_null, is_empty, is_not_empty, is, was (date presets such as today, this_month). The special value me resolves to the token's user. GET /api/{resource}/rules returns the rules available for a resource.
Response format
Records are returned as plain JSON objects; lists are paginated in Laravel's standard shape:
{
"data": [ { "id": 12, "first_name": "Reto", "last_name": "Bürki", "email": "reto.buerki@muellerelektro.ch", "...": "..." } ],
"links": { "first": ".../api/contacts?page=1", "last": ".../api/contacts?page=9", "prev": null, "next": ".../api/contacts?page=2" },
"meta": { "current_page": 1, "from": 1, "last_page": 9, "path": ".../api/contacts", "per_page": 15, "to": 15, "total": 131 }
}Dates and times are ISO 8601 in UTC. Money fields are decimals in the workspace currency.
Errors
| Status | Body | Meaning |
|---|---|---|
401 | {"message":"Unauthenticated."} | Missing or revoked token |
403 | {"error":"Your account is not authorized to perform API requests."} | User has no API access flag |
403 | {"error":"DEAL_LIMIT_REACHED" | "USER_LIMIT_REACHED" | "SEAT_LIMIT_REACHED" | "SUBSCRIPTION_INACTIVE" | "PLAN_LIMIT_REACHED", "message":"…"} | Plan limit: for example the Free plan's 25 deals |
403 | {"error":"WORKSPACE_SUSPENDED" | "WORKSPACE_BANNED", "message":"…"} | Workspace restricted by Advanzo. Suspended blocks writes only. |
404 | {"message":"…"} | Record not found or not visible to this user |
422 | {"message":"The given data was invalid.","errors":{"email":["The email has already been taken."]}} | Validation failed |
429 | Rate limit reached; retry after the number of seconds in Retry-After |
Global search
GET /api/search?q=müller # across all searchable resources
GET /api/search/email-address?q=reto@ # contacts and companies by email
GET /api/{resource}/search?q=… # within one resourceAssociations
Attach, replace or detach related records without touching other fields:
PUT /api/associations/{resource}/{id} # attach { "contacts": [12, 13], "companies": [4] }
POST /api/associations/{resource}/{id} # sync (replace the full set)
DELETE /api/associations/{resource}/{id} # detach
GET /api/{resource}/{id}/{associated} # list related records, e.g. /api/deals/88/contacts
GET /api/{resource}/{id}/timeline # full history of a contact, company or dealDeals
PUT /api/deals/{id}/status/{status} # open | won | lost (body may include lost_reason)
GET /api/deals/board/{pipelineId} # kanban data; POST to move cards
GET /api/deals/board/{pipelineId}/summary # totals and weighted values per stage
GET /api/deals/board/{pipelineId}/{stageId} # one column, paginated
GET /api/pipelines/{id}/stages
POST /api/pipelines/order # reorder pipelines
POST /api/deals/{id}/ai-score # AI deal score (AI Assistant required)
POST /api/deals/{id}/ai/analyze-transcript # { "transcript": "…" }
POST /api/deals/{id}/ai/apply-suggestions # create the suggested follow-upsActivities and calendar
POST /api/activities/{id}/complete
POST /api/activities/{id}/incomplete
GET /api/activities/{id}/ics # download as .ics
GET /api/calendar/account # connected calendar (POST to connect, DELETE to disconnect)
GET /api/calendars/{accountId}Contacts and companies
POST /api/contacts/{id}/avatar # multipart image; DELETE to remove
POST /api/companies/{id}/avatar
GET /api/company-enrichment/{companyId} # last AI enrichment; POST to run a new one
POST /api/company-enrichment/{companyId}/{enrichmentId}/apply # apply selected valuesDocuments
POST /api/documents/ai-draft # draft content with AI
POST /api/documents/{id}/draft # back to draft
POST /api/documents/{id}/accept # mark accepted
POST /api/documents/{id}/lost # mark lost
POST /api/{resource}/{id}/billable # products on a deal or document
GET /api/products/activePublic signing endpoints used by the document link (no authentication): POST /api/d/{uuid}/validate, /accept and /sign.
GET /api/mail/accounts # also /shared, /personal, /unread
POST /api/mail/accounts/connection # start a connection
GET /api/mail/accounts/{id}/sync # trigger a sync; /sync/enable, /sync/disable
PUT /api/mail/accounts/{id}/primary
POST /api/emails/{id}/reply # { "message": "…", "to": [...] }
POST /api/emails/{id}/forward
POST /api/emails/{id}/read | /unread
POST /api/emails/ai-compose # AI compose a new message
POST /api/emails/{id}/ai-draft # AI reply draft
GET /api/mails/templates # CRUD on mail templatesOther endpoints
| Area | Endpoints |
|---|---|
| Comments | GET|POST /api/{resource}/{id}/comments, GET|PUT|DELETE /api/comments/{id} |
| Import | POST /api/{resource}/import/upload (CSV), POST /api/{resource}/import/{id} to run, GET /api/{resource}/import/sample |
| Export | POST /api/{resource}/export with type = csv, xls or xlsx, optional filters |
| Trash | GET /api/trashed/{resource}, POST /api/trashed/{resource}/{id} restore, DELETE to purge |
| Actions | POST /api/{resource}/actions/{action}/run with ids (bulk actions such as assign owner) |
| Media | POST|DELETE /api/{resource}/{id}/media (attachments) |
| Clone | POST /api/{resource}/{id}/clone |
| Filters | /api/filters/… to manage saved filters |
| Web forms (admin) | /api/forms, /api/forms/templates, /api/forms/{id}/duplicate |
| Newsletters | /api/newsletters, /api/newsletter-groups, /api/newsletter-templates, …/send, …/schedule, …/stats |
| Autopilot | GET /api/autopilot/actions, POST /api/autopilot/actions/{id}/approve | /dismiss, GET|PUT /api/autopilot/settings |
| Workspaces | GET /api/workspaces, POST /api/workspaces/switch, POST /api/workspaces/create, POST /api/workspaces/{id}/invite-members |
| Users (admin) | POST /api/users/invite, GET /api/users/invitations, /api/teams, /api/roles, GET /api/permissions |
| Me | GET /api/me, PUT /api/profile, PUT /api/profile/password, /api/notifications |
| Lookups | GET /api/countries, /api/currencies, /api/timezones, /api/highlights |
| Settings (admin) | GET|POST /api/settings, /api/custom-fields, /api/workflows |
Webhooks and Zapier
Advanzo does not yet offer generic outgoing webhooks per event. Two mechanisms cover most needs:
- Zapier hooks: subscribe a URL to Record Created or Record Updated for a resource. Zapier's "Webhooks by Zapier" uses these; so can your own endpoint.
GET /api/zapier/hooks POST /api/zapier/hooks/{resource}/{action} # action: created | updated, body: { "hookUrl": "https://…" } DELETE /api/zapier/hooks/{hookId} - Workflow action "Trigger webhook": fire a URL when a deal is created, changes stage or status, a contact or company is created, a document changes status or a call is missed. See Workflows.
Frequently asked questions
Is there an OpenAPI file or a Postman collection?
Not yet. Use the create-fields and update-fields endpoints to discover the exact payload for your workspace, and this page for the routes.
Do tokens expire?
No. Revoke them from the Personal Access Tokens page when they are no longer needed. OAuth tokens issued to MCP clients expire after 30 days.
Can I create records in several workspaces with one token?
No. A token is bound to one workspace. Create one token per workspace.
Which permissions does the API respect?
Exactly the ones of the token's user: role capabilities (view, edit, delete: all, owned or team), export permission, admin-only settings routes and plan limits.
How do I get records that were deleted?
List them with GET /api/trashed/{resource}: deleted records stay in the trash. Restore a record with POST /api/trashed/{resource}/{id}.