v1
latestOpenAPI 3.0.02026-08-04891301.4 MBRetrieve a schedule
Returns a single schedule belonging to the specified agent. Use this endpoint to fetch the current state, next run time, and configuration of an individual schedule.
Requires an app-scoped API key. Both the agent and the schedule must belong to the app identified by the key. Returns 404 if the schedule does not exist or belongs to a different agent.
get/api/v1/agents/{agent}/schedules/{schedule}
Path parameters
agentstring required
Agent ID (agi_...). The agent that owns the schedule.
schedulestring required
Schedule ID (asc_...). The schedule to retrieve.
Response
Successful response
Example response
{
"agent": "agi_0aBcDeFgHiJkLmNoPqRsTu",
"app": "dap_0aBcDeFgHiJkLmNoPqRsTu",
"created_at": "2024-01-01T00:00:00Z",
"cron_expression": "0 9 * * 1",
"id": "asc_0aBcDeFgHiJkLmNoPqRsTu",
"instructions": "Send a daily summary of open support tickets to the team Slack channel.",
"last_run_at": "2024-01-01T00:00:00Z",
"max_runs": 10,
"metadata": {
"key": "value"
},
"next_run_at": "2024-01-01T00:00:00Z",
"run_count": 1,
"schedule_type": "recurring",
"scheduled_at": "2024-01-01T00:00:00Z",
"status": "active",
"thread": "thr_0aBcDeFgHiJkLmNoPqRsTu",
"timezone": "America/New_York",
"updated_at": "2024-01-01T00:00:00Z"
}