Slides API π‘ BETA
The slides family holds the routes mounted for presentations and media.
Endpoints
Exact lines from the Generated api-slides reference; the generated page is the full table.
| Method | Path |
|---|---|
| GET | /api/slides/:param |
| POST | /api/slides/:param |
| GET | /api/slides/:param/collaborators |
| POST | /api/slides/:param/collaborators |
| GET | /api/slides/:param/presence |
| GET | /api/slides/:param/presenter-control |
| GET | /api/slides/:param/questions |
| GET | /api/slides/:param/selections |
Example
Minimal HTTP exchange for the first verified route (schemas are not modeled in the generated reference).
GET /api/slides/:param HTTP/1.1
Host: localhost:8080
Authorization: Bearer <token>
HTTP/1.1 200 OK
What it does
| Capability | Verified endpoint | Registered in |
|---|---|---|
| Slides | GET /api/slides/:param |
botserver/crates/botslides/src/routes.rs |
| Slides | POST /api/slides/:param |
botserver/crates/botslides/src/routes.rs |
| Slides collaborators | GET /api/slides/:param/collaborators |
botserver/crates/botslides/src/routes.rs |
| Slides collaborators | POST /api/slides/:param/collaborators |
botserver/crates/botslides/src/routes.rs |
| Slides presence | GET /api/slides/:param/presence |
botserver/crates/botslides/src/routes.rs |
| Slides presenter control | GET /api/slides/:param/presenter-control |
botserver/crates/botslides/src/routes.rs |
| Slides questions | GET /api/slides/:param/questions |
botserver/crates/botslides/src/routes.rs |
| Slides selections | GET /api/slides/:param/selections |
botserver/crates/botslides/src/routes.rs |
AI Assistant
POST /api/slides/ai is the typed AI entry point for a presentation. Its request body is SlidesAiRequest: command (the UI's modal posts the same value under the prompt alias), plus optional slide_index and presentation_id that scope the generated action to one slide or one deck. The response body is SlidesAiResponse with a required response string and optional action and data fields; action names a registered verb such as slides.slide.add, never an arbitrary snippet of JavaScript. The handler builds its provider from LLM_URL, LLM_KEY and LLM_MODEL; a missing configuration is reported as not_configured and a failing provider as a typed 503 envelope with error: ai_unavailable. No canned slide content substitutes for an unavailable model, and the response never invented fields such as a token count or generation duration. Clients should treat a non-2xx AI response as "no change made" and keep the current deck intact; the normal slides routes remain available while the AI provider is down.
Limits
- The Generated api-slides 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-slides reference - Full verified route table.
- Docs API
- Paper API
- Research API