Base URL
Authentication
Agent Chassis supports multiple authentication methods:API Key (Simple)
Include the API key in theX-API-Key header:
CHASSIS_API_KEY in your .env file to enable API key authentication.
JWT Bearer Token (User Auth)
Include the JWT token in theAuthorization header:
- Register:
POST /auth/register - Verify email:
POST /auth/verify-email - Login:
POST /auth/login(returnsaccess_token)
Endpoints
Agent Endpoints
| Method | Endpoint | Description |
|---|---|---|
POST | /agent/completion | Run agent loop with tool calling |
GET | /agent/session/{session_id} | Get session information |
PATCH | /agent/session/{session_id}/access | Update session access settings |
DELETE | /agent/session/{session_id} | Delete a session |
Authentication Endpoints
| Method | Endpoint | Description |
|---|---|---|
POST | /auth/register | Register new user account |
POST | /auth/verify-email | Verify email with code |
POST | /auth/resend-verification | Resend verification email |
POST | /auth/login | Login with email/password |
POST | /auth/refresh | Refresh access token |
POST | /auth/google | Google OAuth login/register |
POST | /auth/password-reset | Request password reset |
POST | /auth/password-reset/confirm | Confirm password reset |
GET | /auth/me | Get current user info |
Health Check
| Method | Endpoint | Description |
|---|---|---|
GET | /health | Health check endpoint |
Response Format
Success Response
All endpoints return JSON:Error Response
Error responses follow this format:200- Success201- Created400- Bad Request (invalid input)401- Unauthorized (missing/invalid auth)403- Forbidden (insufficient permissions)404- Not Found500- Internal Server Error503- Service Unavailable (feature disabled)
Rate Limiting
Login Endpoints
Login endpoints are rate-limited to prevent brute force attacks:- 5 attempts per 15 minutes per IP address
- Exceeded attempts return
429 Too Many Requests
Email Verification
Verification email sending is rate-limited:- 1 email per minute per email address
- Prevents email spam
Request Size Limits
- Message content: Maximum 100,000 characters (~100KB)
- Metadata: Maximum 10KB
- Messages per request: Maximum 100 (client-side mode)
Streaming Responses
For endpoints that support streaming (e.g.,/agent/completion), set "stream": true in the request body. The response will be a text/event-stream with JSON chunks:
OpenAPI Specification
Agent Chassis automatically generates an OpenAPI specification at:Examples
Basic Agent Request
Server-Side Session
User Registration
Next Steps
- Explore individual endpoint documentation in the sidebar
- Read the Authentication Guide for user auth
- Check out Persistence Guide for session management
- See MCP Integration for tool setup