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.
string
Search contacts by name or phone number. Partial matches are supported.
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.
Get a contact
GET /contacts/
Returns a single contact by its ID.string
required
The ID of the contact to retrieve.
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.
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.