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/exportQuery parameters
vaultIdstringrequiredRequest
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)
successboolean400Bad Request – validation error or malformed input
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.
401Unauthorized – missing or expired token
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.
403Forbidden – insufficient permissions
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.
429Too Many Requests – rate limited
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.
500Internal Server Error
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.