Skip to main content
PATCH
/
settings
Update Organization Settings
curl --request PATCH \
  --url https://api.ag.dev/v0.1/settings \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "useOwnKeys": true
}
'
{
  "useOwnKeys": true,
  "creditBalance": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.ag.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-Key
string
header
required

Provide either X-API-Key: or Authorization: Bearer

Body

application/json
useOwnKeys
boolean

Whether the organization should use their own API keys

Response

Organization settings updated successfully

useOwnKeys
boolean
required

Whether the organization uses their own API keys

creditBalance
number

Current credit balance