systemprompt-api 0.15.0

Axum-based HTTP server and API gateway for systemprompt.io AI governance infrastructure. Exposes governed agents, MCP, A2A, and admin endpoints with rate limiting and RBAC.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Self-service user account routes scoped to the authenticated caller.
//!
//! Hosts the `/me` endpoints, including session revocation in [`sessions`].

pub mod sessions;

use axum::Router;
use axum::routing::post;
use systemprompt_runtime::AppContext;

pub fn router(ctx: &AppContext) -> Router {
    Router::new()
        .route("/me/sessions/revoke_all", post(sessions::revoke_all_mine))
        .with_state(ctx.clone())
}