SnozeDevelopers
API referenceAutomations

Delete a saved automation template

Deletes one of the workspace's own automation templates. Requires the `automations:write` permission; the built-in templates are not workspace rows and cannot be deleted, and an unknown template id is rejected with a validation error. Send an `Idempotency-Key` header to make retries safe; a replay within the window returns the original response.

DELETE
/v1/workspaces/{workspaceId}/automation-templates/{templateId}

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

Path Parameters

workspaceId*string
templateId*string

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X DELETE 'https://api.snoze.dev/v1/workspaces/string/automation-templates/string'
Example Response
{  "data": {    "id": "string"  }}