Skip to main content
PATCH
/
account
/
fallback
Set global fallback chain
curl --request PATCH \
  --url https://api.lava.so/v1/account/fallback \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "fallback_chain": [
    {
      "url": "api.openai.com/v1/chat/completions",
      "model": "gpt-4o-mini"
    }
  ]
}
'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer token authentication used for standard API calls. Format: 'Bearer YOUR_API_KEY'

Body

application/json
fallback_chain
object[] | null
required

Fallback chain entries, or null to clear

Response

Fallback chain updated

success
boolean
Example:

true