Webhooks

post-conversation

Changed on

Fired after the call ends. Contains the full transcript, call metadata, recording URL, and all agent variables that were in scope during the conversation.

Delivery. Sent as an HTTP POST with a 30 second timeout. Non-2xx responses and network errors mark the delivery as failed; there are no retries. Verify the X-Signature header before trusting the body. For the full field-level reference, see the Webhooks guide.

post/webhook-events/post-conversation

Request

  • Base URL
    https://api.smallest.ai/atoms/v1
  • URL
    https://api.smallest.ai/atoms/v1/webhook-events/post-conversation
  • Auth
    none declared. Required headers: X-Signature

Headers

X-Signaturestring required
Example:b0c3a1e4f2...

Hex-encoded HMAC-SHA256 of the raw request body, keyed by the webhook's signing secret. See the Webhooks guide for verification samples.

Request body

urlstring required

The webhook URL endpoint that received the event.

descriptionstring required

Human-readable label configured on the webhook (e.g. "Debt Collection Agent's Endpoint").

eventstring required

Event identifier in the form {agentId}.{eventType}.

idstring required

Unique webhook delivery ID (separate from metadata.callId).

Example request

{
  "url": "https://example.com/webhook",
  "event": "69fc7dd072a0c1d28d948ace.post-conversation",
  "id": "69fd96118fd277fc807e4c23",
  "metadata": {
    "agentId": "69fc7dd072a0c1d28d948ace",
    "eventType": "post-conversation",
    "conversationType": "telephonyOutbound",
    "callId": "CALL-1778226705739-7e4c17",
    "callData": {
      "fromNumber": "+918035317096",
      "toNumber": "+916296641821",
      "callDuration": 49.350622
    },
    "variables": {
      "agent_name": "Nisha",
      "customer_name": "Rahul Sharma",
      "due_amount": "29000"
    }
  }
}

Response

Your endpoint should return a 2XX status to acknowledge receipt.

Changes

    • breaking

      added the new required header request parameter X-Signature

    • breaking

      removed the enum value busy of the request property ///

    • breaking

      removed the enum value canceled of the request property ///

    • breaking

      removed the enum value no-answer of the request property ///

    • info

      added the new cancelled enum value to the request property ///

    • info

      added the new no_answer enum value to the request property ///