webhooks
Test Webhook
Changed onSend a test webhook to verify the endpoint is working.
Sends a synthetic agent.message payload (flagged "test": true) through the real delivery path to the configured URL. The optional JSON body overrides from, to, message and channel so a handler can be exercised with the numbers it actually routes on. Pass ?agentId=... to control which agent appears in the payload; otherwise the first agent in the account is used.
post/v1/webhooks/test
Request
- Base URLhttps://api.agentphone.ai
- URLhttps://api.agentphone.ai/v1/webhooks/test
- AuthHTTP bearer
Query parameters
agentIdstring nullable
Agent ID to include in the test payload
Request body
Response
Successful Response
unknown required
Changes
- info
added optional request body
- info