SDK

Ingest a Vapi end-of-call report

Changed on

Translates a Vapi end-of-call-report into one Agnost voice conversation. The Vapi call ID becomes the conversation ID, the caller number becomes the user ID, and each caller/assistant exchange becomes an event. The completed call total is attached to exactly one event so conversation cost aggregation does not multiply it by the turn count.

The caller number may be supplied in either message.call.customer.number or message.customer.number. Transcript content may be supplied in message.artifact.messages, message.artifact.transcript, or message.transcript. Internal function calls found in the artifact are stored as child tool events beneath their synthetic agent tool-call events, including their arguments, results, timing, and success state.

post/api/voice/v1/webhooks/vapi

Request

  • Base URL
    https://api.agnost.ai
  • URL
    https://api.agnost.ai/api/voice/v1/webhooks/vapi
  • Auth
    none declared. Required headers: x-org-id

Headers

x-org-idstring uuid required

Your Agnost organization ID (UUID, case-insensitive).

Request body

Response

Report accepted and translated into a conversation.

status'accepted' required
session_idstring required
user_idstring required
event_countinteger required

Changes