API: contacts
Create, find, update, tag and delete contacts, add notes, and read your custom fields through the API.
Permissions: contacts:read to read, contacts:write to change. All paths below start with https://YOUR-CRM-ADDRESS.
Method | Path | What it does |
|---|---|---|
|
| List, search or look up contacts |
|
| Create a contact (merges by email) |
|
| Find by email or phone, then update or create |
|
| Get one contact |
|
| Update a contact ( |
|
| Delete a contact |
|
| Add or remove tags |
|
| Read or add notes |
|
| One simple change at a time, for chatbot tools |
|
| List your custom field definitions |
List and find contacts
GET /api/v1/contacts
Parameter | What it does |
|---|---|
| Exact email lookup. Returns 0 or 1 contact. |
| Exact phone lookup, in any common format. Returns 0 or 1 contact. |
| Free-text search over first name, email and company. To find someone by phone, use |
|
|
| Comma-separated tag names. |
| How the contact was created, for example |
| A team member's ID (see team members). |
|
|
| Paging. See pagination. |
curl "https://YOUR-CRM-ADDRESS/api/v1/contacts?phone=(555)%20123-4567" \
-H "Authorization: Bearer sk_live_YOUR_TOKEN"Create a contact
POST /api/v1/contacts. firstName and lastName are required.
curl -X POST "https://YOUR-CRM-ADDRESS/api/v1/contacts" \
-H "Authorization: Bearer sk_live_YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"firstName": "Jane",
"lastName": "Doe",
"email": "jane@example.com",
"phone": "+15551234567",
"company": "Acme Roofing",
"lifecycleStage": "lead",
"tags": ["website-lead"],
"customFields": { "roof_age": "15" }
}'Other fields you can send: title, source, assignedTo, addressLine1, addressLine2, city, state, postalCode, country, dateOfBirth, timezone.
No duplicates by email. If a contact with the same email already exists, the request updates that contact instead of creating a second one: tags are added, empty fields are filled (existing values are never overwritten), the lifecycle stage only moves forward, and the custom fields you send are written over the matching ones. The response then includes "merged": true. Requests without an email always create a new contact.
Response (201):
{
"data": {
"id": "jd7a1b2c3d4e5f6g7h8i9j0k",
"firstName": "Jane",
"lastName": "Doe",
"email": "jane@example.com",
"phone": "+15551234567",
"company": "Acme Roofing",
"source": "api",
"lifecycleStage": "lead",
"tags": ["website-lead"],
"customFields": { "roof_age": "15" },
"isActive": true,
"createdAt": "2026-03-27T14:30:00.000Z",
"updatedAt": "2026-03-27T14:30:00.000Z",
"merged": false
}
}Find or create (upsert)
POST /api/v1/contacts/upsert is the one call a form or chat tool needs once it has someone's details. It looks for a contact with the same email, then the same phone. If it finds one, it updates the fields you sent; otherwise it creates a new contact.
Send at least one of
emailorphone. Names are optional here.An empty string means "not provided" and never clears a field, so a tool that always sends every field is safe.
tagsare added to the existing tags, never replaced.If the email matches one contact and the phone another, the email match wins.
{ "email": "jordan@example.com", "phone": "(555) 010-0000", "firstName": "Jordan", "tags": ["website-chat"] }Returns 201 with "created": true for a new contact, or 200 with "created": false when an existing one was updated:
{ "data": { "created": false, "contact": { "id": "jd7a1b2c3d4e5f6g7h8i9j0k", "firstName": "Jordan", "email": "jordan@example.com", "phone": "+15550100000" } } }Update a contact
PATCH /api/v1/contacts/{id} with only the fields you want to change: any of the fields you can send when creating a contact. Fields the API sets itself, such as engagementScore, createdAt and updatedAt, can't be sent; a request that includes one is refused with 400 VALIDATION_ERROR. PUT does exactly the same (it is not a full replace).
{ "lifecycleStage": "customer", "customFields": { "roof_age": "16" } }Delete a contact
DELETE /api/v1/contacts/{id} returns { "data": { "id": "...", "deleted": true } }. Creating a contact later with the same email brings the deleted one back rather than making a duplicate.
Tags
POST /api/v1/contacts/{id}/tags adds tags; DELETE on the same path removes them. Matching ignores upper and lower case, and adding a tag the contact already has does nothing, so calling it twice is safe. Each new tag fires your "tag added" workflows and the contact.tag_added webhook, the same as tagging in the app.
{ "tags": ["hot-lead", "roof-inspection"] }If your tool cannot send a body with DELETE, use ?tags=hot-lead,roof-inspection in the address instead.
Notes
GET /api/v1/contacts/{id}/noteslists notes, pinned first, then newest first (limitup to 100).POST /api/v1/contacts/{id}/notesadds one:{ "content": "Asked about financing.", "isPinned": false }. Up to 50,000 characters. The note is credited to the person who created the token, and fires your "note added" workflows.
One change at a time (for chatbot tools)
Some chatbot tool builders can only fill in simple text values, not nested JSON. PUT /api/v1/contacts/{id}/bot-update takes one instruction:
|
|
|
|---|---|---|
| One of | The new value (empty clears it) |
| The custom field's key | The new value (empty clears it) |
| (not used) | The tag |
{ "operation": "set_custom_field", "field": "roof_age", "value": "15" }If your tool cannot put the contact ID in the address, use PUT /api/v1/contacts/bot-update and send contactId in the body. Bind it to your platform's own contact ID variable, never to something the AI collects from the conversation.
Custom field definitions
GET /api/v1/contacts/fields lists your custom fields with their name (the key you use in customFields), label, fieldType, options and whether they are required.
Related webhooks
contact.created, contact.updated, contact.lifecycle_changed and contact.tag_added. See webhooks.
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 pagination, dates and other conventionsHow to page through long lists, and the formats the API uses for IDs, dates, phone numbers and request bodies.
- API: webhooksGet a request sent to your server the moment something happens, verify it really came from us, and handle retries.
- API: conversations and messagesStart or find a conversation, read its messages, send a text or email, and close or reassign it through the API.