Skip to main content
DELETE
/
events
/
eventName
/
{eventName}
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.

Soft-deletes an event definition. Existing event logs recorded for this name are retained for analytics, but no new events can be sent 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"
  }
}

Authorizations

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

Path Parameters

eventName
string
required
Name of the event to delete.Example: "order_completed"

Response

Event deleted successfully
success
boolean
Example: true
data
object
The deleted event definition.

Error Responses

404 - Event not found
object
{
  "success": false,
  "error": {
    "message": "Event not found",
    "code": "EVENT_NOT_FOUND"
  }
}