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 -X POST \
https://streams.marsview.ai/rb/v1/streams/end_realtime_stream \
-H 'authorization: Bearer <ATUHTOKEN>' \
-H 'cache-control: no-cache' \
-d '{"txnId": "<TRANSACTION_ID>"}'
The conversation is closed if the server responds with a 200 status code and the
status
is set to True
in the JSON response{ 'status': True,
'data': {
'message': 'updated call status'
}
}