Saltar al contenido
Lumean

Descripciones en inglés

La interfaz de la sección está traducida a su idioma, pero las descripciones de operaciones, esquemas y errores solo existen en ruso y en inglés: aquí se muestra la versión en inglés.
GET/key

Current API key

Describes the key the request is signed with: its id and name — the same as in the dashboard — its permissions, whether it is active, when it expires and its limits.

Use it to check a key before working with it: which API sections it opens, when it expires and how much is left in its token pool (limits.tokens.quota). An empty permissions list means the key has no Public API permissions: this endpoint works, the other /api/public/* endpoints answer 403. AI API access does not depend on permissions — it is the AI switch on the key in the dashboard.

The key secret and its hash are never returned.

Required key permission: none — any active key works.

Parámetros

Los valores se escriben directamente en la línea de la solicitud y la URL se arma sola. Abajo están el tipo, la obligatoriedad y los valores permitidos de cada parámetro.

GEThttps://api.lumean.app/api/public/key

    Respuestas posibles

    200

    The key the request is signed with.

    Ejemplo de cuerpo
    {
      "success": true,
      "message": "string",
      "data": {
        "id": 1,
        "name": "string",
        "permissions": [
          "string"
        ],
        "is_active": true,
        "expires_at": "2026-07-17T12:34:56+00:00",
        "limits": {
          "requests": {
            "per_minute": 1,
            "per_hour": 1,
            "per_day": 1
          },
          "tokens": {
            "per_minute": 1,
            "per_hour": 1,
            "per_day": 1,
            "per_month": 1,
            "quota": {
              "limit": 1,
              "used": 1,
              "remaining": 1
            }
          }
        }
      }
    }
    Campos de la respuesta
    successobligatorio

    Success flag. Branch on the HTTP status code instead: any 2xx response carries true here, while an error comes back in a different shape that need not contain this field at all.

    boolean
    messageobligatorio

    A human-readable note in the account language. Fine to show to a user; do not parse it — the wording changes without notice and is not an error code.

    string
    dataobligatorio

    The response payload.

    PublicApiKeyPublicApiKey
    idobligatorio

    Key ID — the same as in the dashboard key list.

    integer
    nameobligatorio

    Key name set when it was issued.

    string
    permissionsobligatorio

    Key permissions — the same list as in the dashboard (orders.read, billing.read, * and so on). An empty list means no Public API permissions: this endpoint works, the other /api/public/* endpoints answer 403. AI API access does not depend on permissions.

    array<any>
    is_activeobligatorio

    The key is active. An inactive key never gets here — it receives 401, so the response always has true.

    boolean
    expires_atobligatorio

    When the key expires (ISO 8601; in UTC unless X-Timezone is sent); null — it never expires.

    admite nulldate-time
    string
    limitsobligatorio

    Key limits: request and token windows and a token pool with no time-based reset.

    object
    requestsobligatorio

    How many requests the key may make per window; null — the window is not limited.

    object
    per_minuteobligatorio

    Requests per minute; null — unlimited.

    admite null
    integer
    per_hourobligatorio

    Requests per hour; null — unlimited.

    admite null
    integer
    per_dayobligatorio

    Requests per day; null — unlimited.

    admite null
    integer
    tokensobligatorio

    How many generation tokens the key may spend per window; null — the window is not limited.

    object
    per_minuteobligatorio

    Tokens per minute; null — unlimited.

    admite null
    integer
    per_hourobligatorio

    Tokens per hour; null — unlimited.

    admite null
    integer
    per_dayobligatorio

    Tokens per day; null — unlimited.

    admite null
    integer
    per_monthobligatorio

    Tokens per month; null — unlimited.

    admite null
    integer
    quotaobligatorio

    A token pool with no time-based reset, granted by an administrator. Once it runs out, generation answers 429 token_quota_exceeded.

    object
    limitobligatorio

    Pool size; null — there is no pool and it does not limit the key.

    admite null
    integer
    usedobligatorio

    How many pool tokens are already spent.

    integer
    remainingobligatorio

    How many pool tokens are left; null — there is no pool.

    admite null
    integer
    401

    The key is missing, unknown, disabled or expired.

    Analizar esta respuesta
    Ejemplo de cuerpo
    {
      "success": false,
      "message": "API key is missing. Provide it in the X-API-KEY header.",
      "data": null
    }
    Campos de la respuesta
    successobligatorio

    Always false in error responses.

    boolean
    messageobligatorio

    Error text in the key's language (set through the X-Locale header).

    string
    dataobligatorio

    Always null when the request is rejected before processing.

    admite null
    null

    Esta página para IA

    Abrir .mdllm.md

    versión de la API 1.0.0