curl --request GET \
--url https://api.usenexio.com/conversations/instances/{instanceSlug}/conversations/{conversationID}/turns/{turnID}/stream \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.usenexio.com/conversations/instances/{instanceSlug}/conversations/{conversationID}/turns/{turnID}/stream"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.usenexio.com/conversations/instances/{instanceSlug}/conversations/{conversationID}/turns/{turnID}/stream', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"attachments": [
{
"id": "<string>",
"media_type": "<string>",
"name": "<string>",
"notice": "<string>"
}
],
"message_id": "<string>",
"seq": 123,
"turn_id": "<string>",
"type": "attachment"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}Stream a turn
A v3 turn’s frames after the cursor, then its live tail, server to server. Requires conversations:use and the conversation’s end user. The server ends the response with : end once the turn is at rest and every kept call has its final outcome, or 60 s after rest; resubscribe with after= the last id for more. A turn whose stream is gone answers 410 stream_expired: read the conversation, which is durable. Any turn that is not this conversation’s v3 turn answers 404 turn_not_found. An organization key is refused with 403 legacy_key_person_route.
curl --request GET \
--url https://api.usenexio.com/conversations/instances/{instanceSlug}/conversations/{conversationID}/turns/{turnID}/stream \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.usenexio.com/conversations/instances/{instanceSlug}/conversations/{conversationID}/turns/{turnID}/stream"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.usenexio.com/conversations/instances/{instanceSlug}/conversations/{conversationID}/turns/{turnID}/stream', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"attachments": [
{
"id": "<string>",
"media_type": "<string>",
"name": "<string>",
"notice": "<string>"
}
],
"message_id": "<string>",
"seq": 123,
"turn_id": "<string>",
"type": "attachment"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}Headers
Path Parameters
Query Parameters
Response
An event stream. Each message carries id (the resume cursor), event (the frame type) and data (one TurnFrame as JSON). : ka comments keep an idle stream open; a final : end comment closes the server's window, after which the reader resubscribes with after= its last id if it needs more.
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
- Option 10
- Option 11
- Option 12
- Option 13
- Option 14
One frame of the stream, discriminated by type.