OpenAI device-code init
POST /v1/auth/oauth/openai/init — Start an OpenAI Codex device-code login flow. Returns `{ flowId, userCode, verificationUrl, intervalSec }`. The web UI p
POST /v1/auth/oauth/openai/init
Start an OpenAI Codex device-code login flow. Returns { flowId, userCode, verificationUrl, intervalSec }. The web UI presents userCode + a button to open verificationUrl, then polls /v1/auth/oauth/openai/poll?flowId=… every intervalSec. Replaces the previous PKCE-loopback flow, which OpenAI's public Codex client_id rejects with unknown_error (only the device-code endpoints accept third-party integrations).
| Method | POST |
| Path | /v1/auth/oauth/openai/init |
| Auth | Authorization: Bearer <token> required when GATEWAY_AUTH_TOKEN is set |
| Category | auth |