Message
Send Message
Sends a text or media message to an existing conversation.
| Field | Required | Notes |
|---|
| Conversation ID | Yes | ID of the conversation to send to |
| Message Type | Yes | text, image, video, document, audio |
| Text | Conditional | Required when type is text |
| Media URL | Conditional | Public URL; required for media types |
| Caption | No | Shown below image, video, or document |
| Filename | No | Display name for document files |
Send Template
Sends an approved WhatsApp template. The Template field dynamically loads your approved templates from Tenreply.
| Field | Required | Notes |
|---|
| Conversation ID | Yes | |
| Template | Yes | Loaded dynamically from your workspace |
| Variables | No | JSON array of placeholder values, e.g. ["John","Order #42"] |
Get Messages
Returns messages in a conversation, newest first.
| Field | Required |
|---|
| Conversation ID | Yes |
| Limit | No (default 50) |
| Operation | Description |
|---|
| Create | Creates a new contact. Phone number is required; include the country code (e.g. +1234567890). |
| Update | Updates name, email, or tags by contact ID. |
| Get | Returns a single contact by ID. |
| Get Many | Lists contacts; optionally filter by a search string (name, phone, email). |
| Delete | Permanently deletes a contact. |
Conversation
| Operation | Description |
|---|
| Start | Finds an existing open conversation with a contact or creates a new one. |
| Close | Closes an open conversation. |
| Reopen | Reopens a closed conversation. |
| Get | Returns a single conversation by ID. |
| Get Many | Lists conversations; optionally filter by status (open, closed, pending). |
Template
| Operation | Description |
|---|
| Get Many | Returns all approved WhatsApp templates in your workspace. |