Agents

Test Custom Function Webhook

Probe a custom-function webhook URL and report what came back.

Same safety rails as the voice-agent runtime path:

  • https only
  • SSRF guard
  • 8s timeout
  • body truncated to 1500 chars
post/v1/agents/{agent_id}/test-function

Request

  • Base URL: https://api.call2me.app
  • URL: https://api.call2me.app/v1/agents/{agent_id}/test-function
  • Auth: HTTP bearer

Path parameters

agent_idstring required

Request body

urlstring required
methodstring
headersobject nullable
sample_argsobject nullable

Response

Successful Response

okboolean required
status_codeinteger nullable
elapsed_msinteger
body_previewstring
errorstring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.