Skip to main content
Contacts represent the people you message through Waply. Each contact has a phone number, optional profile fields, tags for segmentation, and a lifecycle stage. Use the contacts API to sync your CRM, import subscribers, or manage contacts programmatically.

The Contact object

Every contacts endpoint returns a Contact object or an array of Contact objects.
string
Unique identifier for the contact, prefixed with con_.
string
The contact’s phone number in E.164 format (for example, +14155552671).
string
The contact’s display name.
string
The contact’s email address.
string[]
Array of tag strings used for segmentation and broadcast targeting.
string
The contact’s current lifecycle stage (for example, lead, customer, churned).
object
Key-value pairs for any custom attributes you have defined on your account.
string
ISO 8601 timestamp of when the contact was created.
string
ISO 8601 timestamp of the most recent update to the contact.

List contacts

GET /contacts

Returns a paginated list of contacts. Use query parameters to filter by tag or search by name or phone number.
number
default:"1"
Page number to retrieve.
number
default:"20"
Number of contacts per page. Maximum is 100.
string
Filter contacts that have this tag applied.
Search contacts by name or phone number. Partial matches are supported.
Response

Create a contact

POST /contacts

Creates a new contact. The contact’s phone number must be unique within your account.
string
required
Phone number in E.164 format (for example, +14155552671). Must be unique within your account.
string
Display name for the contact.
string
Email address for the contact.
string[]
Tags to assign to the contact. Creates tags that do not already exist.
object
Key-value pairs matching the custom fields defined in your Waply account settings.
Response

Get a contact

GET /contacts/

Returns a single contact by its ID.
string
required
The ID of the contact to retrieve.
Response

Update a contact

PUT /contacts/

Updates an existing contact. Include only the fields you want to change — fields you omit retain their existing values.
string
required
The ID of the contact to update.
string
Phone number in E.164 format.
string
Display name for the contact.
string
Email address for the contact.
string[]
Replaces the contact’s existing tags with this array.
object
Merges these key-value pairs into the contact’s existing custom fields.
Response Returns the full updated Contact object.

Delete a contact

DELETE /contacts/

Permanently deletes a contact. This action cannot be undone. The contact’s conversation history is retained for audit purposes.
string
required
The ID of the contact to delete.
Response