---
title: "Search Tokens"
method: GET
path: "/api/token/search"
tags: ["Token"]
---

# Search Tokens

`GET /api/token/search`

## Request

- Base URL: `https://api.unorouter.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.unorouter.com/api/token/search`
- Auth: one of:
  - API key in header `Authorization` and API key in header `New-Api-User`
  - API key in header `New-Api-User` and API key in cookie `session`

## Query parameters

- `p` integer
- `page_size` integer
- `keyword` string
- `token` string

## Response `200`

OK

- ResponseDtoPageDataControllerTokenResponse: Response_dto.PageData-controller.TokenResponse schema
  - `data` object, required
    - `items` TokenResponse[], nullable, required
      - `accessed_time` integer, required
      - `allow_ips` string, nullable, required
      - `allow_user_quota_query` boolean, required
      - `auto_groups` string[], nullable, required
      - `created_time` integer, required
      - `cross_group_retry` boolean, required
      - `default_reasoning_effort` string, required
      - `expired_time` integer, required
      - `group` string, required
      - `group_mapping` string, required
      - `id` integer, required
      - `key` string, required
      - `max_input_price` number, double, required
      - `max_output_price` number, double, required
      - `model_limits` string, required
      - `model_limits_enabled` boolean, required
      - `name` string, required
      - `prompt_cache` string, required
      - `remain_quota` integer, required
      - `status` integer, required
      - `unlimited_quota` boolean, required
      - `used_quota` integer, required
      - `user_id` integer, required
    - `page` integer, required
    - `page_size` integer, required
    - `total` integer, required
  - `message` string, required
  - `success` boolean, required

## Changes

- **2026-11-28** `862a0e26e376`: 4 info
  - added the required property `data/items/items/max_input_price` to the response with the `200` status (media type: application/json)
  - added the required property `data/items/items/max_input_price` to the response with the `200` status (media type: application/xml)
  - added the required property `data/items/items/max_output_price` to the response with the `200` status (media type: application/json)
  - added the required property `data/items/items/max_output_price` to the response with the `200` status (media type: application/xml)
- **2026-10-28** `67366f1fcc53`: 2 info
  - added the required property `data/items/items/prompt_cache` to the response with the `200` status (media type: application/json)
  - added the required property `data/items/items/prompt_cache` to the response with the `200` status (media type: application/xml)
- **2026-10-19** `2b7368f45936`: 2 info
  - added the required property `data/items/items/default_reasoning_effort` to the response with the `200` status (media type: application/json)
  - added the required property `data/items/items/default_reasoning_effort` to the response with the `200` status (media type: application/xml)
- …earlier changes not shown

[Operation history](https://skmtc.dev/unorouter/apis/new-api/changes/api/token/search/get.md)

---

[API](https://skmtc.dev/unorouter/apis/new-api.md) - [All operations](https://skmtc.dev/unorouter/apis/new-api/llms.txt) - [OpenAPI document](https://skmtc.dev/unorouter/apis/new-api/revisions/1b50ada14f59?raw)
