| Parameter | Type | Required | Description |
|---|---|---|---|
phoneId | string | Yes | Your WhatsApp Web phone identifier (connected via QR code) |
| Field | Type | Required | Description |
|---|---|---|---|
to_phone_number | string | Yes | Contact’s WhatsApp phone number (with country code) |
stage_id | string | Yes | UUID of the pipeline stage where the ticket should start |
contact_name | string | No | Full name of the contact |
email | string | No | Contact’s email address (must be valid email format) |
contact_metadata | object | No | Custom key-value pairs for contact-level data |
ticket_metadata | object | No | Custom key-value pairs for ticket-level data |
integration_data | object | No | Integration-specific data (e.g., external system IDs) |
message | object | No | Optional initial message to send when creating the ticket |
| Field | Type | Required | Description |
|---|---|---|---|
content | string | No | Text content of the message to send |
templateId | string | No | ID of a template to use (if using smart templates) |
ai_generated | boolean | Yes | Whether the message is AI-generated (true) or manual |
| Field | Type | Description |
|---|---|---|
aiContactId | string (UUID) | Unique identifier of the created or existing contact |
status | string | Status of the operation (always “ok”) |
to_phone_number field accepts phone numbers in various formats:
"+56912345678" (recommended)"56912345678"56912345678| Status Code | Description |
|---|---|
| 400 | Bad Request - Invalid phone number or stage ID |
| 401 | Unauthorized - Invalid or missing API key |
| 404 | Not Found - Phone ID or stage ID doesn’t exist |
| 500 | Internal Server Error - Something went wrong |
phoneId in the path must be a WhatsApp Web connection that you’ve set up via QR codestage_id exists in your pipelines - use the GET /api/public/pipeline endpoint to get valid stage IDscontact_metadata and ticket_metadata accept any key-value pairs as objectscontent or use a templateId with variablesmessage.content is provided without templateId: Sends a plain text messagemessage.templateId is provided: Sends a smart template with variablesaiContactId to track this contact for future operationsAPI key needed to authorize the request
Ticket created successfully