Legal / LGPD API π‘ BETA
The legal family holds the routes mounted for legal and data-protection records.
Endpoints
Exact lines from the Generated api-legal reference; the generated page is the full table.
| Method | Path |
|---|---|
| POST | /api/legal/consent |
| GET | /api/legal/consent/:param |
| GET | /api/legal/consent/session |
| GET | /api/legal/cookies/policy |
| GET | /api/legal/documents |
| GET | /api/legal/documents/:param |
| POST | /api/legal/gdpr/delete/:param |
| POST | /api/legal/gdpr/export/:param |
Example
Minimal HTTP exchange for the first verified route (schemas are not modeled in the generated reference).
POST /api/legal/consent HTTP/1.1
Host: localhost:8080
Authorization: Bearer <token>
HTTP/1.1 200 OK
What it does
| Capability | Verified endpoint | Registered in |
|---|---|---|
| Legal consent | POST /api/legal/consent |
botserver/crates/botlegal/src/handle_request_data_deletion.rs |
| Legal consent | GET /api/legal/consent/:param |
botserver/crates/botlegal/src/handle_request_data_deletion.rs |
| Consent session | GET /api/legal/consent/session |
botserver/crates/botlegal/src/handle_request_data_deletion.rs |
| Cookies policy | GET /api/legal/cookies/policy |
botserver/crates/botlegal/src/handle_request_data_deletion.rs |
| Legal documents | GET /api/legal/documents |
botserver/crates/botlegal/src/handle_request_data_deletion.rs |
| Legal documents | GET /api/legal/documents/:param |
botserver/crates/botlegal/src/handle_request_data_deletion.rs |
| Delete gdpr | POST /api/legal/gdpr/delete/:param |
botserver/crates/botlegal/src/handle_request_data_deletion.rs |
| Export gdpr | POST /api/legal/gdpr/export/:param |
botserver/crates/botlegal/src/handle_request_data_deletion.rs |
Limits
- The Generated api-legal 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-legal reference - Full verified route table.
- Compliance API
- Security API
- Admin API