Skip to main content
GET
/
credential-stubs
/
{agent}
Get a credential stub
curl --request GET \
  --url https://api.onecli.sh/v1/credential-stubs/{agent} \
  --header 'Authorization: Bearer <token>'
{
  "agent": "<string>",
  "filePath": "~/.codex/auth.json",
  "content": "<string>",
  "permissions": "0600"
}

Authorizations

Authorization
string
header
required

API key obtained from the dashboard or GET /user/api-key

Path Parameters

agent
string
required

Response

Credential stub

agent
string
filePath
string
Example:

"~/.codex/auth.json"

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

"0600"