botbook/src/10-rest
2026-01-08 13:16:04 -03:00
..
assets Update: General project updates 2025-12-06 11:09:12 -03:00
admin-api.md Update botbook 2025-12-21 23:40:39 -03:00
ai-api.md Update botbook 2025-12-21 23:40:39 -03:00
analytics-api.md Update botbook 2025-12-21 23:40:39 -03:00
backup-api.md Update botbook 2025-12-21 23:40:39 -03:00
calendar-api.md Lowercase botserver/botbook references, add bottemplates repo, update autonomous tasks docs 2025-12-12 23:18:36 -03:00
calls-api.md Lowercase botserver/botbook references, add bottemplates repo, update autonomous tasks docs 2025-12-12 23:18:36 -03:00
compliance-api.md Update botbook 2025-12-21 23:40:39 -03:00
conversations-api.md Update: General project updates 2025-12-06 11:09:12 -03:00
document-processing.md Lowercase botserver/botbook references, add bottemplates repo, update autonomous tasks docs 2025-12-12 23:18:36 -03:00
email-api.md Update: General project updates 2025-12-06 11:09:12 -03:00
examples.md Lowercase botserver/botbook references, add bottemplates repo, update autonomous tasks docs 2025-12-12 23:18:36 -03:00
files-api.md Add documentation for dashboards, auth RBAC, white-label, security, and channel features 2026-01-08 13:16:04 -03:00
group-membership.md Lowercase botserver/botbook references, add bottemplates repo, update autonomous tasks docs 2025-12-12 23:18:36 -03:00
groups-api.md Lowercase botserver/botbook references, add bottemplates repo, update autonomous tasks docs 2025-12-12 23:18:36 -03:00
ml-api.md Update botbook 2025-12-21 23:40:39 -03:00
monitoring-api.md Update botbook 2025-12-21 23:40:39 -03:00
notifications-api.md Lowercase botserver/botbook references, add bottemplates repo, update autonomous tasks docs 2025-12-12 23:18:36 -03:00
opensource-components.md Update: General project updates 2025-12-06 11:09:12 -03:00
README.md Lowercase botserver/botbook references, add bottemplates repo, update autonomous tasks docs 2025-12-12 23:18:36 -03:00
reports-api.md Update botbook 2025-12-21 23:40:39 -03:00
security-api.md Update botbook 2025-12-21 23:40:39 -03:00
storage-api.md Update botbook 2025-12-21 23:40:39 -03:00
tasks-api.md Lowercase botserver/botbook references, add bottemplates repo, update autonomous tasks docs 2025-12-12 23:18:36 -03:00
user-security.md Lowercase botserver/botbook references, add bottemplates repo, update autonomous tasks docs 2025-12-12 23:18:36 -03:00
users-api.md Lowercase botserver/botbook references, add bottemplates repo, update autonomous tasks docs 2025-12-12 23:18:36 -03:00
whiteboard-api.md Lowercase botserver/botbook references, add bottemplates repo, update autonomous tasks docs 2025-12-12 23:18:36 -03:00

Chapter 10: REST Endpoints

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