BashBrainTeammatesPricingDevelopersGet a test key

Routines

Jobs Bash runs on a schedule in plain words, or whenever your system calls.

Send Authorization: Bearer vk_test_... on every call. Every route of Routines.

POST/v1/routines/{routine_id}/runRun it now.

Your API key, scope runtime or all. On the card: routines. Every call here is a checked sample.

Request2 fields

Path

routine_idstringrequiredThe routine's id (rtn_...).
Type
string

Headers

Idempotency-KeystringSend the same key to retry this call safely for 24 hours.
Type
string
Answers 2023 fields
object"routine_fire"Always routine_fire.
Type
"routine_fire"
routine_idstringThe routine it runs.
Type
string
status"queued" | "duplicate" | "filtered"queued: it runs now. duplicate: the same run was already asked for, so it runs once. filtered: the payload did not match its filters, so it does not run.
Type
"queued" | "duplicate" | "filtered"
TypeScript
await vestra.routines.run('rtn_5kd');
Python
vestra.routines.run("rtn_5kd")
CLI
vestra routines run rtn_5kd
HTTP
# Run on a schedule. Write it in plain words, read in the user's own time zone. The response gives the cron# expression and the next run.curl "$VESTRA_BASE_URL/v1/routines" \  -H "Authorization: Bearer $VESTRA_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "user_id": "traveller-42",    "ask": "Check my trips for today and tell me about any delay.",    "every": "weekday at 08:00"  }' # Run when your system calls. Post a payload to the routine's trigger_url.curl "$VESTRA_BASE_URL/v1/routines" \  -H "Authorization: Bearer $VESTRA_API_KEY" \  -H "Content-Type: application/json" \  -d '{ "user_id": "traveller-42", "ask": "A train of mine is late. Find me another way.", "on": "call" }' curl "$VESTRA_BASE_URL/v1/routines/rtn_7qp/trigger" \  -H "Authorization: Bearer $VESTRA_API_KEY" \  -H "Content-Type: application/json" \  -d '{ "train": "12127", "delay_minutes": 45 }' # Manage a routine. Pause it (enabled: true resumes it), run it once now, and list the user's routines.curl -X PATCH "$VESTRA_BASE_URL/v1/routines/rtn_5kd" \  -H "Authorization: Bearer $VESTRA_API_KEY" \  -H "Content-Type: application/json" \  -d '{ "enabled": false }' curl -X POST "$VESTRA_BASE_URL/v1/routines/rtn_5kd/run" \  -H "Authorization: Bearer $VESTRA_API_KEY" curl "$VESTRA_BASE_URL/v1/routines?user_id=traveller-42" \  -H "Authorization: Bearer $VESTRA_API_KEY"
MCP
{  "method": "tools/call",  "params": {    "name": "routines_add",    "arguments": {      "user": "traveller-42",      "ask": "Check my trips for today and tell me about any delay.",      "every": "weekday at 08:00",      "timezone": "Asia/Kolkata"    }  }}