v1 · OpenAPI 3.1Panel

API referansı İngilizcedir.

Secret keys

List secret keys

GET/v1/applications/{app_id}/secret_keys

The application's secret keys, newest first. Revoked keys stay in the list with revoked_at set. The full key is never shown again; prefix tells keys apart. last_used_at is updated at most once a minute.

A secret key can list its own application's keys only when its role is admin. editor and viewer keys get 403 missing_scope.

Gereken yetki
applications:read
Kimlik doğrulama
Secret key · Organization API key · Dashboard session

Yol parametreleri

  • app_idstringzorunlu

    Örnek: app_seller

Başlıklar

  • X-Fox-Tenantstring

    Required when authenticating with a dashboard session token instead of a tenant API key.

    Örnek: ten_8f2c91a7

Yanıtlar

  • 200OKobject

    Secret keys of the application, newest first

    • dataSecretKey[]

      8 alan
      • idstring

        Örnek: key_3b7e10c2

      • namestring

        Örnek: Billing worker

      • rolestring

        admin (Full access), editor (Read and write users) or viewer (Read only). The secretKey security scheme lists the scopes of each role.

        Değerler: admin editor viewer

      • prefixstring

        First 15 characters, to tell keys apart. Show it as sk_live_eu_Q9xT….

        Örnek: sk_live_eu_Q9xT

      • created_atstring (date-time)

      • created_bystringboş olabilir

        User ID of the dashboard person who created the key; null when an organization API key created it.

        Örnek: usr_eu_8f2c91a7

      • last_used_atstringboş olabilir

        Updated at most once a minute.

      • revoked_atstringboş olabilir

  • 401UnauthorizedError

    Missing or invalid key or token. The Management API answers missing_api_key (no Bearer token) or invalid_api_key (unknown or revoked secret key or organization API key).

    • errorobjectzorunlu

      5 alan
      • codestringzorunlu

        Stable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable

        Örnek: region_unavailable

      • messagestringzorunlu

        Plain English, for developers

      • regionstringboş olabilir

        Region that produced the error, if any

        Değerler: EU TR

      • retryablebooleanzorunlu

      • detailsobject

  • 403ForbiddenError

    missing_scope (the role or scopes of the key, or the dashboard role, lack the scope), secret_key_not_allowed (a secret key called an endpoint for the whole organization) or not_a_member (X-Fox-Tenant names a tenant the caller does not belong to).

    • errorobjectzorunlu

      5 alan
      • codestringzorunlu

        Stable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable

        Örnek: region_unavailable

      • messagestringzorunlu

        Plain English, for developers

      • regionstringboş olabilir

        Region that produced the error, if any

        Değerler: EU TR

      • retryablebooleanzorunlu

      • detailsobject

  • 404Not FoundError

    Not found

    • errorobjectzorunlu

      5 alan
      • codestringzorunlu

        Stable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable

        Örnek: region_unavailable

      • messagestringzorunlu

        Plain English, for developers

      • regionstringboş olabilir

        Region that produced the error, if any

        Değerler: EU TR

      • retryablebooleanzorunlu

      • detailsobject