> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aihubmix.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Search KEY

> Search for KEY using keyword

## Request Parameters

### Request Headers

<ResponseField type="string" required>
  Authentication for the request. This API uses the AIHubMix Manage Key for authentication.
</ResponseField>

<ResponseField type="string">
  Content type of the request. This parameter must be set to application/json.
</ResponseField>

### Query Parameters

<ParamField query="keyword" type="string" required>
  Search keyword (typically matches fields like KEY name).
</ParamField>

## Response Parameters

<ResponseField name="success" type="boolean">
  Indicates whether the request was successful.
</ResponseField>

<ResponseField name="message" type="string">
  Message (may be empty). Returns the reason for failure if the request fails.
</ResponseField>

<ResponseField name="data" type="array">
  List of search results. Each element in the array is a KEY object.

  <ResponseField name="id" type="integer">
    Key ID.
  </ResponseField>

  <ResponseField name="user_id" type="integer">
    User ID.
  </ResponseField>

  <ResponseField name="key" type="string">
    Key string (used for calling/authentication).
  </ResponseField>

  <ResponseField name="status" type="integer">
    Key status. 0 means disabled, 1 means enabled.
  </ResponseField>

  <ResponseField name="name" type="string">
    Key name.
  </ResponseField>

  <ResponseField name="created_time" type="integer">
    Key creation time (UNIX timestamp).
  </ResponseField>

  <ResponseField name="accessed_time" type="integer">
    Key last accessed time (UNIX timestamp).
  </ResponseField>

  <ResponseField name="expired_time" type="integer">
    Key expiration time (UNIX timestamp); -1 means never expires.
  </ResponseField>

  <ResponseField name="remain_quota" type="integer">
    Remaining quota; -1 means unlimited.
  </ResponseField>

  <ResponseField name="unlimited_quota" type="boolean">
    Indicates if the quota is unlimited. true means unlimited; false means limited.
  </ResponseField>

  <ResponseField name="used_quota" type="integer">
    Used quota. Actual usage calculation: used\_quota / 500000.
  </ResponseField>

  <ResponseField name="models" type="text">
    Models restricted for use with the current Key (an empty string means no restrictions or not set).
  </ResponseField>

  <ResponseField name="subnet" type="text">
    IP restrictions (an empty string means no restrictions or not set).
  </ResponseField>
</ResponseField>

***

Last updated: 2026-06-01
