Files
dashback/docs/api/routes/subagentschedule.get.md
2026-10-17 02:59:35 +02:00

43 lines
800 B
Markdown

# `GET /subagentschedule`
Protected. Requires a valid session cookie (`credentials: 'include'`).
List subagent schedules
Lists all subagent schedules for the selected company.
## Response `200`
List of subagent schedules
```json
{
"schedules": [
{
"id": 1,
"company_id": 1,
"desc": "…",
"prompt": "…",
"skills": "…",
"lastagentnote": "…",
"max_itr": 1,
"cron": "…",
"created_at": "…",
"lastrun_at": "…"
}
]
}
```
## Errors
| Status | Description |
|--------|-------------|
| 400 | No company selected — `{"error":"…"}` |
| 401 | Unauthorized — `{"error":"…"}` |
| 403 | Not authorized — `{"error":"…"}` |
---
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._