Webhook Testing
2 API calls in this section.
Test Webhook URL
/webhooks/test?language=enTests if a webhook URL is valid and reachable. The endpoint must return a 2xx status code to be considered valid. You can provide optional secret_header_key and secret_header_value to test authentication.
1curl --request POST "$ONDI_BASE_URL/webhooks/test?language=en" \2 --header "Authorization: Bearer {{access_token}}" \3 --header "Content-Type: application/json" \4 --data '{5 "webhook_url": "https://example.com/webhook",6 "secret_header_key": "X-Webhook-Secret",7 "secret_header_value": "your-secret-value-here"8}'1{2 "webhook_url": "https://example.com/webhook",3 "secret_header_key": "X-Webhook-Secret",4 "secret_header_value": "your-secret-value-here"5}Query parameters
languageOptionalen
Response language
Request body fields
webhook_urlExampleExample field from the request body.
secret_header_keyExampleExample field from the request body.
secret_header_valueExampleExample field from the request body.
Headers
AuthorizationOptionalBearer {{access_token}}
Responses
No response example is available for this endpoint yet.
Receive Test Webhook
/webhooks/receive-testThis is a test webhook receiver endpoint for development. It logs the received webhook payload and headers, then returns a success response. Use this URL ({{base_url}}/webhooks/receive-test) as the webhook_url when testing webhook subscriptions.
1curl --request POST "$ONDI_BASE_URL/webhooks/receive-test" \2 --header "X-Test-Header: test-value" \3 --header "Content-Type: application/json" \4 --header "Content-Type: application/json" \5 --data '{6 "event": "test.event",7 "timestamp": "{{$isoTimestamp}}",8 "data": {9 "id": "123456",10 "status": "completed",11 "test": true12 }13}'1{2 "event": "test.event",3 "timestamp": "{{$isoTimestamp}}",4 "data": {5 "id": "123456",6 "status": "completed",7 "test": true8 }9}Request body fields
eventExampleExample field from the request body.
timestampExampleExample field from the request body.
dataExampleExample field from the request body.
data.idExampleExample field from the request body.
data.statusExampleExample field from the request body.
data.testExampleExample field from the request body.
Headers
X-Test-HeaderOptionaltest-value
Content-TypeOptionalapplication/json