Contacts
Contacts are the people in your SMBcrm account, including leads and customers, along with their details, tags, custom fields, notes, and tasks.
Base URL: https://services.smbcrm.com · Version header: v3 ·
Scopes: contacts.readonly (read), contacts.write (create/update/delete),
campaigns.readonly (list campaigns), and notes.readonly / notes.write (the Notes API). See Scopes.
Create a contact
Section titled “Create a contact”locationId is the only required field. Send any subset of the others.
This endpoint doesn’t support an Idempotency-Key header. If a request times out and you
retry it, you can end up with a duplicate contact. Before you retry, look the contact up with
Check for a duplicate, or use upsert instead.
| Field | Type | Description |
|---|---|---|
locationId |
string | Required. The location to create the contact in. |
firstName |
string | First name. |
lastName |
string | Last name. |
name |
string | Full name. |
email |
string | Email address. |
phone |
string | Phone number, for example +15125550142. |
additionalEmails |
array of objects | Up to 10 more email addresses for the contact. Each object has a required email. See Additional emails and phones. |
additionalPhones |
array of objects | Up to 10 more phone numbers for the contact. Each object has a required phone and an optional phoneLabel. See Additional emails and phones. |
gender |
string | Gender. |
address1 |
string | Street address. |
city |
string | City. |
state |
string | State. |
postalCode |
string | Postal code. |
country |
string | Country code in ISO 3166-1 alpha-2 format, for example US. |
website |
string | Website URL. |
timezone |
string | Timezone. |
dateOfBirth |
string | Birth date. Accepted formats: YYYY/MM/DD, MM/DD/YYYY, YYYY-MM-DD, MM-DD-YYYY, YYYY.MM.DD, MM.DD.YYYY, YYYY_MM_DD, MM_DD_YYYY. |
companyName |
string | Company name. |
assignedTo |
string | ID of the user the contact is assigned to. See Users. |
source |
string | Where the contact came from. |
tags |
array of strings | Tags to assign to the contact. |
customFields |
array of objects | Custom field values. See Custom field values. |
dnd |
boolean | Turns Do Not Disturb on or off for the contact. |
dndSettings |
object | Do Not Disturb settings for each channel. See Do Not Disturb. |
inboundDndSettings |
object | Inbound Do Not Disturb setting. See Do Not Disturb. |
curl -X POST https://services.smbcrm.com/contacts/ \ -H "Authorization: Bearer <token>" \ -H "Version: v3" \ -H "Content-Type: application/json" \ -d '{ "locationId": "<location_id>", "firstName": "Jordan", "lastName": "Lee", "email": "jordan@example.com", "phone": "+15125550142", "additionalEmails": [{ "email": "jordan.lee@example.com" }], "additionalPhones": [{ "phone": "+15125550143", "phoneLabel": "Work" }], "tags": ["website-lead"], "source": "public-api", "customFields": [ { "id": "<field_id>", "fieldValue": "Referral" } ] }'{ "contact": { "id": "<contact_id>", "locationId": "<location_id>", "name": "Jordan Lee", "firstName": "Jordan", "lastName": "Lee", "email": "jordan@example.com", "phone": "+15125550142", "additionalEmails": [{ "email": "jordan.lee@example.com" }], "additionalPhones": [{ "phone": "+15125550143", "phoneLabel": "Work" }], "source": "public-api", "tags": ["website-lead"], "customFields": [{ "id": "<field_id>", "value": "Referral" }], "dateAdded": "2026-07-08T15:04:00.000Z", "dateUpdated": "2026-07-08T15:04:00.000Z" }}Custom field values
Section titled “Custom field values”customFields is an array. Identify each field with its id or its key and put the value
in fieldValue. Find field IDs and keys in
Custom Fields, Values & Tags.
{ "customFields": [ { "id": "<field_id>", "fieldValue": "Referral" }, { "key": "<field_key>", "fieldValue": ["email", "sms"] } ]}The type of fieldValue depends on the type of the custom field:
| Custom field type | fieldValue |
|---|---|
| Text, large text, single select, radio | A string. |
| Numeric, monetary | A number. |
| Checkbox, multi select | An array of strings. |
| File upload | An object that maps a file UUID to the file’s metadata and download URL. |
field_value is deprecated. Use fieldValue. The same shape applies when you create,
upsert, and update a contact. Responses return each custom field as an object with id and
value, so you send fieldValue and read value.
Additional emails and phones
Section titled “Additional emails and phones”A contact has one primary email and one primary phone. Use additionalEmails and
additionalPhones to store more. Each array takes up to 10 items on create and update. An
item has these fields:
| Field | Type | Description |
|---|---|---|
additionalEmails[].email |
string | Required. An additional email address. |
additionalPhones[].phone |
string | Required. An additional phone number. |
additionalPhones[].phoneLabel |
string | Optional label: Home, Work, Mobile, or Landline. |
{ "email": "jordan@example.com", "phone": "+15125550142", "additionalEmails": [{ "email": "jordan.lee@example.com" }], "additionalPhones": [{ "phone": "+15125550143", "phoneLabel": "Work" }]}A label can belong to only one phone number on a contact, the primary number included. If you repeat a label, the first phone number keeps it and the others lose it.
If your location enforces unique emails, every email in the request, primary and additional,
must be unique across contacts. The same applies to phone numbers when your location enforces
unique phone numbers. If any of those values already belongs to another contact, the request
fails with 400 Bad Request and nothing is saved.
When you change these fields on an existing contact, also send the primary email and
phone. See the warning under Update & delete.
The create, update, upsert, retrieve, and lookup responses return additionalEmails and
additionalPhones in the same shape. Upsert doesn’t accept them as input.
Do Not Disturb
Section titled “Do Not Disturb”Create, upsert, and update accept three Do Not Disturb inputs. Send dnd: true to turn Do
Not Disturb on for the contact. For per-channel control, send dndSettings: an object keyed
by channel, using any of call, email, sms, whatsApp, gmb, and fb. Each channel
takes these fields:
| Field | Type | Description |
|---|---|---|
status |
string | Required. active, inactive, or permanent. |
message |
string | Custom message to store with the setting. |
code |
string | Do Not Disturb code or reason. |
inboundDndSettings.all sets the inbound setting for all channels. It takes a required
status (active or inactive) and an optional message.
{ "dndSettings": { "sms": { "status": "active", "message": "Opted out" }, "email": { "status": "inactive" } }}Contact responses return the current dndSettings.
Upsert a contact
Section titled “Upsert a contact”The request takes the same fields as create, except additionalEmails
and additionalPhones, plus createNewIfDuplicateAllowed. If one contact matches the email
and a different contact matches the phone, the contact that matches the first field in your
configured order is updated and the second field is ignored.
tags replaces the contact’s entire tag list. To add or remove individual tags, use the
tag endpoints.
Upsert doesn’t support an Idempotency-Key header either. When the request includes an email
or phone, retrying after a timeout is safer than retrying create, because the retry matches
the contact the first attempt made. That doesn’t hold when you send
createNewIfDuplicateAllowed to a location that allows duplicates.
| Field | Type | Description |
|---|---|---|
createNewIfDuplicateAllowed |
boolean | Default false. When true and your account allows duplicate contacts, a new contact is created right away without a duplicate check. When true and your account doesn’t allow duplicates, the flag is ignored. When false or omitted, the normal upsert applies. |
curl -X POST https://services.smbcrm.com/contacts/upsert \ -H "Authorization: Bearer <token>" \ -H "Version: v3" \ -H "Content-Type: application/json" \ -d '{ "locationId": "<location_id>", "email": "jordan@example.com", "firstName": "Jordan", "companyName": "Lee Plumbing" }'The response status is 201 whether the call created or updated a contact. new is true
when a contact was created and false when an existing one was updated.
{ "new": false, "contact": { "id": "<contact_id>", "locationId": "<location_id>", "firstName": "Jordan", "email": "jordan@example.com", "companyName": "Lee Plumbing" }, "traceId": "<trace_id>"}Retrieve a contact
Section titled “Retrieve a contact”curl https://services.smbcrm.com/contacts/<contact_id> \ -H "Authorization: Bearer <token>" \ -H "Version: v3"{ "contact": { "id": "<contact_id>", "locationId": "<location_id>", "name": "Jordan Lee", "firstName": "Jordan", "lastName": "Lee", "email": "jordan@example.com", "phone": "+15125550142", "additionalEmails": [{ "email": "jordan.lee@example.com" }], "additionalPhones": [{ "phone": "+15125550143", "phoneLabel": "Work" }], "source": "public-api", "assignedTo": "<user_id>", "tags": ["website-lead"], "customFields": [{ "id": "<field_id>", "value": "Referral" }], "dateAdded": "2026-07-08T15:04:00.000Z", "dateUpdated": "2026-07-08T15:04:00.000Z" }}The response carries a weak ETag header, but conditional requests aren’t supported. Don’t
rely on If-None-Match to get a 304: you can receive a full 200 even when the contact
hasn’t changed.
Every endpoint that returns a contact uses this shape. A contact can also include
emailLowerCase, type, companyName, address1, city, state, country,
postalCode, website, timezone, dateOfBirth, dnd, dndSettings, lastActivity,
businessId, attributionSource, lastAttributionSource, and visitorId.
Search contacts
Section titled “Search contacts”Send the locationId to search. pageLimit sets how many contacts come back in a page.
| Field | Type | Description |
|---|---|---|
locationId |
string | Required. The location to search. |
pageLimit |
number | Required. Contacts per page. The maximum is 500. |
query |
string | Text to search for, up to 75 characters. It is matched against the contact fields marked searchable in the location’s custom field settings. For email and phone it also matches additional emails and phone numbers. |
filters |
array | Filters and filter groups that narrow the results. See Filters. |
sort |
array | Sort order, applied in the order given. Each item has a field and a direction of asc or desc. Contacts that tie are ordered by id. You can sort on firstNameLowerCase, lastNameLowerCase, businessName, dateAdded, dateUpdated, email, dnd, source, and lastActivity. |
assignedTo |
string | Only contacts assigned to this user. The same as an eq filter on assignedTo. |
page |
number | Page number, starting at 1. The default is 1. Do not send it with searchAfter. |
searchAfter |
array | Cursor for the next page. See Pagination. |
fastPagination |
boolean | Skip counting the matches and return hasMore instead of total. The default is false. |
curl -X POST https://services.smbcrm.com/contacts/search \ -H "Authorization: Bearer <token>" \ -H "Version: v3" \ -H "Content-Type: application/json" \ -d '{ "locationId": "<location_id>", "pageLimit": 20 }'{ "contacts": [ { "id": "<contact_id>", "locationId": "<location_id>", "firstName": "Jordan", "lastName": "Lee", "contactName": "jordan lee", "email": "jordan@example.com", "phone": "+15125550142", "phoneLabel": "Mobile", "additionalEmails": [{ "email": "jordan.lee@example.com" }], "additionalPhones": [{ "phone": "+15125550143", "phoneLabel": "Work" }], "companyName": "Lee Plumbing", "businessId": "<business_id>", "businessName": "Lee Plumbing LLC", "source": "public-api", "tags": ["website-lead"], "customFields": [{ "id": "<field_id>", "value": "Referral" }], "dateAdded": "2026-07-08T15:04:00.000Z", "dateUpdated": "2026-07-08T15:04:00.000Z", "searchAfter": [1783523040000, "<contact_id>"] } ], "total": 1}total is the number of contacts that match. It is left out when you send
fastPagination: true. contacts is left out of the response when
you send pageLimit: 0. Each contact can include id (always present) and these fields.
Most are returned only when the contact has a value for them:
- Name and contact details:
firstName,lastName,firstNameLowerCase,lastNameLowerCase,contactName,email,validEmail,phone,phoneLabel,additionalEmails, andadditionalPhones.locationIdis also returned. - Company:
companyNameis free text stored on the contact.businessIdlinks the contact to a business record, andbusinessNameis that business’s name.companyNameandbusinessNameare separate values. - Other details:
address,city,state,postalCode,country,timezone,website,type,source,assignedTo,followers,tags,opportunities,customFields, anddateOfBirth. - Do Not Disturb:
dnd,dndSettings, andinboundDndSettings. - Attribution and dates:
attributionSource,lastAttributionSource,dateAdded,dateUpdated, andlastActivity.
Search returns some fields differently from Retrieve a contact:
- The street address is
address, notaddress1. dndSettingsis keyed by capitalized channel names:Call,Email,SMS,WhatsApp,GMB,FB, andRCS.searchAfterholds the sort values for that contact. See Pagination.
Filters
Section titled “Filters”Each item in filters is either a filter or a group. A filter has a field, an operator,
and usually a value. A group has group set to AND or OR, plus its own nested
filters. Top-level items are combined with AND.
The fields you are most likely to use:
| Field | Operators |
|---|---|
tags |
eq, not_eq, contains, not_contains, exists, not_exists |
email, phone |
eq, not_eq, exists, not_exists. phone also takes contains and not_contains. |
firstNameLowerCase, lastNameLowerCase |
eq, not_eq, contains, not_contains, exists, not_exists |
city, state, source, companyName |
eq, not_eq, contains, not_contains, exists, not_exists |
type, assignedTo, dnd |
eq, not_eq, exists, not_exists |
dateAdded, dateUpdated, lastActivity |
range, exists, not_exists |
customFields.<field_id> |
Depends on the field type. Text fields take eq, contains, and exists. Number fields take range. |
eqandnot_eqcompare a string, number, or boolean of up to 75 characters.containsandnot_containsneed a string of at least 3 characters, without special characters.existsandnot_existstake novalue.rangetakes an object withgte/lte(orgt/lt) bounds, such as dates for a date field.- Filter on
firstNameLowerCaseandlastNameLowerCase, not the mixed-case names. emailandphonefilters match only the primary email and phone. To find a contact by an additional email or phone, usequery, or the lookup endpoint.- Newly changed contacts can take a few seconds to show up in results.
This request finds contacts tagged vip whose type is lead or customer, newest first:
curl -X POST https://services.smbcrm.com/contacts/search \ -H "Authorization: Bearer <token>" \ -H "Version: v3" \ -H "Content-Type: application/json" \ -d '{ "locationId": "<location_id>", "pageLimit": 50, "filters": [ { "field": "tags", "operator": "eq", "value": "vip" }, { "group": "OR", "filters": [ { "field": "type", "operator": "eq", "value": "lead" }, { "field": "type", "operator": "eq", "value": "customer" } ] } ], "sort": [{ "field": "dateAdded", "direction": "desc" }] }'To pull contacts changed since your last sync, filter dateUpdated with a range and a
gte timestamp, sort by dateUpdated ascending, and page with searchAfter. Set gte a
little before the previous run ended so you don’t miss changes that were still being indexed.
Deleted contacts are not returned.
Pagination
Section titled “Pagination”- Standard pagination uses
pageandpageLimit. It reaches at most 10,000 records, sopage×pageLimitmust not exceed 10,000. For example,page: 20withpageLimit: 500returns the last page you can reach. - Cursor pagination uses
searchAfterand is required to read past 10,000 records. Send the last contact’ssearchAfterarray from the previous response, unchanged. Its values can be numbers or strings. To start from the first page, leave it out or send[]. When you send a non-emptysearchAfter,pageis ignored, so send one or the other. A response with no contacts means you’ve reached the end. - Fast pagination (
fastPagination: true) skips counting the matches. The response includeshasMoreinstead oftotal:truewhen another page exists,falseon the last page. Inside the 10,000-record window of standard pagination, the last page returnshasMore: falseeven if more contacts match, so usesearchAfterto go further. For an exact count, send the same filters withoutfastPagination(addpageLimit: 0to return onlytotal), or use Count contacts.
{ "contacts": [ { "id": "<contact_id>", "searchAfter": [1783523040000, "<contact_id>"] } ], "hasMore": true}Count contacts
Section titled “Count contacts”locationId is required. query and filters work the same as in
Search contacts, including filter groups.
| Field | Type | Required | Description |
|---|---|---|---|
locationId |
string | Yes | The location to count in. |
query |
string | No | Text to search for, matched the same way as in search. |
filters |
array | No | Filters and filter groups, as in search. Top-level items are combined with AND. |
curl -X POST https://services.smbcrm.com/contacts/search/count \ -H "Authorization: Bearer <token>" \ -H "Version: v3" \ -H "Content-Type: application/json" \ -d '{ "locationId": "<location_id>", "filters": [{ "field": "tags", "operator": "eq", "value": "vip" }] }'{ "count": 120 }Large counts can take up to 35 seconds. If the count does not finish in time, the response
is { "count": null }. Retry the request.
Look up a contact by email or phone
Section titled “Look up a contact by email or phone”Send locationId and exactly one of email or phone. Each contact in the response
includes its additionalEmails and additionalPhones.
| Parameter | Type | Required | Description |
|---|---|---|---|
locationId |
string | Yes | The location to search. |
email |
string | One of email or phone |
Exact email address. Matching is case-insensitive. |
phone |
string | One of email or phone |
Exact phone number in E.164 format. Encode the + as %2B. |
limit |
integer | No | Contacts per page. The default and the maximum are 20. |
nextCursor |
string | No | The nextCursor value from the previous page. |
curl "https://services.smbcrm.com/contacts/lookup?locationId=<location_id>&email=jordan@example.com" \ -H "Authorization: Bearer <token>" \ -H "Version: v3"{ "contacts": [ { "id": "<contact_id>", "locationId": "<location_id>", "firstName": "Jordan", "lastName": "Lee", "email": "jordan@example.com", "phone": "+15125550142", "additionalEmails": [{ "email": "jordan.lee@example.com" }], "additionalPhones": [{ "phone": "+15125550143", "phoneLabel": "Work" }] } ]}contacts is an empty array when nothing matches. When a page is full, the response also
includes a nextCursor. Send it as nextCursor on the next request to get the following
page. The last page can come back with an empty contacts array.
Check for a duplicate
Section titled “Check for a duplicate”To check for an existing match before creating a contact:
| Parameter | Type | Required | Description |
|---|---|---|---|
locationId |
string | Yes | The location to check. |
email |
string | No | Email address, URL-encoded. test+abc@gmail.com becomes test%2Babc%40gmail.com. |
number |
string | No | Phone number, URL-encoded. +15125550142 becomes %2B15125550142. The parameter is number, not phone. |
When Allow Duplicate Contact is off in your settings, the search uses the global unique
identifier. When it is on, the endpoint matches on email first and then on number. Both
are compared with each contact’s primary and additional emails and phone numbers.
curl "https://services.smbcrm.com/contacts/search/duplicate?locationId=<location_id>&email=jordan@example.com" \ -H "Authorization: Bearer <token>" \ -H "Version: v3"curl "https://services.smbcrm.com/contacts/search/duplicate?locationId=<location_id>&number=%2B15125550142" \ -H "Authorization: Bearer <token>" \ -H "Version: v3"The response has a contact in the same shape as Retrieve a contact,
or contact: null when there is no duplicate. When a contact matches, matchingField says
which field matched. For an email match, the value is contactId, a historical name.
{ "contact": { "id": "<contact_id>", "locationId": "<location_id>", "firstName": "Jordan", "lastName": "Lee", "email": "jordan@example.com", "phone": "+15125550142" }, "matchingField": "contactId"}Update & delete
Section titled “Update & delete”The request takes the same fields as create, except locationId,
gender, and companyName. Send only the fields you want to change.
Conditional updates aren’t supported. If-Match is ignored, so the update is applied even if
the contact changed after you read it, and the response ETag can’t be used for concurrency
control. If a request times out, retrieve the contact again before you retry.
curl -X PUT https://services.smbcrm.com/contacts/<contact_id> \ -H "Authorization: Bearer <token>" \ -H "Version: v3" \ -H "Content-Type: application/json" \ -d '{ "firstName": "Jordan", "city": "Austin", "state": "TX" }'{ "succeeded": true, "contact": { "id": "<contact_id>", "locationId": "<location_id>", "firstName": "Jordan", "city": "Austin", "state": "TX" }}To add an additional email and phone, send them with the contact’s primary email and
phone:
curl -X PUT https://services.smbcrm.com/contacts/<contact_id> \ -H "Authorization: Bearer <token>" \ -H "Version: v3" \ -H "Content-Type: application/json" \ -d '{ "email": "jordan@example.com", "phone": "+15125550142", "additionalEmails": [{ "email": "jordan.lee@example.com" }], "additionalPhones": [{ "phone": "+15125550143", "phoneLabel": "Work" }] }'{ "succeeded": true, "contact": { "id": "<contact_id>", "locationId": "<location_id>", "email": "jordan@example.com", "phone": "+15125550142", "additionalEmails": [{ "email": "jordan.lee@example.com" }], "additionalPhones": [{ "phone": "+15125550143", "phoneLabel": "Work" }] }}curl -X DELETE https://services.smbcrm.com/contacts/<contact_id> \ -H "Authorization: Bearer <token>" \ -H "Version: v3"{ "succeeded": true }curl -X POST https://services.smbcrm.com/contacts/<contact_id>/tags \ -H "Authorization: Bearer <token>" \ -H "Version: v3" \ -H "Content-Type: application/json" \ -d '{ "tags": ["vip", "webinar-2026"] }'Tags are trimmed, lower-cased, and de-duplicated before they are saved. A tag that doesn’t exist on the location yet is created there, and tags the contact already has are ignored.
tags is the contact’s full list after the call, and tagsAdded lists the tags from your
request that this call added. Tags the contact already had are left out, so tagsAdded is
empty when nothing changed. Both are always returned.
{ "tags": ["website-lead", "vip", "webinar-2026"], "tagsAdded": ["vip", "webinar-2026"]}curl -X DELETE https://services.smbcrm.com/contacts/<contact_id>/tags \ -H "Authorization: Bearer <token>" \ -H "Version: v3" \ -H "Content-Type: application/json" \ -d '{ "tags": ["webinar-2026"] }'Tags are lower-cased before they are matched, and tags the contact doesn’t have are ignored.
tags is what remains on the contact, and tagsRemoved lists the tags from your request that
this call removed. Both are always returned, and tagsRemoved is empty when nothing changed.
Removing a tag from a contact doesn’t delete it from the location.
{ "tags": ["website-lead", "vip"], "tagsRemoved": ["webinar-2026"]}Update tags on many contacts
Section titled “Update tags on many contacts”Set the type path parameter to add or remove. It is required, and any other value is
rejected.
| Field | Type | Required | Description |
|---|---|---|---|
locationId |
string | Yes | The location the contacts belong to. |
contacts |
array of strings | Yes | IDs of the contacts to update. Send 1 to 500. |
tags |
array of strings | Yes | Tags to add or remove. Send up to 50. It can be empty only when removeAllTags is true. |
removeAllTags |
boolean | No | Default false. When true, removes every tag from the contacts. Only works with the remove type. |
curl -X POST https://services.smbcrm.com/contacts/bulk/tags/update/add \ -H "Authorization: Bearer <token>" \ -H "Version: v3" \ -H "Content-Type: application/json" \ -d '{ "locationId": "<location_id>", "contacts": ["<contact_id>", "<contact_id_2>"], "tags": ["vip"] }'responses has one entry for each contact in the request, and errorCount counts the
entries that failed.
{ "succeeded": true, "errorCount": 0, "responses": [ { "contactId": "<contact_id>", "message": "Tags updated", "type": "success" }, { "contactId": "<contact_id_2>", "message": "Tags updated", "type": "success" } ]}Notes & tasks
Section titled “Notes & tasks”Notes live at /notes and are attached to records through relations. A relation is an
objectKey (such as contact or business, or a custom object key like
custom_objects.pet) and the recordId of the record. Every call takes locationId as a
query parameter, except search, which takes it in the body. The Notes API
uses the notes.readonly and notes.write scopes.
To move off the contact-scoped paths: create a note with a contact relation whose
recordId is the contact’s ID, instead of posting to /contacts/{contactId}/notes. To list
a contact’s notes, search with that contact’s ID in relations. Fetch,
update, and delete by note ID alone, without the contact ID in the path.
Pass locationId as a query parameter. All three body fields are required.
| Field | Type | Description |
|---|---|---|
body |
string | Required. The text of the note. |
relations |
array | Required. The records the note is attached to. It needs at least one item. Each item has an objectKey and a recordId. |
userId |
string | Required. The ID of the user the note is created as. |
Creating a note isn’t idempotent, so retrying a request that timed out can create a second note. Search for the record’s notes before you retry.
curl -X POST "https://services.smbcrm.com/notes/?locationId=<location_id>" \ -H "Authorization: Bearer <token>" \ -H "Version: v3" \ -H "Content-Type: application/json" \ -d '{ "body": "Called and left a voicemail.", "relations": [{ "objectKey": "contact", "recordId": "<contact_id>" }], "userId": "<user_id>" }'{ "note": { "id": "<note_id>", "body": "Called and left a voicemail.", "userId": "<user_id>", "contactId": "<contact_id>", "dateAdded": "2026-11-17T15:10:00.000Z", "color": "#FFAA00", "pinned": false, "attachments": [ { "id": "<attachment_id>", "objectKey": "contact", "recordId": "<contact_id>" } ] }}Every note call returns this note object. contactId and businessId are present only when
the note is attached to a contact or a business. A note attached to a custom object record is
linked through relations instead. attachments lists the records the note is attached to.
Pass locationId as a query parameter.
curl "https://services.smbcrm.com/notes/<note_id>?locationId=<location_id>" \ -H "Authorization: Bearer <token>" \ -H "Version: v3"The response is { "note": { ... } }, the same note object the create call returns.
Pass locationId as a query parameter. The body accepts body, title, color (a hex
color code), and pinned. This call doesn’t change which records the note is attached to. Use
Update note relations for that.
curl -X PUT "https://services.smbcrm.com/notes/<note_id>?locationId=<location_id>" \ -H "Authorization: Bearer <token>" \ -H "Version: v3" \ -H "Content-Type: application/json" \ -d '{ "body": "Updated note", "pinned": true }'The response is { "note": { ... } } with the updated note.
Pass locationId as a query parameter.
curl -X DELETE "https://services.smbcrm.com/notes/<note_id>?locationId=<location_id>" \ -H "Authorization: Bearer <token>" \ -H "Version: v3"The response is { "note": { ... } } with the note that was deleted.
Search notes
Section titled “Search notes”Only locationId is required, and it goes in the body here, not the query string.
| Field | Type | Description |
|---|---|---|
locationId |
string | Required. The location to search. |
query |
string | Text to filter notes by. |
relations |
array of strings | Only notes attached to these records. Send record IDs, such as a contact ID. |
sources |
array of strings | Only notes from these sources, for example WEB_USER or WORKFLOW. |
createdByUserId |
string | Only notes created by this user. |
limit |
number | The most notes to return. |
skip |
number | How many notes to skip, for paging. |
sortBy |
string | The field to sort on, for example dateAdded. |
sortOrder |
string | asc or desc. |
count |
boolean | Include the total count of matches in the response. |
includeRelationRecords |
boolean | Include the related records in the response. |
Page with limit and skip: raise skip by limit for each next page.
This request lists the newest notes on a contact:
curl -X POST https://services.smbcrm.com/notes/search \ -H "Authorization: Bearer <token>" \ -H "Version: v3" \ -H "Content-Type: application/json" \ -d '{ "locationId": "<location_id>", "relations": ["<contact_id>"], "limit": 10, "skip": 0, "sortBy": "dateAdded", "sortOrder": "desc", "count": true }'Each matching note has the fields shown in the create response: id, body,
title, userId, dateAdded, color, pinned, attachments, and contactId or
businessId when the note is attached to a contact or business.
Update note relations
Section titled “Update note relations”Pass locationId as a query parameter. Both body fields are required.
| Field | Type | Description |
|---|---|---|
type |
string | Required. The operation: add to attach the listed records, or remove to detach them. |
relations |
array | Required. The records to add or remove. Each item has an objectKey and a recordId. |
The call applies only the relations you list. It doesn’t replace the note’s whole set of relations, so records you leave out stay as they are.
curl -X PUT "https://services.smbcrm.com/notes/<note_id>/relations?locationId=<location_id>" \ -H "Authorization: Bearer <token>" \ -H "Version: v3" \ -H "Content-Type: application/json" \ -d '{ "type": "add", "relations": [{ "objectKey": "business", "recordId": "<business_id>" }] }'The response is { "note": { ... } } with the updated note.
To create a task, title, dueDate (ISO 8601), and completed are required. You can also
send body and assignedTo (a user ID).
curl https://services.smbcrm.com/contacts/<contact_id>/tasks \ -H "Authorization: Bearer <token>" \ -H "Version: v3"{ "tasks": [ { "id": "<task_id>", "contactId": "<contact_id>", "title": "Follow up", "dueDate": "2026-07-15T17:00:00.000Z", "completed": false } ]}curl -X POST https://services.smbcrm.com/contacts/<contact_id>/tasks \ -H "Authorization: Bearer <token>" \ -H "Version: v3" \ -H "Content-Type: application/json" \ -d '{ "title": "Follow up", "dueDate": "2026-07-15T17:00:00.000Z", "completed": false }'{ "task": { "id": "<task_id>", "contactId": "<contact_id>", "title": "Follow up", "dueDate": "2026-07-15T17:00:00.000Z", "completed": false }}curl https://services.smbcrm.com/contacts/<contact_id>/tasks/<task_id> \ -H "Authorization: Bearer <token>" \ -H "Version: v3"The response is { "task": { ... } }, the same task object the create call returns.
All fields are optional: title, body, dueDate, completed, and assignedTo.
curl -X PUT https://services.smbcrm.com/contacts/<contact_id>/tasks/<task_id> \ -H "Authorization: Bearer <token>" \ -H "Version: v3" \ -H "Content-Type: application/json" \ -d '{ "title": "Follow up by phone", "dueDate": "2026-07-16T17:00:00.000Z" }'The response is { "task": { ... } } with the updated task.
completed is required.
curl -X PUT https://services.smbcrm.com/contacts/<contact_id>/tasks/<task_id>/completed \ -H "Authorization: Bearer <token>" \ -H "Version: v3" \ -H "Content-Type: application/json" \ -d '{ "completed": true }'The response is { "task": { ... } } with the updated task.
By default this removes the task’s association with the contact and keeps the task itself. Add
the deleteTask=true query parameter (default false) to delete the task entirely.
curl -X DELETE "https://services.smbcrm.com/contacts/<contact_id>/tasks/<task_id>?deleteTask=true" \ -H "Authorization: Bearer <token>" \ -H "Version: v3"{ "succeeded": true }Followers
Section titled “Followers”Users can follow a contact. Both calls take a followers array of user IDs. See Users for how to find them.
curl -X POST https://services.smbcrm.com/contacts/<contact_id>/followers \ -H "Authorization: Bearer <token>" \ -H "Version: v3" \ -H "Content-Type: application/json" \ -d '{ "followers": ["<user_id>"] }'followers is the contact’s full list after the call, and followersAdded lists the users
this call added.
{ "followers": ["<user_id>"], "followersAdded": ["<user_id>"]}curl -X DELETE https://services.smbcrm.com/contacts/<contact_id>/followers \ -H "Authorization: Bearer <token>" \ -H "Version: v3" \ -H "Content-Type: application/json" \ -d '{ "followers": ["<user_id>"] }'{ "followers": [], "followersRemoved": ["<user_id>"]}Appointments
Section titled “Appointments”curl https://services.smbcrm.com/contacts/<contact_id>/appointments \ -H "Authorization: Bearer <token>" \ -H "Version: v3"{ "events": [ { "id": "<event_id>", "calendarId": "<calendar_id>", "locationId": "<location_id>", "contactId": "<contact_id>", "title": "Sales Consultation", "appointmentStatus": "confirmed", "assignedUserId": "<user_id>", "startTime": "2026-07-15T20:00:00.000Z", "endTime": "2026-07-15T20:30:00.000Z" } ]}To book, update, or cancel appointments, see Calendars.
Businesses
Section titled “Businesses”| Parameter | Type | Required | Description |
|---|---|---|---|
businessId |
string | Yes | Path parameter. The business ID. |
locationId |
string | Yes | The location the business belongs to. |
limit |
string | No | Records per page. The maximum is 100 and the default is 25. |
skip |
string | No | Number of records to skip. |
query |
string | No | Search text matched against name, email, and phone. |
startAfter |
string or array | No | Pagination cursor as a comma-separated name,id pair. |
curl "https://services.smbcrm.com/contacts/business/<business_id>?locationId=<location_id>&limit=25" \ -H "Authorization: Bearer <token>" \ -H "Version: v3"{ "contacts": [ { "id": "<contact_id>", "locationId": "<location_id>", "email": "jordan@example.com", "businessId": "<business_id>", "tags": ["website-lead"], "dateAdded": "2026-07-08T15:04:00.000Z" } ], "count": 1}| Field | Type | Required | Description |
|---|---|---|---|
locationId |
string | Yes | The location the contacts belong to. |
ids |
array of strings | Yes | IDs of the contacts to update. The maximum is 50. |
businessId |
string or null | Yes | The business to assign. Send null to remove the contacts’ business association. |
curl -X POST https://services.smbcrm.com/contacts/bulk/business \ -H "Authorization: Bearer <token>" \ -H "Version: v3" \ -H "Content-Type: application/json" \ -d '{ "locationId": "<location_id>", "ids": ["<contact_id>", "<contact_id_2>"], "businessId": "<business_id>" }'{ "success": true, "ids": ["<contact_id>", "<contact_id_2>"]}Automations
Section titled “Automations”Add a contact to one of your account’s workflows or campaigns to trigger follow-up, or remove the contact from one.
Workflows
Section titled “Workflows”See Workflows for how to list the workflow IDs available in your
account. Both calls require a JSON body. eventStartTime (ISO 8601) is the only field and
it’s optional, so send {} when you don’t need it.
curl -X POST https://services.smbcrm.com/contacts/<contact_id>/workflow/<workflow_id> \ -H "Authorization: Bearer <token>" \ -H "Version: v3" \ -H "Content-Type: application/json" \ -d '{ "eventStartTime": "2026-10-15T09:00:00-05:00" }'{ "succeeded": true }curl -X DELETE https://services.smbcrm.com/contacts/<contact_id>/workflow/<workflow_id> \ -H "Authorization: Bearer <token>" \ -H "Version: v3" \ -H "Content-Type: application/json" \ -d '{}'{ "succeeded": true }Campaigns
Section titled “Campaigns”Find campaign IDs with the list call below. Adding a contact to a campaign needs no request body.
locationId is required. status filters the list, for example draft.
curl "https://services.smbcrm.com/campaigns/?locationId=<location_id>" \ -H "Authorization: Bearer <token>" \ -H "Version: v3"{ "campaigns": [ { "id": "<campaign_id>", "name": "Spring follow-up", "status": "published", "locationId": "<location_id>" } ]}curl -X POST https://services.smbcrm.com/contacts/<contact_id>/campaigns/<campaign_id> \ -H "Authorization: Bearer <token>" \ -H "Version: v3"{ "succeeded": true }curl -X DELETE https://services.smbcrm.com/contacts/<contact_id>/campaigns/<campaign_id> \ -H "Authorization: Bearer <token>" \ -H "Version: v3"{ "succeeded": true }curl -X DELETE https://services.smbcrm.com/contacts/<contact_id>/campaigns/remove-all \ -H "Authorization: Bearer <token>" \ -H "Version: v3"{ "succeeded": true }Related
Section titled “Related”- Custom Fields, Values & Tags. Define the
customFieldsyou send here. - Conversations & Messages. Message a contact.
- Opportunities & Pipelines. Track a contact through a sales pipeline.
- Calendars & Appointments. Book and manage a contact’s appointments.
- Users. Find the user IDs for
assignedToand followers.
