API ReferenceConversations
List conversations
Get conversations for an organization with optional filtering.
Authorization
sessionAuth AuthorizationBearer <token>
NextAuth session token
In: header
Path Parameters
orgId*string
Format
uuidQuery Parameters
channel?string
Filter by channel
Value in
"phone" | "chat" | "browser" | "sms"status?string
Filter by status
Value in
"initiated" | "active" | "completed" | "failed"assistantId?string
Filter by assistant
Format
uuidlimit?integer
Default
50offset?integer
Default
0Response Body
application/json
curl -X GET "https://platform.autophone.org/api/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/conversations"{
"conversations": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
"contactId": "b5ec5d98-4bee-4da1-ad24-dde86346cb1d",
"assistantId": "bb8c7fe3-2157-48a3-a0a7-af503b091988",
"channel": "phone",
"direction": "inbound",
"status": "initiated",
"startedAt": "2019-08-24T14:15:22Z",
"endedAt": "2019-08-24T14:15:22Z",
"duration": 0,
"recordingUrl": "http://example.com",
"metadata": {},
"contactName": "string",
"contactPhone": "string",
"assistantName": "string"
}
]
}Empty
Empty