WatificationDocs

Contacts and conversations

Find and update contacts, change labels, assign and resolve conversations, add notes, and read the lists that fill dropdowns.

These routes read and update contacts and conversations in your workspace. Each route needs the scope listed in API keys and scopes.

All paths start with https://api.watification.com/api/v1.

Find a contact

GET /api/v1/contacts/find needs the read scope. Pass exactly one of phone or email:

Find a contact by phone
curl -sS \
  -H 'Authorization: Bearer wtf_xxxxxxxxxxxx_REPLACE_WITH_YOUR_SECRET' \
  'https://api.watification.com/api/v1/contacts/find?phone=%2B15555550100'

phone is an E.164 number. Use + as %2B in the URL. The phone match ignores the leading +, so +15555550100 and 15555550100 find the same contact. email matches the contact's email in the CRM.

Use GET /api/v1/contacts/:contactId to read a contact by id (scope read).

Contact response, from GET /api/v1/contacts/:contactId:

Contact response
{
  "id": "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee",
  "name": "Ana Example",
  "phone": "+15555550100",
  "email": "ana@example.com",
  "lifecycleStage": {
    "id": "ffffffff-ffff-4fff-8fff-ffffffffffff",
    "name": "Customer"
  },
  "labels": [{ "id": "11111111-1111-4111-8111-111111111111", "name": "VIP" }],
  "fields": { "city": "Cairo", "vip": "Yes" }
}

find, get, PATCH and POST /contacts all return this shape, the same as the contact object in webhook payloads. email is the contact's email-channel address, or, when there is none, the value of the first email custom field that has a value. lifecycleStage is null when the contact has no stage. fields lists only fields that have a value, and every value is text: numbers come back as strings and booleans as "Yes" or "No".

Update a contact

PATCH /api/v1/contacts/:contactId needs contacts.write. Send at least one field:

PATCH body
{
  "name": "Ana Example",
  "fields": { "order_source": "web", "vip": true, "city": null },
  "lifecycleStageId": "88888888-8888-4888-8888-888888888888"
}
  • name is up to 100 characters.
  • fields sets custom fields by their key, up to 50 fields per request. A value can be text (up to 1000 characters), a number, a boolean, or null. null clears the field.
  • lifecycleStageId sets the contact's lifecycle stage. Get stage ids from GET /api/v1/lifecycle-stages. Send null to clear the stage.

Get custom field keys from GET /api/v1/custom-fields.

Add and remove labels

Add a label with POST /api/v1/contacts/:contactId/labels, scope contacts.write. Send a labelId, or a labelName for an existing label. The route answers 200.

Add a label by id
{ "labelId": "99999999-9999-4999-8999-999999999999" }

Remove a label with DELETE /api/v1/contacts/:contactId/labels/:labelId, scope contacts.write.

Get label ids from GET /api/v1/labels.

This API does not delete or merge contacts, and it does not create labels.

Conversation reads

  • GET /api/v1/conversations/:conversationId returns the conversation. Scope read.
  • GET /api/v1/conversations/:conversationId/messages returns messages, newest first. Scope read. Pass limit from 1 to 50, and cursor from the previous page to get the next page.
  • GET /api/v1/messages/:messageId returns one message with its status. A failed message includes failure with code and message. Scope read.

Conversation response, from GET /api/v1/conversations/:conversationId:

Conversation response
{
  "id": "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb",
  "status": "open",
  "channelType": "whatsapp",
  "channelConnectionId": "cccccccc-cccc-4ccc-8ccc-cccccccccccc",
  "contactId": "dddddddd-dddd-4ddd-8ddd-dddddddddddd",
  "assigneeMembershipId": null,
  "teamId": null,
  "lastInboundAt": "2026-10-18T09:30:00.000Z",
  "replyWindow": { "open": true, "expiresAt": "2026-10-19T09:30:00.000Z" }
}

replyWindow.expiresAt is null for channels without a reply window. lastInboundAt is null until the customer writes.

Message list response, from GET /api/v1/conversations/:conversationId/messages. Use nextCursor to fetch the next page; it is null on the last page:

