Token
put/api/token/

Request

  • Base URL
    https://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

UpdateTokenRequest 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

ResponseControllerTokenResponse required

Response_controller.TokenResponse schema

data, TokenResponse 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_price to the response with the status (media type: application/json)

    3 more changes in this revision