API reference / Routines and triggers
List routines
The routines that teammates do by themselves on a schedule, with when each runs next and how the last run went. A routine that starts when something happens is a trigger: GET /triggers.
/api/v1/routinesOther ways to call it
troopy routines listtroopy_list_routinesQuery parameters
agentstringThe teammate's handle, like chief
At most 40 characters
Response
200 · application/jsondata*array<object>18 properties
id*stringA 24-character id
agent*stringname*stringtask*stringdays*array<integer>Days of the week it runs on, 0 is Sunday. Empty for a routine on a cron expression
hour*integerminute*integerevery*integer | nullMinutes between runs within a day; null runs once a day, at hour:minute
cron*string | nullIts cron expression, in its time zone. Then days, hour, minute and every say nothing. Null for a routine with days and a time
timezone*stringnotify*booleanWhether each result is posted to the routine's conversation. A quiet routine keeps its results in its runs only
paused*booleannextRunAt*string | nulllastRunAt*string | nulllastRunId*string | nulllastError*string | nullWhy the last time couldn't start
threadId*string | nullThe conversation each run's answer is posted to
createdAt*stringISO 8601 date and time