Automations API
Every automations call: what to send, what comes back, and copy-ready examples.
On this page
List automations
GET/automationsScope: automations:read
In the address and headers
limitquery, optional- whole number. 1 or more, 100 or less, starts as 50
cursorquery, optional- text. up to 400 letters
curl "https://api.usetotems.com/v1/automations" \
-H "Authorization: Bearer $TOTEMS_KEY"{
"data": [],
"request_id": "req_..."
}Make an automation
POST/automationsScope: automations:write
In the address and headers
Idempotency-Keyheader, optional- text. up to 200 letters
Body
nameneeded- text
triggerneeded- link.clicked, person.created, person.became_hot, form.sent, booking.created, booking.canceled, sale.created, sale.refunded, credit.changed, health.broken, health.fixed
filtersoptional- list of object
actionneeded- webhook, slack, email
urloptional- text
emailoptional- text
curl -X POST "https://api.usetotems.com/v1/automations" \
-H "Authorization: Bearer $TOTEMS_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"name": "Big sales",
"trigger": "sale.created",
"action": "webhook",
"url": "https://example.com/hooks/totems",
"filters": [
{
"field": "amount_cents",
"op": "at_least",
"value": "100000"
}
]
}'{
"data": {
"id": "2aa2d9d5-7c15-4e2b-8d44-5b6a7c8d9e0f",
"name": "Big sales",
"trigger": "sale.created",
"filters": [
{
"op": "at_least",
"field": "amount_cents",
"value": "100000"
}
],
"action": "webhook",
"config": {
"url": "https://example.com/hooks/totems"
},
"enabled": false,
"fails_in_row": 0,
"created_at": "2026-12-03T23:43:26.290Z",
"signing_secret": "whsec_..."
},
"request_id": "req_..."
}One automation
GET/automations/{id}Scope: automations:read
In the address and headers
idin the path, needed- id (UUID)
The example uses a made-up id. Put one of your own in its place.
curl "https://api.usetotems.com/v1/automations/6f1d2c9a-3b47-4c0e-9a55-1f2e3d4c5b6a" \
-H "Authorization: Bearer $TOTEMS_KEY"{
"data": {
"id": "2aa2d9d5-7c15-4e2b-8d44-5b6a7c8d9e0f",
"name": "Big sales",
"trigger": "sale.created",
"filters": [
{
"op": "at_least",
"field": "amount_cents",
"value": "100000"
}
],
"action": "webhook",
"config": {
"url": "https://example.com/hooks/totems"
},
"enabled": false,
"fails_in_row": 0,
"created_at": "2026-12-03T23:43:26.290Z"
},
"request_id": "req_..."
}Edit an automation
PATCH/automations/{id}Scope: automations:write
In the address and headers
idin the path, needed- id (UUID)
Idempotency-Keyheader, optional- text. up to 200 letters
Body
nameoptional- text. up to 100 letters
enabledoptional- true or false
filtersoptional- list of object. up to 10
The example uses a made-up id. Put one of your own in its place.
curl -X PATCH "https://api.usetotems.com/v1/automations/6f1d2c9a-3b47-4c0e-9a55-1f2e3d4c5b6a" \
-H "Authorization: Bearer $TOTEMS_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"name": "Sales over $1,000"
}'{
"data": {
"id": "2aa2d9d5-7c15-4e2b-8d44-5b6a7c8d9e0f",
"name": "Sales over $1,000",
"trigger": "sale.created",
"filters": [
{
"op": "at_least",
"field": "amount_cents",
"value": "100000"
}
],
"action": "webhook",
"config": {
"url": "https://example.com/hooks/totems"
},
"enabled": false,
"fails_in_row": 0,
"created_at": "2026-12-03T23:43:26.290Z"
},
"request_id": "req_..."
}Delete an automation
DELETE/automations/{id}Scope: automations:write
In the address and headers
idin the path, needed- id (UUID)
Idempotency-Keyheader, optional- text. up to 200 letters
The example uses a made-up id. Put one of your own in its place.
curl -X DELETE "https://api.usetotems.com/v1/automations/6f1d2c9a-3b47-4c0e-9a55-1f2e3d4c5b6a" \
-H "Authorization: Bearer $TOTEMS_KEY" \
-H "Idempotency-Key: $(uuidgen)"{
"data": {
"deleted": true
},
"request_id": "req_..."
}Send a test
POST/automations/{id}/testScope: automations:write
In the address and headers
idin the path, needed- id (UUID)
Idempotency-Keyheader, optional- text. up to 200 letters
The example uses a made-up id. Put one of your own in its place.
curl -X POST "https://api.usetotems.com/v1/automations/6f1d2c9a-3b47-4c0e-9a55-1f2e3d4c5b6a/test" \
-H "Authorization: Bearer $TOTEMS_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{}'Answers with status 200. The result sits in data, next to request_id.
Last 100 runs
GET/automations/{id}/runsScope: automations:read
In the address and headers
idin the path, needed- id (UUID)
The example uses a made-up id. Put one of your own in its place.
curl "https://api.usetotems.com/v1/automations/6f1d2c9a-3b47-4c0e-9a55-1f2e3d4c5b6a/runs" \
-H "Authorization: Bearer $TOTEMS_KEY"{
"data": [],
"request_id": "req_..."
}Try a failed run again
POST/automations/runs/{id}/retryScope: automations:write
In the address and headers
idin the path, needed- id (UUID)
Idempotency-Keyheader, optional- text. up to 200 letters
The example uses a made-up id. Put one of your own in its place.
curl -X POST "https://api.usetotems.com/v1/automations/runs/6f1d2c9a-3b47-4c0e-9a55-1f2e3d4c5b6a/retry" \
-H "Authorization: Bearer $TOTEMS_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{}'Answers with status 200. The result sits in data, next to request_id.
Your answer stays in this browser.