curl --location --request GET 'https://api.stateset.com/v1/response/retrieve' \ --header 'Content-Type: application/json' \ --header 'Authorization: Token <token>' \ --data-raw '{ "id": "res_1NXWPnCo6bFb1KQto6C8OWvE", }'
{ "response": [ { "id": "0901f083-aa1c-43c5-af5c-0a9d2fc64e30", "ticket_url": "https://api.stateset.com/v1/ticket", "channel": "Email", "customer_message": "I would like to cancel my order", "agent_response": "Your order has been cancelled. Thank you!", "rating": "5", "agent_take_over": false, "served_by_agent": true, "org_id": "0901f083-aa1c-43c5-af5c-0a9d2fc64e30", "created_date": "2023-06-28T19:34:59.189838+00:00", "ticket_id": "0901f083-aa1c-43c5-af5c-0a9d2fc64e30", "function_call": "cancel-order", "workflow_id": "0901f083-aa1c-43c5-af5c-0a9d2fc64e30" }, ] }
This endpoint retrieves a response from the agent.