Список ключей API
GET/v1/api-keys
Параметры
| Поле | Тип | Обязательно |
|---|---|---|
cursorзапрос | string | нет |
limitзапрос | integer | нет |
Ответы
200KeyList400401403404409412413415422428429503
Справочник API
Выпуск, приостановка и отзыв ключей.
GET/v1/api-keys
| Поле | Тип | Обязательно |
|---|---|---|
cursorзапрос | string | нет |
limitзапрос | integer | нет |
200KeyList400401403404409412413415422428429503POST/v1/api-keys
KeyCreate| Поле | Тип | Обязательно |
|---|---|---|
name | string | да |
scopes | array of string | да |
expires_at | string (date-time) | да |
environment | enum: test, live | да |
201KeyIssued400401403404409412413415422428429503POST/v1/api-keys/{key_id}/revoke
| Поле | Тип | Обязательно |
|---|---|---|
key_idпуть | string (uuid) | да |
ReasonAction| Поле | Тип | Обязательно |
|---|---|---|
reason_code | string | да |
note | string | нет |
200Key400401403404409412413415422428429503POST/v1/api-keys/{key_id}/suspend
Temporary containment: the key stops authenticating (403 credential_suspended) until resumed. Evidence and history are kept.
| Поле | Тип | Обязательно |
|---|---|---|
key_idпуть | string (uuid) | да |
ReasonAction| Поле | Тип | Обязательно |
|---|---|---|
reason_code | string | да |
note | string | нет |
200Key400401403404409412413415422428429503POST/v1/api-keys/{key_id}/resume
Restores a suspended key. Revoked or expired keys cannot be resumed.
| Поле | Тип | Обязательно |
|---|---|---|
key_idпуть | string (uuid) | да |
ReasonAction| Поле | Тип | Обязательно |
|---|---|---|
reason_code | string | да |
note | string | нет |
200Key400401403404409412413415422428429503