Test a webhook URL
const url = 'https://smtp-app.kirim.email/api/domains/example.com/webhooks/test';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"url":"https://example.com/webhook","event_type":"queued"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://smtp-app.kirim.email/api/domains/example.com/webhooks/test \ --header 'Content-Type: application/json' \ --data '{ "url": "https://example.com/webhook", "event_type": "queued" }'Send a test webhook event to the specified URL to verify it can receive webhook notifications
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
example.comDomain name that must be owned by the authenticated user
Request Bodyrequired
Section titled “Request Bodyrequired”Test webhook parameters
object
URL endpoint to test
Example
https://example.com/webhookEvent type to use for the test
Example
deliveredResponses
Section titled “Responses”Webhook test completed successfully
object
Indicates the webhook test was successful
Human-readable result message
Test result details
object
The tested webhook URL
The event type used for testing
HTTP status code received from webhook URL
Response time in milliseconds
Example
{ "success": true, "message": "Webhook test completed successfully", "data": { "url": "https://example.com/webhook", "event_type": "delivered", "response_status": 200, "response_time": 150 }}Unauthorized - Invalid or missing authentication credentials
object
Example
{ "success": false, "message": "Unauthorized"}Not Found - Domain or webhook not found
object
Example
{ "success": false, "message": "Domain not found or you do not own this domain"}Validation Error - Invalid input data
object
Field-specific validation errors
object
Example
{ "success": false, "message": "Validation failed."}Webhook test failed - URL did not respond correctly
object
Indicates the webhook test failed
Human-readable error message
Test result details
object
The tested webhook URL
The event type used for testing
HTTP status code received from webhook URL
Response time in milliseconds
Example
{ "success": false, "message": "Webhook URL did not respond correctly", "data": { "url": "https://example.com/webhook", "event_type": "delivered", "response_status": 404, "response_time": 0 }}Too Many Requests - Rate limit exceeded. Retry after the specified time.
object
Example
{ "success": false, "message": "Too many attempts. Please try again later."}Headers
Section titled “Headers”Seconds until rate limit resets
Maximum requests per minute
Remaining requests in current window
Server Error - Unexpected error occurred
object
Example
{ "success": false, "message": "An error occurred while processing the request."}