curl -X POST https://agentgate.mynewapi.com/v1/webhooks/wh_abc123/test \
-H "Authorization: Bearer YOUR_API_KEY"
{
"success": true,
"statusCode": 200,
"responseTime": 150
}
{
"success": false,
"statusCode": 500,
"responseTime": 1200,
"error": "Endpoint returned 500 Internal Server Error"
}
Webhooks
Test Webhook
Send a test event to verify webhook configuration
POST
/
v1
/
webhooks
/
{id}
/
test
curl -X POST https://agentgate.mynewapi.com/v1/webhooks/wh_abc123/test \
-H "Authorization: Bearer YOUR_API_KEY"
{
"success": true,
"statusCode": 200,
"responseTime": 150
}
{
"success": false,
"statusCode": 500,
"responseTime": 1200,
"error": "Endpoint returned 500 Internal Server Error"
}
string
required
Webhook ID to test.
boolean
Whether the test delivery succeeded.
integer
HTTP status code returned by your endpoint.
integer
Response time in milliseconds.
string
Error message if delivery failed.
curl -X POST https://agentgate.mynewapi.com/v1/webhooks/wh_abc123/test \
-H "Authorization: Bearer YOUR_API_KEY"
{
"success": true,
"statusCode": 200,
"responseTime": 150
}
{
"success": false,
"statusCode": 500,
"responseTime": 1200,
"error": "Endpoint returned 500 Internal Server Error"
}