MINARA

xAI OAuth init

POST /v1/auth/oauth/xai/init — Start a SuperGrok-style PKCE flow against auth.x.ai. The gateway binds the loopback callback port (56121) for the flow's

POST /v1/auth/oauth/xai/init

Start a SuperGrok-style PKCE flow against auth.x.ai. The gateway binds the loopback callback port (56121) for the flow's lifetime via the in-process OAuth orchestrator; the web UI polls /v1/auth/status to detect completion.

MethodPOST
Path/v1/auth/oauth/xai/init
AuthAuthorization: Bearer <token> required when GATEWAY_AUTH_TOKEN is set
Categoryauth

On this page