MINARA

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).

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

On this page