API reference · Routines
Resume a routine
POST
/api/v1/routines/{routine}/resumeStarts a paused routine again. The answer says when it runs next. Needs an API key. Terminal and routines open with RoBot: on an account RoBot isn’t open on yet, the answer is permission_denied.
This endpoint needs an API key. See Authentication.
Parameters
routinestringRequiredPath- The routine’s ID (12 characters), from Create a routine or List your routines.
Example
curl -X POST https://roterminal.co/api/v1/routines/a1b2c3d4e5f6/resume \
-H "Authorization: Bearer $ROTERMINAL_API_KEY"import RoTerminal from 'roterminal'
const rt = new RoTerminal({ apiKey: process.env.ROTERMINAL_API_KEY })
const { data } = await rt.routines.resume('a1b2c3d4e5f6')from roterminal import RoTerminal
rt = RoTerminal() # reads ROTERMINAL_API_KEY
data = rt.routines.resume("a1b2c3d4e5f6")["data"]Response
Every response is { data, link, as_of }. The fields of data are below.
Fields
The fields in data. A field with nothing to say is left out.
idstring- Its ID (12 characters).
namestring- Its name.
kindstringscheduleortrigger.whenstring- When it runs, in words.
onboolean- False while it’s paused.
nextstring- When it runs next (New York time), in words.
delivers_tolist of strings- Where its note goes:
bell,discord,email. runsinteger- How many times it has run.
last_runstring or null- When it last ran, or null.
questionstring- What RoBot is asked on each run.
notestring- What was done, in a sentence.