Skip to content

Organizations API 🟑 BETA

The organizations family holds the routes mounted for organization scope, settings and stats.

Developer guide map

Endpoints

Exact lines from the Generated api-organizations reference; the generated page is the full table.

Method Path
GET /api/organizations
POST /api/organizations
DELETE /api/organizations/current
GET /api/organizations/current
POST /api/organizations/current
PUT /api/organizations/current
GET /api/organizations/current/audit
POST /api/organizations/current/audit

Example

Minimal HTTP exchange for the first verified route (schemas are not modeled in the generated reference).

GET /api/organizations HTTP/1.1
Host: localhost:8080
Authorization: Bearer <token>
HTTP/1.1 200 OK

What it does

Capability Verified endpoint Registered in
Organizations GET /api/organizations botserver/src/main_module/routes/api_setup.rs
Organizations POST /api/organizations botserver/src/main_module/routes/api_setup.rs
Organizations current DELETE /api/organizations/current botserver/src/main_module/routes/api_setup.rs
Organizations current GET /api/organizations/current botserver/src/main_module/routes/api_setup.rs
Organizations current POST /api/organizations/current botserver/src/main_module/routes/api_setup.rs
Organizations current PUT /api/organizations/current botserver/src/main_module/routes/api_setup.rs
Current audit GET /api/organizations/current/audit botserver/src/main_module/routes/api_setup.rs
Current audit POST /api/organizations/current/audit botserver/src/main_module/routes/api_setup.rs

Limits

  • The Generated api-organizations 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.