Перейти к содержанию

List API keys

GEThttps://my.neuronai.uz/api/v1/api-keys

Lists your organization's API keys, newest first, revoked ones included.

Нужен API-ключ с api_keys:read.

Параметры запроса

  • limitinteger | nullНеобязательный

    Keys per page, from 1 to 100. 50 by default.

    Минимум: 1 · Максимум: 100

  • cursorstring | nullНеобязательный

    The next_cursor of the previous page.

    Макс. длина: 512

Ответ

200application/json

Success.

  • dataApiKey[]Обязательно
  • next_cursorstring | nullОбязательно
  • request_idstringОбязательно

    Формат: uuid

Заголовки

  • X-Request-IdstringНеобязательный

    Identifies this request. A JSON body carries it as request_id too; quote it to support.

    Формат: uuid

  • X-RateLimit-LimitintegerНеобязательный

    The requests a minute the rate limit on this endpoint allows. Sent once the limit has counted the request, so not when the key itself is refused.

  • X-RateLimit-RemainingintegerНеобязательный

    How many of them are left this minute.

Ошибки

  • 401

    The API key is missing or not recognized (invalid_api_key), revoked (api_key_revoked), disabled (api_key_disabled) or expired (api_key_expired).

  • 403

    The key lacks the permission this endpoint needs (insufficient_permissions), or the client IP is not in its allowlist (ip_not_allowed).

  • 422

    The request failed validation (invalid_request). error.fields names each invalid field.

  • 429

    A rate or concurrency limit was reached (rate_limit_exceeded, concurrency_limit_exceeded). Retry after Retry-After seconds.

  • default

    Any other error, in the same shape, such as server_error (500) or service_unavailable (503).