Initiate Connection
Generate a secure, single-use token for Google OAuth initiation.
Returns an opaque token that can be used in a browser URL. The token expires in 10 minutes and can only be used once.
Security: - Token is cryptographically random (secrets.token_urlsafe) - Token stored in Redis with 10-minute TTL - Token deleted after first use (single-use) - user_id never exposed in URL
Args: request: FastAPI request object x_user_id: User ID from JWT (set by MCP after token validation)
Returns: 200: { "token": "dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk", "connect_url": "https://api.priority-guard.com/auth/google/start?token=...", "expires_in": 600 } 500: If Redis is unavailable
Request
- Base URLhttps://www.priority-guard.com (the document declares no server; this is the origin it was published from)
- Authnone declared. Required headers: X-User-ID
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Response
Successful Response
Changes
No recorded changes to this operation across all 2 revisions of this API.