Delete a webhook
DELETE
/api/domains/{domain}/webhooks/{webhookGuid}
const url = 'https://smtp-app.kirim.email/api/domains/example.com/webhooks/550e8400-e29b-41d4-a716-446655440000';const options = {method: 'DELETE'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://smtp-app.kirim.email/api/domains/example.com/webhooks/550e8400-e29b-41d4-a716-446655440000Remove a webhook configuration from the specified domain owned by the authenticated user
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”domain
required
string
Example
example.comDomain name that must be owned by the authenticated user
webhookGuid
required
string format: uuid
Example
550e8400-e29b-41d4-a716-446655440000Unique identifier (GUID) of the webhook to delete
Responses
Section titled “Responses”Webhook deleted successfully
Headers
Section titled “Headers”X-RateLimit-Limit
integer
Maximum requests per minute
X-RateLimit-Remaining
integer
Remaining requests in current window
Unauthorized - Invalid or missing authentication credentials
Media typeapplication/json
object
success
boolean
message
string
Example
{ "success": false, "message": "Unauthorized"}Not Found - Domain or webhook not found
Media typeapplication/json
object
success
boolean
message
string
Example
{ "success": false, "message": "Domain not found or you do not own this domain"}Validation Error - Invalid input data
Media typeapplication/json
object
success
boolean
message
string
errors
Field-specific validation errors
object
Example
{ "success": false, "message": "Validation failed."}Too Many Requests - Rate limit exceeded. Retry after the specified time.
Media typeapplication/json
object
success
boolean
message
string
Example
{ "success": false, "message": "Too many attempts. Please try again later."}Headers
Section titled “Headers”Retry-After
integer
Seconds until rate limit resets
X-RateLimit-Limit
integer
Maximum requests per minute
X-RateLimit-Remaining
integer
Remaining requests in current window
Server Error - Unexpected error occurred
Media typeapplication/json
object
success
boolean
message
string
Example
{ "success": false, "message": "An error occurred while processing the request."}