openapi: 3.2.0 info: title: AI Gateway MCP Server Connections API description: Universal MCP Gateway with OAuth integration - Modern Architecture version: 2.0.3290 tags: - name: Connections paths: /connections: get: summary: Oauth Dashboard Endpoint description: OAuth dashboard endpoint operationId: oauth_dashboard_endpoint_connections_get responses: '200': description: Successful Response content: application/json: schema: {} tags: - Connections /api/connections/status: get: summary: Connections Status Endpoint description: 'JSON service-status feed for the /connections dashboard. The dashboard page renders skeleton tiles immediately (TTFB ~80ms) and then calls this endpoint client-side to hydrate the real Active/Not-Connected/Expired states. Lets the page feel instant while we still produce fully-fresh status (no caching, no stale-while-revalidate). Trade-off vs. the old single-render path is that connect/disconnect buttons show a "Loading…" state for ~500ms before they become interactive.' operationId: connections_status_endpoint_api_connections_status_get responses: '200': description: Successful Response content: application/json: schema: {} tags: - Connections /api/connections/ai-providers: get: summary: Connections Ai Providers Endpoint description: 'JSON feed for the ''Connected AI Providers'' section. Loads MCP-token-index + ChatGPT-session-token list (multiple Redis reads + Fernet decrypts — ~800ms). Deferred from the initial page-shell render so /connections returns in <300ms.' operationId: connections_ai_providers_endpoint_api_connections_ai_providers_get responses: '200': description: Successful Response content: application/json: schema: {} tags: - Connections