import requests
url = "https://api.datagrid.com/v1/conversations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.datagrid.com/v1/conversations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.datagrid.com/v1/conversations \
--header 'Authorization: Bearer <token>'{
"object": "list",
"data": [
{
"object": "conversation",
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"agent_ids": [
"<string>"
],
"participated_agent_ids": [
"<string>"
]
}
],
"has_more": true
}{
"status_code": 123,
"error": "rate_limit_exceeded",
"message": "<string>",
"retryable": true,
"statusCode": 123,
"mitigation": "<string>",
"details": {
"reason": "<string>"
}
}List conversations
Returns the list of conversations.
import requests
url = "https://api.datagrid.com/v1/conversations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.datagrid.com/v1/conversations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.datagrid.com/v1/conversations \
--header 'Authorization: Bearer <token>'{
"object": "list",
"data": [
{
"object": "conversation",
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"agent_ids": [
"<string>"
],
"participated_agent_ids": [
"<string>"
]
}
],
"has_more": true
}{
"status_code": 123,
"error": "rate_limit_exceeded",
"message": "<string>",
"retryable": true,
"statusCode": 123,
"mitigation": "<string>",
"details": {
"reason": "<string>"
}
}Authorizations
Query Parameters
When true, excludes conversations that never had a message sent (e.g. abandoned sessions). Defaults to false, returning every conversation regardless of message count. Changing this value between requests that reuse the same before/after cursor is not supported — the cursor was computed against a different result set, so pass a consistent value for the lifetime of a given pagination sequence.
When true, restricts the list to conversations that contain at least one voice message. Defaults to false, returning conversations regardless of modality. Changing this value between requests that reuse the same before/after cursor is not supported — the cursor was computed against a different result set, so pass a consistent value for the lifetime of a given pagination sequence.
When true, restricts the list to conversations that contain at least one voice message or had a message sent from the Datagrid mobile app. Defaults to false, returning conversations regardless of modality or client. Combined with has_voice_messages=true, both filters apply and only voice conversations are returned. Changing this value between requests that reuse the same before/after cursor is not supported — the cursor was computed against a different result set, so pass a consistent value for the lifetime of a given pagination sequence.
Response
List of conversations