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.
Authorization
User API Key User API key (mgw_usr_live_* or mgw_usr_test_*)
In: header
Cookie Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://loading/api/v1/sessions" \ -H "Content-Type: application/json" \ -d '{}'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"server_id": "820efca4-4a15-4ab7-82fc-9e76f6d61325",
"bundle_id": "fc6f5a67-caa1-4339-9c14-a67826143b60",
"process_state": {},
"external_sessions": {
"property1": "string",
"property2": "string"
},
"last_accessed_at": "2019-08-24T14:15:22Z",
"expires_at": "2019-08-24T14:15:22Z",
"is_active": true,
"is_expired": true,
"is_idle": true,
"created_at": "2019-08-24T14:15:22Z"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}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.
Delete session
Delete a session (soft delete by default). Use hard_delete=true for permanent removal. This is an API-only endpoint for programmatic access — no frontend UI currently consumes it.
