DELETE/api/v1/keys/{hash}

Revoke an API key

Needs a provisioning key (403 otherwise). Idempotent; a repeated delete of a revoked key still succeeds.

認証: AuthorizationヘッダーにBearer形式のAPIキー

パスパラメータ

  • hashstring必須

    The key id (hash in key objects).

レスポンス

  • 200

    The key is revoked.

    レスポンス
    • dataobject必須
      data
      • successboolean必須
  • 401

    Missing, unknown or revoked API key.

    レスポンス
    • errorstring必須

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 403

    The key is valid but may not perform this action (for example an inference key on a provisioning-key route, or a feature outside your plan).

    レスポンス
    • errorstring必須

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 404

    No key with this id in your organization.

    レスポンス
    • errorstring必須

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

リクエスト

curl -X DELETE https://api.experientiallabs.ai/api/v1/keys/0b9d4f6e-2a1c-4e8b-9f37-5c6d2e1a8b40 \
  -H "Authorization: Bearer YOUR_API_KEY"

レスポンス

{
  "data": {
    "success": true
  }
}

https://api.experientiallabs.ai/api/v1/keys/0b9d4f6e-2a1c-4e8b-9f37-5c6d2e1a8b40