Token
Update Token
Changed onput/api/token/
Request
- Base URLhttps://api.unorouter.com (the document declares no server; this is the origin it was published from)
- Auth
- API key in header Authorization and API key in header New-Api-User
- or API key in header New-Api-User and API key in cookie session
Query parameters
status_only, string
Only update status
Request body
Update Token Request required
UpdateTokenRequest schema
allow_ips, string nullable required
allow_user_quota_query, boolean nullable required
auto_groups, string[] nullable required
cross_group_retry, boolean nullable required
default_reasoning_effort, string nullable required
expired_time, integer required
group, string required
group_mapping, string nullable required
id, integer required
max_input_price, number double nullable required
max_output_price, number double nullable required
model_limits, string required
model_limits_enabled, boolean required
name, string required
prompt_cache, string nullable required
remain_quota, integer required
status, integer required
unlimited_quota, boolean required
Response
OK
Response Controller Token Response required
Response_controller.TokenResponse schema
data, Token Response required
message, string required
success, boolean required
Changes
- breaking
added the new required request property
max_input_price - breaking
added the new required request property
max_output_price - info
added the required property
data/max_input_priceto the response with the status (media type: application/json)
3 more changes in this revision
- breaking