generalbots/botbook/src/08-rest-api-tools
Rodrigo Rodriguez (Pragmatismo) 037db5c381 feat: Major workspace reorganization and documentation update
- Add comprehensive documentation in botbook/ with 12 chapters
- Add botapp/ Tauri desktop application
- Add botdevice/ IoT device support
- Add botlib/ shared library crate
- Add botmodels/ Python ML models service
- Add botplugin/ browser extension
- Add botserver/ reorganized server code
- Add bottemplates/ bot templates
- Add bottest/ integration tests
- Add botui/ web UI server
- Add CI/CD workflows in .forgejo/workflows/
- Add AGENTS.md and PROD.md documentation
- Add dependency management scripts (DEPENDENCIES.sh/ps1)
- Remove legacy src/ structure and migrations
- Clean up temporary and backup files
2026-04-19 08:14:25 -03:00
..
assets feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
admin-api.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
ai-api.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
analytics-api.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
backup-api.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
calendar-api.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
calls-api.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
compilation.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
compliance-api.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
conversations-api.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
document-processing.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
email-api.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
examples.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
external-apis.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
files-api.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
get-integration.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
group-membership.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
groups-api.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
llm-rest-server.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
mcp-format.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
ml-api.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
monitoring-api.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
notifications-api.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
nvidia-gpu-setup.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
openai-format.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
opensource-components.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
param-declaration.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
README.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
reports-api.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
security-api.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
storage-api.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
tasks-api.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
tool-definition.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
user-security.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
users-api.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00
whiteboard-api.md feat: Major workspace reorganization and documentation update 2026-04-19 08:14:25 -03:00

Chapter 8: REST API & Tools

HTTP API endpoints for integrating with botserver.

Overview

botserver exposes REST endpoints organized by functional area. All endpoints follow consistent patterns for authentication, pagination, and error handling.

Base URL

http://localhost:8000/api/v1

Authentication

Authorization: Bearer <token>

API Categories

Category Prefix Description
User APIs /api/user/* Personal settings, profile, preferences
Admin APIs /api/admin/* Organization management (requires admin role)
Files /files/* Drive operations
Chat /chat/* Conversations and messages

User vs Admin Endpoints

The API separates user-level and admin-level operations:

User Endpoints (/api/user/*):

  • Personal profile and settings
  • User's own files and data
  • Individual preferences
  • Accessible by all authenticated users

Admin Endpoints (/api/admin/*):

  • Organization-wide settings
  • User management
  • Group management
  • DNS, billing, audit logs
  • Requires admin role

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