Skip to content

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.

POST/contacts/

Create a contact in your SMBcrm account/location.

scope contacts.writeauth Location token or PIT

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.
Terminal window
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" }
]
}'
201 Created
{
"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"
}
}

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.

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.

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.

POST/contacts/upsert

Create a contact, or update the existing one that matches your duplicate-contact setting.

scope contacts.writeauth Location token or PIT

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.
Terminal window
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.

201 Created
{
"new": false,
"contact": {
"id": "<contact_id>",
"locationId": "<location_id>",
"firstName": "Jordan",
"email": "jordan@example.com",
"companyName": "Lee Plumbing"
},
"traceId": "<trace_id>"
}
GET/contacts/{contactId}

Fetch a single contact by ID.

scope contacts.readonlyauth Location token or PIT
Terminal window
curl https://services.smbcrm.com/contacts/<contact_id> \
-H "Authorization: Bearer <token>" \
-H "Version: v3"
200 OK
{
"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.

POST/contacts/search

Search the contacts in a location with advanced filters. Use it to list contacts.

scope contacts.readonlyauth Location token or PIT

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.
Terminal window
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
}'
200 OK
{
"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, and additionalPhones. locationId is also returned.
  • Company: companyName is free text stored on the contact. businessId links the contact to a business record, and businessName is that business’s name. companyName and businessName are separate values.
  • Other details: address, city, state, postalCode, country, timezone, website, type, source, assignedTo, followers, tags, opportunities, customFields, and dateOfBirth.
  • Do Not Disturb: dnd, dndSettings, and inboundDndSettings.
  • Attribution and dates: attributionSource, lastAttributionSource, dateAdded, dateUpdated, and lastActivity.

Search returns some fields differently from Retrieve a contact:

  • The street address is address, not address1.
  • dndSettings is keyed by capitalized channel names: Call, Email, SMS, WhatsApp, GMB, FB, and RCS.
  • searchAfter holds the sort values for that contact. See Pagination.

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.
  • eq and not_eq compare a string, number, or boolean of up to 75 characters.
  • contains and not_contains need a string of at least 3 characters, without special characters.
  • exists and not_exists take no value.
  • range takes an object with gte/lte (or gt/lt) bounds, such as dates for a date field.
  • Filter on firstNameLowerCase and lastNameLowerCase, not the mixed-case names.
  • email and phone filters match only the primary email and phone. To find a contact by an additional email or phone, use query, 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:

Terminal window
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.

  • Standard pagination uses page and pageLimit. It reaches at most 10,000 records, so page × pageLimit must not exceed 10,000. For example, page: 20 with pageLimit: 500 returns the last page you can reach.
  • Cursor pagination uses searchAfter and is required to read past 10,000 records. Send the last contact’s searchAfter array 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-empty searchAfter, page is 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 includes hasMore instead of total: true when another page exists, false on the last page. Inside the 10,000-record window of standard pagination, the last page returns hasMore: false even if more contacts match, so use searchAfter to go further. For an exact count, send the same filters without fastPagination (add pageLimit: 0 to return only total), or use Count contacts.
200 OK with fastPagination
{
"contacts": [
{
"id": "<contact_id>",
"searchAfter": [1783523040000, "<contact_id>"]
}
],
"hasMore": true
}
POST/contacts/search/count

Count the contacts that match a search without returning them.

scope contacts.readonlyauth Location token or PIT

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.
Terminal window
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" }]
}'
200 OK
{ "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.

GET/contacts/lookup

Find contacts by exact email or phone number, including a contact's additional emails and phone numbers.

scope contacts.readonlyauth Location token or PIT

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.
Terminal window
curl "https://services.smbcrm.com/contacts/lookup?locationId=<location_id>&email=jordan@example.com" \
-H "Authorization: Bearer <token>" \
-H "Version: v3"
200 OK
{
"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.

To check for an existing match before creating a contact:

GET/contacts/search/duplicate

Check whether a contact already exists, matching by phone number or email.

scope contacts.readonlyauth Location token or PIT
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.

Terminal window
curl "https://services.smbcrm.com/contacts/search/duplicate?locationId=<location_id>&email=jordan@example.com" \
-H "Authorization: Bearer <token>" \
-H "Version: v3"
Terminal window
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.

200 OK
{
"contact": {
"id": "<contact_id>",
"locationId": "<location_id>",
"firstName": "Jordan",
"lastName": "Lee",
"email": "jordan@example.com",
"phone": "+15125550142"
},
"matchingField": "contactId"
}
PUT/contacts/{contactId}

Update fields on an existing contact.

scope contacts.writeauth Location token or PIT

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.

Terminal window
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" }'
200 OK
{
"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:

Terminal window
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" }]
}'
200 OK
{
"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" }]
}
}
DELETE/contacts/{contactId}

