{
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"org_id": "<string>",
"data": {
"task": {
"object": "task",
"task_id": "<string>",
"procedure": {
"id": "<string>",
"revision": 123
},
"session_id": "<string>",
"agent_id": "<string>",
"done": true,
"prompt": "<string>",
"result": "<string>",
"error": "<string>",
"conversation_id": "<string>",
"paused_for": {
"id": "<string>",
"conversation_id": "<string>"
},
"pending": {
"type": "question",
"question_id": "<string>",
"question": "<string>",
"options": [
"<string>"
],
"customer_can_answer": true,
"conversation_id": "<string>"
},
"cursor": 123,
"metadata": {
"customer_id": "cus_42"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"active_seconds": 123,
"model": "gpt-6-astra",
"usage": {
"input_tokens": 123,
"cached_tokens": 123,
"cache_write_tokens": 123,
"output_tokens": 123,
"reasoning_tokens": 123
},
"cost_cents": 123,
"agent_version": 3,
"agent_draft": true,
"created_by": {
"type": "user",
"email": "jane@acme.com"
},
"replay_url": "<string>",
"recording": {
"frames": 123
},
"events": [
{
"cursor": 123,
"message": "<string>",
"ts": "2023-11-07T05:31:56Z",
"data": {}
}
],
"procedures": [
{
"id": "<string>",
"revision": 123,
"title": "<string>",
"confidence": 123
}
]
},
"session": {
"object": "session",
"session_id": "K7QM-24XP",
"code": "K7QM-24XP",
"agent_id": "<string>",
"invite_url": "https://guidinghand.ai/acme/billing/K7QM-24XP",
"device": {
"name": "<string>",
"width": 123,
"height": 123,
"app_version": "<string>"
},
"metadata": {
"customer_id": "cus_42"
},
"created_by": {
"type": "user",
"email": "jane@acme.com"
},
"created_at": "2023-11-07T05:31:56Z",
"paired_at": "2023-11-07T05:31:56Z",
"last_active_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"task_count": 123,
"latest_task_id": "<string>"
},
"test_run": {
"object": "test_run",
"test_run_id": "tr_Vb7sT2Lc0aQ3",
"name": "<string>",
"test_set_id": "<string>",
"agents": [
"default",
"support-v2"
],
"cold": true,
"procedure_id": "<string>",
"app_version": "1.0.28",
"agent_versions": {
"billing": {
"version": 4,
"draft": false
}
},
"progress": {
"total": 123,
"queued": 123,
"running": 123,
"passed": 123,
"failed": 123,
"error": 123,
"cancelled": 123
},
"pass_rate": {
"default": 0.54,
"support-v2": 0.63
},
"grounded_rate": {},
"metadata": {
"customer_id": "cus_42"
},
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"variants": [
{
"id": "advisor@claude-sonnet-5-5",
"agent_id": "advisor",
"model": "claude-sonnet-5-5"
}
]
},
"start_state": {
"object": "start_state",
"start_state_id": "ss_0aQ3Vb7sT2Lc",
"name": "Printer offline",
"description": "<string>",
"from": "win10-22h2",
"script": "<string>",
"instruction": "<string>",
"agent_id": "<string>",
"task_id": "<string>",
"version": 123,
"os": "windows",
"labels": [
"vm"
],
"runner_id": "<string>",
"error": "<string>",
"view": {
"screen_url": "<string>",
"input_url": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
},
"metadata": {
"customer_id": "cus_42"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"conversation": {
"object": "conversation",
"id": "conv_…",
"agent_id": "<string>",
"agent_version": 123,
"title": "<string>",
"metadata": {},
"variables": {},
"session_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_item_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"end_reason": "<string>",
"call": {
"started_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"listening_seconds": 123,
"characters_said": 123,
"lines_said": 123,
"voice": {
"engine": "elevenlabs",
"voice_id": "<string>"
}
},
"price": {
"total_cents": 123,
"replies": {
"count": 123,
"cents": 123,
"input_tokens": 123,
"output_tokens": 123
},
"tasks": {
"count": 123,
"cents": 123
},
"phone": {
"seconds": 123,
"cents": 123
}
}
},
"approval": {
"approval_id": "apr_…",
"action": "<string>",
"site": "<string>",
"app": "<string>",
"category": "<string>",
"risk": "<string>",
"task_id": "<string>",
"procedure_id": "<string>",
"who": "<string>",
"note": "<string>",
"covers": [],
"surface_id": "<string>",
"a2ui": [
{}
],
"decision": {
"note": "<string>",
"at": "2023-11-07T05:31:56Z"
}
},
"question": {
"question_id": "qst_…",
"task_id": "<string>",
"question": "<string>",
"options": [
"<string>"
],
"surface_id": "<string>",
"a2ui": [
{}
],
"answer": {
"text": "<string>",
"at": "2023-11-07T05:31:56Z"
}
},
"escalation": {
"object": "escalation",
"id": "<string>",
"agent_id": "<string>",
"summary": "<string>",
"count": 123,
"procedure": {
"id": "<string>",
"title": "<string>",
"revision": 123
},
"failed_at": "<string>",
"proposal": {
"base_revision": 123,
"body": "<string>"
},
"owner": "<string>",
"details": "<string>",
"tasks": [
"<string>"
],
"conversation_id": "<string>",
"request_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_seen_at": "2023-11-07T05:31:56Z",
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_by": {
"type": "<string>",
"email": "<string>",
"key_id": "<string>"
},
"resolved_revision": 123,
"delivery": {
"emailed_at": "2023-11-07T05:31:56Z",
"channels": [
{
"channel": "<string>"
}
],
"webhook": true
},
"question": "<string>",
"on_hold": 123,
"waiting": [
{
"conversation_id": "<string>",
"question": "<string>",
"at": "2023-11-07T05:31:56Z",
"delivered_at": "2023-11-07T05:31:56Z",
"holding_since": "2023-11-07T05:31:56Z"
}
],
"answer": {
"text": "<string>",
"at": "2023-11-07T05:31:56Z",
"learn": true,
"procedure_id": "<string>",
"delivered_at": "2023-11-07T05:31:56Z",
"failed": true
},
"messages": 123
}
}
}API Reference
Webhook event
Sent to your endpoint with a Eager-Signature: t=<unix>,v1=<hex> header: the HMAC-SHA256 of <t>.<raw body> with your secret. Retried up to 4 times over about 3 minutes until you answer 2xx.
WEBHOOK
event
{
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"org_id": "<string>",
"data": {
"task": {
"object": "task",
"task_id": "<string>",
"procedure": {
"id": "<string>",
"revision": 123
},
"session_id": "<string>",
"agent_id": "<string>",
"done": true,
"prompt": "<string>",
"result": "<string>",
"error": "<string>",
"conversation_id": "<string>",
"paused_for": {
"id": "<string>",
"conversation_id": "<string>"
},
"pending": {
"type": "question",
"question_id": "<string>",
"question": "<string>",
"options": [
"<string>"
],
"customer_can_answer": true,
"conversation_id": "<string>"
},
"cursor": 123,
"metadata": {
"customer_id": "cus_42"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"active_seconds": 123,
"model": "gpt-6-astra",
"usage": {
"input_tokens": 123,
"cached_tokens": 123,
"cache_write_tokens": 123,
"output_tokens": 123,
"reasoning_tokens": 123
},
"cost_cents": 123,
"agent_version": 3,
"agent_draft": true,
"created_by": {
"type": "user",
"email": "jane@acme.com"
},
"replay_url": "<string>",
"recording": {
"frames": 123
},
"events": [
{
"cursor": 123,
"message": "<string>",
"ts": "2023-11-07T05:31:56Z",
"data": {}
}
],
"procedures": [
{
"id": "<string>",
"revision": 123,
"title": "<string>",
"confidence": 123
}
]
},
"session": {
"object": "session",
"session_id": "K7QM-24XP",
"code": "K7QM-24XP",
"agent_id": "<string>",
"invite_url": "https://guidinghand.ai/acme/billing/K7QM-24XP",
"device": {
"name": "<string>",
"width": 123,
"height": 123,
"app_version": "<string>"
},
"metadata": {
"customer_id": "cus_42"
},
"created_by": {
"type": "user",
"email": "jane@acme.com"
},
"created_at": "2023-11-07T05:31:56Z",
"paired_at": "2023-11-07T05:31:56Z",
"last_active_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"task_count": 123,
"latest_task_id": "<string>"
},
"test_run": {
"object": "test_run",
"test_run_id": "tr_Vb7sT2Lc0aQ3",
"name": "<string>",
"test_set_id": "<string>",
"agents": [
"default",
"support-v2"
],
"cold": true,
"procedure_id": "<string>",
"app_version": "1.0.28",
"agent_versions": {
"billing": {
"version": 4,
"draft": false
}
},
"progress": {
"total": 123,
"queued": 123,
"running": 123,
"passed": 123,
"failed": 123,
"error": 123,
"cancelled": 123
},
"pass_rate": {
"default": 0.54,
"support-v2": 0.63
},
"grounded_rate": {},
"metadata": {
"customer_id": "cus_42"
},
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"variants": [
{
"id": "advisor@claude-sonnet-5-5",
"agent_id": "advisor",
"model": "claude-sonnet-5-5"
}
]
},
"start_state": {
"object": "start_state",
"start_state_id": "ss_0aQ3Vb7sT2Lc",
"name": "Printer offline",
"description": "<string>",
"from": "win10-22h2",
"script": "<string>",
"instruction": "<string>",
"agent_id": "<string>",
"task_id": "<string>",
"version": 123,
"os": "windows",
"labels": [
"vm"
],
"runner_id": "<string>",
"error": "<string>",
"view": {
"screen_url": "<string>",
"input_url": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
},
"metadata": {
"customer_id": "cus_42"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"conversation": {
"object": "conversation",
"id": "conv_…",
"agent_id": "<string>",
"agent_version": 123,
"title": "<string>",
"metadata": {},
"variables": {},
"session_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_item_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"end_reason": "<string>",
"call": {
"started_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"listening_seconds": 123,
"characters_said": 123,
"lines_said": 123,
"voice": {
"engine": "elevenlabs",
"voice_id": "<string>"
}
},
"price": {
"total_cents": 123,
"replies": {
"count": 123,
"cents": 123,
"input_tokens": 123,
"output_tokens": 123
},
"tasks": {
"count": 123,
"cents": 123
},
"phone": {
"seconds": 123,
"cents": 123
}
}
},
"approval": {
"approval_id": "apr_…",
"action": "<string>",
"site": "<string>",
"app": "<string>",
"category": "<string>",
"risk": "<string>",
"task_id": "<string>",
"procedure_id": "<string>",
"who": "<string>",
"note": "<string>",
"covers": [],
"surface_id": "<string>",
"a2ui": [
{}
],
"decision": {
"note": "<string>",
"at": "2023-11-07T05:31:56Z"
}
},
"question": {
"question_id": "qst_…",
"task_id": "<string>",
"question": "<string>",
"options": [
"<string>"
],
"surface_id": "<string>",
"a2ui": [
{}
],
"answer": {
"text": "<string>",
"at": "2023-11-07T05:31:56Z"
}
},
"escalation": {
"object": "escalation",
"id": "<string>",
"agent_id": "<string>",
"summary": "<string>",
"count": 123,
"procedure": {
"id": "<string>",
"title": "<string>",
"revision": 123
},
"failed_at": "<string>",
"proposal": {
"base_revision": 123,
"body": "<string>"
},
"owner": "<string>",
"details": "<string>",
"tasks": [
"<string>"
],
"conversation_id": "<string>",
"request_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_seen_at": "2023-11-07T05:31:56Z",
"resolved_at": "2023-11-07T05:31:56Z",
"resolved_by": {
"type": "<string>",
"email": "<string>",
"key_id": "<string>"
},
"resolved_revision": 123,
"delivery": {
"emailed_at": "2023-11-07T05:31:56Z",
"channels": [
{
"channel": "<string>"
}
],
"webhook": true
},
"question": "<string>",
"on_hold": 123,
"waiting": [
{
"conversation_id": "<string>",
"question": "<string>",
"at": "2023-11-07T05:31:56Z",
"delivered_at": "2023-11-07T05:31:56Z",
"holding_since": "2023-11-07T05:31:56Z"
}
],
"answer": {
"text": "<string>",
"at": "2023-11-07T05:31:56Z",
"learn": true,
"procedure_id": "<string>",
"delivered_at": "2023-11-07T05:31:56Z",
"failed": true
},
"messages": 123
}
}
}Authorizations
Body
application/json
Available options:
session.connected, session.disconnected, task.started, task.completed, task.failed, task.stopped, test_run.completed, start_state.ready, start_state.failed, conversation.approval_required, conversation.approval_decided, conversation.question_asked, conversation.question_answered, conversation.ended, escalation.created, escalation.updated, escalation.resolved, schedule.run_completed, schedule.run_failed Response
200
Received.