Codex OAuth
Codex OAuth API endpoints
Authorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/codex-oauth/device" \ -H "Content-Type: application/json" \ -d '{}'{
"flowId": "ccd52024-9c9c-4751-993a-9d75a778bf9d",
"userCode": "string",
"verificationUrl": "http://example.com",
"intervalSeconds": 0,
"expiresAt": "2019-08-24T14:15:22Z"
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}Authorization
bearerAuth AuthorizationBearer <token>
API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
flowId*string
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "http://localhost:3013/api/codex-oauth/device/497f6eca-6276-4993-bfeb-53cbbbba6f08/poll" \ -H "Content-Type: application/json" \ -d '{}'{
"status": "pending",
"slot": 100,
"error": "string"
}