---
title: "Open a new ticket for whatsapp"
method: POST
path: "/api/public/ticket/open/whatsapp/{phoneId}"
tags: ["Ticket"]
---

# Open a new ticket for whatsapp

`POST /api/public/ticket/open/whatsapp/{phoneId}`

## Path parameters

- `phoneId` string, required

## Headers

- `x-api-key` string, required

## Request body

- OpenTicketDto
  - `contact_name` string
  - `to_phone_number` union, required
    - number
    - string
  - `contact_metadata` object, required
  - `ticket_metadata` object, required
  - `integration_data` object, required
  - `email` string, email
  - `message` object, required
    - `templateId` string
    - `content` string
    - `ai_generated` boolean
  - `stage_id` string, required

## Response `200`

Ticket created successfully

---

[API](https://skmtc.net/vambe/apis/vambe-ai-api.md) · [All operations](https://skmtc.net/vambe/apis/vambe-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vambe/vambe-ai-api/revisions/e206709d4be5/schema)
