POST
/
api
/
public
/
ticket
/
open
/
whatsapp
/
{phoneId}
Open a new ticket for web whatsapp
curl --request POST \
  --url https://api.vambe.me/api/public/ticket/open/whatsapp/{phoneId} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '{
  "to_phone_number": 2,
  "contact_metadata": {},
  "ticket_metadata": {},
  "integration_data": {},
  "message": {
    "templateId": "<string>",
    "content": "<string>",
    "ai_generated": true
  },
  "stage_id": "<string>"
}'

Headers

x-api-key
string
required

API key needed to authorize the request

Path Parameters

phoneId
string
required

Body

application/json
to_phone_number
required
Required range: x >= 1
contact_metadata
object
required
ticket_metadata
object
required
integration_data
object
required
message
object
required
stage_id
string
required
contact_name
string
email
string<email>

Response

200

Ticket created successfully