Skip to main content
DELETE
/
webhooks
/
{id}
curl --request DELETE \
  --url https://api.autosend.com/v1/webhooks/60d5ec49f1b2c72d9c8b1234 \
  --header 'Authorization: Bearer AS_your-api-key'
{
  "success": true,
  "message": "Webhook deleted successfully",
}
This endpoint accepts a project API key (AS_ prefix). The webhook must belong to the authenticated project.
curl --request DELETE \
  --url https://api.autosend.com/v1/webhooks/60d5ec49f1b2c72d9c8b1234 \
  --header 'Authorization: Bearer AS_your-api-key'
{
  "success": true,
  "message": "Webhook deleted successfully",
}

Authorizations

Authorizations
string | header
required
Project API key header of the form Bearer AS_<key>.

Path Parameters

id
string
required
The unique identifier of the webhook to delete.Example: "60d5ec49f1b2c72d9c8b1234"

Response

Webhook deleted successfully (200)
success
boolean
Indicates if the request was successful
message
string
Confirmation messageExample: "Webhook deleted successfully"

Error Responses

404 - Webhook not found
object
Returned when no webhook with the given ID exists in the project.
{
  "success": false,
  "error": {
    "message": "Webhook not found",
    "code": "WEBHOOK_NOT_FOUND",
  }
}