Close Conversation (M2M)
Close a call-source conversation at session teardown, recording why it ended and its tool counters. Idempotent: closing an already closed conversation is a no-op. Authenticated with a run or deployment token whose scope covers the Conversation.
Authorization
BundleAccessToken AuthorizationBearer <token>
In: header
Path Parameters
conversation_id*Conversation Id
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/v1/bundler/conversations/497f6eca-6276-4993-bfeb-53cbbbba6f08/close" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978", "run_id": "string", "source": "string", "status": "string", "started_at": "2019-08-24T14:15:22Z", "ended_at": "2019-08-24T14:15:22Z", "visitor_id": "1b5d452e-2897-4f21-ac74-1b59f820ba97", "insight": { "text_status": "string", "outcome": "string", "topic_id": "646807af-5da6-43aa-83d3-8ac1d15ab4e5", "topic_name": "string", "failed": true, "text_trajectory": "string", "primary_root_cause": "string", "masked_frustration": true }, "metrics": { "wait_p50_ms": 0, "wait_max_ms": 0, "barge_in_count": 0, "slow_reply_count": 0, "had_tool_errors": true }}Empty
Empty
{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}