agent-webhooks

Test Agent Webhook

Changed on

Send a test webhook to the agent's webhook endpoint.

Same optional overrides as POST /v1/webhooks/test.

post/v1/agents/{agent_id}/webhook/test

Request

  • Base URL
    https://api.agentphone.ai
  • URL
    https://api.agentphone.ai/v1/agents/{agent_id}/webhook/test
  • Auth
    HTTP bearer

Path parameters

agent_idstring required

Request body

fromstring nullable

Sender number, E.164

tostring nullable

Recipient number, E.164

messagestring nullable

Message text

channel'sms' | 'imessage' | 'mms' | 'whatsapp' | 'rcs' nullable

Channel to report in the payload (default sms)

Response

Successful Response

unknown required

Changes