ApiSessions
Clean up expired sessions
Soft delete all expired sessions. Requires admin role. This is an API-only endpoint for programmatic access — no frontend UI currently consumes it.
Authorization
User API Key AuthorizationBearer <token>
User API key (mgw_usr_live_* or mgw_usr_test_*)
In: header
Cookie Parameters
access_token?|
Response Body
application/json
application/json
curl -X POST "https://loading/api/v1/sessions/cleanup"{
"property1": 0,
"property2": 0
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Handle server OAuth callback
Process the OAuth provider redirect after user authorization. Exchanges the code for tokens, encrypts them, and stores a user connection.
Create session
Create a new MCP connection session for a server or bundle. Requires either server_id or bundle_id (not both). This is an API-only endpoint for programmatic access — no frontend UI currently consumes it.
