API Reference
Complete API documentation for filepath.
Interactive Documentation
Core Endpoints
POST
/api/auth/sign-up/emailCreate new account
POST
/api/auth/sign-in/emailSign in to existing account
GET
/api/sessionsList all sessions
POST
/api/sessionsCreate new session
GET
/api/sessions/{id}Get session details
GET
/api/sessions/{id}/nodesList all nodes in session
POST
/api/sessions/{id}/nodesSpawn new agent node
GET
/api/sessions/{id}/treeGet hierarchical tree structure
GET
/api/user/keysGet masked API keys
POST
/api/user/keysStore encrypted API key
GET
/api/modelsList available LLM models
GET
/api/configGet environment config (WebSocket URL)
WebSocket Endpoint
wss://api.myfilepath.com/agents/chat-agent/{nodeId} Real-time chat with agent. Uses Cloudflare AIChatAgent protocol.
Authentication
- Session Cookie — Standard browser auth (Better Auth)
- API Key —
x-api-keyheader for programmatic access - Bearer Token — JWT in
Authorization: Bearer ...header