API reference · Workflows v1
POST/api/v1/workflows/tasks/{id}/claim

Claim workflow task (route inventory only)

This operation is currently present only in generated route inventory. No corresponding Next.js handler exists under server/src/app/api/v1/workflows in this worktree. Runtime behavior is middleware-dependent: missing/invalid x-api-key can return 401 before routing; with middleware requirements satisfied, Next.js returns not-found for the absent handler. Existing workflow APIs in this codebase are implemented under /api/workflow-definitions, /api/workflow-runs, and /api/workflow/events rather than /api/v1/workflows paths.

Response body

Success response 401 · schema WorkflowV1MissingApiError

errorobjectRequired
codestringRequired
messagestringRequired
detailsany

Response codes

401
x-api-key missing/invalid at middleware.
404
No route handler exists for this inventory-only /api/v1/workflows path.