Skip to main content
PUT
/
api
/
users
/
me
/
ai-mode
Update AI mode for the authenticated user.
curl --request PUT \
  --url https://api.rigbox.dev/api/users/me/ai-mode \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "mode": "<string>"
}
'
{
  "mode": "<string>",
  "remaining": 123,
  "total": 123
}
In managed mode, Rigbox injects API keys server-side and tracks credit usage. In BYOK mode, you provide your own provider keys.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
mode
string
required

Response

200 - application/json

Updated AI mode

mode
string
required
remaining
integer<int32>
required
total
integer<int32>
required