Skip to main content
GET
/
api
/
export
/
chats
Export chats
curl --request GET \
  --url https://api.getstrada.com/api/export/chats \
  --header 'Authorization: Bearer <token>'
{
  "chats": [
    {
      "chatId": "<string>",
      "agentId": "<string>",
      "customerUniqueId": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "handedOffAt": "2023-11-07T05:31:56Z",
      "terminatedAt": "2023-11-07T05:31:56Z",
      "abandonedAt": "2023-11-07T05:31:56Z",
      "summary": "<string>",
      "analysis": {},
      "transcript": {
        "messages": [
          {
            "role": "bot",
            "content": "<string>",
            "toolCallId": "<string>",
            "toolCalls": [
              {}
            ]
          }
        ]
      },
      "chatVariables": {},
      "status": "active"
    }
  ],
  "metadata": {
    "nextPage": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API Key authentication

Query Parameters

agentId
string[]

Filter by agent IDs (can pass multiple times)

createdAtGt
string<date-time>
createdAtLt
string<date-time>
pageSize
integer
default:10000

Number of results per page (max 10000)

Required range: 1 <= x <= 10000

Response

Successfully retrieved chats

chats
object[]
metadata
object
I