End Transaction
End the transaction once the Conversation is complete. This is a pre-requisite step for fetching the output JSON or running post call analytics on the transaction.

Curl command to end the transaction

1
curl -X POST \
2
https://streams.marsview.ai/rb/v1/streams/end_realtime_stream \
3
-H 'authorization: Bearer <ATUHTOKEN>' \
4
-H 'cache-control: no-cache' \
5
-d '{"txnId": "<TRANSACTION_ID>"}'
Copied!

Response

The conversation is closed if the server responds with a 200 status code and the status is set to True in the JSON response
1
{ 'status': True,
2
'data': {
3
'message': 'updated call status'
4
}
5
}
Copied!
Last modified 7d ago