A schedule fires a response on its instance at the times you set, with no caller attached. There are no webhooks. You pull results when you want them. A schedule lives on one instance and runs unattended. Each time it fires, it produces a run you can read back later.Documentation Index
Fetch the complete documentation index at: https://agent37.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Endpoints
| Action | Endpoint |
|---|---|
| Create | POST /v1/instances/{id}/schedules |
| List on an instance | GET /v1/instances/{id}/schedules |
| Update | PATCH /v1/schedules/{sid} |
| Delete | DELETE /v1/schedules/{sid} |
| Pause / resume | POST /v1/schedules/{sid}/pause · /resume |
| Run now | POST /v1/schedules/{sid}/run |
| Read results | GET /v1/schedules/{sid}/runs |
Create a schedule
Pass acron expression and the input the agent runs each time it fires.
A cron expression in the standard five-field format (
min hour day month weekday). 0 8 * * * fires daily at 08:00.The message or task the agent runs on each fire. Reference uploaded files by path, same as a normal message.
For a multi-agent template, which agent each run uses. Defaults to the template’s primary.
Up to 16 key/value pairs. Echoed back, never interpreted.
A run
A schedule fires a response, andGET /v1/schedules/{sid}/runs returns one entry per fire.
The id of this run.
The
resp_ id of the response this run produced. Fetch it with GET /v1/responses/{id}.in_progress, then completed, failed, or cancelled.When the run began, in unix seconds.
When the run ended, in unix seconds. Absent while
in_progress.The agent’s final answer for this run.
Token counts and
cost_usd for the run.Daily digest
Create a schedule that fires every morning, then read what it has produced.- Create
- Read results
Runs is a list endpoint: it returns
{ data, has_more, next_cursor }. Page with ?cursor= and ?limit=.Pause, resume, and run now
Pause and resume
Pause and resume
POST /v1/schedules/{sid}/pause stops a schedule from firing without deleting it; POST /v1/schedules/{sid}/resume starts it again on the same cron. Past runs stay readable while paused.Run now
Run now
POST /v1/schedules/{sid}/run fires the schedule immediately, outside its cron, and records a run like any other. Use it to test a new schedule without waiting for the next tick.Next steps
Send a message
The core call a schedule fires, and the response shape it produces.
Instances
Schedules live on an instance that bills compute while it exists.