Docs
Sign in

Complete a ChatGPT plan sign-in in the initiating browser session.

POST/api/v1/codex-connection/complete

Keysession only

Use the koidog_session cookie at https://app.koi.dog/api/v1 with Origin: https://app.koi.dog.

Headers.

Idempotency-Keystring

Retry the same request with the same key. Retry rules.

Body.

statestringrequired

The state returned from the sign-in attempt in the same browser session. Matches ^[a-zA-Z0-9_-]{43}$.

codestring

The authorization code returned by OpenAI after consent. 1 to 4096 characters.

clientIdstring

The client identifier if OpenAI included one in its response. 1 to 256 characters.

errorstring

The error returned by OpenAI if authorization failed. 1 to 80 characters.

Response.

200 OK · JSON object

422 validation_failed
Each schema error appears in details.