Skip to main content

Contacts API

Manage your workspace's contacts: create, search, update, and delete contact records programmatically using the Contacts API endpoints.


📋 Contact Endpoints​

MethodPathDescription
GET/v1/contactsSearch contacts
POST/v1/contactsCreate a new contact
GET/v1/contacts/{contactId}Get a contact by ID
PUT/v1/contacts/{contactId}Update a contact by ID
DELETE/v1/contacts/{contactId}Delete a contact by ID
POST/v1/contacts/{contactId}/tags/addAdd tags to a contact
POST/v1/contacts/{contactId}/tags/removeRemove tags from a contact


Contacts API

Manage your workspace's contacts: create, search, update, and delete contact records programmatically using the Contacts API endpoints.


Endpoints​

1. Search Contacts​

GET /v1/contacts

  • Description: Search for contacts with filtering, pagination, and search options.
  • Authentication: Requires x-api-key header.

Query Parameters:

NameInTypeRequiredDescription
limitquerystringNoMax number of results
tagsquerystringNoFilter by tags
workspaceIdquerystringNoFilter by workspace
pagequerystringNoPage number for pagination
channelquerystringNoFilter by channel
searchTextquerystringNoFree text search
x-api-keyheaderstringYesAPI authentication key

Response: [200 OK] - Contacts


2. Create New Contact​

POST /v1/contacts

  • Description: Create a new contact.
  • Authentication: Requires x-api-key header.

Request Body: Contact (application/json)

Response: [200 OK] - Contact


3. Get Contact by ID​

GET /v1/contacts/{contactId}

  • Description: Retrieve a contact by its unique ID.
  • Authentication: Requires x-api-key header.

Path Parameters:

NameInTypeRequiredDescription
contactIdpathstringYesContact unique ID
x-api-keyheaderstringYesAPI authentication key

Response: [200 OK] - Contact


4. Update Contact by ID​

PUT /v1/contacts/{contactId}

  • Description: Update an existing contact by ID.
  • Authentication: Requires x-api-key header.

Path Parameters:

NameInTypeRequiredDescription
contactIdpathstringYesContact unique ID
x-api-keyheaderstringYesAPI authentication key

Request Body: Contact (application/json)

Response: [200 OK] - Contact


5. Delete Contact by ID​

DELETE /v1/contacts/{contactId}

  • Description: Delete a contact by ID.
  • Authentication: Requires x-api-key header.

Path Parameters:

NameInTypeRequiredDescription
contactIdpathstringYesContact unique ID
x-api-keyheaderstringYesAPI authentication key

Response: [200 OK] - DeleteResponse


6. Add Tags to Contact​

POST /v1/contacts/{contactId}/tags/add

  • Description: Add tags to a contact.
  • Authentication: Requires x-api-key header.

Path Parameters:

NameInTypeRequiredDescription
contactIdpathstringYesContact unique ID
x-api-keyheaderstringYesAPI authentication key

Response: [200 OK] - TagResponse


7. Remove Tags from Contact​

POST /v1/contacts/{contactId}/tags/remove

  • Description: Remove tags from a contact.
  • Authentication: Requires x-api-key header.

Path Parameters:

NameInTypeRequiredDescription
contactIdpathstringYesContact unique ID
x-api-keyheaderstringYesAPI authentication key

Response: [200 OK] - TagResponse


Schemas​

Contact Schema​

{
"id": "string",
"name": "string",
"phoneNumber": "string",
"workspace": {
"id": "string",
"title": "string"
},
"stage": "Subscriber | Engaged | Lead | Marketing qualified lead (MQL) | Sales qualified lead (SQL) | Opportunity | Follow-up Required | Customer | Evangelist | Other | Lost | Inactive",
"notes": "string",
"customFields": { },
"tags": ["string"]
}

TagResponse Schema​

{
"id": "string",
"tags": ["string"]
}

DeleteResponse Schema​

{
"success": true
}

Tip: See the OpenAPI schema for detailed request/response models and required fields for each operation.