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

# Open a new ticket for web whatsapp

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

## Request

- Base URL: `https://api.vambe.me`
- URL: `https://api.vambe.me/api/public/ticket/open/web-whatsapp/{phoneId}`
- Auth: none required
- TypeScript: <https://skmtc.dev/vambe/apis/vambe-ai-api/docs/api/public/ticket/open/web-whatsapp/:phoneId/post.ts> (a function with typed inputs; its response is checked against the schema)

## 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.dev/vambe/apis/vambe-ai-api.md) - [All operations](https://skmtc.dev/vambe/apis/vambe-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/vambe/apis/vambe-ai-api/revisions/e206709d4be5?raw)
