# `GET /subagentschedule/{id}` Protected. Requires a valid session cookie (`credentials: 'include'`). Get subagent schedule by ID Retrieves a single subagent schedule for the selected company. ## Path parameters | Param | Required | Type | Description | |-------|----------|------|-------------| | `id` | yes | integer | Schedule ID | ## Response `200` Subagent schedule details ```json { "schedule": { "id": 1, "company_id": 1, "desc": "…", "prompt": "…", "skills": "…", "lastagentnote": "…", "max_itr": 1, "cron": "…", "created_at": "…", "lastrun_at": "…" } } ``` ## Errors | Status | Description | |--------|-------------| | 400 | Invalid ID or no company selected — `{"error":"…"}` | | 401 | Unauthorized — `{"error":"…"}` | | 403 | Not authorized — `{"error":"…"}` | | 404 | Subagent schedule not found — `{"error":"…"}` | --- _Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._