Message list response
{
  "messages": [
    {
      "id": "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee",
      "conversationId": "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb",
      "channelConnectionId": "cccccccc-cccc-4ccc-8ccc-cccccccccccc",
      "channelType": "whatsapp",
      "direction": "outbound",
      "origin": "api",
      "type": "text",
      "text": "Your order has shipped.",
      "media": null,
      "location": null,
      "interactiveReply": null,
      "replyToMessageId": null,
      "occurredAt": "2026-10-18T09:31:00.000Z"
    }
  ],
  "nextCursor": null
}

Message response, from GET /api/v1/messages/:messageId. It has the same fields as a list item, plus status, failure, and the timestamps. failure is null unless the message failed:

Message response
{
  "id": "eeeeeeee-eeee-4eee-8eee-eeeeeeeeeeee",
  "conversationId": "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb",
  "channelConnectionId": "cccccccc-cccc-4ccc-8ccc-cccccccccccc",
  "channelType": "whatsapp",
  "direction": "outbound",
  "origin": "api",
  "type": "text",
  "text": "Your order has shipped.",
  "media": null,
  "location": null,
  "interactiveReply": null,
  "replyToMessageId": null,
  "occurredAt": "2026-10-18T09:31:00.000Z",
  "status": "read",
  "failure": null,
  "createdAt": "2026-10-18T09:31:00.000Z",
  "sentAt": "2026-10-18T09:31:02.000Z",
  "deliveredAt": "2026-10-18T09:31:05.000Z",
  "readAt": "2026-10-18T09:40:00.000Z"
}

A failed message returns "status": "failed" and "failure": { "code": "...", "message": "..." }. media, when present, has url (a temporary link), expiresAt, mimeType, filename, and sizeBytes.

Conversation actions

Each action needs conversations.write.

Assign. Send membershipId to assign a member, or teamId to assign a team. Send null to clear either one. Send at least one of them.

POST /conversations/:conversationId/assign
{ "membershipId": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa", "teamId": null }

Get membershipId values from GET /api/v1/members and teamId values from GET /api/v1/teams.

Status. Send one of open, pending, resolved, or closed. Add closingNote (up to 1000 characters) if you want to record why the conversation was closed.

POST /conversations/:conversationId/status
{ "status": "resolved", "closingNote": "Delivered on the second attempt." }

Note. Send body (up to 2000 characters) to add an internal note. The route answers 201 with the new note's id. The note is saved as a contact note on that conversation. It is authored by the member who created the API key, not by the key itself.

POST /conversations/:conversationId/notes
{ "body": "Customer asked for a call back after 5 PM." }

Use these lists to fill dropdowns in your automation tool. All of them need the read scope.

RouteReturns
GET /api/v1/channel-connectionsEvery channel connection: id, name, channelType, and address.
GET /api/v1/whatsapp-channelsWhatsApp channel connections only.
GET /api/v1/membersMembers with membershipId and email. Watification does not store display names for members.
GET /api/v1/teamsTeams in the workspace.
GET /api/v1/custom-fieldsCustom contact fields, with their keys.
GET /api/v1/lifecycle-stagesLifecycle stages, with ids.
GET /api/v1/labelsLabels, with ids.
GET /api/v1/templates?channelConnectionId=...Approved WhatsApp templates for that connection: id, name, language, category, and a parameter summary.

Only approved templates are listed. Pass a WhatsApp channelConnectionId from GET /api/v1/channel-connections.

Errors

CodeHTTPWhen
API_KEY_SCOPE_MISSING403The key does not have the scope the route needs.
CONTACT_NOT_FOUND404The contact does not exist in your workspace.
LABEL_NOT_FOUND404The label does not exist in your workspace.
LIFECYCLE_STAGE_NOT_FOUND404The lifecycle stage does not exist in your workspace.
CUSTOM_FIELD_NOT_FOUND404A custom field key does not exist in your workspace.
CONVERSATION_NOT_FOUND404The conversation does not exist in your workspace.
MESSAGE_NOT_FOUND404The message does not exist in your workspace.
MEMBER_NOT_FOUND404The membership does not exist in your workspace.
TEAM_NOT_FOUND404The team does not exist in your workspace.
CHANNEL_CONNECTION_NOT_FOUND404The channel connection does not exist in your workspace.
DEVELOPER_INVALID_INPUT422A body field or query value is invalid.

See the error reference for every code.

On this page