Get a schedule

Get a single schedule by ID.

GET/api/schedules/{id}

Authorization

better-auth.session_token<token>

Cookie session from Better Auth. Requires X-Org-Id header for org-scoped routes.

In: cookie

Path Parameters

id*string

Header Parameters

X-Org-Id?string

Organization ID. Required for cookie auth. Not needed for API key auth (org resolved from key).

Formatuuid
X-Space-Id?string

Space ID. Required for space-scoped routes (agents, runs, schedules, and space-scoped module routes). Not needed for API key auth (space resolved from key).

curl -X GET "https://your-instance/api/schedules/string"
{
  "id": "sched_cm1abc456def789",
  "packageId": "@acme/email-sorter",
  "userId": "usr_r3t5w8y1z6",
  "endUserId": null,
  "orgId": "org_r3t5w8y1z6",
  "spaceId": "spc_9c1f4a2e-7b30-4d58-9a61-2e5c8f0b3d47",
  "name": "Weekday morning sort",
  "enabled": true,
  "disabled_reason": null,
  "cron_expression": "0 9 * * 1-5",
  "timezone": "Europe/Paris",
  "input": {
    "folder": "inbox",
    "maxEmails": 50
  },
  "generation_config_override": null,
  "model_id_override": null,
  "proxy_id_override": null,
  "version_override": "1.2.0",
  "connection_overrides": null,
  "dependency_overrides": null,
  "last_run_at": "2026-01-15T09:00:00Z",
  "next_run_at": "2026-01-16T09:00:00Z",
  "createdAt": "2026-01-14T14:00:00Z",
  "updatedAt": "2026-01-15T09:00:05Z",
  "actor_name": "Pierre",
  "actor_type": "user",
  "running_runs": 0,
  "unread_count": 2,
  "last_run_number": 12
}
{
  "type": "https://docs.appstrate.dev/errors/unauthorized",
  "title": "Unauthorized",
  "status": 401,
  "detail": "Invalid or missing session",
  "code": "unauthorized",
  "request_id": "req_abc123"
}
{
  "type": "https://docs.appstrate.dev/errors/forbidden",
  "title": "Forbidden",
  "status": 403,
  "detail": "Insufficient permissions",
  "code": "forbidden",
  "request_id": "req_abc123"
}
{
  "type": "https://docs.appstrate.dev/errors/not-found",
  "title": "Not Found",
  "status": 404,
  "detail": "Resource not found",
  "code": "not_found",
  "request_id": "req_abc123"
}