| .. | ||
| assets | ||
| admin-api.md | ||
| ai-api.md | ||
| analytics-api.md | ||
| backup-api.md | ||
| calendar-api.md | ||
| calls-api.md | ||
| compliance-api.md | ||
| conversations-api.md | ||
| document-processing.md | ||
| email-api.md | ||
| examples.md | ||
| files-api.md | ||
| group-membership.md | ||
| groups-api.md | ||
| ml-api.md | ||
| monitoring-api.md | ||
| notifications-api.md | ||
| opensource-components.md | ||
| README.md | ||
| reports-api.md | ||
| security-api.md | ||
| storage-api.md | ||
| tasks-api.md | ||
| user-security.md | ||
| users-api.md | ||
| whiteboard-api.md | ||
Chapter 10: REST API Reference
HTTP API endpoints for integrating with BotServer.
Base URL
http://localhost:8000/api/v1
Authentication
Authorization: Bearer <token>
Core Endpoints
| Endpoint | Method | Description |
|---|---|---|
/chat |
POST | Send message, get response |
/sessions |
GET | List active sessions |
/sessions/:id |
GET | Get session details |
/files |
POST | Upload file |
/files/:id |
GET | Download file |
Quick Example
curl -X POST http://localhost:8000/api/v1/chat \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"message": "Hello", "session_id": "abc123"}'
Response Format
{
"success": true,
"data": { ... },
"error": null
}
Chapter Contents
- Files API - Upload/download
- Document Processing - Text extraction
- Users API - User management
- Groups API - Group management
- Conversations API - Chat sessions
- Calendar API - Scheduling
- Tasks API - Task management
- Storage API - Object storage
- Analytics API - Metrics
- Admin API - Administration
- AI API - LLM endpoints
- Example Integrations - Code samples
See Also
- API and Tooling - Tool definitions
- Authentication - Security