Permanently delete a contact.

scope contacts.writeauth Location token or PIT
Terminal window
curl -X DELETE https://services.smbcrm.com/contacts/<contact_id> \
-H "Authorization: Bearer <token>" \
-H "Version: v3"
200 OK
{ "succeeded": true }
POST/contacts/{contactId}/tags

Add one or more tags to a contact.

scope contacts.writeauth Location token or PIT
Terminal window
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.

201 Created
{
"tags": ["website-lead", "vip", "webinar-2026"],
"tagsAdded": ["vip", "webinar-2026"]
}
DELETE/contacts/{contactId}/tags

Remove one or more tags from a contact.

scope contacts.writeauth Location token or PIT
Terminal window
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.

200 OK
{
"tags": ["website-lead", "vip"],
"tagsRemoved": ["webinar-2026"]
}
POST/contacts/bulk/tags/update/{type}

Add tags to, or remove tags from, many contacts in one request.

scope contacts.writeauth Location token or PIT

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.
Terminal window
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.

201 Created
{
"succeeded": true,
"errorCount": 0,
"responses": [
{ "contactId": "<contact_id>", "message": "Tags updated", "type": "success" },
{ "contactId": "<contact_id_2>", "message": "Tags updated", "type": "success" }
]
}

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.

POST/notes/

Create a note and attach it to one or more records.

scope notes.writeauth Location token or PIT

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.

Terminal window
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>"
}'
201 Created
{
"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.

GET/notes/{id}

Fetch a single note by ID.

scope notes.readonlyauth Location token or PIT

Pass locationId as a query parameter.

Terminal window
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.

PUT/notes/{id}

Update a note's body, title, color, or pinned state.

scope notes.writeauth Location token or PIT

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.

Terminal window
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.

DELETE/notes/{id}

Delete a note.

scope notes.writeauth Location token or PIT

Pass locationId as a query parameter.

Terminal window
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.

POST/notes/search

Search the notes in a location. Use it to list the notes on a record.

scope notes.readonlyauth Location token or PIT

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:

Terminal window
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.

PUT/notes/{id}/relations

Add records to a note or remove records from it.

scope notes.writeauth Location token or PIT

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.

Terminal window
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).

GET/contacts/{contactId}/tasks

List tasks on a contact.

scope contacts.readonlyauth Location token or PIT
Terminal window
curl https://services.smbcrm.com/contacts/<contact_id>/tasks \
-H "Authorization: Bearer <token>" \
-H "Version: v3"
200 OK
{
"tasks": [
{
"id": "<task_id>",
"contactId": "<contact_id>",
"title": "Follow up",
"dueDate": "2026-07-15T17:00:00.000Z",
"completed": false
}
]
}
POST/contacts/{contactId}/tasks

Create a task for a contact.

scope contacts.writeauth Location token or PIT
Terminal window
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 }'
201 Created
{
"task": {
"id": "<task_id>",
"contactId": "<contact_id>",
"title": "Follow up",
"dueDate": "2026-07-15T17:00:00.000Z",
"completed": false
}
}
GET/contacts/{contactId}/tasks/{taskId}

Fetch a single task by ID.

scope contacts.readonlyauth Location token or PIT
Terminal window
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.

PUT/contacts/{contactId}/tasks/{taskId}

Update a task.

scope contacts.writeauth Location token or PIT

All fields are optional: title, body, dueDate, completed, and assignedTo.

Terminal window
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.

PUT/contacts/{contactId}/tasks/{taskId}/completed

Mark a task complete or incomplete.

scope contacts.writeauth Location token or PIT

completed is required.

