Export the caller's conversations

Export the caller's conversations

Streams every conversation the caller has in the vault, with all messages in order, as newline-delimited JSON (application/x-ndjson). The first line is a header (type: "export"); each conversation is a type: "session" line followed by its type: "message" lines. Removed conversations are excluded.

GET/api/agent/sessions/export
Query parameters
vaultIdstringrequired

Request

curl
curl -X GET https://trickest.io/api/agent/sessions/export \
  -H "Authorization: Token $TRICKEST_TOKEN"

Responses

200NDJSON stream of export records (application/x-ndjson)
successboolean
400Bad Request – validation error or malformed input
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

401Unauthorized – missing or expired token
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

403Forbidden – insufficient permissions
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

429Too Many Requests – rate limited
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

500Internal Server Error
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.