Skip to main content
DELETE
/
v1
/
workflows
/
{id}
Delete Workflow
curl --request DELETE \
  --url https://api.example.com/v1/workflows/{id}

Request

Deleting a workflow removes it from the evaluation path immediately. Historical trigger logs are retained and can still be fetched via GET /v1/workflows/{id}/logs. To pause without deleting, prefer PATCH /v1/workflows/{id} with enabled: false.

Path Parameters

id
string
required
Workflow UUID.

Headers

Authorization: Bearer wbk_your_api_key_here
Idempotency-Key
string
Optional UUID. Repeated DELETEs with the same key return the same result without erroring.

Response

On success returns HTTP 204 No Content. The response carries standard rate-limit headers and X-Request-ID.
curl -X DELETE \
  https://data.leadlex.com/functions/v1/api-gateway/v1/workflows/wf_01HY1 \
  -H "Authorization: Bearer wbk_your_api_key_here" \
  -i

Example Response

HTTP/1.1 204 No Content
X-Request-ID: req_01HY1K0E7V8Q0YXH7DSTX5B3CA

Errors

StatusCodeDescription
401invalid_keyInvalid or expired API key
403insufficient_permissionsMissing write:workflows permission
404not_foundWorkflow not found
429rate_limitedRate limit exceeded