メインコンテンツまでスキップ

Revoke an API key or disconnect an application.

POST/api/v1/api-keys/{api_key_id}/revokeapi_keys:revoke
注記

このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。

A caller revokes the keys they created; Revoke Other Users Api Tokens allows revoking any key of the company. A revoked key stops working at once. Revoking the key this request authenticated with ends this session's access.

スコープapi_keys:revoke (機密性の高いスコープ)
非同期いいえ
MCP ツールrevoke_api_key
Portal の権限revoke_api_tokens

パラメーター​

名前場所型必須説明
api_key_idpathstring必須
Docwize-Versionheaderstring (date)任意
Idempotency-Keyheaderstring任意max 255

応答​

ステータス説明本文
200Success.application/json APIKeyRevocation
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409idempotency_in_progressapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

APIKeyRevocation​

フィールド型必須説明
already_revokedboolean必須
api_key_idstring必須
is_current_grantboolean必須True when the revoked key is the one this request authenticated with.
namestring または null必須
revokedboolean必須True when this call revoked the key; false when it was already revoked.
revoked_atstring (date-time) または null必須
was_connected_applicationboolean必須True for a connected application (an MCP grant), false for an API key.