Get webhooks for a domain
const url = 'https://smtp-app.kirim.email/api/domains/example.com/webhooks?type=queued';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://smtp-app.kirim.email/api/domains/example.com/webhooks?type=queued'Retrieve a list of webhook configurations for the specified domain owned by the authenticated user
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
Query Parameters
Section titled “Query Parameters”Example
deliveredFilter webhooks by event type
Responses
Section titled “Responses”Successfully retrieved webhook list for the domain
object
Indicates the request was successful
Array of webhook configurations
Webhook configuration for email event notifications
object
Unique identifier for the webhook
GUID of the user who owns the webhook
GUID of the domain associated with the webhook
GUID of the SMTP configuration
Event type that triggers the webhook
URL endpoint where webhook events will be sent
Whether the webhook has been deleted
Unix timestamp when the webhook was created
Unix timestamp when the webhook was last modified
Number of webhooks returned
Example
{ "success": true, "data": [ { "webhook_guid": "550e8400-e29b-41d4-a716-446655440000", "user_guid": "user-guid-123", "user_domain_guid": "domain-guid-456", "user_smtp_guid": "smtp-guid-789", "type": "queued", "url": "https://example.com/webhook", "is_deleted": false, "created_at": 1640995200, "modified_at": 1640995200 } ], "count": 5}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."}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."}