Skip to main content
PUT
/
api
/
v1
/
users
/
me
/
ai-mode
Update AI mode for the authenticated user.
curl --request PUT \
  --url https://api.rigbox.dev/api/v1/users/me/ai-mode \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "mode": "<string>"
}
'
{
  "mode": "<string>",
  "remaining": 123,
  "remaining_micro": 123,
  "total": 123,
  "total_micro": 123
}

Documentation Index

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

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

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
number<double>
required
remaining_micro
integer<int64>
required
total
number<double>
required
total_micro
integer<int64>
required