Email API π‘ BETA
The email family holds the routes mounted for accounts, messages and folders.
Endpoints
Exact lines from the Generated api-email reference; the generated page is the full table.
| Method | Path |
|---|---|
| GET | /api/email/accounts |
| DELETE | /api/email/accounts/:param |
| POST | /api/email/accounts/add |
| POST | /api/email/bulk/add-label |
| POST | /api/email/bulk/archive |
| POST | /api/email/bulk/delete |
| POST | /api/email/bulk/mark-read |
| GET | /api/email/campaign/:param |
Example
Minimal HTTP exchange for the first verified route (schemas are not modeled in the generated reference).
GET /api/email/accounts HTTP/1.1
Host: localhost:8080
Authorization: Bearer <token>
HTTP/1.1 200 OK
What it does
| Capability | Verified endpoint | Registered in |
|---|---|---|
| Email accounts | GET /api/email/accounts |
botserver/crates/botemail/src/routes.rs |
| Email accounts | DELETE /api/email/accounts/:param |
botserver/crates/botemail/src/routes.rs |
| Accounts add | POST /api/email/accounts/add |
botserver/crates/botemail/src/routes.rs |
| Bulk add label | POST /api/email/bulk/add-label |
botserver/crates/botemail/src/routes.rs |
| Bulk archive | POST /api/email/bulk/archive |
botserver/crates/botemail/src/routes.rs |
| Delete bulk | POST /api/email/bulk/delete |
botserver/crates/botemail/src/routes.rs |
| Bulk mark read | POST /api/email/bulk/mark-read |
botserver/crates/botemail/src/routes.rs |
| Email campaign | GET /api/email/campaign/:param |
botserver/crates/botemail/src/routes.rs |
Limits
- The Generated api-email 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-email reference - Full verified route table.
- SEND MAIL Keyword
- CREATE DRAFT Keyword
- Configuration Parameters