Get a conversation
curl --request GET \
--url https://api.operator.xyz/conversations/{conversation_id} \
--header 'Authorization: Bearer <token>' \
--header 'Operator-Version: <operator-version>'import requests
url = "https://api.operator.xyz/conversations/{conversation_id}"
headers = {
"Operator-Version": "<operator-version>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Operator-Version': '<operator-version>', Authorization: 'Bearer <token>'}
};
fetch('https://api.operator.xyz/conversations/{conversation_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"agent_id": "<string>",
"livemode": true,
"created_at": "2023-11-07T05:31:56Z",
"direction": "inbound",
"status": "queued",
"custom_fields": {},
"customer_id": null,
"channel_type": null,
"channel": {
"type": "phone",
"callee_no": null,
"caller_no": null,
"recording_url": null
},
"override_config": null,
"started_at": null,
"completed_at": null,
"failure_reason": null,
"summary": null,
"duration_sec": null,
"sentiment": null
}{
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}Conversations
Get a conversation
GET
/
conversations
/
{conversation_id}
Get a conversation
curl --request GET \
--url https://api.operator.xyz/conversations/{conversation_id} \
--header 'Authorization: Bearer <token>' \
--header 'Operator-Version: <operator-version>'import requests
url = "https://api.operator.xyz/conversations/{conversation_id}"
headers = {
"Operator-Version": "<operator-version>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Operator-Version': '<operator-version>', Authorization: 'Bearer <token>'}
};
fetch('https://api.operator.xyz/conversations/{conversation_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"agent_id": "<string>",
"livemode": true,
"created_at": "2023-11-07T05:31:56Z",
"direction": "inbound",
"status": "queued",
"custom_fields": {},
"customer_id": null,
"channel_type": null,
"channel": {
"type": "phone",
"callee_no": null,
"caller_no": null,
"recording_url": null
},
"override_config": null,
"started_at": null,
"completed_at": null,
"failure_reason": null,
"summary": null,
"duration_sec": null,
"sentiment": null
}{
"code": "<string>",
"message": "<string>",
"data": "<unknown>"
}Authorizations
Path Parameters
Response
Successful response.

