Skip to content

Delete a webhook

DELETE
/api/domains/{domain}/webhooks/{webhookGuid}
curl --request DELETE \
--url https://smtp-app.kirim.email/api/domains/example.com/webhooks/550e8400-e29b-41d4-a716-446655440000

Remove a webhook configuration from the specified domain owned by the authenticated user

domain
required
string
Example
example.com

Domain name that must be owned by the authenticated user

webhookGuid
required
string format: uuid
Example
550e8400-e29b-41d4-a716-446655440000

Unique identifier (GUID) of the webhook to delete

Webhook deleted successfully

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."
}
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."
}