Skip to main content
DELETE
/
automations
/
{id}
curl --request DELETE \
  --url https://api.autosend.com/v1/automations/60d5ec49f1b2c72d9c8b9abc \
  --header 'Authorization: Bearer AS_your-project-api-key'
{
  "success": true,
  "message": "Workflow automation deleted successfully"
}

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 a workflow automation. In-flight executions are stopped and no new contacts will enter the workflow.
curl --request DELETE \
  --url https://api.autosend.com/v1/automations/60d5ec49f1b2c72d9c8b9abc \
  --header 'Authorization: Bearer AS_your-project-api-key'
{
  "success": true,
  "message": "Workflow automation deleted successfully"
}

Authorizations

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

Path Parameters

id
string
required
Workflow automation ID (MongoDB ObjectId).

Response

Workflow automation deleted successfully
success
boolean
Example: true
message
string
Confirmation message

Error Responses

404 - Workflow not found
object
{
  "success": false,
  "error": {
    "message": "Workflow automation not found",
    "code": "WORKFLOW_NOT_FOUND"
  }
}