Skip to main content
GET
https://aihubmix.com
/
api
/
token
/
search
Search KEY
curl --request GET \
  --url https://aihubmix.com/api/token/search \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "<string>",
  "data": [
    {
      "id": 123,
      "user_id": 123,
      "key": "<string>",
      "status": 123,
      "name": "<string>",
      "created_time": 123,
      "accessed_time": 123,
      "expired_time": 123,
      "remain_quota": 123,
      "unlimited_quota": true,
      "used_quota": 123,
      "models": "<string>",
      "subnet": "<string>"
    }
  ]
}

Request Parameters

Request Headers

Authentication for the request. This API uses the AIHubMix Manage Key for authentication.
Content type of the request. This parameter must be set to application/json.

Query Parameters

keyword
string
required
Search keyword (typically matches fields like KEY name).

Response Parameters

success
boolean
Indicates whether the request was successful.
message
string
Message (may be empty). Returns the reason for failure if the request fails.
data
array
List of search results. Each element in the array is a KEY object.
id
integer
Key ID.
user_id
integer
User ID.
key
string
Key string (used for calling/authentication).
status
integer
Key status. 0 means disabled, 1 means enabled.
name
string
Key name.
created_time
integer
Key creation time (UNIX timestamp).
accessed_time
integer
Key last accessed time (UNIX timestamp).
expired_time
integer
Key expiration time (UNIX timestamp); -1 means never expires.
remain_quota
integer
Remaining quota; -1 means unlimited.
unlimited_quota
boolean
Indicates if the quota is unlimited. true means unlimited; false means limited.
used_quota
integer
Used quota. Actual usage calculation: used_quota / 500000.
models
text
Models restricted for use with the current Key (an empty string means no restrictions or not set).
subnet
text
IP restrictions (an empty string means no restrictions or not set).