Related guides
Endpoints
Next steps
- API overview: base URLs, authentication, and pagination
- Errors: status codes and the error format
- Editions: which endpoints each edition serves
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Create, update, pause, and run cron schedules for hosted agents with the OneCLI API. Each run sends a prompt to the agent.
| Endpoint | Method and path | What it does |
|---|---|---|
| List an agent’s schedules | GET /agents/{agentId}/crons | List every cron schedule on a hosted agent, with its prompt, cron expression, and next run time. |
| Create a schedule | POST /agents/{agentId}/crons | Create a cron schedule that sends a prompt to a hosted agent on a recurring basis, such as a daily report or nightly check. |
| Update, pause, or resume a schedule | PATCH /agents/{agentId}/crons/{cronId} | Change a schedule’s prompt or cron expression, or pause and resume it without deleting it. |
| Delete a schedule | DELETE /agents/{agentId}/crons/{cronId} | Permanently delete a cron schedule from a hosted agent. |
| Run a schedule now | POST /agents/{agentId}/crons/{cronId}/run | Trigger a schedule immediately instead of waiting for its next cron time. |