Terminal window
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.

DELETE/contacts/{contactId}/tasks/{taskId}

Remove a task from a contact, or delete the task entirely.

scope contacts.writeauth Location token or PIT

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.

Terminal window
curl -X DELETE "https://services.smbcrm.com/contacts/<contact_id>/tasks/<task_id>?deleteTask=true" \
-H "Authorization: Bearer <token>" \
-H "Version: v3"
200 OK
{ "succeeded": true }

Users can follow a contact. Both calls take a followers array of user IDs. See Users for how to find them.

POST/contacts/{contactId}/followers

Add users as followers of a contact.

scope contacts.writeauth Location token or PIT
Terminal window
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.

201 Created
{
"followers": ["<user_id>"],
"followersAdded": ["<user_id>"]
}
DELETE/contacts/{contactId}/followers

Remove users as followers of a contact.

scope contacts.writeauth Location token or PIT
Terminal window
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>"] }'
200 OK
{
"followers": [],
"followersRemoved": ["<user_id>"]
}
GET/contacts/{contactId}/appointments

List the appointments booked for a contact.

scope contacts.readonlyauth Location token or PIT
Terminal window
curl https://services.smbcrm.com/contacts/<contact_id>/appointments \
-H "Authorization: Bearer <token>" \
-H "Version: v3"
200 OK
{
"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.

GET/contacts/business/{businessId}

List the contacts associated with a business.

scope contacts.readonlyauth Location token or PIT
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.
Terminal window
curl "https://services.smbcrm.com/contacts/business/<business_id>?locationId=<location_id>&limit=25" \
-H "Authorization: Bearer <token>" \
-H "Version: v3"
200 OK
{
"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
}
POST/contacts/bulk/business

Add many contacts to a business, or remove their business association.

scope contacts.writeauth Location token or PIT
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.
Terminal window
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>"
}'
200 OK
{
"success": true,
"ids": ["<contact_id>", "<contact_id_2>"]
}

Add a contact to one of your account’s workflows or campaigns to trigger follow-up, or remove the contact from one.

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.

POST/contacts/{contactId}/workflow/{workflowId}

Add a contact to a workflow.

scope contacts.writeauth Location token or PIT
Terminal window
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" }'
200 OK
{ "succeeded": true }
DELETE/contacts/{contactId}/workflow/{workflowId}

Remove a contact from a workflow.

scope contacts.writeauth Location token or PIT
Terminal window
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 '{}'
200 OK
{ "succeeded": true }

Find campaign IDs with the list call below. Adding a contact to a campaign needs no request body.

GET/campaigns/

List the campaigns in a location.

scope campaigns.readonlyauth Location token or PIT

locationId is required. status filters the list, for example draft.

Terminal window
curl "https://services.smbcrm.com/campaigns/?locationId=<location_id>" \
-H "Authorization: Bearer <token>" \
-H "Version: v3"
200 OK
{
"campaigns": [
{
"id": "<campaign_id>",
"name": "Spring follow-up",
"status": "published",
"locationId": "<location_id>"
}
]
}
POST/contacts/{contactId}/campaigns/{campaignId}

Add a contact to a campaign.

scope contacts.writeauth Location token or PIT
Terminal window
curl -X POST https://services.smbcrm.com/contacts/<contact_id>/campaigns/<campaign_id> \
-H "Authorization: Bearer <token>" \
-H "Version: v3"
201 Created
{ "succeeded": true }
DELETE/contacts/{contactId}/campaigns/{campaignId}

Remove a contact from a campaign.

scope contacts.writeauth Location token or PIT
Terminal window
curl -X DELETE https://services.smbcrm.com/contacts/<contact_id>/campaigns/<campaign_id> \
-H "Authorization: Bearer <token>" \
-H "Version: v3"
200 OK
{ "succeeded": true }
DELETE/contacts/{contactId}/campaigns/remove-all

Remove a contact from every campaign it is enrolled in.

scope contacts.writeauth Location token or PIT
Terminal window
curl -X DELETE https://services.smbcrm.com/contacts/<contact_id>/campaigns/remove-all \
-H "Authorization: Bearer <token>" \
-H "Version: v3"
200 OK
{ "succeeded": true }