Skip to main content
GET
Get a credential stub
Returns a stub file with fake values. Use it so a coding agent starts without a real key. See Credential stubs. The placeholder credentials file a coding agent needs locally so it starts and routes through the gateway (the gateway injects the real credential). Today only codex, whose stub follows the workspace’s OpenAI secrets (API-key or OAuth mode).
Availability: Cloud · Community (self-hosted) · Enterprise (self-hosted)

Authorizations

Authorization
string
header
required

A workspace API key (oc_…) or organization API key (oc_org_…). Workspace-scoped endpoints called with an organization key also need X-Workspace-Id.

Path Parameters

agent
enum<string>
required
Available options:
codex

Response

The stub

agent
string
filePath
string
Example:

"~/.codex/auth.json"

content
string
authMode
enum<string>
Available options:
api-key,
oauth
permissions
string
Example:

"0600"