Skip to main content
POST
/
v1
/
conversations
/
{id}
/
export
Export a conversation
curl --request POST \
  --url https://dev.flextell.ai/api/v1/conversations/{id}/export \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Tenant: <x-tenant>' \
  --data '
{
  "message_count": 5000,
  "export_all": true,
  "include_context": true
}
'
{}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

X-Tenant
number
required

Tenant identifier. Send the Tenant ID in the X-Tenant header to scope API requests to a specific tenant.

Path Parameters

id
integer
required

The conversation identifier

Body

application/json
format
enum<string>
required

The export format.

Available options:
json,
csv,
txt,
html
message_count
integer | null

The number of messages to export.

Required range: 1 <= x <= 10000
export_all
boolean | null

Whether to export all messages.

include_context
boolean | null

Whether to include context messages.

Response

The response is of type object.