Skip to content
API reference

Contacts

The people behind leads: one person, one record, however many enquiries.

GET/contacts

List contacts

Needs the permission contacts:read.

ParameterInTypeNotes
limitqueryintegerat least 1. up to 200. default 50
cursorquerystringup to 512 characters
qquerystringup to 100 characters
ownerIdquerystring (uuid)
tagquerystringup to 40 characters
sortqueryone of created, updated, namedefault "created"
orderqueryone of asc, descdefault "desc"
curl -X GET https://crm.anibrosdesign.com/api/v1/contacts \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 200 400 401 403 429

POST/contacts

Create a contact

Needs the permission contacts:create.

ParameterInTypeNotes
Idempotency-KeyheaderstringAny unique string up to 128 characters. Repeating the request with the same key returns the first response. up to 128 characters
Body fieldTypeNotes
firstName requiredstringat least 1 characters. up to 100 characters
lastNamestring or null
emailstring or null
phonestring or null
alternateEmailslist of stringup to 5 items
alternatePhoneslist of stringup to 5 items
companystring or null
jobTitlestring or null
citystring or null
ownerIdstring (uuid) or null
tagslist of stringup to 30 items
customFieldsobject of any
curl -X POST https://crm.anibrosdesign.com/api/v1/contacts \
  -H "Authorization: Bearer crm_live_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"firstName":"text","lastName":"text","email":"text"}'

Responses: 201 400 401 402 403 429

GET/contacts/lookup

Get lookup (contacts)

Needs the permission contacts:read.

ParameterInTypeNotes
emailquerystringup to 254 characters
phonequerystringup to 40 characters
curl -X GET https://crm.anibrosdesign.com/api/v1/contacts/lookup \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 200 400 401 403 429

POST/contacts/merges/{id}/undo

Undo (contacts)

Needs the permission contacts:merge.

ParameterInTypeNotes
id requiredpathstring (uuid)
curl -X POST https://crm.anibrosdesign.com/api/v1/contacts/merges/{id}/undo \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 200 400 401 402 403 404 429

GET/contacts/{id}

Get a contact

Needs the permission contacts:read.

ParameterInTypeNotes
id requiredpathstring (uuid)
curl -X GET https://crm.anibrosdesign.com/api/v1/contacts/{id} \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 200 400 401 403 404 429

PATCH/contacts/{id}

Change a contact

Needs the permission contacts:update.

ParameterInTypeNotes
id requiredpathstring (uuid)
Body fieldTypeNotes
firstNamestringat least 1 characters. up to 100 characters
lastNamestring or null
emailstring or null
phonestring or null
alternateEmailslist of stringup to 5 items
alternatePhoneslist of stringup to 5 items
companystring or null
jobTitlestring or null
citystring or null
ownerIdstring (uuid) or null
tagslist of stringup to 30 items
customFieldsobject of any
curl -X PATCH https://crm.anibrosdesign.com/api/v1/contacts/{id} \
  -H "Authorization: Bearer crm_live_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"firstName":"text","lastName":"text","email":"text"}'

Responses: 200 400 401 402 403 404 412 429

DELETE/contacts/{id}

Delete a contact

Needs the permission contacts:delete.

ParameterInTypeNotes
id requiredpathstring (uuid)
curl -X DELETE https://crm.anibrosdesign.com/api/v1/contacts/{id} \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 204 400 401 402 403 404 429

GET/contacts/{id}/consents

Get consents (contacts)

Needs the permission contacts:read.

ParameterInTypeNotes
id requiredpathstring (uuid)
curl -X GET https://crm.anibrosdesign.com/api/v1/contacts/{id}/consents \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 200 400 401 403 404 429

POST/contacts/{id}/consents

Consents (contacts)

Needs the permission contacts:update.

ParameterInTypeNotes
id requiredpathstring (uuid)
Body fieldTypeNotes
channel requiredone of email, sms, whatsapp, push, phone_call
action requiredone of grant, revoke
sourcestringup to 40 characters. default "manual"
legalBasisone of consent, legitimate_interest, contract
proofUrlstring (uri) or null
reasonstring or null
expiresAtstring (date-time) or null
curl -X POST https://crm.anibrosdesign.com/api/v1/contacts/{id}/consents \
  -H "Authorization: Bearer crm_live_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"channel":"email","action":"grant","source":"manual"}'

Responses: 200 400 401 402 403 404 429

POST/contacts/{id}/merge

Merge (contacts)

Needs the permission contacts:merge.

ParameterInTypeNotes
id requiredpathstring (uuid)
Body fieldTypeNotes
duplicateIds requiredlist of string (uuid)at least 1 items. up to 5 items
curl -X POST https://crm.anibrosdesign.com/api/v1/contacts/{id}/merge \
  -H "Authorization: Bearer crm_live_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"duplicateIds":["01a15d23-0000-7000-8000-000000000000"]}'

Responses: 200 400 401 402 403 404 429

POST/contacts/{id}/restore

Restore (contacts)

Needs the permission contacts:delete.

ParameterInTypeNotes
id requiredpathstring (uuid)
curl -X POST https://crm.anibrosdesign.com/api/v1/contacts/{id}/restore \
  -H "Authorization: Bearer crm_live_xxxxxxxx"

Responses: 200 400 401 402 403 404 429

Something missing or unclear? Tell us.

Chat on WhatsApp