SDK

Ingest a completed AgentPhone call

Changed on

Translates an AgentPhone agent.call_ended webhook from a hosted-mode agent into one Agnost voice conversation. Messages, reactions, number releases, and test events are acknowledged without capture. Live voice turns are rejected because Agnost cannot answer a caller. AgentPhone sends no per-turn timestamps, so turn timing is estimated across the call duration.

post/api/voice/v1/webhooks/agentphone

Request

  • Base URL
    https://api.agnost.ai
  • URL
    https://api.agnost.ai/api/voice/v1/webhooks/agentphone
  • Auth
    none declared

Query parameters

org_idstring uuid required

Your Agnost organization ID.

agent_namestring

Display name for the agent. Defaults to the AgentPhone agentId.

Request body

eventstring required
channelstring
timestampstring date-time
agentIdstring

Example request

{
  "event": "agent.call_ended",
  "channel": "voice"
}

Response

Completed call accepted and translated into a conversation.

status'accepted' required
session_idstring required
user_idstring required
event_countinteger required

Changes