Skip to main content
GET
https://aihubmix.com
/
api
/
token
/
{token_id}
Retrieve Single KEY Details
curl --request GET \
  --url https://aihubmix.com/api/token/{token_id} \
  --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.

Path Parameters

token_id
integer
required
KEY ID.

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
object
Key detail object. If the request fails, data may be an empty object {}.
id
integer
Key ID.
user_id
integer
User ID.
key
string
Key string (used for calls/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 whether 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 restriction or not set).
subnet
text
IP restrictions (an empty string means no restriction or not set).