π± WhatsApp QR
π½ POST /api/public/web-whatsapp-message/send/{phoneId}/message
β Send a Web WhatsApp Message
POST /api/public/web-whatsapp-message/send/{phoneId}/message
β Send a Web WhatsApp MessageSends a message from a connected WhatsApp Web session using the specified phoneId
.
Click to expand full details
πΉ URL
POST /api/public/web-whatsapp-message/send/{phoneId}/message
πΉ Path Parameters
Name | Type | Required | Description |
---|---|---|---|
phoneId | string | β | The ID of the phone sending the message via WhatsApp Web |
πΉ Query Parameters
Name | Type | Required | Description |
---|---|---|---|
message | string | β | The content of the message you want to send |
stage | string | β | Contextual tag for the message (e.g., "checkout" ) |
x-api-key | string | β | Your API key for authenticating the request |
πΉ Body
Name | Type | Required | Description |
---|---|---|---|
phone | string | β | The Phone Number you want to send the message to |
πΉ Example Request (cURL)
curl --request POST \
'https://iris-backend-production.up.railway.app/api/public/web-whatsapp-message/send/abc123/message?message=Hello%20world&stage=welcome' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'content-type: application/json'
Replace:
abc123
with your actualphoneId
YOUR_API_KEY
with your real API keymessage
andstage
as needed
πΉ Notes
- The phone must be connected and authenticated via WhatsApp Web.
- This endpoint is useful for real-time messages triggered by events on your own platform
- Avoid excessive usage to prevent rate-limiting.
π½ POST /api/public/ticket/open/web-whatsapp/{phoneId}
β Open a New Ticket
POST /api/public/ticket/open/web-whatsapp/{phoneId}
β Open a New TicketCreates a ticket linked to a specific WhatsApp phone sender. Includes support for metadata, contact info, and message content.
Click to expand full details
πΉ URL
POST /api/public/ticket/open/web-whatsapp/{phoneId}
πΉ Path Parameters
Name | Type | Required | Description |
---|---|---|---|
phoneId | string | β | The phone ID used to send the WhatsApp message |
πΉ Body Parameters
Field | Type | Required | Description |
---|---|---|---|
contact_name | string | β | Name of the contact |
to_phone_number | string | β | WhatsApp number of the recipient |
contact_metadata | object | β | Optional extra info about the contact |
ticket_metadata | object | β | Optional structured data about the ticket |
email | string | β | Email address linked to the ticket |
message | object | β | Initial message content |
stage_id | string | β | UUID of the pipeline stage where ticket starts |
πΉ Example Request
curl --request POST \
'https://iris-backend-production.up.railway.app/api/public/ticket/open/web-whatsapp/phone_123' \
--header 'Content-Type: application/json' \
--data-raw '{
}
'
πΉ Success Response
π’ 200 Ticket created successfully
Updated 9 days ago