Skip to content
ADMIN
Download 2.0.0.55

APPLICATION REFERENCE

Codex API

5 verified codex routes: authentication, fields, responses, errors and approval boundaries.

PartialBaseline + October 12 scoped GitHub update · 2026-10-12

Application boundary#

These paths belong to your YAADMIN installation. They are not callable product-website APIs. Authenticated mutations require a session-matched X-CSRF-Token unless the route is public. Handler-local error codes are not exhaustive downstream schemas.

Verified routes#

6 routes

GET/api/codex/status

Codex status.

Authentication
session
Permission
codex.use (special default-allow fallback for assigned role; see §6)
Request body
none
Query parameters
none explicitly read
Headers
none beyond shared session/CSRF
Response structure
{available, allowed, enabled, active, account}; {available, allowed, enabled, active, auth_mode, model, reasoning, account}; status
Important errors
none literal; shared/helper errors apply
Approval behavior
no standalone approval behavior in this handler.

Verified route registration · handler api_codex_status. Some definitions may be partially redacted; no missing fields are inferred.

PUT/api/codex/preferences

Codex preferences.

Authentication
session
Permission
codex.use (special default-allow fallback for assigned role; see §6); administrator required for execution_mode full-access
Request body
CodexPreferencePayload [enabled, auth_mode, model, reasoning]
Query parameters
none explicitly read
Headers
none beyond shared session/CSRF
Response structure
{ok, enabled, auth_mode, model, reasoning}
Important errors
400, 403, 500
Approval behavior
no standalone approval behavior in this handler.

Request fields

FieldVerified definition
enabledbool
auth_modestr = Field(default="chatgpt", min_length=1, max_length=32)
modelstr | None = Field(default=None, max_length=200)
reasoningstr = Field(default="maximum", min_length=1, max_length=32)
execution_modestr | None = Field(default=None, max_length=32); read-only/full-access; administrator required for full-access

Verified route registration · handler api_codex_preferences. Some definitions may be partially redacted; no missing fields are inferred.

POST/api/codex/login

Codex login.

Authentication
session
Permission
codex.use (special default-allow fallback for assigned role; see §6)
Request body
CodexLoginPayload [mode, api_key]
Query parameters
none explicitly read
Headers
none beyond shared session/CSRF
Response structure
{ok, **result}
Important errors
403, 502
Approval behavior
no standalone approval behavior in this handler.

Request fields

FieldVerified definition
modestr = Field(min_length=1, max_length=32)
api_keytype/default redacted; field name verified

Verified route registration · handler api_codex_login. Some definitions may be partially redacted; no missing fields are inferred.

POST/api/codex/logout

Codex logout.

Authentication
session
Permission
codex.use (special default-allow fallback for assigned role; see §6)
Request body
none
Query parameters
none explicitly read
Headers
none beyond shared session/CSRF
Response structure
{ok}
Important errors
403, 502
Approval behavior
no standalone approval behavior in this handler.

Verified route registration · handler api_codex_logout. Some definitions may be partially redacted; no missing fields are inferred.

GET/api/codex/models

Codex models.

Authentication
session
Permission
codex.use (special default-allow fallback for assigned role; see §6)
Request body
none
Query parameters
none explicitly read
Headers
none beyond shared session/CSRF
Response structure
{ok, models}
Important errors
403, 502
Approval behavior
no standalone approval behavior in this handler.

Verified route registration · handler api_codex_models. Some definitions may be partially redacted; no missing fields are inferred.

GET/api/codex/context

October 12 source addition; deployment not verified.

Authentication
authenticated Core cookie session
Permission
codex.use
Request body
none
Query parameters
chat_id required; max 500 characters
Headers
shared X-CSRF-Token on POST; not a WordPress execution endpoint
Response structure
ok plus scoped context telemetry
Important errors
400,403
Approval behavior
Existing runtime approval checks remain; endpoint does not issue a new approval.

Verified route registration · handler api_codex_context. Some definitions may be partially redacted; no missing fields are inferred.

October 12 context and execution mode#

The scoped main source adds GET /api/codex/context, requiring codex.use and a chat_id no longer than 500 characters. Existing PUT /api/codex/preferences accepts optional execution_mode values read-only or full-access; Full Access requires the current Web administrator role. Shared session and CSRF boundaries remain.

These are Core routes; checkpoint deployment is not confirmed. Read the source update.

Implementation reference: 2026-10-12. Labels distinguish verified behavior, partial implementation and architectural intent.

Search documentation

Search stays in your browser.

YAADMIN CORE

Get YAADMIN Core

Your workspace starts here. We’ll email you a personal installer link. Only email is required.

Security code
Security code: enter the characters shown

We’ll send your installer link and useful YAADMIN updates. Unsubscribe from updates at any time. Privacy policy

YOUR NEXT YAADMIN WORKFLOW

Build your workspace.
Save 15%.

Get practical YAADMIN guides, product news and a personal 15% discount on packages and paid modules after confirming your email.

Open subscription form

One welcome code per email, one use. Can be combined with your 50% customer discount. Technical support and paid-module update renewals are excluded. No purchase required to subscribe. Free modules remain free.

Privacy Policy