botserver/docs/src/chapter-10-api
2025-12-01 02:22:35 -03:00
..
assets - SVG UI. 2025-12-01 02:22:35 -03:00
admin-api.md - From 8 to 13.5 2025-11-24 13:02:30 -03:00
ai-api.md - From 8 to 13.5 2025-11-24 13:02:30 -03:00
analytics-api.md - From 8 to 13.5 2025-11-24 13:02:30 -03:00
backup-api.md - From 8 to 13.5 2025-11-24 13:02:30 -03:00
calendar-api.md - SVG UI. 2025-12-01 02:22:35 -03:00
calls-api.md - SVG UI. 2025-12-01 02:22:35 -03:00
compliance-api.md - From 8 to 13.5 2025-11-24 13:02:30 -03:00
conversations-api.md Add tar/flate2 deps and document new BASIC keywords 2025-11-30 07:53:58 -03:00
document-processing.md - From 8 to 13.5 2025-11-24 13:02:30 -03:00
email-api.md - SVG UI. 2025-12-01 02:22:35 -03:00
examples.md - From 8 to 13.5 2025-11-24 13:02:30 -03:00
files-api.md - From 8 to 13.5 2025-11-24 13:02:30 -03:00
group-membership.md - From 8 to 13.5 2025-11-24 13:02:30 -03:00
groups-api.md - From 8 to 13.5 2025-11-24 13:02:30 -03:00
ml-api.md - From 8 to 13.5 2025-11-24 13:02:30 -03:00
monitoring-api.md - From 8 to 13.5 2025-11-24 13:02:30 -03:00
notifications-api.md - From 8 to 13.5 2025-11-24 13:02:30 -03:00
opensource-components.md - SVG UI. 2025-12-01 02:22:35 -03:00
README.md - SVG UI. 2025-12-01 02:22:35 -03:00
reports-api.md - From 8 to 13.5 2025-11-24 13:02:30 -03:00
security-api.md - From 8 to 13.5 2025-11-24 13:02:30 -03:00
storage-api.md - From 8 to 13.5 2025-11-24 13:02:30 -03:00
tasks-api.md - From 8 to 13.5 2025-11-24 13:02:30 -03:00
user-security.md - From 8 to 13.5 2025-11-24 13:02:30 -03:00
users-api.md Add tar/flate2 deps and document new BASIC keywords 2025-11-30 07:53:58 -03:00
whiteboard-api.md - SVG UI. 2025-12-01 02:22:35 -03:00

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

See Also