Skip to main content
The Contacts API lets you manage customer profiles in Sahut. Use it to sync contacts from your CRM, update contact details when customers change their info, or search for contacts before creating a new conversation.

List contacts

Query parameters

string
Search query. Matches against name, phone number, and email.
string
Filter contacts by tag name.
integer
Page number. Default: 1.
integer
Results per page. Default: 25. Max: 100.

Example request

Example response

Get a contact

string
required
Contact ID.

Create a contact

Request body

string
required
Contact’s full name.
string
Phone number in E.164 format (e.g., +628123456789).
string
Email address.
string
Company name.
array
Array of tag strings to apply (e.g., ["vip", "prospect"]).
object
Key-value pairs for any custom attributes defined in your workspace.

Example request

Example response

Update a contact

string
required
Contact ID to update.
The request body accepts the same fields as POST /contacts. Only include the fields you want to update — omitted fields remain unchanged.

Example request