Zum Inhalt
Lumean

Beschreibungen auf Englisch

Die Oberfläche des Bereichs ist in Ihre Sprache übersetzt, Beschreibungen von Operationen, Schemata und Fehlern gibt es aber nur auf Russisch und Englisch — hier wird die englische Fassung angezeigt.
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.

Parameter

Werte werden direkt in die Anfragezeile eingesetzt, und die URL entsteht von selbst. Darunter stehen Typ, Pflichtangabe und zulässige Werte jedes Parameters.

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

    Mögliche Antworten

    200

    The key the request is signed with.

    Beispiel für den Body
    {
      "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
            }
          }
        }
      }
    }
    Felder der Antwort
    successerforderlich

    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
    messageerforderlich

    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
    dataerforderlich

    The response payload.

    PublicApiKeyPublicApiKey
    iderforderlich

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

    integer
    nameerforderlich

    Key name set when it was issued.

    string
    permissionserforderlich

    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_activeerforderlich

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

    boolean
    expires_aterforderlich

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

    darf null seindate-time
    string
    limitserforderlich

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

    object
    requestserforderlich

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

    object
    per_minuteerforderlich

    Requests per minute; null — unlimited.

    darf null sein
    integer
    per_hourerforderlich

    Requests per hour; null — unlimited.

    darf null sein
    integer
    per_dayerforderlich

    Requests per day; null — unlimited.

    darf null sein
    integer
    tokenserforderlich

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

    object
    per_minuteerforderlich

    Tokens per minute; null — unlimited.

    darf null sein
    integer
    per_hourerforderlich

    Tokens per hour; null — unlimited.

    darf null sein
    integer
    per_dayerforderlich

    Tokens per day; null — unlimited.

    darf null sein
    integer
    per_montherforderlich

    Tokens per month; null — unlimited.

    darf null sein
    integer
    quotaerforderlich

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

    object
    limiterforderlich

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

    darf null sein
    integer
    usederforderlich

    How many pool tokens are already spent.

    integer
    remainingerforderlich

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

    darf null sein
    integer
    401

    The key is missing, unknown, disabled or expired.

    Diese Antwort analysieren
    Beispiel für den Body
    {
      "success": false,
      "message": "API key is missing. Provide it in the X-API-KEY header.",
      "data": null
    }
    Felder der Antwort
    successerforderlich

    Always false in error responses.

    boolean
    messageerforderlich

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

    string
    dataerforderlich

    Always null when the request is rejected before processing.

    darf null sein
    null

    Diese Seite für KI

    .md öffnenllm.md

    API-Version 1.0.0