Sheets API π‘ BETA
The sheet family holds the routes mounted for spreadsheets, cells and ranges.
Endpoints
Exact lines from the Generated api-sheet reference; the generated page is the full table.
| Method | Path |
|---|---|
| GET | /api/sheet/:param |
| POST | /api/sheet/:param |
| GET | /api/sheet/:param/collaborators |
| POST | /api/sheet/:param/collaborators |
| GET | /api/sheet/:param/ops |
| POST | /api/sheet/:param/ops |
| GET | /api/sheet/:param/presence |
| GET | /api/sheet/:param/selections |
Example
Minimal HTTP exchange for the first verified route (schemas are not modeled in the generated reference).
GET /api/sheet/:param HTTP/1.1
Host: localhost:8080
Authorization: Bearer <token>
HTTP/1.1 200 OK
What it does
| Capability | Verified endpoint | Registered in |
|---|---|---|
| Sheet | GET /api/sheet/:param |
botserver/crates/botsheet/src/routes.rs |
| Sheet | POST /api/sheet/:param |
botserver/crates/botsheet/src/routes.rs |
| Sheet collaborators | GET /api/sheet/:param/collaborators |
botserver/crates/botsheet/src/routes.rs |
| Sheet collaborators | POST /api/sheet/:param/collaborators |
botserver/crates/botsheet/src/routes.rs |
| Sheet ops | GET /api/sheet/:param/ops |
botserver/crates/botsheet/src/routes.rs |
| Sheet ops | POST /api/sheet/:param/ops |
botserver/crates/botsheet/src/routes.rs |
| Sheet presence | GET /api/sheet/:param/presence |
botserver/crates/botsheet/src/routes.rs |
| Sheet selections | GET /api/sheet/:param/selections |
botserver/crates/botsheet/src/routes.rs |
AI Assist
POST /api/sheet/ai is the typed AI entry point for a workbook. Its request body is SheetAiRequest: command describes the requested task, while selection, active_cell and sheet_id carry the current cell context so the model can act on the visible range. The response body is SheetAiResponse with a required response string and optional action and data fields; action is a registered verb such as sheet.formula.set, never a free-form script. The prompt provider is configured with BOT_AI_PROMPT_URL and BOT_AI_PROMPT_MODEL. When either is missing the handler reports not_configured; when the provider fails it returns a typed 503 envelope with error: ai_unavailable. The suite must not fabricate an answer in either case, so the sheet stays unchanged and the caller can retry once the configuration is fixed. Treat the generated action as a proposal that still goes through the normal cell-edit and permission checks before it affects the workbook.
Limits
- The Generated api-sheet reference is authoritative: no endpoint outside its table is inferred here.
- Routes require an authenticated session unless listed in the anonymous allowlist in
botsecurity-auth/src/auth_api/public_routes.rs. - The generated table does not model request or response fields; consult the mounted handler for them.
Related
- Generated api-sheet reference - Full verified route table.
- Sheet Parity Plan
- Sheet - Spreadsheets
- Files API
- CRM API
- Tasks API
- Storage API