.claude/skills/api-reference/SKILL.md
Full API endpoint reference for SAM. Use when working on API routes, adding endpoints, writing API tests, or understanding the API surface.
npx skillsauth add raphaeltm/simple-agent-manager api-referenceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
POST /api/nodes — Create nodeGET /api/nodes — List user's nodesGET /api/nodes/:id — Get node detailsPOST /api/nodes/:id/stop — Stop nodeDELETE /api/nodes/:id — Delete nodeGET /api/nodes/:id/events — List node events (proxied from VM Agent via control plane)GET /api/nodes/:id/system-info — Full system info (proxied from VM Agent)POST /api/nodes/:id/token — Get node-scoped token for direct VM Agent accessPOST /api/workspaces — Create workspaceGET /api/workspaces — List user's workspacesGET /api/workspaces/:id — Get workspace detailsPATCH /api/workspaces/:id — Rename workspace display namePOST /api/workspaces/:id/stop — Stop a running workspacePOST /api/workspaces/:id/restart — Restart a workspaceDELETE /api/workspaces/:id — Delete a workspacePOST /api/projects — Create projectGET /api/projects — List user's projects (supports limit and cursor)GET /api/projects/:id — Get project detail (includes task status counts and linked workspace count)PATCH /api/projects/:id — Update project metadata (name, description, defaultBranch)DELETE /api/projects/:id — Delete project (cascades project tasks/dependencies/events)POST /api/projects/:projectId/tasks — Create taskGET /api/projects/:projectId/tasks — List tasks (supports status, minPriority, sort, limit, cursor)GET /api/projects/:projectId/tasks/:taskId — Get task detail (includes dependencies + blocked state)PATCH /api/projects/:projectId/tasks/:taskId — Update task fields (title, description, priority, parentTaskId)DELETE /api/projects/:projectId/tasks/:taskId — Delete taskPOST /api/projects/:projectId/tasks/:taskId/status — Transition task statusPOST /api/projects/:projectId/tasks/:taskId/status/callback — Trusted callback status update for delegated tasksPOST /api/projects/:projectId/tasks/:taskId/dependencies — Add dependency edge (dependsOnTaskId)DELETE /api/projects/:projectId/tasks/:taskId/dependencies?dependsOnTaskId=... — Remove dependency edgePOST /api/projects/:projectId/tasks/:taskId/delegate — Delegate ready+unblocked task to owned running workspaceGET /api/projects/:projectId/tasks/:taskId/events — List append-only task status eventsGET /api/workspaces/:id/agent-sessions — List workspace agent sessionsPOST /api/workspaces/:id/agent-sessions — Create agent session (optional worktreePath binds session to a worktree)PATCH /api/workspaces/:id/agent-sessions/:sessionId — Rename agent session labelPOST /api/workspaces/:id/agent-sessions/:sessionId/stop — Stop agent sessionGET /api/agent-settings/:agentType — Get user's agent settingsPUT /api/agent-settings/:agentType — Upsert agent settings (model, permissionMode)DELETE /api/agent-settings/:agentType — Reset agent settings to defaultsPOST /api/nodes/:id/ready — Node Agent ready callbackPOST /api/nodes/:id/heartbeat — Node Agent heartbeat callbackPOST /api/nodes/:id/errors — VM agent error report (batch, logged to CF Workers observability)POST /api/workspaces/:id/ready — Workspace ready callbackPOST /api/workspaces/:id/provisioning-failed — Workspace provisioning failure callback (sets workspace to error)POST /api/workspaces/:id/heartbeat — Workspace activity heartbeat callbackGET /api/workspaces/:id/runtime — Workspace runtime metadata callback (repository/branch for recovery)POST /api/workspaces/:id/boot-log — Workspace boot progress log callbackPOST /api/workspaces/:id/agent-settings — Workspace agent settings callback (model, permissionMode)POST /api/bootstrap/:token — Redeem one-time bootstrap token (credentials + git identity)POST /api/agent/ready — VM agent ready callbackPOST /api/agent/activity — VM agent activity reportPOST /api/terminal/token — Get terminal WebSocket tokenGET /workspaces/:id/worktrees — List git worktrees for the workspacePOST /workspaces/:id/worktrees — Create a git worktreeDELETE /workspaces/:id/worktrees?path=...&force=true|false — Remove a git worktreeGET /workspaces/:id/git/status?worktree=... — Git status (staged, unstaged, untracked files)GET /workspaces/:id/git/diff?path=...&staged=true|false&worktree=... — Unified diff for a single fileGET /workspaces/:id/git/file?path=...&ref=HEAD&worktree=... — Full file contentGET /workspaces/:id/files/list?path=.&worktree=... — Directory listingGET /workspaces/:id/files/find?worktree=... — Recursive flat file indexPOST /api/transcribe — Transcribe audio via Workers AI (Whisper)POST /api/client-errors — Receive batched client-side errors for Workers observability loggingPOST /api/auth/sign-in/social — GitHub OAuth loginGET /api/auth/session — Get current sessionPOST /api/auth/sign-out — Sign outGET /api/credentials — Get user's cloud provider credentialsPOST /api/credentials — Save cloud provider credentialsDELETE /api/credentials/:provider — Delete stored cloud provider credentialGET /api/github/installations — List user's GitHub App installationsGET /api/github/repositories — List accessible repositoriesGET /api/github/branches?repository=owner/repo — List branches for a repositoryAll API errors follow this format:
{
error: "error_code",
message: "Human-readable description"
}
development
Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).
tools
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Codex's capabilities with specialized knowledge, workflows, or tool integrations.
data-ai
Orchestrate multi-step workflows by decomposing into subtasks, dispatching them, and monitoring via foreground polling loops. Prevents session timeout kills during long-running orchestration. Use when coordinating multiple agents or running multi-phase work that takes more than a few minutes.
development
Marketing strategy and positioning. Builds positioning documents, messaging guides, content calendars, channel strategy, and gap analyses. Trigger when asked about positioning, messaging, marketing gaps, content planning, or channel strategy.