---
title: "Export Chats For a Customer For Given WabaNumber"
method: POST
path: "/export-chats"
tags: ["Chat Messages"]
---

# Export Chats For a Customer For Given WabaNumber

`POST /export-chats`

Export Chats For a WabaNumber

## Request body

- ExportChatsDto
  - `customerPhoneNumber` string, phone, required — The phone number of customer
  - `wabaNumber` string, phone, required — The wabaNumber of integration for which you want to export chats
  - `startDate` string, required — The starting date from which chat messages will be exported. This date should be formatted as 'DD-MM-YYYY'.
  - `endDate` string, required — The ending date up to which chat messages will be exported. This date should also be formatted as 'DD-MM-YYYY'.
  - `includeMedia` boolean, required — If true then it will include shared media link

## Response `201`

Success

- object
  - `success` boolean

## Other responses

- `400` — Incorrect payload
- `401` — Unauthorized

---

[API](https://skmtc.net/doubletick/apis/doubletick-public-apis.md) · [All operations](https://skmtc.net/doubletick/apis/doubletick-public-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/doubletick/doubletick-public-apis/versions/bba484527d34/schema)
