API Reference
SynapseX exposes a versioned REST API through the public gateway.| API | Base URL | Interactive Docs |
|---|---|---|
| Public Gateway | https://api.synapsex.ai/v1 | https://api.synapsex.ai/docs |
Authentication
Protected endpoints accept either a bearer token or an API key header.POST /v1/auth/login. API keys are managed through /v1/auth/keys.
Base URL
Key Endpoints
| Method | Path | Description |
|---|---|---|
POST | /auth/login | Login with email and password |
POST | /auth/register | Register a user |
GET | /auth/me | Current user profile |
GET | /auth/keys | List API keys |
POST | /auth/keys | Create an API key |
GET | /agents | List agents |
POST | /agents | Create or spawn an agent, depending on gateway mode |
GET | /agents/{id} | Get agent details |
PUT | /agents/{id} | Update agent metadata on the API Gateway |
DELETE | /agents/{id} | Delete an agent record on the API Gateway |
POST | /agents/{id}/invoke | Invoke an agent |
GET | /agents/{id}/logs | Fetch agent logs |
POST | /agents/{id}/deploy | Deploy an agent |
GET | /mcp/tools | List MCP catalog tools |
GET | /mcp/tools/{name} | Get MCP tool details |
POST | /mcp/tools/execute | Execute an MCP catalog tool |
GET | /models | List available LLM models |
POST | /chat/completions | OpenAI-compatible chat completions |
GET | /billing/{path} | Billing proxy endpoints |
GET | /usage/{path} | Usage proxy endpoints |
Response Format
The API does not use one universal envelope. Responses are endpoint-specific. Agent list endpoints can return a direct JSON array:Streaming
The API Gateway includes WebSocket streaming for agent invocation:status, chunk, and done.
Rate Limits
Rate limits are enforced by the gateway and billing services. Use/v1/billing/* and /v1/usage/* endpoints for plan-specific usage and quota data.