Sends a test webhook delivery to verify connectivity and signature verification.
Allows a partner to trigger a test delivery to their configured webhook endpoint. This verifies that the endpoint is reachable, responds within the timeout, and can process the webhook payload correctly.
Use this endpoint to:
- Verify initial webhook integration before going live
- Test connectivity after changing the webhook URL
- Debug delivery issues by triggering a controlled delivery
- Verify signature verification logic is working correctly
- The webhook configuration is validated (must be active with a signing secret)
- A test event payload is constructed and signed with the current webhook_secret
- The payload is delivered via HTTP POST to the configured webhook_url
- The delivery result (status code, response time, any failure) is returned immediately
Requires x-client-id and x-secret-key headers.
- The test delivery uses event_type
webhook.testwhich is not a real event - The test delivery is NOT logged in the delivery history
- The webhook must be active and have a signing secret configured
- Connection timeout: 5 seconds, read timeout: 10 seconds
- Returns the full delivery result synchronously (no retries for test deliveries)
400Webhook is inactive or missing signing secret401Invalid credentials404Webhook not found for the given webhook_id500Internal error during test delivery
POST
curl -i -X POST \
https://sandbox-viablocks.viamericas.io/webhook/test \
-H 'Content-Type: application/json' \
-H 'x-client-id: string' \
-H 'x-secret-key: string' \
-d '{
"webhook_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479"
}'Response
- Test delivery successful
- Test delivery failed (endpoint returned error)
- Test delivery failed (connection timeout)
{ "status": "success", "data": { "test_event_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "delivery_status": "success", "http_status_code": 200, "response_time_ms": 145, "failure_reason": null, "webhook_url": "https://partner.example.com/webhooks/viablocks", "signature_header": "sha256=a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2" } }