Users: API Tokens
🔒 Отзыв API-токена: своего или другого сотрудника компании по user:ai-tokens к нему. Отозванный токен перестает приниматься немедленно.
Отзыв API-токена: своего или другого сотрудника компании по user:ai-tokens к нему. Отозванный токен перестает приниматься немедленно.
Access: authorized (10 ) · Scope: write · только веб-сессия
Allows: user:ai-tokens (все обязательны; проверка в команде по ресурсу из запроса)
TypeScript (copy-paste)
GET /user/token/revoke
<details open><summary><b>Params</b></summary>export interface UserTokenRevokeParams {
ID: string
}
</details>
<details open><summary><b>Response</b></summary>
export type UserTokenRevokeResponse = IServerResponse<Resp_user_token_revoke>
export interface IServerResponse<T = any> {
code: number
data: T
srvTS: number
rkey: string
}
</details>
Полный файл типов: /docs/types · raw: /docs/api-types.ts
get/user/token/revoke
Request
- Base URL: http://localhost
- URL: http://localhost/user/token/revoke
- Auth: API key in header sid and API key in header rts and API key in header sig
Query parameters
IDstring uuid required
Можно передать header ID (сервер мержит headers+query)
Headers
devIDstring uuid required
UUID устройства клиента
tzstring required
Example:Europe/Moscow
Таймзона клиента (IANA или offset)
appstring required
Example:kosmodrom-web
Имя клиентского приложения
appVerstring required
Example:1.0.0
Версия клиента
rKeystring
Уникальный ключ запроса для логов/саппорта
Response
OK — IServerResponse<Resp_user_token_revoke>
Example response
{
"code": 200
}Changes
No recorded changes to this operation across all 1 revision of this API.