API Overview
Claude Deck exposes a RESTful API under /api/v1/. The frontend communicates with the backend entirely through this API.
Base URL
http://localhost:8000/api/v1In development, the Vite dev server proxies /api requests from port 5173 to the backend at port 8000.
Authentication
None. Claude Deck is a local-only application — no authentication is required.
Request/Response Format
All request and response bodies use JSON. Set Content-Type: application/json for requests with bodies.
Common Query Parameters
| Parameter | Type | Description |
|---|---|---|
project_path | string | Optional. Project directory path for project-scoped resources. |
scope | string | user, project, plugin, or managed — depends on the endpoint. |
Error Handling
| Status | Meaning |
|---|---|
200 | Success |
201 | Resource created |
204 | Deleted (no content) |
400 | Validation error |
404 | Resource not found |
500 | Server error |
Error responses return JSON with a detail field:
json
{
"detail": "Resource not found"
}API Documentation
FastAPI generates interactive API docs at:
- Swagger UI:
http://localhost:8000/docs - ReDoc:
http://localhost:8000/redoc
Route Modules
| Module | Prefix | Description |
|---|---|---|
| Config | /config | Configuration management |
| MCP Servers | /mcp | MCP server management |
| Commands | /commands | Slash commands |
| Plugins | /plugins | Plugin management |
| Hooks | /hooks | Event hooks |
| Permissions | /permissions | Access control rules |
| Agents | /agents | Agents and skills |
| Sessions | /sessions | Session transcripts |
| Context | /context | Context window analysis |
| Plans | /plans | Implementation plans |
| Output Styles | /output-styles | Response formatting |
| Status Line | /statusline | Terminal status bar |
| CC Bridge | /cc-bridge | Live terminal monitoring |
| Usage | /usage | Token usage tracking |
| Memory | /memory | Memory hierarchy |
| Backup | /backup | Configuration backups |
