Soft-deletes an event definition. Existing event logs for this name are retained but no new logs can be recorded against it.
curl --request DELETE \
--url https://api.autosend.com/v1/events/eventName/order_completed \
--header 'Authorization: Bearer AS_your-project-api-key'
{
"success": true,
"data": {
"id": "60d5ec49f1b2c72d9c8b1234",
"eventName": "order_completed",
"description": "Fired when a customer completes a checkout",
"properties": [],
"createdAt": "2026-05-08T10:00:00.000Z",
"updatedAt": "2026-05-08T12:00:00.000Z"
}
}
Documentation Index
Fetch the complete documentation index at: https://docs.autosend.com/llms.txt
Use this file to discover all available pages before exploring further.
curl --request DELETE \
--url https://api.autosend.com/v1/events/eventName/order_completed \
--header 'Authorization: Bearer AS_your-project-api-key'
{
"success": true,
"data": {
"id": "60d5ec49f1b2c72d9c8b1234",
"eventName": "order_completed",
"description": "Fired when a customer completes a checkout",
"properties": [],
"createdAt": "2026-05-08T10:00:00.000Z",
"updatedAt": "2026-05-08T12:00:00.000Z"
}
}
AS_<key>."order_completed"true{
"success": false,
"error": {
"message": "Event not found",
"code": "EVENT_NOT_FOUND"
}
}
curl --request DELETE \
--url https://api.autosend.com/v1/events/eventName/order_completed \
--header 'Authorization: Bearer AS_your-project-api-key'
{
"success": true,
"data": {
"id": "60d5ec49f1b2c72d9c8b1234",
"eventName": "order_completed",
"description": "Fired when a customer completes a checkout",
"properties": [],
"createdAt": "2026-05-08T10:00:00.000Z",
"updatedAt": "2026-05-08T12:00:00.000Z"
}
}