Get an API key
https://my.neuronai.uz/api/v1/api-keys/{id}One key by id. A key of another organization answers 404 not_found.
Нужен API-ключ с api_keys:read.
Параметры пути
idstringОбязательноThe key id: a lowercase ULID.
Ответ
200application/jsonSuccess.
dataobjectОбязательноrequest_idstringОбязательноФормат: uuid
Заголовки
X-Request-IdstringНеобязательныйIdentifies this request. A JSON body carries it as
request_idtoo; 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). - 404
No such key in your organization:
not_found. - 429
A rate or concurrency limit was reached (
rate_limit_exceeded,concurrency_limit_exceeded). Retry afterRetry-Afterseconds. - default
Any other error, in the same shape, such as
server_error(500) orservice_unavailable(503).