Create Synchronous Export (Legacy)

POST /api/v1/exports/sync

Immediately generates and returns an export file (JSON or CSV) containing chat data. Use async export for large datasets.

application/json

Body Required

Export parameters (format, type)

  • format string Required

    Values are json or csv.

  • type string Required

    Values are chats, messages, or all.

Responses

  • Export file (JSON or CSV)

  • 400 application/json

    Invalid request data (format/type)

    Hide response attribute Show response attribute object
    • * string Additional properties
  • 401 application/json

    Unauthorized (JWT invalid/missing or Org ID not found)

    Hide response attribute Show response attribute object
    • * string Additional properties
  • 500 application/json

    Failed to retrieve data or generate export

    Hide response attribute Show response attribute object
    • * string Additional properties
POST /api/v1/exports/sync
curl \
 --request POST 'http://api.example.com/api/v1/exports/sync' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"format":"json","type":"chats"}'
Request examples
{
  "format": "json",
  "type": "chats"
}
Response examples (200)
string
Response examples (400)
{
  "additionalProperty1": "string",
  "additionalProperty2": "string"
}
Response examples (401)
{
  "additionalProperty1": "string",
  "additionalProperty2": "string"
}
Response examples (500)
{
  "additionalProperty1": "string",
  "additionalProperty2": "string"
}