Skip to content

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/v1

In 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

ParameterTypeDescription
project_pathstringOptional. Project directory path for project-scoped resources.
scopestringuser, project, plugin, or managed — depends on the endpoint.

Error Handling

StatusMeaning
200Success
201Resource created
204Deleted (no content)
400Validation error
404Resource not found
500Server 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

ModulePrefixDescription
Config/configConfiguration management
MCP Servers/mcpMCP server management
Commands/commandsSlash commands
Plugins/pluginsPlugin management
Hooks/hooksEvent hooks
Permissions/permissionsAccess control rules
Agents/agentsAgents and skills
Sessions/sessionsSession transcripts
Context/contextContext window analysis
Plans/plansImplementation plans
Output Styles/output-stylesResponse formatting
Status Line/statuslineTerminal status bar
CC Bridge/cc-bridgeLive terminal monitoring
Usage/usageToken usage tracking
Memory/memoryMemory hierarchy
Backup/backupConfiguration backups

Released under the MIT License.