エンドポイントの分類

API version 2026-09-21

OpenAPI YAMLをダウンロード

APIリファレンス

Runtime APIとManagement APIの全エンドポイントを、配布中のOpenAPI定義から表示しています。

OpenAPI 3.1.0 から生成(このページからは実行できません)

Example ValueはOpenAPIの型と制約から生成した参考値です。実際のID、トークン、秘密値としては使用できません。

エンドポイント

188

123個のパス

接続先

https://usakey.jp

Runtime API

Runtime 初期化

2操作

署名鍵一覧と署名付きサーバー時刻を取得します。

GET /runtime/v1/products/{product_id}/trust-bundle 署名鍵の信頼バンドルを取得

製品の署名検証に使う、ルート鍵で認証された署名鍵一覧を取得します。

認証
なし
必要な権限
—
操作ID
runtime_v1_products_trust_bundle

パラメーター

product_id 場所: パス 必須

Example Value

"prod_0123456789abcdef0123"

レスポンス

200

署名鍵の信頼バンドル

application/json

Example Value

{
  "data": {
    "bundle": {},
    "root_signature": "example-token"
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/time 署名付きサーバー時刻を取得

クライアントのnonceを含む署名付きサーバー時刻を取得し、端末時刻の改ざん検出に使います。

認証
なし
必要な権限
—
操作ID
runtime_v1_time_create

リクエスト本文

必須
application/json

Schema

object

Example Value

{
  "product_id": "prod_0123456789abcdef0123",
  "nonce": "stringxxxxxxxxxxxxxxxx",
  "sdk_version": "string"
}

レスポンス

200

製品の鍵で署名した応答

application/json

Example Value

{
  "data": "string",
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

Runtime API の要求本文が、経路ごとのバイト数の上限を超えています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Runtime API

Runtime 端末認証

13操作

端末を登録し、ライセンス状態を継続的に確認します。

POST /runtime/v1/activations/{activation_id}/heartbeat 端末認証と証明書を更新

認証済み端末からハートビートを送り、ライセンス状態と端末証明書を更新します。

認証
deviceProof
必要な権限
—
操作ID
runtime_v1_activations_heartbeat

パラメーター

activation_id 場所: パス 必須

Example Value

"activation_id_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Activation 場所: ヘッダー 必須

Example Value

"x_usakey_activation_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Timestamp 場所: ヘッダー 必須
integer

Example Value

1
X-Usakey-Nonce 場所: ヘッダー 必須
string 最小文字数: 22 最大文字数: 255

Example Value

"stringxxxxxxxxxxxxxxxx"
X-Usakey-Signature 場所: ヘッダー 必須
string 最大文字数: 1024

Example Value

"example-token"

リクエスト本文

必須
application/json

Example Value

{
  "machine_info": {
    "os": "string",
    "arch": "string"
  }
}

レスポンス

200

現在のライセンス状態と更新した証明書

application/json

Example Value

{
  "data": {
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "license_status": "active",
    "certificate": "string",
    "next_heartbeat_in": 10,
    "machine_info_digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスが取消済み(LICENSE_REVOKED)または期限切れ(LICENSE_EXPIRED)である、端末のリスク判定の規則で端末認証またはライセンスが止められた、またはユーザーへの割当が終わっています。ライセンスの状態は端末認証の状態より先に返すため、取消済みのライセンスの端末には ACTIVATION_DEACTIVATED ではなく LICENSE_REVOKED を返します。期限切れのライセンスは端末認証を残すので、期限を延長してライセンスを再開すれば、同じ activation_id で再び使えます。LICENSE_REVOKED と LICENSE_EXPIRED は短い時間の上限には数えますが、Runtime API の月間回数には数えません。一時停止中のライセンスはエラーではなく、license_status が suspended の 200 を返します。

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
410

対象はすでに有効ではありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

管理なしのオフライン買い切りライセンスは定期確認を使いません。または、端末情報のハッシュ値が変わった・完全な基準がまだ無い・最後の完全な基準が24時間より前のため、完全な machine_info が必要です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

Runtime API の要求本文が、経路ごとのバイト数の上限を超えています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/activations/{activation_id}/sealed-file-keys 暗号化したファイルの鍵をこの端末あてに受け取る

暗号化したファイルのヘッダーを送り、ライセンスがそのファイルを使える場合に、ファイルごとのデータ鍵をこの端末の鍵あてに包み直して受け取ります。ファイル本体は送りません。

暗号化したファイルのヘッダーを送ります(docs/security/sealed-files.md)。ライセンスがそのファイルを使える場合、販売者が製品の暗号化用の鍵あてに包んだファイルごとのデータ鍵をサーバーで開き、この端末認証のP-256 KEM公開鍵あてにHPKEで包み直します。ファイル本体はUsakeyに届きません。端末は結果をキャッシュするので、呼ぶのはファイルと端末ごとに1回です。

認証
deviceProof
必要な権限
—
操作ID
runtime_v1_activations_sealed_file_keys

パラメーター

activation_id 場所: パス 必須

Example Value

"activation_id_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Activation 場所: ヘッダー 必須

Example Value

"x_usakey_activation_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Timestamp 場所: ヘッダー 必須
integer

Example Value

1
X-Usakey-Nonce 場所: ヘッダー 必須
string 最小文字数: 22 最大文字数: 255

Example Value

"stringxxxxxxxxxxxxxxxx"
X-Usakey-Signature 場所: ヘッダー 必須
string 最大文字数: 1024

Example Value

"example-token"

リクエスト本文

必須
application/json

Example Value

{
  "header": "example_value",
  "sdk_version": "string"
}

レスポンス

200

この端末のKEM公開鍵あてに包んだデータ鍵

application/json

Example Value

{
  "data": {
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "file_id": "esNxn3TKNIsd_Dyi2XYojA",
    "header_sha256": "f7511808a1669a5481adebe399a96ad043d29ebb887207743368c3fb812717e5",
    "enc": "BC1G-oCCtQBTqm4VEolqWH6MHHbpugqlixdHLXLURww-71zLlbPAaperQqYpqsHIyF9bJ66JOqwcEaZ1yHqSNPI",
    "wrapped_key": "j4LNTalkfJFXswg_u9NXmazh7FZQHrAs4iqPQNp0hHCsdQIZWcS3AOpEkYp2mape"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスが取り消された(LICENSE_REVOKED)・期限切れ(LICENSE_EXPIRED)・一時停止中(LICENSE_SUSPENDED。定期確認と違い、一時停止中のライセンスには鍵を渡しません)、ユーザーの割当が有効でない、契約組織のプランにファイルの暗号化が含まれない(PLAN_ENTITLEMENT_REQUIRED、details.entitlement は sealed_files)、またはファイルが求める機能権限がこのライセンスで true でない(SEALED_FILE_ENTITLEMENT_REQUIRED、details.entitlement に名前)。

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
410

対象はすでに有効ではありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

ヘッダーが暗号化したファイルのヘッダーとして正しくない、別の製品向け・不明な鍵・削除のため廃止した鍵・漏えいした鍵で暗号化されている、データ鍵を開けない、または端末認証のKEM鍵がP-256の鍵でない(SEALED_FILE_INVALID)。

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

Runtime API の要求本文が、経路ごとのバイト数の上限を超えています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/activations/{activation_id}/consumptions 端末認証を作成

端末がすでに手元の消費型カウンターから減らした消費を送ります(1回に1〜40件)。consumption_id はライセンスの中で1回だけ数えるので、結果が分からなかった要求をそのまま送り直せます。数え済みのIDは、カウンターと量が同じなら duplicate、違えば rejected(reason は conflict)になります。ライセンスの利用ルールに無いカウンターは rejected(reason は unknown_counter)です。消費は Usakey が受け取った時刻の期間に数え、上限を超えても記録し(超えた分は超過として扱います)、一時停止中のライセンスでも受け付けます。署名付きの応答は、消費ごとの結果と、ライセンスの今のカウンター(証明書の counters と同じ形)を返します。公式SDKは、定期確認の前にまだ送っていない消費をここへ送ります。

認証
deviceProof
必要な権限
—
操作ID
runtime_v1_consumptions_create

パラメーター

activation_id 場所: パス 必須

Example Value

"activation_id_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Activation 場所: ヘッダー 必須

Example Value

"x_usakey_activation_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Timestamp 場所: ヘッダー 必須
integer

Example Value

1
X-Usakey-Nonce 場所: ヘッダー 必須
string 最小文字数: 22 最大文字数: 255

Example Value

"stringxxxxxxxxxxxxxxxx"
X-Usakey-Signature 場所: ヘッダー 必須
string 最大文字数: 1024

Example Value

"example-token"

リクエスト本文

必須
application/json

Example Value

{
  "consumptions": [
    {
      "consumption_id": "01K5QWERTY1234567890ABCDEFG",
      "counter": "string",
      "amount": 1,
      "consumed_at": 0
    }
  ],
  "sdk_version": "string"
}

レスポンス

200

消費ごとの結果と、ライセンスの今のカウンター

application/json

Example Value

{
  "data": {
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "consumptions": [
      {
        "consumption_id": "01K5QWERTY1234567890ABCDEFG",
        "status": "active"
      }
    ],
    "counters": {
      "property": {
        "limit": 0,
        "remaining": 0,
        "revision": 0
      }
    }
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスが取り消された(LICENSE_REVOKED)・期限切れ(LICENSE_EXPIRED)、またはユーザーの割当が有効でない。LICENSE_REVOKED と LICENSE_EXPIRED は短い時間の回数制限には数え、Runtime API の月間回数には数えません。

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
410

対象はすでに有効ではありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

Runtime API の要求本文が、経路ごとのバイト数の上限を超えています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/activations ライセンスを端末鍵へ紐づけ

ライセンスキーを端末の公開鍵へ関連付け、署名付きライセンス証明書を発行します。

409 MACHINE_LIMIT_REACHED には details.device_release_available が入ります。このライセンスで、利用者が手元に無い端末を製品アプリから解除すること(POST /runtime/v1/device-releases)を販売者が許可し、プランにも含まれるときは true です。1か月に登録できる新しい端末の数を使い切ったときは、端末を解除しても戻らないため false です。

認証
なし
必要な権限
—
操作ID
runtime_v1_activations_create

パラメーター

Idempotency-Key 場所: ヘッダー 必須
string 最小文字数: 16 最大文字数: 255

Example Value

"stringxxxxxxxxxx"

リクエスト本文

必須
application/json

Example Value

{
  "license_key": "string",
  "product_id": "prod_0123456789abcdef0123",
  "device_signing_public_key": "string",
  "device_kem_public_key": "string",
  "device_proof": "string",
  "machine_signals": {
    "property": "string"
  },
  "machine_info": {
    "os": "string",
    "arch": "string"
  },
  "app_version": "string",
  "sdk_version": "string",
  "request_id": "01K5QWERTY1234567890ABCDEFG",
  "client_time": 1,
  "named_user_token": "Example name",
  "nonce": "stringxxxxxxxxxxxxxxxx"
}

レスポンス

201

端末認証と署名付きライセンス証明書

application/json

Example Value

{
  "data": {
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "certificate": "string",
    "machine_info_digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

このライセンスは、端末に結び付いたオフライン利用ファイルでの認証が必要です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

Runtime API の要求本文が、経路ごとのバイト数の上限を超えています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /runtime/v1/activations/{activation_id} 認証中の端末を解除

端末自身の認証情報を使い、現在の端末認証を解除します。

認証
deviceProof
必要な権限
—
操作ID
runtime_v1_activations_destroy

パラメーター

activation_id 場所: パス 必須

Example Value

"activation_id_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Activation 場所: ヘッダー 必須

Example Value

"x_usakey_activation_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Timestamp 場所: ヘッダー 必須
integer

Example Value

1
X-Usakey-Nonce 場所: ヘッダー 必須
string 最小文字数: 22 最大文字数: 255

Example Value

"stringxxxxxxxxxxxxxxxx"
X-Usakey-Signature 場所: ヘッダー 必須
string 最大文字数: 1024

Example Value

"example-token"

レスポンス

200

製品の鍵で署名した応答

application/json

Example Value

{
  "data": "string",
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
410

対象はすでに有効ではありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

Runtime API の要求本文が、経路ごとのバイト数の上限を超えています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/email-verifications メールアドレスでのライセンス確認を始める

ユーザー単位のライセンスで、販売者が台帳に登録したローカルIDの利用者のアドレスへ、6桁の確認コードを送ります。一致したときだけ送り、一致しなくても同じ形の202を返します(登録済みのアドレスを探れないようにするため)。確認コードは10分・5回まで有効で、同じ製品・ライセンスキー・アドレスの新しい開始は前の確認を無効にします。Runtime APIの月間回数には数えません。

販売元がローカルIDのライセンスユーザーに登録したメールアドレスへ、6桁の確認コードを送ります。製品アプリは、これで端末認証に使うユーザー単位の認証トークンを得られます。アドレスが一致したかどうかにかかわらず、応答の形と状態コードは同じです。確認コードを送るのは、一致したときだけです(ライセンスキーが有効、利用ルールがユーザー単位、契約組織がメールアドレスでのライセンス確認を使えるプラン(個人以上)、このアドレスを持つ有効なローカルIDのライセンスユーザー(OIDC接続に結び付いていない)がちょうど1人、その利用者にこのライセンスの現在の割当がある)。同じ製品・同じライセンスキー・同じアドレスで新しく開始すると、前の確認は使えなくなります。確認コードは10分で期限が切れ、試せるのは5回までです。この2つの要求はRuntime APIの月間回数に数えません。続く端末認証は数えます。

認証
なし
必要な権限
—
操作ID
runtime_v1_email_verifications_create

リクエスト本文

必須
application/json

Example Value

{
  "product_id": "prod_0123456789abcdef0123",
  "license_key": "string",
  "email": "developer@example.com",
  "device_signing_public_key": "string",
  "nonce": "stringxxxxxxxxxxxxxxxx",
  "locale": "ja",
  "sdk_version": "string"
}

レスポンス

202

確認を開始しました。確認コードはアドレスが一致したときだけ送り、一致したかどうかは応答からは分かりません

application/json

Example Value

{
  "data": {
    "verification_id": "verification_id_aaaaaaaaaaaaaaaaaaaa",
    "expires_at": "2026-09-21T00:00:00Z",
    "resend_after_sec": 1,
    "code_length": 1
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

Runtime API の要求本文が、経路ごとのバイト数の上限を超えています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/email-verifications/{verification_id}/confirm 確認コードを照合して端末認証用のトークンを得る

開始と同じ端末の署名鍵で確認コードを照合し、端末認証(POST /runtime/v1/activations)のnamed_user_tokenに入れるトークン(5分)を返します。2段階認証を登録済みの利用者は、認証アプリのコード、リカバリーコード、またはパスキーの承認コードをsecond_factor_codeに入れて送ります。パスキーの利用者は、確認メールのリンクを開いてパスキーで承認すると、承認コードが表示されます。承認コードはその確認だけに使え、最長10分・1回限り有効です。2段階目のコードが無いときは401 TWO_FACTOR_REQUIREDで、メールの確認コードは使えるまま残ります。誤りのたびに試行が1回減り、使い切るか10分を過ぎたら、開始からやり直します。

確認を開始したときと同じ端末の署名用公開鍵で6桁の確認コードを照合し、POST /runtime/v1/activationsに渡すユーザー単位の認証トークン(named_user_token)を返します。トークンの有効期間は5分です。2段階認証を使う利用者は、認証アプリのコード、リカバリーコード、またはパスキーの承認コードをsecond_factor_codeに送ってください。承認コードは、確認メールのリンクを開き、パスキーで承認すると表示されます。この確認だけに使え、有効期間は最長10分、使用は1回限りです。2段階認証のコードがない場合は401 TWO_FACTOR_REQUIREDとなり、メールの確認コードは有効なまま残るので、両方をもう一度送ってください。確認コードの誤り・端末の鍵の違い・2段階認証のコードの誤りは、それぞれ5回の試行を1回使います。使い切ったあとや10分を過ぎたあとは、開始からやり直してください。不明な確認や、一致しなかった確認にも、確認コードの誤りと同じエラーを返します。

認証
なし
必要な権限
—
操作ID
runtime_v1_email_verifications_confirm

パラメーター

verification_id 場所: パス 必須

Example Value

"verification_id_aaaaaaaaaaaaaaaaaaaa"

リクエスト本文

必須
application/json

Example Value

{
  "code": "123456",
  "second_factor_code": "string",
  "device_signing_public_key": "string",
  "nonce": "stringxxxxxxxxxxxxxxxx",
  "sdk_version": "string"
}

レスポンス

200

端末認証に使うユーザー単位の認証トークン

application/json

Example Value

{
  "data": {
    "named_user_token": "Example name",
    "expires_at": "2026-09-21T00:00:00Z"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

EMAIL_VERIFICATION_CODE_INVALID(確認コードか端末の鍵の違い)、TWO_FACTOR_REQUIRED(メールの確認コードは正しく、まだ有効です。認証アプリのコード、確認メールのリンクからパスキーで得た承認コード、またはリカバリーコードを一緒に送ってください)、またはTWO_FACTOR_INVALIDです。details.remaining_attemptsは残りの試行回数です

application/json

Example Value

{
  "error": {
    "code": "EMAIL_VERIFICATION_CODE_INVALID",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "details": {
      "remaining_attempts": 0
    }
  }
}
403

TWO_FACTOR_LOCKED(この利用者の2段階認証のロックを、販売元が解除する必要があります)、NAMED_USER_ASSIGNMENT_UNAVAILABLE(開始のあとで割当・利用者・ライセンス・プランが変わった)、または PLAN_ENTITLEMENT_REQUIRED です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
410

EMAIL_VERIFICATION_EXPIRED。確認の期限切れ・使用済み・新しい開始による無効化・試行の使い切り、または不明な確認です。確認を開始からやり直してください

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

Runtime API の要求本文が、経路ごとのバイト数の上限を超えています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/trial-verifications メール確認付きの試用を始める

利用者が入力したアドレスへ6桁の確認コードを送り、この端末で製品の試用を始められるようにします。製品が試用を受け付けている(販売者が試用の利用ルールを選び、24時間の受付上限に空きがある)とき、契約組織にトライアルの権利があるときだけ送り、そうでなくても同じ202を返します。過去の試用の有無は確認のときに伝えます。同じアドレスへの送信は120秒あけて1時間3回・1日5回(製品ごと)、全製品で1日10回まで。Runtime APIの月間回数には数えません。

利用者が入力したメールアドレスへ6桁の確認コードを送り、製品アプリがこの端末でこの製品の試用を始められるようにします。確認コードを送るのは、製品が試用の開始を受け付けていて(販売元が試用の利用ルールを選び、24時間の受付上限に空きがある)、契約組織がトライアルを使えるプラン(trial_licenses)のときだけです。そうでない場合も同じ202を返し、何も送りません。そのアドレスや端末がすでに試用したかどうかはここでは判定せず、確認のときに伝えます。同じアドレスへの送信は120秒あけ、製品ごとに1時間3回・1日5回、全製品で1日10回までです。Runtime APIの月間回数には数えません。

認証
なし
必要な権限
—
操作ID
runtime_v1_trial_verifications_create

リクエスト本文

必須
application/json

Example Value

{
  "product_id": "prod_0123456789abcdef0123",
  "email": "developer@example.com",
  "device_signing_public_key": "string",
  "nonce": "stringxxxxxxxxxxxxxxxx",
  "locale": "ja",
  "sdk_version": "string"
}

レスポンス

202

確認を開始しました。確認コードは製品が試用の開始を受け付けているときだけ送り、受け付けているかどうかは応答からは分かりません

application/json

Example Value

{
  "data": {
    "verification_id": "verification_id_aaaaaaaaaaaaaaaaaaaa",
    "expires_at": "2026-09-21T00:00:00Z",
    "resend_after_sec": 1,
    "code_length": 1
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

Runtime API の要求本文が、経路ごとのバイト数の上限を超えています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/trial-verifications/{verification_id}/confirm 確認コードで試用のライセンスを発行し、この端末を認証する

確認コードと開始のときのアドレスを照合し、販売者が選んだ試用の利用ルールでトライアルのライセンスを発行して、この端末を端末認証します。応答は端末認証と同じ署名付きの内容にlicense_idを足したもので、ライセンスキーは返しません。本文は端末認証の項目(license_keyとproduct_idを除く)にcodeとemailを足したもので、device_proofは、前置き「Usakey-Trial-Proof-v1」と改行に続けて署名します。同じアドレスの試用が有効なら、この端末をその試用に足します。365日以内に同じアドレスか同じ端末の鍵で試用していれば 403 TRIAL_ALREADY_USEDです。端末認証の1回を月間回数に数えます。

確認コードと、開始したときのメールアドレスを照合し、販売元が選んだ利用ルールでトライアルのライセンスを発行し、同じ要求の中でこの端末を認証します。応答は POST /runtime/v1/activations と同じ署名付きの端末認証の結果に license_id を加えたもので、ライセンスキーは返しません。本文は端末認証の項目(license_key と product_id を除く)に code と email を加えたもので、device_proof は端末認証の前置きの代わりに、前置き Usakey-Trial-Proof-v1 と改行を付けて署名します。同じアドレスでこの製品の試用がまだ有効なら、この端末はその試用に加わります。そのアドレスか端末の鍵で、直近365日以内にこの製品を試用していた場合は 403 TRIAL_ALREADY_USED です。端末認証として、Runtime APIの月間回数に1回数えます。

認証
なし
必要な権限
—
操作ID
runtime_v1_trial_verifications_confirm

パラメーター

verification_id 場所: パス 必須

Example Value

"verification_id_aaaaaaaaaaaaaaaaaaaa"
Idempotency-Key 場所: ヘッダー 必須
string 最小文字数: 16 最大文字数: 255

Example Value

"stringxxxxxxxxxx"

リクエスト本文

必須
application/json

Example Value

{
  "code": "123456",
  "email": "developer@example.com",
  "device_signing_public_key": "string",
  "device_kem_public_key": "string",
  "device_proof": "string",
  "machine_signals": {
    "property": "string"
  },
  "machine_info": {
    "os": "string",
    "arch": "string"
  },
  "app_version": "string",
  "sdk_version": "string",
  "request_id": "01K5QWERTY1234567890ABCDEFG",
  "client_time": 1,
  "nonce": "stringxxxxxxxxxxxxxxxx"
}

レスポンス

201

トライアルのライセンスを発行し、端末を認証しました

application/json

Example Value

{
  "data": {
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "certificate": "string",
    "machine_info_digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

EMAIL_VERIFICATION_CODE_INVALID(確認コード・アドレス・端末の鍵の違い。details.remaining_attempts)または DEVICE_PROOF_INVALID です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

TRIAL_ALREADY_USED、TRIAL_ACTIVATION_INVALID(製品が試用の開始の受付を止めたか、24時間の上限に達した。details.reason)、LICENSE_*、または PLAN_ENTITLEMENT_REQUIRED です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

PLAN_QUOTA_EXCEEDED(契約組織のトライアル枠がいっぱい)、MACHINE_LIMIT_REACHED、DEVICE_KEY_MISMATCH、または冪等性の衝突です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
410

EMAIL_VERIFICATION_EXPIRED。確認を開始からやり直してください

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

完全な machine_info が必要です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

Runtime API の要求本文が、経路ごとのバイト数の上限を超えています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/device-releases 手元に無い端末の解除を始める

新しい端末が 409 MACHINE_LIMIT_REACHED(details.device_release_available が true)になったときに使う、利用者自身による端末の解除を始めます。ライセンスキーが有効、そのライセンスの利用ルールで販売者が利用者による端末の入れ替えを許可している、利用ルールが完全オフラインの買い切りでない、契約組織がメールアドレスでのライセンス確認を使えるプラン(個人以上)、かつアドレスが一致する(ユーザー単位の利用ルールでは POST /runtime/v1/email-verifications と同じローカルIDのライセンスユーザーで、このライセンスの現在の割当がある。ライセンスキー方式では、販売者がライセンスの顧客に登録したメールアドレス)ときに、6桁の確認コードを送ります。一致したかどうかにかかわらず、応答の形と状態コードは同じで、確認コードを送るのは一致したときだけです。確認コードは10分で期限が切れ、試せるのは5回までで、device_signing_public_key(新しい端末の鍵)に結び付きます。同じ製品・同じライセンスキー・同じアドレス・同じ端末の鍵で新しく開始すると、前の確認は使えなくなります。この要求はRuntime APIの月間回数に数えません。

認証
なし
必要な権限
—
操作ID
runtime_v1_device_releases_create

リクエスト本文

必須
application/json

Example Value

{
  "product_id": "prod_0123456789abcdef0123",
  "license_key": "string",
  "email": "developer@example.com",
  "device_signing_public_key": "string",
  "nonce": "stringxxxxxxxxxxxxxxxx",
  "locale": "ja",
  "sdk_version": "string"
}

レスポンス

202

端末の解除を始めました。確認コードを送ったのはすべて一致したときだけで、応答からは一致したかどうかは分かりません

application/json

Example Value

{
  "data": {
    "verification_id": "verification_id_aaaaaaaaaaaaaaaaaaaa",
    "expires_at": "2026-09-21T00:00:00Z",
    "resend_after_sec": 1,
    "code_length": 1
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

Runtime API の要求本文が、経路ごとのバイト数の上限を超えています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/device-releases/{verification_id}/confirm 確認コードを照合して使用中の端末の一覧を得る

端末の解除を始めたときと同じ端末の署名公開鍵で、6桁の確認コードを照合します。2段階認証を設定したライセンスユーザーは、POST /runtime/v1/email-verifications/{verification_id}/confirm と同じく second_factor_code(認証アプリのコード、リカバリーコード、またはメールのリンクからパスキーで承認して表示される承認コード)も送ります。成功すると、利用者が見られる使用中の端末(ユーザー単位の利用ルールではその利用者の割当の端末、ライセンスキー方式ではライセンスの端末)を、最後の確認が古い順に32台まで返し、10分間・1回の解除に使える release_token を返します。端末は利用者が見分けられる情報(OS、CPU、機種、認証と最後の確認の日時)だけで示し、この確認でだけ使えるハンドルで選びます。利用ファイルがまだ有効な端末と、要求した端末自身は releasable が false です。同じ利用者が直近15分以内に端末を解除していた(製品アプリか顧客ポータルで)ときは 429 RATE_LIMITED と Retry-After を返し、届いた確認コードは使えるまま残ります。確認コード・端末の鍵・第2要素のコードを誤るたびに、5回の試行を1回使います。存在しない確認や一致しなかった確認には、コードの誤りと同じ応答を返します。

認証
なし
必要な権限
—
操作ID
runtime_v1_device_releases_confirm

パラメーター

verification_id 場所: パス 必須

Example Value

"verification_id_aaaaaaaaaaaaaaaaaaaa"

リクエスト本文

必須
application/json

Example Value

{
  "code": "123456",
  "second_factor_code": "string",
  "device_signing_public_key": "string",
  "nonce": "stringxxxxxxxxxxxxxxxx",
  "sdk_version": "string"
}

レスポンス

200

使用中の端末と、解除用のトークン

application/json

Example Value

{
  "data": {
    "release_token": "example-token",
    "expires_at": "2026-09-21T00:00:00Z",
    "machine_limit": 0,
    "active_device_count": 0,
    "devices": [
      {
        "handle": "string",
        "os": "string",
        "arch": "string",
        "model": "string",
        "activated_at": "2026-09-21T00:00:00Z",
        "last_check_at": "2026-09-21T00:00:00Z",
        "this_device": true,
        "releasable": true
      }
    ]
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

EMAIL_VERIFICATION_CODE_INVALID(確認コードか端末の鍵の誤り)、TWO_FACTOR_REQUIRED(届いた確認コードは正しく、まだ使えます。第2要素と一緒に送り直してください)、または TWO_FACTOR_INVALID。details.remaining_attempts は残りの試行回数です

application/json

Example Value

{
  "error": {
    "code": "EMAIL_VERIFICATION_CODE_INVALID",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "details": {
      "remaining_attempts": 0
    }
  }
}
403

TWO_FACTOR_LOCKED(販売者が2段階認証のロックを解く必要があります)、DEVICE_RELEASE_UNAVAILABLE(開始のあとでライセンス・利用者・宛先・利用ルールの設定・プランが変わった)、または PLAN_ENTITLEMENT_REQUIRED

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
410

EMAIL_VERIFICATION_EXPIRED。確認の期限切れ・使用済み・新しい開始による無効化・試行回数の使い切り、または存在しない確認です。端末の解除を最初からやり直してください

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

Runtime API の要求本文が、経路ごとのバイト数の上限を超えています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/device-releases/{verification_id}/release 選んだ端末の認証を解除する

確認の応答の release_token を使い、device_handle で選んだ端末の認証を解除します。本文には署名が要ります。device_proof は、端末の解除を始めたときと同じ端末の署名鍵で、前置き Usakey-Device-Release-Proof-v1 と改行に続けて、device_proof を除いたこの本文の正規化JSONに署名したものです(トークンだけでは端末を解除できません)。端末の枠はすぐに空き、解除した端末は次の定期確認から使えなくなります。ユーザー単位の利用ルールでは、新しい端末の POST /runtime/v1/activations に使える5分間の named_user_token も返します。解除したことを利用者にメールで知らせ、操作履歴に activation.customer_released として残し、Webhook の activation.customer_released を送ります。回数の上限は顧客ポータルと同じで、利用者(ライセンスユーザー、ライセンスキー方式ではライセンス)ごとに15分1回・1日3回、契約組織ごとに15分10回・1日50回、送信元IPごとに15分10回・1日100回までです(顧客ポータルの解除と合わせて数えます)。上限の保存先が使えないときは解除しません(503)。Idempotency-Key が必要で、同じ要求を送り直すと同じ応答を返します。

認証
なし
必要な権限
—
操作ID
runtime_v1_device_releases_release

パラメーター

verification_id 場所: パス 必須

Example Value

"verification_id_aaaaaaaaaaaaaaaaaaaa"
Idempotency-Key 場所: ヘッダー 必須
string 最小文字数: 16 最大文字数: 255

Example Value

"stringxxxxxxxxxx"

リクエスト本文

必須
application/json

Example Value

{
  "release_token": "example-token",
  "device_handle": "string",
  "device_signing_public_key": "string",
  "device_proof": "string",
  "nonce": "stringxxxxxxxxxxxxxxxx",
  "locale": "string",
  "sdk_version": "string"
}

レスポンス

200

端末の認証を解除しました

application/json

Example Value

{
  "data": {
    "device": {
      "handle": "string",
      "os": "string",
      "arch": "string",
      "model": "string",
      "activated_at": "2026-09-21T00:00:00Z",
      "last_check_at": "2026-09-21T00:00:00Z",
      "this_device": true,
      "releasable": true
    }
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

DEVICE_PROOF_INVALID

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

DEVICE_RELEASE_UNAVAILABLE(確認のあとでライセンス・利用者・宛先・利用ルールの設定・プランが変わった)、または PLAN_ENTITLEMENT_REQUIRED

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

DEVICE_NOT_RELEASABLE(端末はすでに解除された・利用ファイルがまだ有効・要求した端末自身・ハンドルが不明)、または冪等性の衝突

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
410

DEVICE_RELEASE_EXPIRED。解除用のトークンが違う・期限切れ・使用済み、または存在しない確認です。端末の解除を最初からやり直してください

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

Runtime API の要求本文が、経路ごとのバイト数の上限を超えています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/redemptions 注文の引換コードでライセンスを受け取る

注文の引換コードを、その注文のライセンス1本と引き換え、ライセンスキーを署名付きの201で1回だけ返します。ユーザー単位の利用ルールの注文ではemailが必須で、そのアドレスのライセンスユーザーへ割り当てます。別の製品・別の契約組織のコード、無いコード、形の違うコードは、どれも同じ404 REDEMPTION_CODE_INVALIDで、何も変えません。端末の署名は要りません。Idempotency-Keyが必須で、結果が分からないときは同じ本文と同じキーで送り直すと、同じ応答が返ります。Runtime APIの月間回数には数えません。

注文の引換コードを、その注文の新しいライセンス1本と引き換え、ライセンスキーを署名付きの応答で1回だけ返します。ライセンスは注文の顧客にひも付き、注文の利用ルールで発行し、期限は注文のとおりです。ユーザー単位の利用ルールでは email が必須で、そのアドレスのローカルIDのライセンスユーザー(いなければ作ります)に割り当てます。続けて POST /runtime/v1/email-verifications で named_user_token を得てから端末認証します。それ以外では email は任意で、送るとそこにもキーをメールで送ります。別の製品・別の契約組織のコード、無いコード、形の違うコードは、どれも同じ 404 REDEMPTION_CODE_INVALID を返し、何も変えません。端末の署名は要りません。Idempotency-Key は必須です。結果が分からないときは、同じ本文と同じキーで送り直してください。Runtime APIの月間回数には数えません。

認証
なし
必要な権限
—
操作ID
runtime_v1_redemptions_create

パラメーター

Idempotency-Key 場所: ヘッダー 必須
string 最小文字数: 16 最大文字数: 255

Example Value

"stringxxxxxxxxxx"

リクエスト本文

必須
application/json

Example Value

{
  "product_id": "prod_0123456789abcdef0123",
  "code": "RDM-ABCDE-FGHJK-LMNPQ-RSTUV",
  "email": "developer@example.com",
  "name": "Example name",
  "nonce": "stringxxxxxxxxxxxxxxxx",
  "locale": "ja",
  "sdk_version": "string",
  "app_version": "string"
}

レスポンス

201

ライセンスを発行しました。ライセンスキーはこの応答(email を送ったときはメールにも)にだけ入ります

application/json

Example Value

{
  "data": {
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "license_key": "string",
    "status": "active",
    "expires_at": "2026-09-21T00:00:00Z",
    "identity_mode": "license_key",
    "order_number": "string"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

REDEMPTION_CODE_INVALID(無いコード・形の違うコード・この製品のものではないコード)、または製品が無いときの NOT_FOUND です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

REDEMPTION_UNAVAILABLE(販売元のプラン・契約・顧客・製品の状態で、いまは発行できない。何も使われていない)、REDEMPTION_USER_UNAVAILABLE(そのメールアドレスのライセンスユーザーでは受け取れない)、または冪等性の競合です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
410

REDEMPTION_CODE_EXPIRED、REDEMPTION_CODE_REVOKED(コードか注文が取り消された)、または REDEMPTION_CODE_USED(コードの回数か注文の数量を使い切った)です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

REDEMPTION_EMAIL_REQUIRED(注文の利用ルールがユーザー単位。利用者のメールアドレスを送ってください)です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

Runtime API の要求本文が、経路ごとのバイト数の上限を超えています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Runtime API

Runtime 同時利用

5操作

同時利用枠を取得・更新・返却します。

POST /runtime/v1/leases/{lease_id}/heartbeat 同時利用リースを更新

取得済みの同時利用リースを延長し、利用枠を保持します。

認証
deviceProof
必要な権限
—
操作ID
runtime_v1_leases_heartbeat

パラメーター

lease_id 場所: パス 必須

Example Value

"lease_id_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Activation 場所: ヘッダー 必須

Example Value

"x_usakey_activation_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Timestamp 場所: ヘッダー 必須
integer

Example Value

1
X-Usakey-Nonce 場所: ヘッダー 必須
string 最小文字数: 22 最大文字数: 255

Example Value

"stringxxxxxxxxxxxxxxxx"
X-Usakey-Signature 場所: ヘッダー 必須
string 最大文字数: 1024

Example Value

"example-token"

リクエスト本文

必須
application/json

Example Value

{
  "instance_id": "01K5QWERTY1234567890ABCDEFG"
}

レスポンス

200

更新した同時利用枠

application/json

Example Value

{
  "data": {
    "lease_id": "lease_id_aaaaaaaaaaaaaaaaaaaa",
    "instance_id": "01K5QWERTY1234567890ABCDEFG",
    "expires_at": 1,
    "heartbeat_in": 10
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
410

対象はすでに有効ではありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

Runtime API の要求本文が、経路ごとのバイト数の上限を超えています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/leases 同時利用枠を1席取得

製品の同時利用枠から1席分のリースを取得します。

認証
deviceProof
必要な権限
—
操作ID
runtime_v1_leases_create

パラメーター

X-Usakey-Activation 場所: ヘッダー 必須

Example Value

"x_usakey_activation_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Timestamp 場所: ヘッダー 必須
integer

Example Value

1
X-Usakey-Nonce 場所: ヘッダー 必須
string 最小文字数: 22 最大文字数: 255

Example Value

"stringxxxxxxxxxxxxxxxx"
X-Usakey-Signature 場所: ヘッダー 必須
string 最大文字数: 1024

Example Value

"example-token"

リクエスト本文

必須
application/json

Example Value

{
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "instance_id": "01K5QWERTY1234567890ABCDEFG",
  "handoff_from_lease_id": "handoff_from_lease_id_aaaaaaaaaaaaaaaaaaaa"
}

レスポンス

201

取得した同時利用枠

application/json

Example Value

{
  "data": {
    "lease_id": "lease_id_aaaaaaaaaaaaaaaaaaaa",
    "instance_id": "01K5QWERTY1234567890ABCDEFG",
    "expires_at": 1,
    "heartbeat_in": 10
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

Runtime API の要求本文が、経路ごとのバイト数の上限を超えています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /runtime/v1/leases/{lease_id} 同時利用リースを返却

使用を終えた同時利用リースを返却し、利用枠を解放します。

認証
deviceProof
必要な権限
—
操作ID
runtime_v1_leases_destroy

パラメーター

lease_id 場所: パス 必須

Example Value

"lease_id_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Activation 場所: ヘッダー 必須

Example Value

"x_usakey_activation_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Timestamp 場所: ヘッダー 必須
integer

Example Value

1
X-Usakey-Nonce 場所: ヘッダー 必須
string 最小文字数: 22 最大文字数: 255

Example Value

"stringxxxxxxxxxxxxxxxx"
X-Usakey-Signature 場所: ヘッダー 必須
string 最大文字数: 1024

Example Value

"example-token"

リクエスト本文

必須
application/json

Example Value

{
  "instance_id": "01K5QWERTY1234567890ABCDEFG"
}

レスポンス

200

返却した同時利用枠

application/json

Example Value

{
  "data": {
    "lease_id": "lease_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "released"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

Runtime API の要求本文が、経路ごとのバイト数の上限を超えています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/leases/{lease_id}/checkout 同時利用枠を持ち出す

使用中の同時利用枠を、利用ルールの最長日数までの日数だけ持ち出し、署名付きの持ち出しの証明を受け取ります。枠は持ち出しの期限まで使用中のままです。

使用中の同時利用枠を、指定した日数だけ持ち出します。日数は利用ルールの持ち出しの最長日数まで(1〜30日)で、ライセンスの期限を超えません。持ち出した枠は、端末がオフラインのあいだもcheckout_expires_atまで使用中のままです。応答のcheckoutは、製品の署名鍵で署名したPASETO v4.publicの持ち出しの証明です(footerのpurposeはlease-checkout、implicit assertionはusakey:{product_id}:lease-checkout:v1)。証明は端末の署名鍵・端末認証・同時利用枠に結び付いており、SDKは通信せずに確かめて、checkout_expires_atまで同時利用を許します。端末がオフラインのあいだは、持ち出しを止められません。超過の枠と、別の起動へ引き継いだ枠は持ち出せません。持ち出し中にもう一度持ち出すと今から数え直しますが、今のcheckout_expires_atより前には終わりません。販売者が持ち出しを取り消すと、その端末の次の同時利用枠の要求は410 LEASE_EXPIREDになります。枠は、端末が持ち出しを返すか枠を返却するまで、または持ち出しの期限まで使用中のままです。

認証
deviceProof
必要な権限
—
操作ID
runtime_v1_leases_checkout

パラメーター

lease_id 場所: パス 必須

Example Value

"lease_id_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Activation 場所: ヘッダー 必須

Example Value

"x_usakey_activation_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Timestamp 場所: ヘッダー 必須
integer

Example Value

1
X-Usakey-Nonce 場所: ヘッダー 必須
string 最小文字数: 22 最大文字数: 255

Example Value

"stringxxxxxxxxxxxxxxxx"
X-Usakey-Signature 場所: ヘッダー 必須
string 最大文字数: 1024

Example Value

"example-token"

リクエスト本文

必須
application/json

Example Value

{
  "instance_id": "01K5QWERTY1234567890ABCDEFG",
  "days": 1
}

レスポンス

200

持ち出した同時利用枠と、署名付きの持ち出しの証明

application/json

Example Value

{
  "data": {
    "lease_id": "lease_id_aaaaaaaaaaaaaaaaaaaa",
    "instance_id": "01K5QWERTY1234567890ABCDEFG",
    "expires_at": 1,
    "heartbeat_in": 10,
    "checkout_expires_at": 1,
    "checkout": "string"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
410

対象はすでに有効ではありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

Runtime API の要求本文が、経路ごとのバイト数の上限を超えています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /runtime/v1/leases/{lease_id}/checkin 持ち出した同時利用枠を返す

持ち出しを期限の前に終え、同時利用枠を通常の保持時間に戻します。

持ち出しを終え、同時利用枠を通常の保持時間に戻します。続けて使う場合は更新し、使い終わったら返却してください。一時停止中のライセンスでも返せます。販売者が取り消した持ち出しは、410 LEASE_EXPIREDを返して枠を空けます。

認証
deviceProof
必要な権限
—
操作ID
runtime_v1_leases_checkin

パラメーター

lease_id 場所: パス 必須

Example Value

"lease_id_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Activation 場所: ヘッダー 必須

Example Value

"x_usakey_activation_aaaaaaaaaaaaaaaaaaaa"
X-Usakey-Timestamp 場所: ヘッダー 必須
integer

Example Value

1
X-Usakey-Nonce 場所: ヘッダー 必須
string 最小文字数: 22 最大文字数: 255

Example Value

"stringxxxxxxxxxxxxxxxx"
X-Usakey-Signature 場所: ヘッダー 必須
string 最大文字数: 1024

Example Value

"example-token"

リクエスト本文

必須
application/json

Example Value

{
  "instance_id": "01K5QWERTY1234567890ABCDEFG"
}

レスポンス

200

通常の保持時間に戻した同時利用枠

application/json

Example Value

{
  "data": {
    "lease_id": "lease_id_aaaaaaaaaaaaaaaaaaaa",
    "instance_id": "01K5QWERTY1234567890ABCDEFG",
    "expires_at": 1,
    "heartbeat_in": 10
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
410

対象はすでに有効ではありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

Runtime API の要求本文が、経路ごとのバイト数の上限を超えています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

製品

16操作

製品と署名鍵の状態を管理します。

POST /mgmt/v1/stripe-app/query Stripe Appで許可された操作の結果を取得

既存のUsakey APIキーを使い、その作成者が承認した有効なApp接続との共通の権限で操作します。リクエストで契約組織、アカウント、test/live環境を選ぶことはできません。操作ごとの追加スコープ、現在のメンバー資格、プラン、接続状態を再確認します。金銭を動かす操作や秘密値の表示は提供しません。

認証
managementApiKey
必要な権限
products:read
操作ID
mgmt_v1_stripe_app_operations_query

リクエスト本文

必須
application/json

Example Value

{
  "name": "customer",
  "params": {}
}

レスポンス

200

秘密値を含まない操作結果、または有効期限付きの変更確認

application/json

Example Value

{
  "request_id": "01K5QWERTY1234567890ABCDEFG",
  "data": {}
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/stripe-app/preview Stripe Appで許可された変更を確認

既存のUsakey APIキーを使い、その作成者が承認した有効なApp接続との共通の権限で操作します。リクエストで契約組織、アカウント、test/live環境を選ぶことはできません。操作ごとの追加スコープ、現在のメンバー資格、プラン、接続状態を再確認します。金銭を動かす操作や秘密値の表示は提供しません。

認証
managementApiKey
必要な権限
products:write
操作ID
mgmt_v1_stripe_app_operations_preview

リクエスト本文

必須
application/json

Example Value

{
  "name": "license.extend",
  "params": {},
  "expected_version": "string",
  "reason": "string"
}

レスポンス

200

秘密値を含まない操作結果、または有効期限付きの変更確認

application/json

Example Value

{
  "request_id": "01K5QWERTY1234567890ABCDEFG",
  "data": {}
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/stripe-app/command Stripe Appで確認した変更を実行

既存のUsakey APIキーを使い、その作成者が承認した有効なApp接続との共通の権限で操作します。リクエストで契約組織、アカウント、test/live環境を選ぶことはできません。操作ごとの追加スコープ、現在のメンバー資格、プラン、接続状態を再確認します。金銭を動かす操作や秘密値の表示は提供しません。

認証
managementApiKey
必要な権限
products:write
操作ID
mgmt_v1_stripe_app_operations_command

パラメーター

Idempotency-Key 場所: ヘッダー 必須
string 最小文字数: 16 最大文字数: 128 形式: ^[A-Za-z0-9_-]+$

Example Value

"example_operation_key_20261101"

リクエスト本文

必須
application/json

Example Value

{
  "name": "license.extend",
  "params": {},
  "expected_version": "string",
  "reason": "string",
  "confirmation_token": "example-token"
}

レスポンス

200

秘密値を含まない操作結果、または有効期限付きの変更確認

application/json

Example Value

{
  "request_id": "01K5QWERTY1234567890ABCDEFG",
  "data": {}
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/products 製品の一覧を取得
認証
managementApiKey
必要な権限
products:read
操作ID
mgmt_v1_products_index

パラメーター

limit 場所: クエリ 任意
integer 最小値: 1 最大値: 200

Example Value

50
cursor 場所: クエリ 任意
string

Example Value

"string"

レスポンス

200

製品の操作に成功しました

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "code": "string",
      "description": "Example description",
      "environment": "live",
      "status": "active",
      "trust_bundle_sequence": 1,
      "signing_status": "pending",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z",
      "version": 1
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/products 製品を作成
認証
managementApiKey
必要な権限
products:write
操作ID
mgmt_v1_products_create

パラメーター

Idempotency-Key 場所: ヘッダー 必須
string 最小文字数: 16 最大文字数: 255

Example Value

"stringxxxxxxxxxx"

リクエスト本文

必須
application/json

Schema

Example Value

{
  "name": "Example name",
  "code": "string",
  "description": "Example description",
  "environment": "string"
}

レスポンス

201

製品の操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "code": "string",
    "description": "Example description",
    "environment": "live",
    "status": "active",
    "trust_bundle_sequence": 1,
    "signing_status": "pending",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z",
    "version": 1
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/products/{id} 製品の詳細を取得
認証
managementApiKey
必要な権限
products:read
操作ID
mgmt_v1_products_show

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

製品の操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "code": "string",
    "description": "Example description",
    "environment": "live",
    "status": "active",
    "trust_bundle_sequence": 1,
    "signing_status": "pending",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z",
    "version": 1
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/products/{id} 製品を更新
認証
managementApiKey
必要な権限
products:write
操作ID
mgmt_v1_products_update

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
If-Match 場所: ヘッダー 任意
string

条件付き更新に使うことを推奨します。製品とライセンスはversion、利用ルールと顧客の詳細取得はETag応答ヘッダーで同時更新確認用の値を返します。ETagを変更せず送ってください。利用ルールのversionは履歴上の版番号であり、このヘッダーには使えません。値が現在のものと一致しないときは 409 VERSION_CONFLICT を返し、何も変更しません。

Example Value

"string"

リクエスト本文

必須
application/json

Schema

Example Value

{
  "name": "Example name",
  "code": "string",
  "description": "Example description",
  "environment": "string"
}

レスポンス

200

製品の操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "code": "string",
    "description": "Example description",
    "environment": "live",
    "status": "active",
    "trust_bundle_sequence": 1,
    "signing_status": "pending",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z",
    "version": 1
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/products/{id} 製品を削除

読んだあとに製品が変わっていないときだけアーカイブするには、If-Match に製品の version を送ります。古い If-Match は 409 VERSION_CONFLICT を返し、何も変更しません。

認証
managementApiKey
必要な権限
products:write
操作ID
mgmt_v1_products_destroy

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
If-Match 場所: ヘッダー 任意
string

条件付き更新に使うことを推奨します。製品とライセンスはversion、利用ルールと顧客の詳細取得はETag応答ヘッダーで同時更新確認用の値を返します。ETagを変更せず送ってください。利用ルールのversionは履歴上の版番号であり、このヘッダーには使えません。値が現在のものと一致しないときは 409 VERSION_CONFLICT を返し、何も変更しません。

Example Value

"string"

レスポンス

204

アーカイブしました

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/products/{id}/integration-config 製品の接続設定を取得

管理画面の「接続設定をダウンロード」と同じusakey.config.jsonを取得します。開発時に製品リポジトリへ保存する値で、製品アプリの実行時にネットワークから取得しないでください。

製品の usakey.config.json(管理画面でダウンロードできるものと同じファイル)を返します。開発時に製品リポジトリへ保存してください。製品アプリの実行時に取得してはいけません。アーカイブ済みの製品は 409 PRODUCT_ARCHIVED を返します。

認証
managementApiKey
必要な権限
products:read
操作ID
mgmt_v1_products_integration_config

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

製品アプリ用の接続設定

application/json

Example Value

{
  "data": {
    "file_name": "Example name",
    "content": "string",
    "config": {
      "usakey_config_version": 1,
      "generated_at": "2026-09-21T00:00:00Z",
      "bundle_version": "string",
      "environment": "live",
      "api_url": "https://example.com/resource",
      "product": {
        "id": "id_aaaaaaaaaaaaaaaaaaaa",
        "name": "Example name"
      },
      "trust_anchor": {
        "signing_mode": "string",
        "key_id": "01K5QWERTY1234567890ABCDEFG",
        "trust_bundle_url": "https://example.com/resource",
        "minimum_trust_bundle_sequence": 1,
        "root_public_key": "string",
        "development_root_public_key": "string",
        "public_key_unavailable_reason": "string",
        "signing_keys_pending_reason": "string"
      },
      "entitlements": [
        {
          "name": "Example name",
          "type": "boolean",
          "policies": [
            "string"
          ]
        }
      ],
      "license_key_delivery": "manual",
      "stripe_license_claim_url": "https://example.com/resource"
    }
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/products/{product_id}/browser-runtime 製品の詳細を取得

製品のブラウザRuntime設定(enabled、allowed_origins、version)を返します。既定は無効です。アーカイブ済みの製品は409 PRODUCT_ARCHIVEDを返します。既存のProduct応答は変わりません。この設定APIはブラウザからのクロスオリジン要求を許可しません。

認証
managementApiKey
必要な権限
products:read
操作ID
mgmt_v1_product_browser_runtimes_show

パラメーター

product_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

製品のブラウザRuntime設定

application/json

Example Value

{
  "data": {
    "product_id": "prod_0123456789abcdef0123",
    "enabled": true,
    "allowed_origins": [
      "string"
    ],
    "version": 0
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/products/{product_id}/browser-runtime 製品を更新

指定した設定だけを、Consoleと同じ入力検証を使って変更します。enabledには真偽値を指定してください。allowed_originsは最大20件の許可元の一覧全体を置き換えます。許可元は完全一致のHTTPSのoriginか、Chrome拡張の chrome-extension:// と32文字の拡張IDです。テスト製品ではHTTPのループバック許可元も使えます。ワイルドカード、null、パス、クエリ、フラグメント、userinfoは拒否します。無効化しても一覧は保持します。有効な状態で一覧を空にすると入力検証に失敗します。不正な値は422 VALIDATION_FAILEDを返します。If-Matchは許可元だけの変更も含む製品の版を確認し、競合時は409 VERSION_CONFLICTを返します。アーカイブ済みの製品は409 PRODUCT_ARCHIVEDを返します。変更はproduct.updatedとして監査記録に残します。RuntimeのOPTIONSはRuntime利用枠を消費しません。このManagement APIの呼び出しは通常のManagement API利用枠を消費します。

認証
managementApiKey
必要な権限
products:write
操作ID
mgmt_v1_product_browser_runtimes_update

パラメーター

product_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
If-Match 場所: ヘッダー 任意
string

条件付き更新に使うことを推奨します。製品とライセンスはversion、利用ルールと顧客の詳細取得はETag応答ヘッダーで同時更新確認用の値を返します。ETagを変更せず送ってください。利用ルールのversionは履歴上の版番号であり、このヘッダーには使えません。値が現在のものと一致しないときは 409 VERSION_CONFLICT を返し、何も変更しません。

Example Value

"string"

リクエスト本文

必須
application/json

Example Value

{
  "enabled": true,
  "allowed_origins": [
    "string"
  ]
}

レスポンス

200

製品のブラウザRuntime設定

application/json

Example Value

{
  "data": {
    "product_id": "prod_0123456789abcdef0123",
    "enabled": true,
    "allowed_origins": [
      "string"
    ],
    "version": 0
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/products/{product_id}/trial-signup 製品の試用の受付を取得

製品アプリがメール確認付きで始める試用(POST /runtime/v1/trial-verifications)を、この製品が受け付けているかを返します。試用に使う利用ルール、24時間の受付上限、いまの受付の状態が分かります。管理画面の製品の編集にある設定と同じもので、製品の応答には含めていません。アーカイブ済みの製品は 409 PRODUCT_ARCHIVED を返します。

認証
managementApiKey
必要な権限
products:read
操作ID
mgmt_v1_product_trial_signups_show

パラメーター

product_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

製品の試用の受付の設定

application/json

Example Value

{
  "data": {
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "01K5QWERTY1234567890ABCDEFG",
    "daily_limit": 1,
    "status": "accepting",
    "started_last_24_hours": 0,
    "version": 0
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/products/{product_id}/trial-signup 製品の試用の受付を変更

試用の受付の設定を、管理画面と同じ確認で変更します。送った項目だけを変えます。利用ルールを選ぶ・替えるには、トライアル(trial_licenses)を含む契約プランが必要です(403 PLAN_ENTITLEMENT_REQUIRED)。policy_id を null にして受付を止める変更と、daily_limit だけの変更は、いつでもできます。値が正しくなければ 422 VALIDATION_FAILED で、details.errors に policy_id か daily_limit の理由を返します。アーカイブ済みの製品は 409 PRODUCT_ARCHIVED を返します。変更は監査ログに product.updated として記録します。Idempotency-Key は使いません。同じ本文を送り直しても結果は同じです。

認証
managementApiKey
必要な権限
products:write
操作ID
mgmt_v1_product_trial_signups_update

パラメーター

product_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
If-Match 場所: ヘッダー 任意
string

条件付き更新に使うことを推奨します。製品とライセンスはversion、利用ルールと顧客の詳細取得はETag応答ヘッダーで同時更新確認用の値を返します。ETagを変更せず送ってください。利用ルールのversionは履歴上の版番号であり、このヘッダーには使えません。値が現在のものと一致しないときは 409 VERSION_CONFLICT を返し、何も変更しません。

Example Value

"string"

リクエスト本文

必須
application/json

Example Value

{
  "policy_id": "01K5QWERTY1234567890ABCDEFG",
  "daily_limit": 1
}

レスポンス

200

製品の試用の受付の設定

application/json

Example Value

{
  "data": {
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "01K5QWERTY1234567890ABCDEFG",
    "daily_limit": 1,
    "status": "accepting",
    "started_last_24_hours": 0,
    "version": 0
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/products/{product_id}/sealed-files 製品のファイルの暗号化の状態と公開鍵を取得

製品がライセンスのある端末向けにファイルを暗号化できるか(docs/security/sealed-files.md)と、有効にした後の公開鍵を返します。current_key.sealing_key は暗号化ツール(usakey-seal)に渡す1行の鍵で、秘密ではありません。status は enabled(有効)、disabled(無効)、not_entitled(プランに sealed_files が無い。既存の鍵は残りますが、端末はファイルの鍵を受け取れません)、unavailable(この環境ではまだ提供していない)のいずれかです。アーカイブ済みの製品は 409 PRODUCT_ARCHIVED を返します。

認証
managementApiKey
必要な権限
products:read
操作ID
mgmt_v1_product_sealed_files_show

パラメーター

product_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

製品のファイルの暗号化の状態

application/json

Example Value

{
  "data": {
    "product_id": "prod_0123456789abcdef0123",
    "status": "enabled",
    "current_key": {
      "key_id": "key_seal_0123456789abcdef0123",
      "public_key": "p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y",
      "sealing_key": "usakey-sealing-key:v1:prod_0123456789abcdef0123:key_seal_0123456789abcdef0123:p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y",
      "created_at": "2026-09-21T00:00:00Z"
    }
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/products/{product_id}/sealed-files 製品のファイルの暗号化を有効にする

製品のファイルの暗号化を有効にします。sealed_files の権利を含むプランと、ファイルの暗号化を提供している環境が必要です(403 PLAN_ENTITLEMENT_REQUIRED、409 SEALED_FILES_UNAVAILABLE)。200 と status enabled、current_key を返します。503 SEALED_FILES_KEY_UNAVAILABLE(再試行できる)は、暗号化用の鍵に一時的につながらなかったことを表します。再送しても何も変わりません。最初に有効にしたときは操作履歴に product.sealed_files_enabled として記録します。本文は不要で、Idempotency-Key も使いません。配布済みのファイルが開けなくなるため、ここでは無効にできません。

認証
managementApiKey
必要な権限
products:write
操作ID
mgmt_v1_product_sealed_files_create

パラメーター

product_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

ファイルの暗号化は有効で、鍵ができています

application/json

Example Value

{
  "data": {
    "product_id": "prod_0123456789abcdef0123",
    "status": "enabled",
    "current_key": {
      "key_id": "key_seal_0123456789abcdef0123",
      "public_key": "p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y",
      "sealing_key": "usakey-sealing-key:v1:prod_0123456789abcdef0123:key_seal_0123456789abcdef0123:p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y",
      "created_at": "2026-09-21T00:00:00Z"
    }
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/stripe-integration Stripeでの販売連携の状態を取得

Stripeでの販売連携の有無・テスト用か本番用か・受け取り先URL・価格とライセンスの対応を取得します。制限付きキーと署名シークレットは返しません。

製品アプリが使う、契約組織のStripeでの販売連携と、価格とライセンスの対応です。制限付きキーとWebhook署名シークレットは返しません。

認証
managementApiKey
必要な権限
products:read
操作ID
mgmt_v1_stripe_integrations_show

レスポンス

200

Stripeでの販売連携の状態

application/json

Example Value

{
  "data": {
    "registered": true,
    "mode": "test",
    "status": "active",
    "secure_claims_required": true,
    "license_claim_url": "https://example.com/resource",
    "last_event": {
      "type": "string",
      "result": "string",
      "at": "2026-09-21T00:00:00Z"
    },
    "offerings": [
      {
        "payment_grace_days": 1,
        "license_email_enabled": true,
        "id": "id_aaaaaaaaaaaaaaaaaaaa",
        "name": "Example name",
        "stripe_price_id": "01K5QWERTY1234567890ABCDEFG",
        "product_id": "prod_0123456789abcdef0123",
        "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
        "status": "active",
        "license_duration_days": 1
      }
    ]
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

利用ルール

12操作

ライセンスの利用条件を管理します。

GET /mgmt/v1/policies 利用ルールの一覧を取得
認証
managementApiKey
必要な権限
policies:read
操作ID
mgmt_v1_policies_index

レスポンス

200

利用ルールの操作に成功しました

application/json

Example Value

{
  "data": [
    {
      "default_license_metadata": {},
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "product_id": "prod_0123456789abcdef0123",
      "name": "Example name",
      "version": 1,
      "license_type": "perpetual",
      "validation_mode": "string",
      "perpetual_mode": "managed",
      "heartbeat_required": true,
      "revocation_guarantee_sec": 0,
      "fail_mode": "string",
      "identity_mode": "string",
      "license_unit_limit": 1,
      "max_machines": 1,
      "max_concurrent": 1,
      "concurrency_unit": "string",
      "cert_ttl_sec": 1,
      "heartbeat_sec": 1,
      "lease_ttl_sec": 1,
      "lease_heartbeat_sec": 1,
      "network_grace_sec": 1,
      "fingerprint_profile": {},
      "renewal_authority": "string",
      "billing_cycle": "string",
      "trial_days": 1,
      "entitlements": {},
      "status": "active",
      "created_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/policies 利用ルールを作成
認証
managementApiKey
必要な権限
policies:write
操作ID
mgmt_v1_policies_create

パラメーター

Idempotency-Key 場所: ヘッダー 必須
string 最小文字数: 16 最大文字数: 255

Example Value

"stringxxxxxxxxxx"

リクエスト本文

必須
application/json

Schema

Example Value

{
  "default_license_metadata": {},
  "product_id": "prod_0123456789abcdef0123",
  "name": "Example name",
  "license_type": "string",
  "validation_mode": "string",
  "fail_mode": "string",
  "max_machines": 1,
  "max_concurrent": 1,
  "concurrency_unit": "string",
  "identity_mode": "string",
  "license_unit_limit": 1,
  "cert_ttl_sec": 1,
  "heartbeat_sec": 1,
  "lease_ttl_sec": 1,
  "lease_heartbeat_sec": 1,
  "lease_checkout_max_days": 0,
  "lease_handoff_grace_sec": 0,
  "lease_burst_seats": 0,
  "lease_burst_sec": 0,
  "network_grace_sec": 1,
  "fingerprint_profile": "standard",
  "renewal_authority": "string",
  "billing_cycle": "string",
  "trial_days": 1,
  "entitlements": {},
  "offline_rehosts_per_year": 0,
  "counters": [
    {
      "name": "example",
      "limit": 0,
      "reset_period": "none",
      "unit": "string",
      "alert_threshold": 0,
      "overage_action": "notify"
    }
  ]
}

レスポンス

201

利用ルールの操作に成功しました

application/json

Example Value

{
  "data": {
    "default_license_metadata": {},
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "name": "Example name",
    "version": 1,
    "license_type": "perpetual",
    "validation_mode": "string",
    "perpetual_mode": "managed",
    "heartbeat_required": true,
    "revocation_guarantee_sec": 0,
    "fail_mode": "string",
    "identity_mode": "string",
    "license_unit_limit": 1,
    "max_machines": 1,
    "max_concurrent": 1,
    "concurrency_unit": "string",
    "cert_ttl_sec": 1,
    "heartbeat_sec": 1,
    "lease_ttl_sec": 1,
    "lease_heartbeat_sec": 1,
    "network_grace_sec": 1,
    "fingerprint_profile": {},
    "renewal_authority": "string",
    "billing_cycle": "string",
    "trial_days": 1,
    "entitlements": {},
    "status": "active",
    "created_at": "2026-09-21T00:00:00Z"
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/policies/{id} 利用ルールの詳細を取得
認証
managementApiKey
必要な権限
policies:read
操作ID
mgmt_v1_policies_show

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

利用ルールの操作に成功しました

application/json

Example Value

{
  "data": {
    "default_license_metadata": {},
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "name": "Example name",
    "version": 1,
    "license_type": "perpetual",
    "validation_mode": "string",
    "perpetual_mode": "managed",
    "heartbeat_required": true,
    "revocation_guarantee_sec": 0,
    "fail_mode": "string",
    "identity_mode": "string",
    "license_unit_limit": 1,
    "max_machines": 1,
    "max_concurrent": 1,
    "concurrency_unit": "string",
    "cert_ttl_sec": 1,
    "heartbeat_sec": 1,
    "lease_ttl_sec": 1,
    "lease_heartbeat_sec": 1,
    "network_grace_sec": 1,
    "fingerprint_profile": {},
    "renewal_authority": "string",
    "billing_cycle": "string",
    "trial_days": 1,
    "entitlements": {},
    "status": "active",
    "created_at": "2026-09-21T00:00:00Z"
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/policies/{id} 利用ルールを更新

古い If-Match は 409 VERSION_CONFLICT を返し、何も変更しません。現在の ETag は利用ルールをもう一度取得して確かめてください。

認証
managementApiKey
必要な権限
policies:write
操作ID
mgmt_v1_policies_update

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
If-Match 場所: ヘッダー 任意
string

条件付き更新に使うことを推奨します。製品とライセンスはversion、利用ルールと顧客の詳細取得はETag応答ヘッダーで同時更新確認用の値を返します。ETagを変更せず送ってください。利用ルールのversionは履歴上の版番号であり、このヘッダーには使えません。値が現在のものと一致しないときは 409 VERSION_CONFLICT を返し、何も変更しません。

Example Value

"string"

リクエスト本文

必須
application/json

Schema

Example Value

{
  "default_license_metadata": {},
  "product_id": "prod_0123456789abcdef0123",
  "name": "Example name",
  "license_type": "string",
  "validation_mode": "string",
  "fail_mode": "string",
  "max_machines": 1,
  "max_concurrent": 1,
  "concurrency_unit": "string",
  "identity_mode": "string",
  "license_unit_limit": 1,
  "cert_ttl_sec": 1,
  "heartbeat_sec": 1,
  "lease_ttl_sec": 1,
  "lease_heartbeat_sec": 1,
  "lease_checkout_max_days": 0,
  "lease_handoff_grace_sec": 0,
  "lease_burst_seats": 0,
  "lease_burst_sec": 0,
  "network_grace_sec": 1,
  "fingerprint_profile": "standard",
  "renewal_authority": "string",
  "billing_cycle": "string",
  "trial_days": 1,
  "entitlements": {},
  "offline_rehosts_per_year": 0,
  "counters": [
    {
      "name": "example",
      "limit": 0,
      "reset_period": "none",
      "unit": "string",
      "alert_threshold": 0,
      "overage_action": "notify"
    }
  ]
}

レスポンス

200

利用ルールの操作に成功しました

application/json

Example Value

{
  "data": {
    "default_license_metadata": {},
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "name": "Example name",
    "version": 1,
    "license_type": "perpetual",
    "validation_mode": "string",
    "perpetual_mode": "managed",
    "heartbeat_required": true,
    "revocation_guarantee_sec": 0,
    "fail_mode": "string",
    "identity_mode": "string",
    "license_unit_limit": 1,
    "max_machines": 1,
    "max_concurrent": 1,
    "concurrency_unit": "string",
    "cert_ttl_sec": 1,
    "heartbeat_sec": 1,
    "lease_ttl_sec": 1,
    "lease_heartbeat_sec": 1,
    "network_grace_sec": 1,
    "fingerprint_profile": {},
    "renewal_authority": "string",
    "billing_cycle": "string",
    "trial_days": 1,
    "entitlements": {},
    "status": "active",
    "created_at": "2026-09-21T00:00:00Z"
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/policies/{id} 利用ルールを削除
認証
managementApiKey
必要な権限
policies:write
操作ID
mgmt_v1_policies_destroy

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

204

廃止しました

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/policies/{policy_id}/offline-rehosts 利用ルールの詳細を取得

ライセンスをまだ発行していない利用ルールでも、この版の移送上限を取得できます。offline_rehosts_per_yearはPOST /mgmt/v1/policiesまたはPATCH /mgmt/v1/policies/{id}で設定できます。変更すると新しい版が作られ、発行済みライセンスは元の版の上限を使います。従来の利用ルールの応答は変わりません。

認証
managementApiKey
必要な権限
policies:read
操作ID
mgmt_v1_policy_offline_rehosts_show

パラメーター

policy_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

利用ルールのこの版の移送設定です。

application/json

Example Value

{
  "data": {
    "policy_id": "01K5QWERTY1234567890ABCDEFG",
    "offline_rehosts_per_year": 0
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/policies/{policy_id}/lease-settings 利用ルールの持ち出し・引き継ぎ・超過の設定

利用ルールの同時利用枠の持ち出し・引き継ぎ・超過の設定を返します。変更は利用ルールの作成・変更で行います。

利用ルールの同時利用枠の持ち出し・引き継ぎ・超過の設定と、超過のあとに次の超過を始めない間隔(1時間で固定)を返します。設定はPOST・PATCH /mgmt/v1/policiesのlease_checkout_max_days・lease_handoff_grace_sec・lease_burst_seats・lease_burst_secで変更できます(変更すると新しい版になり、発行済みのライセンスは発行した版の設定のままです)。利用ルールの応答には入りません。max_concurrentの無い利用ルールでは4項目とも0です。

認証
managementApiKey
必要な権限
policies:read
操作ID
mgmt_v1_policy_lease_settings_show

パラメーター

policy_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

利用ルールの同時利用枠の設定

application/json

Example Value

{
  "data": {
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "max_concurrent": 1,
    "lease_checkout_max_days": 0,
    "lease_handoff_grace_sec": 0,
    "lease_burst_seats": 0,
    "lease_burst_sec": 0,
    "burst_cooldown_sec": 0
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/policies/{policy_id}/counters 利用ルールの一覧を取得

利用ルールに定義した消費型カウンターを、書いた順に返します。定義は POST・PATCH /mgmt/v1/policies の counters で行います(変更のたびに利用ルールの新しい版ができます)。ライセンスは発行した版のカウンターを使い続けます。

認証
managementApiKey
必要な権限
policies:read
操作ID
mgmt_v1_policy_counters_index

パラメーター

policy_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

利用ルールに定義した消費型カウンター

application/json

Example Value

{
  "data": [
    {
      "name": "example",
      "limit": 0,
      "reset_period": "string",
      "unit": "string",
      "alert_threshold": 0,
      "overage_action": "string"
    }
  ]
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/policies/{policy_id}/device-release 利用者による端末の入れ替えの設定を取得

この版の利用ルールで発行したライセンスの利用者が、手元に無い端末の認証を製品アプリから解除できるか(利用者による端末の入れ替え。POST /runtime/v1/device-releases)を返します。確認コードの宛先(verified_by)、状態(status)、この版で発行したライセンスの数も返します。管理画面の利用ルールの詳細にある設定で、利用ルールの応答には含まれません。設定は利用ルールの版ごとに持ち、その版で発行したライセンスに反映されます。廃止した版でも同じです。

認証
managementApiKey
必要な権限
policies:read
操作ID
mgmt_v1_policy_device_releases_show

パラメーター

policy_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

この版の利用ルールの、利用者による端末の入れ替えの設定

application/json

Example Value

{
  "data": {
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "enabled": true,
    "status": "available",
    "verified_by": "license_user_email",
    "license_count": 0
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/policies/{policy_id}/device-release 利用者による端末の入れ替えの設定を変更

管理画面と同じ確認で、この版の利用ルールの、利用者による端末の入れ替えを許可します(enabled が true)。false で許可をやめます。新しい版は作らないので、変更はこの版で発行したライセンスにすぐ反映されます。廃止した版も変更できます。完全オフラインの買い切りの利用ルールは、発行した利用ファイルを取り消せないため許可できません(422 VALIDATION_FAILED、details.errors.enabled)。enabled には JSON の真偽値だけを指定でき、ほかの値は 422 VALIDATION_FAILED を返します。変更は policy.end_user_device_release_updated として監査ログに残ります。If-Match と Idempotency-Key は使いません。同じ本文を送り直しても結果は同じで、記録も増えません。

認証
managementApiKey
必要な権限
policies:write
操作ID
mgmt_v1_policy_device_releases_update

パラメーター

policy_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

リクエスト本文

必須
application/json

Example Value

{
  "enabled": true
}

レスポンス

200

この版の利用ルールの、利用者による端末の入れ替えの設定

application/json

Example Value

{
  "data": {
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "enabled": true,
    "status": "available",
    "verified_by": "license_user_email",
    "license_count": 0
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/policies/{policy_id}/anomaly-rule 利用ルールの異常の疑いの設定を取得

利用ルールの「端末の異常の疑い」(端末の複製やライセンスキーの共有の疑い)の設定を返します。疑いを開いたときの処理(anomaly_action。notify は記録と通知だけで既定、suspend_license はしきい値に届いた確認が minimum_confirmations 回に達するとライセンスも一時停止、off は検知しない)、しきい値、確認の回数、信号の点数が半分になるまでの時間(decay_hours)、信号ごとの重みが分かります。この設定は同じ利用ルールのすべての版(policy_versions)に使うので、古い版で発行したライセンスにも届きます。運営が fingerprint_profile.risk_policy に設定する観測ごとの即時の処理(action・threshold・minimum_confirmations・weights)は別の設定で、ここでは返さず、変えません。

認証
managementApiKey
必要な権限
policies:read
操作ID
mgmt_v1_policy_anomaly_rules_show

パラメーター

policy_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

利用ルールの異常の疑いの設定

application/json

Example Value

{
  "data": {
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "anomaly_action": "notify",
    "threshold": 1,
    "minimum_confirmations": 1,
    "decay_hours": 1,
    "weights": {
      "property": 0
    },
    "policy_versions": 1
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/policies/{policy_id}/anomaly-rule 利用ルールの異常の疑いの設定を変更

送った項目だけを、同じ利用ルールのすべての版に書きます。新しい版は作りません。

異常の疑いの設定を、管理画面と同じ確認で変更します。送った項目だけを変え、weights は指定した信号の重みだけを変えます。設定は同じ利用ルールのすべての版に書き、新しい版は作りません。範囲の外の値・整数でない値・知らない信号の名前は 422 VALIDATION_FAILED で、details.errors に項目ごとの理由を返し、何も変えません。変更は監査ログに policy.anomaly_rule_updated として記録します。同じ値を送り直しても何も変えず、記録もしません。If-Match は使いません。suspend_license は、離れたネットワークを行き来する顧客など、正規の利用者を止めることがあります。ライセンスは一時停止するだけで取り消さず、疑いを問題なしとして解除する(POST /mgmt/v1/anomalies/{id}/dismiss)と再開します。

認証
managementApiKey
必要な権限
policies:write
操作ID
mgmt_v1_policy_anomaly_rules_update

パラメーター

policy_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

リクエスト本文

必須
application/json

Example Value

{
  "anomaly_action": "notify",
  "threshold": 1,
  "minimum_confirmations": 1,
  "decay_hours": 1,
  "weights": {
    "property": 0
  }
}

レスポンス

200

利用ルールの異常の疑いの設定

application/json

Example Value

{
  "data": {
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "anomaly_action": "notify",
    "threshold": 1,
    "minimum_confirmations": 1,
    "decay_hours": 1,
    "weights": {
      "property": 0
    },
    "policy_versions": 1
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

顧客・ユーザー

12操作

顧客と、その顧客に紐づくユーザー情報を管理します。

GET /mgmt/v1/customers 顧客の一覧を取得

すべての顧客を返します。顧客組織は顧客に統合したので、利用者の管理を使っている顧客(organizations のエンドポイント)もここに含まれます。

認証
managementApiKey
必要な権限
customers:read
操作ID
mgmt_v1_customers_index

レスポンス

200

顧客の操作に成功しました

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "email": "developer@example.com",
      "external_ref": "string",
      "notes": "string",
      "status": "active",
      "kind": "individual",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/customers 顧客を作成

external_ref は、顧客組織から統合した顧客を含むすべての顧客の中で一意です。重複すると 422 VALIDATION_FAILED を返します。

認証
managementApiKey
必要な権限
customers:write
操作ID
mgmt_v1_customers_create

パラメーター

Idempotency-Key 場所: ヘッダー 必須
string 最小文字数: 16 最大文字数: 255

Example Value

"stringxxxxxxxxxx"

リクエスト本文

必須
application/json

Schema

Example Value

{
  "name": "Example name",
  "email": "developer@example.com",
  "external_ref": "string",
  "notes": "string",
  "kind": "individual"
}

レスポンス

201

顧客の操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "email": "developer@example.com",
    "external_ref": "string",
    "notes": "string",
    "status": "active",
    "kind": "individual",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/customers/{id} 顧客の詳細を取得

顧客ID(cus_…)のほか、顧客組織から統合した顧客は、統合前の組織ID(org_…)でも指定できます。

認証
managementApiKey
必要な権限
customers:read
操作ID
mgmt_v1_customers_show

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

顧客の操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "email": "developer@example.com",
    "external_ref": "string",
    "notes": "string",
    "status": "active",
    "kind": "individual",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/customers/{id} 顧客を更新

顧客ID(cus_…)か、統合前の組織ID(org_…)で指定します。顧客は live と test の環境で共有されています。test のAPIキーからは、live のライセンスを持つ顧客と、live のライセンスに席を持つライセンスユーザーがいる顧客を変更できません(403 ENVIRONMENT_MISMATCH)。古い If-Match は 409 VERSION_CONFLICT を返し、何も変更しません。現在の ETag は顧客をもう一度取得して確かめてください。

認証
managementApiKey
必要な権限
customers:write
操作ID
mgmt_v1_customers_update

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
If-Match 場所: ヘッダー 任意
string

条件付き更新に使うことを推奨します。製品とライセンスはversion、利用ルールと顧客の詳細取得はETag応答ヘッダーで同時更新確認用の値を返します。ETagを変更せず送ってください。利用ルールのversionは履歴上の版番号であり、このヘッダーには使えません。値が現在のものと一致しないときは 409 VERSION_CONFLICT を返し、何も変更しません。

Example Value

"string"

リクエスト本文

必須
application/json

Schema

Example Value

{
  "name": "Example name",
  "email": "developer@example.com",
  "external_ref": "string",
  "notes": "string",
  "kind": "individual"
}

レスポンス

200

顧客の操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "email": "developer@example.com",
    "external_ref": "string",
    "notes": "string",
    "status": "active",
    "kind": "individual",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/customers/{id} 顧客を削除

顧客をアーカイブします。発行済みのライセンスは停止しません。Usakeyは販売元のStripeや販売サービスの購読を解約しないため、購入者への請求を止めるには販売側で購読を解約してください。

認証
managementApiKey
必要な権限
customers:write
操作ID
mgmt_v1_customers_destroy

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

204

アーカイブしました

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/imports CSVの取り込みの一覧を取得

CSVの一括取り込みを、アップロードした順に取得します。

CSVの取り込みを、アップロードした順(古い順。cursorでページを送ります)に一覧します。ライセンスの発行と割当の取り込みは、licenses:readを持つAPIキーにだけ、そのキーの環境のものを返します。

認証
managementApiKey
必要な権限
customers:read
操作ID
mgmt_v1_bulk_imports_index

パラメーター

limit 場所: クエリ 任意
integer 最小値: 1 最大値: 200

Example Value

50
cursor 場所: クエリ 任意
string

Example Value

"string"
kind 場所: クエリ 任意

Example Value

"customers"
status 場所: クエリ 任意
string

許容値: validating, validated, applying, completed, failed, cancelled

Example Value

"validating"

レスポンス

200

CSVの取り込みの一覧

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "kind": "customers",
      "environment": "live",
      "status": "validating",
      "source": "console",
      "requested_by": "user",
      "filename": "Example name",
      "encoding": "utf-8",
      "byte_size": 0,
      "columns": [
        "string"
      ],
      "rows": {
        "total": 0,
        "valid": 0,
        "invalid": 0,
        "applied": 0,
        "unchanged": 0,
        "failed": 0
      },
      "preview": {
        "create": 0,
        "update": 0,
        "none": 0
      },
      "failure_code": "string",
      "created_at": "2026-09-21T00:00:00Z",
      "validated_at": "2026-09-21T00:00:00Z",
      "apply_requested_at": "2026-09-21T00:00:00Z",
      "completed_at": "2026-09-21T00:00:00Z",
      "rows_expire_at": "2026-09-21T00:00:00Z",
      "rows_purged": true
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/imports CSVをアップロードして検証

CSVをアップロードし、取り込む前の検証(プレビュー)を始めます。この時点では何も登録しません。

CSV(見出しのほかに5,000行・5MBまで。BOMの有無を問わないUTF-8か、Shift_JIS)をアップロードし、検証を始めます。POST /mgmt/v1/imports/{id}/applyを呼ぶまで、何も書き込みません。ファイルはmultipart/form-data(file)か、JSONのcsv(文字列)で送ってください。kindはcustomers(external_refで照合)、license_users(issuerとsubjectで照合)、licenses(1行で1件を発行)、license_assignments(license_idと、license_user_idかuser_subject)のどれかです。licensesとlicense_assignmentsはlicenses:writeも必要で、APIキーの環境の製品を使います。license_usersとlicense_assignmentsはユーザー単位ライセンスが必要です(403 PLAN_ENTITLEMENT_REQUIRED)。ファイルの問題(文字コード、見出し、大きさ、行数、見出しより欄の多い行)は、details.errors付きの422 CSV_INVALIDを返します。以前に取り込んだものと同じ内容のライセンスのファイルは409 DUPLICATE_IMPORTを返し、二重に発行しません。検証中・取り込み中の取り込みは契約組織で3件までです(409 IMPORTS_IN_PROGRESS、retryable)。=、+、-、@で始まる値も書かれたとおりに保存します。Usakeyが作るCSVでは、そのような文字列の先頭に'を付けます。Usakeyの新しい書き出し・エラー行CSVには、元の値へ戻すための補助列usakey_csv_encoding(apostrophe-v1)が付きます。この列を残して再取込すると、数式対策で付けた引用符を戻し、本来の先頭引用符も保持します。補助列のないCSVでは引用符をそのまま保存します。未対応の補助列の版は422 CSV_INVALIDを返します。

認証
managementApiKey
必要な権限
customers:write
操作ID
mgmt_v1_bulk_imports_create

パラメーター

Idempotency-Key 場所: ヘッダー 必須
string 最小文字数: 16 最大文字数: 255

Example Value

"stringxxxxxxxxxx"

リクエスト本文

必須
application/json

Example Value

{
  "kind": "customers",
  "csv": "string",
  "filename": "Example name"
}
multipart/form-data

Example Value

{
  "kind": "customers",
  "file": "string"
}

レスポンス

202

CSVを受け付け、検証しています

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "kind": "customers",
    "environment": "live",
    "status": "validating",
    "source": "console",
    "requested_by": "user",
    "filename": "Example name",
    "encoding": "utf-8",
    "byte_size": 0,
    "columns": [
      "string"
    ],
    "rows": {
      "total": 0,
      "valid": 0,
      "invalid": 0,
      "applied": 0,
      "unchanged": 0,
      "failed": 0
    },
    "preview": {
      "create": 0,
      "update": 0,
      "none": 0
    },
    "failure_code": "string",
    "created_at": "2026-09-21T00:00:00Z",
    "validated_at": "2026-09-21T00:00:00Z",
    "apply_requested_at": "2026-09-21T00:00:00Z",
    "completed_at": "2026-09-21T00:00:00Z",
    "rows_expire_at": "2026-09-21T00:00:00Z",
    "rows_purged": true
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
413

Runtime API の要求本文が、経路ごとのバイト数の上限を超えています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/imports/{id} CSVの取り込みを取得

取り込み1件の状態と、取り込める行のプレビューを取得します。

取り込み1件を返します。statusがvalidatedなら検証が終わっています。rowsは結果ごとの行数、previewは取り込める行が何をするか(create、update、none)ごとの行数です。行の中身は30日間残します(rows_expire_at)。

認証
managementApiKey
必要な権限
customers:read
操作ID
mgmt_v1_bulk_imports_show

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

CSVの取り込み

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "kind": "customers",
    "environment": "live",
    "status": "validating",
    "source": "console",
    "requested_by": "user",
    "filename": "Example name",
    "encoding": "utf-8",
    "byte_size": 0,
    "columns": [
      "string"
    ],
    "rows": {
      "total": 0,
      "valid": 0,
      "invalid": 0,
      "applied": 0,
      "unchanged": 0,
      "failed": 0
    },
    "preview": {
      "create": 0,
      "update": 0,
      "none": 0
    },
    "failure_code": "string",
    "created_at": "2026-09-21T00:00:00Z",
    "validated_at": "2026-09-21T00:00:00Z",
    "apply_requested_at": "2026-09-21T00:00:00Z",
    "completed_at": "2026-09-21T00:00:00Z",
    "rows_expire_at": "2026-09-21T00:00:00Z",
    "rows_purged": true
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/imports/{id}/apply CSVを取り込む

検証の済んだ取り込みの、エラーの無い行を取り込みます。

検証で問題の無かった行を1行ずつ取り込みます。1件ずつの登録の口と同じ検証・プランの上限・操作履歴を通り、エラーの行は飛ばします。取り込めるのは、ファイルをアップロードしたAPIキー(またはAIアシスタントの接続)だけです(403 IMPORT_NOT_OWNED)。確かめた行数をexpected_valid_rowsに指定してください。数が違うと、reasonがvalid_rows_changedの409 IMPORT_NOT_APPLIABLEを返します。取り込みを始めたあとの2回目の呼び出しは、reasonがnot_validatedの409 IMPORT_NOT_APPLIABLEを返し、二重に取り込みません。ライセンスは製品の署名鍵の準備を待たずに発行し、鍵は裏で準備します。

認証
managementApiKey
必要な権限
customers:write
操作ID
mgmt_v1_bulk_imports_apply

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

リクエスト本文

任意
application/json

Example Value

{
  "expected_valid_rows": 0
}

レスポンス

202

取り込みを始めました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "kind": "customers",
    "environment": "live",
    "status": "validating",
    "source": "console",
    "requested_by": "user",
    "filename": "Example name",
    "encoding": "utf-8",
    "byte_size": 0,
    "columns": [
      "string"
    ],
    "rows": {
      "total": 0,
      "valid": 0,
      "invalid": 0,
      "applied": 0,
      "unchanged": 0,
      "failed": 0
    },
    "preview": {
      "create": 0,
      "update": 0,
      "none": 0
    },
    "failure_code": "string",
    "created_at": "2026-09-21T00:00:00Z",
    "validated_at": "2026-09-21T00:00:00Z",
    "apply_requested_at": "2026-09-21T00:00:00Z",
    "completed_at": "2026-09-21T00:00:00Z",
    "rows_expire_at": "2026-09-21T00:00:00Z",
    "rows_purged": true
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/imports/{id}/rows 取り込みの行ごとの結果を取得

取り込みの行ごとの結果と、エラーの理由を取得します。

取り込みの行を、行番号の順(1行目は見出し)に一覧します。行ごとの結果、追加・更新した記録、エラーの理由が分かります。直す行はstatus=invalidかstatus=failedで絞り込んでください。ライセンスの発行の取り込みでは、ファイルをアップロードしたAPIキーかAIアシスタントの接続が読むときだけ、license_keyに発行したライセンスのキーの全文が入ります。このような呼び出しは毎回操作履歴に残ります。license_keys=omitでキーを除きます(MCPのツールの既定)。行は30日で消します(410 IMPORT_ROWS_EXPIRED)。

認証
managementApiKey
必要な権限
customers:read
操作ID
mgmt_v1_bulk_imports_rows

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
limit 場所: クエリ 任意
integer 最小値: 1 最大値: 200

Example Value

50
cursor 場所: クエリ 任意
string

Example Value

"string"
license_keys 場所: クエリ 任意
string

許容値: include, omit

include(既定)はアップロードした相手にキーの全文を返し、omitは除きます。

Example Value

"include"
status 場所: クエリ 任意
string

許容値: pending, valid, invalid, applied, unchanged, failed

Example Value

"pending"

レスポンス

200

取り込みの行

application/json

Example Value

{
  "data": [
    {
      "line": 2,
      "status": "pending",
      "action": "create",
      "record_type": "string",
      "record_id": "01K5QWERTY1234567890ABCDEFG",
      "messages": [
        "string"
      ],
      "license_key": "string"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
410

対象はすでに有効ではありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/imports/{id}/cancel CSVの取り込みを取りやめる

検証の済んだ取り込みを、何も取り込まずに取りやめます。

検証の済んだ取り込み(statusがvalidated)を、何も取り込まずに取りやめます。取りやめられるのは、ファイルをアップロードしたAPIキーかAIアシスタントの接続だけです(403 IMPORT_NOT_OWNED)。licensesとlicense_assignmentsの取り込みはlicenses:writeも必要です。ほかの状態の取り込みは、reasonがnot_cancellableの409 IMPORT_NOT_APPLIABLEを返します。

認証
managementApiKey
必要な権限
customers:write
操作ID
mgmt_v1_bulk_imports_cancel

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

取り込みを取りやめました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "kind": "customers",
    "environment": "live",
    "status": "validating",
    "source": "console",
    "requested_by": "user",
    "filename": "Example name",
    "encoding": "utf-8",
    "byte_size": 0,
    "columns": [
      "string"
    ],
    "rows": {
      "total": 0,
      "valid": 0,
      "invalid": 0,
      "applied": 0,
      "unchanged": 0,
      "failed": 0
    },
    "preview": {
      "create": 0,
      "update": 0,
      "none": 0
    },
    "failure_code": "string",
    "created_at": "2026-09-21T00:00:00Z",
    "validated_at": "2026-09-21T00:00:00Z",
    "apply_requested_at": "2026-09-21T00:00:00Z",
    "completed_at": "2026-09-21T00:00:00Z",
    "rows_expire_at": "2026-09-21T00:00:00Z",
    "rows_purged": true
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/import-templates/{kind} 取り込みの雛形を取得

取り込みの種類ごとの列の名前・必須かどうか・説明を取得します。

取り込みの種類ごとの雛形を返します。管理画面の雛形のファイルと同じ列です。requiredの列は見出しに必ず入れてください。one_ofの列は1つ以上が見出しに必要です。ignored_columnsは読み飛ばす列で、同じ種類の書き出しをそのまま取り込めます。forbidden_columnsのある見出しは断ります。header_csvはファイルの始めに書く見出しの1行です。見出しに無い列は変更せず、顧客とライセンスユーザーの更新では空の欄が値を空にします。 顧客CSVのkind列は任意で、individual(個人)かorganization(組織)を指定できます。更新時にこの列を省くと既存の種類を保持し、新規登録で省くとorganizationになります。列がある場合は、どちらかの値を入力してください。個人の顧客はConsole・管理APIと共通のCustomerDirectory::Provisionerを通り、顧客の名前とメールアドレスで利用者を作成・更新します。顧客の書き出しもkindを保持します。

認証
managementApiKey
必要な権限
customers:read
操作ID
mgmt_v1_bulk_imports_template

パラメーター

kind 場所: パス 必須

Example Value

"customers"

レスポンス

200

取り込みの雛形

application/json

Example Value

{
  "data": {
    "kind": "customers",
    "columns": [
      {
        "name": "Example name",
        "required": true,
        "description": "Example description"
      }
    ],
    "one_of": [
      "string"
    ],
    "ignored_columns": [
      "string"
    ],
    "forbidden_columns": [
      "string"
    ],
    "header_csv": "string",
    "max_rows": 1,
    "max_bytes": 1,
    "encodings": [
      "utf-8"
    ]
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

販売サービスの受け口

ライセンス

17操作

ライセンスの発行、変更、割り当てを管理します。

POST /integrations/stripe-app/{delivery_token}/license-claims 購入したライセンスの受け取りと保存完了の通知

購入者専用のHTTPS APIです。Management APIおよび従来の単一キーの受け取りAPIとは別のものです。ダウンロードした製品設定は、license_key_deliveryがstripe_app_bundleの場合だけ使ってください。Checkoutを始める前にSDKのClaimRequestを保存し、実際のSessionのメタデータにはchallengeだけを入れてください。最初のclaimではpurchase_refを省略できます。元の受け取り証明から、有効なアカウント・契約組織・環境の組み合わせに属する購入を一意に特定できます。再試行では同じverifierとidempotency_keyを使ってください。readyの応答には秘密のライセンスキーと保存完了の確認に使うreceiptが含まれます。すべての項目を永続保存してからacknowledgeを送ってください。ACKは一時的に暗号化して保管しているライセンス一式だけを消し、ライセンスの権利は保持します。配布期限の後でも、保存したreceiptで安全に再送できます。リクエスト本文、非公開URL、応答のキー、receiptをログに記録しないでください。購入者向けソフトウェアにManagement APIのBearerキーを含めないでください。

認証
なし
必要な権限
—
操作ID
stripe_apps_license_claims_create

パラメーター

delivery_token 場所: パス 必須
string 形式: ^[A-Za-z0-9_-]{43}$

stripe_purchase_bundle_urlに含まれる非公開の接続先トークンです。画面に表示したり、ログに記録したりしないでください。

Example Value

"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"

リクエスト本文

必須
application/json

Schema

object

Example Value

{
  "action": "claim",
  "verifier": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
  "idempotency_key": "example_purchase_key_20261101"
}

レスポンス

200

秘密のライセンス一式、または再送可能な保存完了の応答です。Cache-Controlはno-storeです。

application/json

Schema

object

Example Value

{
  "status": "ready",
  "purchase_ref": "spu_example_purchase",
  "licenses": [
    {
      "license_ref": "lic_example_license",
      "product_ref": "prd_example_product",
      "license_key": "USK_TEST-ABCD-EFGH-IJKL-MNOP"
    }
  ],
  "receipt": "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB",
  "expires_at": "2026-11-04T00:00:00Z"
}
400

actionが不正か、JSONリクエストの形式が制限に合っていません。

402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

一致する有効な接続または購入がありません。支払いの確認結果を待つ間は、元の受け取り証明を保持してください。

409

受け取り証明、再試行用のキー、receipt、または現在の配布状態を確認できませんでした。ACKを送ったり、代わりの受け取り証明を作ったりしないでください。

413

リクエストが4096バイトを超えています。

415

Content-Typeにはapplication/jsonを指定してください。

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/licenses/{license_id}/counters ライセンスの一覧を取得

ライセンスの消費型カウンターの今の期間の値を、利用ルールに定義したカウンターごとに返します。remaining は0未満にならず、上限を超えた分は overage に出ます。Usakey は使った量を数えて知らせるところまでを行い、使った分の請求は販売者の請求の仕組み(例: 自社のStripe連携)で行います。

認証
managementApiKey
必要な権限
licenses:read
操作ID
mgmt_v1_license_counters_index

パラメーター

license_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

ライセンスの消費型カウンターの今の期間の値

application/json

Example Value

{
  "data": [
    {
      "name": "Example name",
      "unit": "string",
      "reset_period": "string",
      "defined": true,
      "limit": 0,
      "limit_override": 0,
      "adjusted": 1,
      "used": 0,
      "remaining": 0,
      "overage": 0,
      "period_starts_at": "2026-09-21T00:00:00Z",
      "period_ends_at": "2026-09-21T00:00:00Z"
    }
  ]
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/licenses/{license_id}/counters/{counter_name}/entries ライセンスの一覧を取得

ライセンスの1つの消費型カウンターの履歴を、期間をまたいで古い順に返します。kind は consumption(端末から届いた消費)、adjustment(販売者による追加・差し引き)、limit_change(このライセンスの上限の変更)のどれかです。続きは cursor で取得します。

認証
managementApiKey
必要な権限
licenses:read
操作ID
mgmt_v1_license_counter_entries_index

パラメーター

license_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
counter_name 場所: パス 必須
string 形式: ^[a-z][a-z0-9_]{0,23}$

Example Value

"example"
limit 場所: クエリ 任意
integer 最小値: 1 最大値: 200

Example Value

50
cursor 場所: クエリ 任意
string

Example Value

"string"

レスポンス

200

消費型カウンターの履歴

application/json

Example Value

{
  "data": [
    {
      "kind": "string",
      "amount": 1,
      "period": "string",
      "consumption_id": "01K5QWERTY1234567890ABCDEFG",
      "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
      "consumed_at": "2026-09-21T00:00:00Z",
      "reason": "string",
      "recorded_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/licenses/{license_id}/counters/{counter_name}/adjustments ライセンスを作成

今の期間のカウンターへの追加・差し引き(amount)か、このライセンスだけの上限(limit。null で利用ルールの上限に戻します)のどちらか一方を、理由と一緒に送ります。amount は今の期間だけに効き、毎月リセットのカウンターは翌月にまた上限から始まります。このライセンスの上限は次の期間にも引き継ぎます。調整はカウンターの履歴と監査ログ(license.counter_adjusted、license.counter_limit_changed)に残り、次の定期確認で端末に新しい残量が届きます。Idempotency-Key は任意です。

認証
managementApiKey
必要な権限
licenses:write
操作ID
mgmt_v1_license_counter_adjustments_create

パラメーター

license_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
counter_name 場所: パス 必須
string 形式: ^[a-z][a-z0-9_]{0,23}$

Example Value

"example"
Idempotency-Key 場所: ヘッダー 任意
string 最小文字数: 16 最大文字数: 255

任意です。新しい操作ごとに一意な値を使い、結果が分からない同じ要求を再試行するときだけ同じ値を送ります。同じキーで別の本文を送ると 409 IDEMPOTENCY_CONFLICTになります。

Example Value

"stringxxxxxxxxxx"

リクエスト本文

必須
application/json

Example Value

{
  "amount": -1000000000,
  "limit": 0,
  "reason": "string"
}

レスポンス

200

調整したあとの消費型カウンター

application/json

Example Value

{
  "data": {
    "name": "Example name",
    "unit": "string",
    "reset_period": "string",
    "defined": true,
    "limit": 0,
    "limit_override": 0,
    "adjusted": 1,
    "used": 0,
    "remaining": 0,
    "overage": 0,
    "period_starts_at": "2026-09-21T00:00:00Z",
    "period_ends_at": "2026-09-21T00:00:00Z"
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/licenses/{id}/offline-certificates 端末固定のオフラインライセンスを発行

指定した端末だけで利用できる署名済みオフラインライセンスパッケージを発行します。

同じ端末申請を再送した場合、同じ稼働中の端末・割当で有効な既存の利用ファイルを、200のZIPとして安全に再配布します。以前のファイルを再配布できない場合は、新しく作成した端末申請を送ってください。

認証
managementApiKey
必要な権限
licenses:write
操作ID
mgmt_v1_licenses_offline_certificates

パラメーター

id 場所: パス 必須

Example Value

"id_aaaaaaaaaaaaaaaaaaaa"

リクエスト本文

必須
application/json

Example Value

{
  "request": {
    "format": "usakey-offline-request-v1",
    "product_id": "prod_0123456789abcdef0123",
    "device_signing_public_key": "string",
    "device_kem_public_key": "p256:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
    "device_proof": "string",
    "machine_info": {
      "os": "string",
      "arch": "string"
    },
    "nonce": "example_valuexxxxxxxxx",
    "generated_at": 1
  },
  "expires_at": "2026-09-21T00:00:00Z",
  "license_assignment_id": "license_assignment_id_aaaaaaaaaaaaaaaaaaaa"
}

レスポンス

200

端末に結び付いたオフライン利用ファイル(ZIP)

application/vnd.usakey.offline+zip

Schema

string binary

Example Value

"string"
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/licenses/{id}/offline-rehosts 完全オフラインのライセンスの移送の回数と履歴

ライセンスの移送の上限と、直近1年に移した回数・残りの回数、最近の移送の記録を返します。

このライセンスの移送の上限(ライセンスの利用ルールの版の offline_rehosts_per_year。あとから変えた利用ルールは、新しい版から発行したライセンスに適用します)、直近365日に移した回数、残りの回数と、最近の移送を新しい順に最大100件返します。

認証
managementApiKey
必要な権限
licenses:read
操作ID
mgmt_v1_licenses_offline_rehosts_show

パラメーター

id 場所: パス 必須

Example Value

"id_aaaaaaaaaaaaaaaaaaaa"

レスポンス

200

ライセンスの移送

application/json

Example Value

{
  "data": {
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "offline_rehosts_per_year": 0,
    "moves_in_last_year": 0,
    "remaining": 0,
    "moves": [
      {
        "id": "id_aaaaaaaaaaaaaaaaaaaa",
        "moved_at": "2026-09-21T00:00:00Z",
        "released_at": "2026-09-21T00:00:00Z",
        "released_activation_id": "released_activation_id_aaaaaaaaaaaaaaaaaaaa",
        "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
        "reason": "string"
      }
    ]
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/licenses/{id}/offline-rehosts 完全オフラインのライセンスを別の端末へ移す

旧端末の解除の証跡と新しい端末の申請から、旧端末の認証を解除して、新しい端末の署名済みオフラインライセンスパッケージを発行します。

旧端末の解除の証跡(usakey-offline-release-v1。SDKが書き出す .usakeyrel)を、このライセンスに登録された端末の鍵で確かめ、旧端末の認証を解除し、旧端末へ発行した利用ファイルを取り消して、新しい端末の申請に対する端末に結び付いた利用ファイルを、1つのトランザクションで発行します。断られた・失敗した移送は何も変えません。利用ルールの offline_rehosts_per_year が、ライセンスごと・365日あたりの移送の回数を制限します。名前付きユーザーのライセンスは、旧端末の割り当てのまま移します。同じ証跡と同じ申請を送り直すと、発行済みの利用ファイルを返します。使用済みの証跡で別の端末を移すことはできません。旧端末の解除は端末自身の署名付きの申告であり、旧端末のディスクの復元や改造したアプリは検知できません。

認証
managementApiKey
必要な権限
licenses:write
操作ID
mgmt_v1_licenses_offline_rehosts

パラメーター

id 場所: パス 必須

Example Value

"id_aaaaaaaaaaaaaaaaaaaa"

リクエスト本文

必須
application/json

Example Value

{
  "release": {
    "v": 1,
    "format": "usakey-offline-release-v1",
    "product_id": "prod_0123456789abcdef0123",
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "certificate_id": "certificate_id_aaaaaaaaaaaaaaaaaaaa",
    "package_id": "package_id_aaaaaaaaaaaaaaaaaaaa",
    "package_expires_at": 1,
    "device_signing_public_key": "string",
    "device_kem_public_key": "string",
    "nonce": "example_valuexxxxxxxxx",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "released_at": 1,
    "sdk_version": "string",
    "release_proof": "string"
  },
  "request": {
    "format": "usakey-offline-request-v1",
    "product_id": "prod_0123456789abcdef0123",
    "device_signing_public_key": "string",
    "device_kem_public_key": "p256:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
    "device_proof": "string",
    "machine_info": {
      "os": "string",
      "arch": "string"
    },
    "nonce": "example_valuexxxxxxxxx",
    "generated_at": 1
  },
  "expires_at": "2026-09-21T00:00:00Z",
  "license_assignment_id": "license_assignment_id_aaaaaaaaaaaaaaaaaaaa",
  "reason": "string"
}

レスポンス

200

新しい端末に結び付いたオフライン利用ファイル(ZIP)

application/vnd.usakey.offline+zip

Schema

string binary

Example Value

"string"
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/licenses/{id}/convert-trial トライアルライセンスを正式ライセンスへ変更

トライアル中のライセンスを、同じキーのまま正式なライセンスへ変更します。

認証
managementApiKey
必要な権限
licenses:write
操作ID
mgmt_v1_licenses_convert_trial

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

リクエスト本文

必須
application/json

Example Value

{
  "target_policy_id": "target_policy_id_aaaaaaaaaaaaaaaaaaaa",
  "expires_at": "2026-09-21T00:00:00Z",
  "entitlement_overrides": {}
}

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

ライセンスの操作に成功しました

application/json

Example Value

{
  "data": {}
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/licenses/{license_id}/leases ライセンスの同時利用枠

ライセンスで使用中の同時利用枠の状態と、利用ルールの設定、上限を超えた記録を返します。

ライセンスで使用中の同時利用枠を古い順に返します(最大200件。ほかにもあるときはleases_truncatedがtrue)。枠ごとの状態(regular・checked_out・checkout_revoked・burst・handed_off)、ライセンスの利用ルールの持ち出し・引き継ぎ・超過の設定、上限を超えた最近の記録(新しい順に最大20件)も返します。持ち出し中の枠は、端末がオフラインのあいだもcheckout_expires_atまで使用中のままです。checkout_revokedの枠は、端末の次の同時利用枠の要求で止まり、端末が返すか持ち出しの期限まで使用中のままです。超過と引き継ぎの記録で料金は増えません。

認証
managementApiKey
必要な権限
licenses:read
操作ID
mgmt_v1_license_leases_index

パラメーター

license_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

ライセンスの同時利用枠

application/json

Example Value

{
  "data": {
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "max_concurrent": 1,
    "settings": {
      "lease_checkout_max_days": 0,
      "lease_handoff_grace_sec": 0,
      "lease_burst_seats": 0,
      "lease_burst_sec": 0,
      "burst_cooldown_sec": 0
    },
    "in_use": 0,
    "checked_out": 0,
    "burst": 0,
    "handed_off": 0,
    "leases": [
      {
        "id": "id_aaaaaaaaaaaaaaaaaaaa",
        "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
        "instance_id": "01K5QWERTY1234567890ABCDEFG",
        "state": "regular",
        "acquired_at": "2026-09-21T00:00:00Z",
        "last_heartbeat_at": "2026-09-21T00:00:00Z",
        "expires_at": "2026-09-21T00:00:00Z",
        "checked_out_at": "2026-09-21T00:00:00Z",
        "checkout_expires_at": "2026-09-21T00:00:00Z",
        "checkout_revoked_at": "2026-09-21T00:00:00Z",
        "burst_until": "2026-09-21T00:00:00Z",
        "handoff_deadline_at": "2026-09-21T00:00:00Z",
        "handoff_from_lease_id": "01K5QWERTY1234567890ABCDEFG"
      }
    ],
    "leases_truncated": true,
    "overages": [
      {
        "kind": "burst",
        "started_at": "2026-09-21T00:00:00Z",
        "ends_at": "2026-09-21T00:00:00Z",
        "peak_excess": 1,
        "lease_count": 1
      }
    ]
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/licenses/{license_id}/leases/{lease_id}/checkout-revocation 同時利用枠の持ち出しを取り消す

持ち出しを取り消します。端末は次の同時利用枠の要求で止まり、枠は端末が返すか持ち出しの期限まで使用中のままです。

同時利用枠の持ち出しを取り消します。管理画面のライセンスの詳細の「持ち出しを取り消す」と同じ操作です。その端末は次の同時利用枠の要求で止まります(410 LEASE_EXPIRED)。オフラインのままの端末はcheckout_expires_atまで止められず、枠は端末が返すか持ち出しの期限まで使用中のままです。理由はlease.checkout_revokedとして監査ログに残ります。取り消し済みの持ち出しをもう一度取り消しても何も変えず、同じ枠を返します。持ち出し中でない枠は409 LEASE_CHECKOUT_UNAVAILABLEを返します。

認証
managementApiKey
必要な権限
licenses:write
操作ID
mgmt_v1_lease_checkout_revocations_create

パラメーター

license_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
lease_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

リクエスト本文

必須
application/json

Example Value

{
  "reason": "string"
}

レスポンス

200

持ち出しを取り消した同時利用枠

application/json

Example Value

{
  "data": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "instance_id": "01K5QWERTY1234567890ABCDEFG",
    "state": "regular",
    "acquired_at": "2026-09-21T00:00:00Z",
    "last_heartbeat_at": "2026-09-21T00:00:00Z",
    "expires_at": "2026-09-21T00:00:00Z",
    "checked_out_at": "2026-09-21T00:00:00Z",
    "checkout_expires_at": "2026-09-21T00:00:00Z",
    "checkout_revoked_at": "2026-09-21T00:00:00Z",
    "burst_until": "2026-09-21T00:00:00Z",
    "handoff_deadline_at": "2026-09-21T00:00:00Z",
    "handoff_from_lease_id": "01K5QWERTY1234567890ABCDEFG"
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/licenses ライセンスの一覧を取得
認証
managementApiKey
必要な権限
licenses:read
操作ID
mgmt_v1_licenses_index

パラメーター

without_customer 場所: クエリ 任意
boolean

true にすると、顧客が設定されていないライセンスだけを返します。customer_id と一緒には指定できません(400 INVALID_REQUEST)。

Example Value

true
key_last4 場所: クエリ 任意
string 最小文字数: 4 最大文字数: 4 形式: ^[A-Za-z0-9]{4}$

ライセンスキーの末尾が、この英数字4文字のライセンスだけを返します。大文字と小文字は区別しません。

Example Value

"stri"
limit 場所: クエリ 任意
integer 最小値: 1 最大値: 200

Example Value

50
cursor 場所: クエリ 任意
string

Example Value

"string"

レスポンス

200

ライセンスの操作に成功しました

application/json

Example Value

{
  "data": [
    {}
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/licenses ライセンスを作成
認証
managementApiKey
必要な権限
licenses:write
操作ID
mgmt_v1_licenses_create

パラメーター

payment_grace 場所: クエリ 任意
string

許容値: open

openを指定すると、支払いの猶予の期間中のライセンスだけを返します。

Example Value

"open"
Idempotency-Key 場所: ヘッダー 必須
string 最小文字数: 16 最大文字数: 255

Example Value

"stringxxxxxxxxxx"

リクエスト本文

必須
application/json

Example Value

{
  "product_id": "prod_0123456789abcdef0123",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
  "license_type": "perpetual",
  "expires_at": "2026-09-21T00:00:00Z",
  "expiry": "2026-09-21T00:00:00Z",
  "renewal_authority": "external_billing",
  "max_machines": 0,
  "max_concurrent": 0,
  "entitlements": {},
  "metadata": {},
  "license_unit_limit_override": 1
}

レスポンス

201

ライセンスの操作に成功しました

application/json

Example Value

{
  "data": {}
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/licenses/{id} ライセンスの詳細を取得
認証
managementApiKey
必要な権限
licenses:read
操作ID
mgmt_v1_licenses_show

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

ライセンスの操作に成功しました

application/json

Example Value

{
  "data": {}
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/licenses/{id} ライセンスを更新

ライセンスを変更します。status_actionで一時停止・再開・取消もできます。Usakeyは販売元のStripeや販売サービスの購読を解約しません。購読で買われたライセンスを一時停止・取消しても購入者への請求は止まらないため、販売側で購読を解約してください。これらの連携で買われたライセンスのmetadataには、stripe_subscription_id(Stripe)またはsales_provider(販売サービス)が入ります。

認証
managementApiKey
必要な権限
licenses:write
操作ID
mgmt_v1_licenses_update

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
If-Match 場所: ヘッダー 任意
string

条件付き更新に使うことを推奨します。製品とライセンスはversion、利用ルールと顧客の詳細取得はETag応答ヘッダーで同時更新確認用の値を返します。ETagを変更せず送ってください。利用ルールのversionは履歴上の版番号であり、このヘッダーには使えません。値が現在のものと一致しないときは 409 VERSION_CONFLICT を返し、何も変更しません。

Example Value

"string"

リクエスト本文

必須
application/json

Example Value

{
  "expires_at": "2026-09-21T00:00:00Z",
  "expiry": "2026-09-21T00:00:00Z",
  "renewal_authority": "string",
  "max_machines_override": 1,
  "max_concurrent_override": 1,
  "license_unit_limit_override": 1,
  "entitlements": {},
  "metadata": {},
  "status_action": "active",
  "reason": "string",
  "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa"
}

レスポンス

200

ライセンスの操作に成功しました

application/json

Example Value

{
  "data": {}
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/licenses/{id} ライセンスを削除

PATCHのstatus_action revokeと同じくライセンスを取り消します。元に戻せません。Usakeyは販売元のStripeや販売サービスの購読を解約しないため、購入者への請求を止めるには販売側で購読を解約してください。

認証
managementApiKey
必要な権限
licenses:write
操作ID
mgmt_v1_licenses_destroy

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

204

取り消しました

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/licenses/{license_id}/notices 購入者へ送ったメールを一覧

このライセンスの購入者・顧客へ送ったメール(ライセンスキーの案内と支払いの猶予の案内)を一覧します。ライセンスキーは返しません。

認証
managementApiKey
必要な権限
licenses:read
操作ID
mgmt_v1_license_notices_index

パラメーター

license_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

正常に処理しました。

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "kind": "license_delivery",
      "source": "stripe",
      "status": "pending",
      "skip_reason": "no_recipient",
      "recipient": "string",
      "includes_key": true,
      "sent_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z"
    }
  ]
}
POST /mgmt/v1/licenses/{license_id}/notices/{id}/resend ライセンスキーのメールを送り直す

ライセンスキーのメールを、記録済みの宛先へ送り直します。1本のライセンスにつき1日5回までです。宛先を変えられるのはConsoleだけなので、APIからキーを新しい宛先へ送ることはできません。

認証
managementApiKey
必要な権限
licenses:write
操作ID
mgmt_v1_license_notices_resend

パラメーター

license_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
202

メールの送信を受け付けました。送らなかった場合はskip_reasonに理由が入ります。

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "kind": "license_delivery",
    "source": "stripe",
    "status": "pending",
    "skip_reason": "no_recipient",
    "recipient": "string",
    "includes_key": true,
    "sent_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z"
  }
}

Management API

注文

9操作

注文と引換コード、顧客の引き換えの記録を扱います。

GET /mgmt/v1/orders 注文の一覧

APIキーと同じ環境の製品の注文を一覧します。状態・製品・顧客で絞り込めます。

APIキーと同じ環境の製品の注文を、古い順に一覧します。status(unredeemed、partially_redeemed、redeemed、canceled)、product_id、customer_id で絞り込めます。

認証
managementApiKey
必要な権限
licenses:read
操作ID
mgmt_v1_orders_index

パラメーター

limit 場所: クエリ 任意
integer 最小値: 1 最大値: 200

Example Value

50
cursor 場所: クエリ 任意
string

Example Value

"string"

レスポンス

200

注文の一覧

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "order_number": "string",
      "status": "unredeemed",
      "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
      "product_id": "prod_0123456789abcdef0123",
      "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
      "quantity": 1,
      "redeemed_count": 0,
      "remaining": 0,
      "version": 0
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/orders 注文を作成して引換コードを発行

顧客・製品・利用ルール・数量・期間を決めた注文を作り、引換コードを発行します。コードの全文はこの応答にだけ入ります。

顧客に向けた注文を作ります。製品、その製品の利用ルール、数量、発行するライセンスの期間(license_expires_at、引き換えからの license_duration_days、またはどちらも無し)を指定します。引換コードを同時に発行します。code_mode が shared(既定)なら数量ぶん使える1つのコード、per_unit なら1回ずつ使えるコードを数量ぶん(500件まで)発行します。コードの全文はこの応答(codes[].code)にだけ入ります。reveal_codes を false にすると応答から外し、そのときは send_codes を true にして顧客の連絡先メールアドレスへ送ってください。以後、引き換えのたびにライセンスを1本、注文の顧客に発行します(ユーザー単位の利用ルールでは、引き換えた人のアドレスに割り当てます)。利用ルールが求めるプランの権利(トライアル・買い切り・ユーザー単位・同時利用)はここで確かめ、ライセンスの枠は引き換えのたびに確かめます。

認証
managementApiKey
必要な権限
licenses:write
操作ID
mgmt_v1_orders_create

パラメーター

Idempotency-Key 場所: ヘッダー 必須
string 最小文字数: 16 最大文字数: 255

Example Value

"stringxxxxxxxxxx"

リクエスト本文

必須
application/json

Example Value

{
  "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
  "product_id": "prod_0123456789abcdef0123",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "quantity": 1,
  "order_number": "string",
  "license_expires_at": "2026-09-21T00:00:00Z",
  "license_duration_days": 1,
  "notes": "string",
  "code_mode": "shared",
  "codes_expires_at": "2026-09-21T00:00:00Z",
  "send_codes": false,
  "reveal_codes": true
}

レスポンス

201

注文を作成し、引換コードを発行しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "order_number": "string",
    "status": "unredeemed",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "quantity": 1,
    "redeemed_count": 0,
    "remaining": 0,
    "version": 0,
    "codes": [
      {
        "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
        "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa",
        "code_hint": "string",
        "status": "active",
        "max_redemptions": 1,
        "redemptions_count": 0,
        "expires_at": "2026-09-21T00:00:00Z"
      }
    ],
    "codes_emailed": true
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/orders/{id} 注文の詳細

注文1件の数量・引き換え済みの数・残り・期間・状態を返します。

認証
managementApiKey
必要な権限
licenses:read
操作ID
mgmt_v1_orders_show

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

注文

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "order_number": "string",
    "status": "unredeemed",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "quantity": 1,
    "redeemed_count": 0,
    "remaining": 0,
    "version": 0
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/orders/{id} 注文を変更

注文番号・メモ・数量を変更します。If-Matchで古い内容での更新を断れます。

注文番号・メモ・数量を変更します。数量は引き換え済みの数より小さくできません。引き換え済みの注文の数量を増やすと、一部引き換え済みに戻ります(共有のコードの回数が残っていなければ、コードを追加で発行してください)。取り消した注文は変更できません(422 LICENSE_ORDER_CANCELED)。読み取ったときの version を If-Match に送ると、古い内容での更新を断ります(409 VERSION_CONFLICT)。

認証
managementApiKey
必要な権限
licenses:write
操作ID
mgmt_v1_orders_update

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
If-Match 場所: ヘッダー 任意
string

条件付き更新に使うことを推奨します。製品とライセンスはversion、利用ルールと顧客の詳細取得はETag応答ヘッダーで同時更新確認用の値を返します。ETagを変更せず送ってください。利用ルールのversionは履歴上の版番号であり、このヘッダーには使えません。値が現在のものと一致しないときは 409 VERSION_CONFLICT を返し、何も変更しません。

Example Value

"string"

リクエスト本文

必須
application/json

Example Value

{
  "order_number": "string",
  "notes": "string",
  "quantity": 1
}

レスポンス

200

注文を変更しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "order_number": "string",
    "status": "unredeemed",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "quantity": 1,
    "redeemed_count": 0,
    "remaining": 0,
    "version": 0
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/orders/{id}/cancel 注文を取り消す

注文を取り消し、使えるコードも取り消します。引き換え済みのライセンスは止めません。

注文を取り消します。この注文のコードでは引き換えられなくなります(使えるコードは取り消します)。引き換え済みのライセンスには触れません。必要ならライセンスを個別に一時停止・取消してください。取り消した注文は元に戻せません。取り消し済みの注文を取り消しても、何も変えずに成功します(Usakey-State-Unchanged: true)。

認証
managementApiKey
必要な権限
licenses:write
操作ID
mgmt_v1_orders_cancel

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

リクエスト本文

必須
application/json

Example Value

{
  "reason": "string"
}

レスポンス

200

注文を取り消しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "order_number": "string",
    "status": "unredeemed",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "quantity": 1,
    "redeemed_count": 0,
    "remaining": 0,
    "version": 0
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/orders/{order_id}/codes 注文の引換コードの一覧

コードの全文は返さず、種類と末尾4文字・状態・回数・期限を返します。

注文の引換コードを一覧します。コードの全文は二度と返しません。code_hint は種類と末尾4文字です。

認証
managementApiKey
必要な権限
licenses:read
操作ID
mgmt_v1_order_codes_index

パラメーター

order_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
limit 場所: クエリ 任意
integer 最小値: 1 最大値: 200

Example Value

50
cursor 場所: クエリ 任意
string

Example Value

"string"

レスポンス

200

引換コードの一覧

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa",
      "code_hint": "string",
      "status": "active",
      "max_redemptions": 1,
      "redemptions_count": 0,
      "expires_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/orders/{order_id}/codes 引換コードを追加で発行

引き換えを受け付けている注文に、引換コードを追加で発行します。コードの全文はこの応答にだけ入ります。

引き換えを受け付けている注文に、引換コードを追加で発行します(漏れたコードを取り消したあとなど)。count 本(1〜500。既定1)を、1本あたり max_redemptions 回(既定は注文の残りの数量)、expires_at まで(既定90日、最長3年)使えるように発行します。コードの全文はこの応答にだけ入ります。reveal_codes を false にすると応答から外し、そのときは send_codes を true にしてください。コードが許す回数にかかわらず、引き換えは注文の数量までです。

認証
managementApiKey
必要な権限
licenses:write
操作ID
mgmt_v1_order_codes_create

パラメーター

order_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
Idempotency-Key 場所: ヘッダー 必須
string 最小文字数: 16 最大文字数: 255

Example Value

"stringxxxxxxxxxx"

リクエスト本文

必須
application/json

Example Value

{
  "count": 1,
  "max_redemptions": 1,
  "expires_at": "2026-09-21T00:00:00Z",
  "send_codes": false,
  "reveal_codes": true
}

レスポンス

201

引換コードを発行しました

application/json

Example Value

{
  "data": {
    "codes": [
      {
        "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
        "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa",
        "code_hint": "string",
        "status": "active",
        "max_redemptions": 1,
        "redemptions_count": 0,
        "expires_at": "2026-09-21T00:00:00Z"
      }
    ],
    "codes_emailed": true
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/orders/{order_id}/codes/{id} 引換コードを取り消す

引換コードを取り消します。元に戻せません。引き換え済みのライセンスには触れません。

引換コードを取り消します。以後そのコードでは引き換えられず、元に戻せません。そのコードで引き換え済みのライセンスには触れません。取り消し済みのコードを取り消しても成功します。

認証
managementApiKey
必要な権限
licenses:write
操作ID
mgmt_v1_order_codes_destroy

パラメーター

order_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

204

引換コードを取り消しました

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/orders/{order_id}/redemptions 注文の引き換えの一覧

受け取ったライセンス・受け取った場所・入力されたアドレス・割り当てた利用者を返します。

注文の引き換えを一覧します。それぞれが発行したライセンス、引き換えた場所(redeem_page または runtime)、入力されたアドレス、ユーザー単位の利用ルールでは割り当てたライセンスユーザーが分かります。

認証
managementApiKey
必要な権限
licenses:read
操作ID
mgmt_v1_order_redemptions_index

パラメーター

order_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
limit 場所: クエリ 任意
integer 最小値: 1 最大値: 200

Example Value

50
cursor 場所: クエリ 任意
string

Example Value

"string"

レスポンス

200

引き換えの一覧

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa",
      "code_id": "code_id_aaaaaaaaaaaaaaaaaaaa",
      "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
      "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
      "channel": "redeem_page",
      "email": "developer@example.com",
      "redeemed_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

認証済み端末

9操作

ライセンスに登録された端末を確認・解除します。

GET /mgmt/v1/licenses/{license_id}/activations 認証済み端末の一覧を取得
認証
managementApiKey
必要な権限
licenses:read
操作ID
mgmt_v1_activations_index

パラメーター

license_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
id 場所: パス 必須

Example Value

"id_aaaaaaaaaaaaaaaaaaaa"

レスポンス

200

端末認証の操作に成功しました

application/json

Example Value

{
  "data": [
    {
      "id": "id_aaaaaaaaaaaaaaaaaaaa",
      "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "machine": {},
      "device_signing_key_thumbprint": "string",
      "first_seen_at": "2026-09-21T00:00:00Z",
      "last_seen_at": "2026-09-21T00:00:00Z",
      "deactivated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/activations/{id} 端末認証の詳細を取得

端末認証1件と、定期確認の状況(最後の確認・次に来るはずの時刻・遅れているか・証明書の期限・アプリとSDKの版)を取得します。

1件の端末認証と、その定期確認の状態です。製品アプリが登録され、定期確認を続けているかを確かめるために使います。拒否された Runtime API の要求はここに含まれません。GET /mgmt/v1/runtime_events で一覧できます。

認証
managementApiKey
必要な権限
licenses:read
操作ID
mgmt_v1_activations_show

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

端末認証と定期確認の状況

application/json

Example Value

{
  "data": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "machine": {},
    "device_signing_key_thumbprint": "string",
    "first_seen_at": "2026-09-21T00:00:00Z",
    "last_seen_at": "2026-09-21T00:00:00Z",
    "deactivated_at": "2026-09-21T00:00:00Z",
    "activated_at": "2026-09-21T00:00:00Z",
    "last_heartbeat_at": "2026-09-21T00:00:00Z",
    "heartbeat_interval_sec": 1,
    "next_heartbeat_due": {
      "earliest": "2026-09-21T00:00:00Z",
      "latest": "2026-09-21T00:00:00Z"
    },
    "heartbeat_overdue": true,
    "certificate_expires_at": "2026-09-21T00:00:00Z",
    "app_version": "string",
    "sdk_version": "string"
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/activations/{id} 認証済み端末を削除
認証
managementApiKey
必要な権限
activations:delete
操作ID
mgmt_v1_activations_destroy

パラメーター

id 場所: パス 必須

Example Value

"id_aaaaaaaaaaaaaaaaaaaa"

レスポンス

204

端末の認証を強制的に解除しました

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/activations/{activation_id}/deactivation 端末の認証の解除の記録を取得

端末の認証をだれが・どの方法で解除したかを、管理画面の端末の詳細と同じ内容で返します。方法は、販売者(管理画面・Management API・MCP)、利用者による顧客ポータルでの解除、利用者がメールの確認コードで本人確認したあとの製品アプリでの解除(利用者による端末の入れ替え)、端末のリスク判定のどれかです。端末を使用中のときと、端末自身が解除したとき(製品アプリの「このPCの登録を解除」)や記録が残っていないときは、record が null です。監査記録そのものは GET /mgmt/v1/events で読めます。

認証
managementApiKey
必要な権限
licenses:read
操作ID
mgmt_v1_activation_deactivations_show

パラメーター

activation_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

端末の認証を解除した方法

application/json

Example Value

{
  "data": {
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "deactivated_at": "2026-09-21T00:00:00Z",
    "record": {
      "method": "string",
      "event_id": "event_id_aaaaaaaaaaaaaaaaaaaa",
      "occurred_at": "2026-09-21T00:00:00Z",
      "actor": {
        "type": "string",
        "id": "01K5QWERTY1234567890ABCDEFG"
      },
      "verified_by": "string",
      "second_factor": true,
      "reason": "string"
    }
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/runtime_events 拒否された端末の要求を一覧

端末認証・定期確認・同時利用枠の要求のうち、直近7日に拒否・失敗したもの(署名の不一致・時刻のずれなど)を古い順に一覧します。同じ対象・同じ操作・同じ結果コードの拒否は1時間ごとに回数をまとめます。成功した要求は含みません。組み込みの動作確認で、製品アプリの要求が断られていないかを確かめるときに使います。暗号化したファイルの鍵の受け取りの拒否は含みません(管理画面の端末の詳細で確認できます)。

直近7日に拒否または失敗した、端末認証・定期確認・同時利用枠の Runtime API の要求を古い順に返します。製品アプリが断られていないか(例: DEVICE_PROOF_INVALID や CLOCK_SKEW)を確かめるために使います。成功した要求は含みません(最後の定期確認は GET /mgmt/v1/activations/{id} で確認できます)。同じ対象・操作・結果コードの要求は1時間ごとに1件にまとめて数え、1時間に多数の異なる記録がある契約組織では、それを超えた分を対象を省いた1件(details_omitted)にまとめて数えます。回数の上限で断った要求(RATE_LIMITED)と、既知の製品や端末認証を指さない要求は含みません。APIキーの環境の分だけを返します。暗号化したファイルの鍵の受け取りの拒否は含みません(管理画面の端末の詳細に出ます)。

認証
managementApiKey
必要な権限
licenses:read
操作ID
mgmt_v1_runtime_events_index

パラメーター

license_id 場所: クエリ 任意

このライセンスへの要求だけを返します。

Example Value

"license_id_aaaaaaaaaaaaaaaaaaaa"
activation_id 場所: クエリ 任意

この端末認証からの要求だけを返します。

Example Value

"activation_id_aaaaaaaaaaaaaaaaaaaa"
product_id 場所: クエリ 任意

この製品への要求だけを返します。

Example Value

"prod_0123456789abcdef0123"
since 場所: クエリ 任意
string date-time

最後に発生した日時がこの日時(ISO 8601)以降の記録だけを返します。

Example Value

"2026-09-21T00:00:00Z"
limit 場所: クエリ 任意
integer 最小値: 1 最大値: 200

Example Value

50
cursor 場所: クエリ 任意
string

Example Value

"string"

レスポンス

200

拒否または失敗した Runtime API の要求

application/json

Example Value

{
  "data": [
    {
      "operation": "activation_create",
      "outcome": "rejected",
      "code": "DEVICE_PROOF_INVALID",
      "http_status": 400,
      "occurrences": 1,
      "first_occurred_at": "2026-09-21T00:00:00Z",
      "last_occurred_at": "2026-09-21T00:00:00Z",
      "last_request_id": "01K5QWERTY1234567890ABCDEFG",
      "product_id": "prod_0123456789abcdef0123",
      "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
      "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
      "details_omitted": true
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/anomalies 異常の疑いを一覧

端末の複製やライセンスキーの共有が疑われる使い方(異常の疑い)を、古い順に一覧します。状態・ライセンス・端末認証で絞り込めます。

APIキーの環境のライセンスについて、端末の複製やライセンスキーの共有の疑いを古い順に返します。疑いは、端末(scope が device)かライセンス(scope が license。新しい端末の入れ替わりが多いとき)の異常の点数が利用ルールのしきい値に届くと開き、問題なしとして解除するか対応済みにするまで開いたままです。signals は点数の元になった信号を、点数の大きい順に並べます。信号の名前は vm_detected・clock_tamper_detected・device_identity_changed・network_changed・parallel_network_use・shared_hardware・device_churn です。今後増えることがあるので、知らない名前はほかの信号として扱ってください。IPアドレス・接続元・機器の識別子は返しません。

認証
managementApiKey
必要な権限
licenses:read
操作ID
mgmt_v1_anomalies_index

パラメーター

status 場所: クエリ 任意
string

許容値: open, dismissed, resolved

この状態の疑いだけを返します。open はまだ確かめていない疑い、dismissed は問題なしとして解除した疑い、resolved は対応済みにした疑いです。

Example Value

"open"
license_id 場所: クエリ 任意

このライセンスの疑いだけを返します。

Example Value

"license_id_aaaaaaaaaaaaaaaaaaaa"
activation_id 場所: クエリ 任意

この端末認証の疑いだけを返します。

Example Value

"activation_id_aaaaaaaaaaaaaaaaaaaa"
limit 場所: クエリ 任意
integer 最小値: 1 最大値: 200

Example Value

50
cursor 場所: クエリ 任意
string

Example Value

"string"

レスポンス

200

端末の複製やライセンスキーの共有の疑い

application/json

Example Value

{
  "data": [
    {
      "id": "id_aaaaaaaaaaaaaaaaaaaa",
      "status": "open",
      "scope": "device",
      "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
      "product_id": "prod_0123456789abcdef0123",
      "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
      "score": 0,
      "threshold": 1,
      "confirmations": 1,
      "signals": [
        "string"
      ],
      "action": "notify",
      "license_suspended_by_anomaly": true,
      "license_status": "active",
      "detected_at": "2026-09-21T00:00:00Z",
      "last_observed_at": "2026-09-21T00:00:00Z",
      "resolved_at": "2026-09-21T00:00:00Z",
      "resolution_note": "string",
      "exempt_until": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/anomalies/{id} 異常の疑いの詳細を取得

異常の疑い1件を、点数の内訳と、記録した端末をまたぐ信号とともに取得します。

疑い1件を、点数の内訳(breakdown)と、記録した端末をまたぐ信号(events)とともに返します。breakdown は点数の大きい順です。信号は見つかるたびに重みの点数を足し、その点数は利用ルールの異常の疑いの設定の decay_hours ごとに半分になります。同じ信号を数える回数には上限があります。events は新しい順に最大30件です。shared_hardware の記録は、同じ機器が見つかった同じ製品の別のライセンスを related_license_ids で示します(削除したライセンスは含めません)。device_churn の記録は、期間内に新しく入った端末の数と、多いと判断する台数を示します。

認証
managementApiKey
必要な権限
licenses:read
操作ID
mgmt_v1_anomalies_show

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

点数の内訳つきの異常の疑い

application/json

Example Value

{
  "data": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "status": "open",
    "scope": "device",
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "score": 0,
    "threshold": 1,
    "confirmations": 1,
    "signals": [
      "string"
    ],
    "action": "notify",
    "license_suspended_by_anomaly": true,
    "license_status": "active",
    "detected_at": "2026-09-21T00:00:00Z",
    "last_observed_at": "2026-09-21T00:00:00Z",
    "resolved_at": "2026-09-21T00:00:00Z",
    "resolution_note": "string",
    "exempt_until": "2026-09-21T00:00:00Z",
    "breakdown": [
      {
        "signal": "string",
        "count": 0,
        "points": 0,
        "first_observed_at": "2026-09-21T00:00:00Z",
        "last_observed_at": "2026-09-21T00:00:00Z"
      }
    ],
    "events": [
      {
        "signal": "string",
        "observed_at": "2026-09-21T00:00:00Z",
        "new_devices": 0,
        "threshold": 0,
        "window_days": 1,
        "related_license_ids": [
          "related_license_ids_aaaaaaaaaaaaaaaaaaaa"
        ],
        "same_license_other_user": true
      }
    ]
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/anomalies/{id}/dismiss 異常の疑いを問題なしとして解除

正規の利用だったとして疑いを閉じます。この疑いによる一時停止が続いている場合は、ライセンスを再開します。

管理画面の「問題なしとして解除」と同じく、正規の利用だったとして疑いを閉じます。この疑いがライセンスを一時停止していて、その停止が続いていれば、ライセンスを再開します(license_resumed が true)。販売者があとから止め直した停止は再開しません。期限切れやプランの上限で再開できないライセンスは一時停止のままですが、疑いは閉じます。30日間(exempt_until まで)は、同じ端末やライセンスを自動では一時停止しません。記録と通知は続きます。reason は必須で、監査ログに activation.anomaly_dismissed として記録します。すでに閉じた疑いは 422 INVALID_STATE_TRANSITION で、details.status に今の状態を返し、何も変えません。Idempotency-Key は使いません。

認証
managementApiKey
必要な権限
licenses:write
操作ID
mgmt_v1_anomalies_dismiss

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

リクエスト本文

必須
application/json

Example Value

{
  "reason": "string"
}

レスポンス

200

閉じた異常の疑い

application/json

Example Value

{
  "data": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "status": "open",
    "scope": "device",
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "score": 0,
    "threshold": 1,
    "confirmations": 1,
    "signals": [
      "string"
    ],
    "action": "notify",
    "license_suspended_by_anomaly": true,
    "license_status": "active",
    "detected_at": "2026-09-21T00:00:00Z",
    "last_observed_at": "2026-09-21T00:00:00Z",
    "resolved_at": "2026-09-21T00:00:00Z",
    "resolution_note": "string",
    "exempt_until": "2026-09-21T00:00:00Z",
    "license_resumed": true
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/anomalies/{id}/resolve 異常の疑いを対応済みにする

ほかの操作で対応したとして疑いを閉じます。ライセンスは変えません。

複製された端末の認証の解除やライセンスの取消など、販売者がほかの操作で対応したとして疑いを閉じます。ライセンスは変えません(license_resumed は false)。reason は必須で、監査ログに activation.anomaly_resolved として記録します。すでに閉じた疑いは 422 INVALID_STATE_TRANSITION で、details.status に今の状態を返し、何も変えません。Idempotency-Key は使いません。

認証
managementApiKey
必要な権限
licenses:write
操作ID
mgmt_v1_anomalies_resolve

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

リクエスト本文

必須
application/json

Example Value

{
  "reason": "string"
}

レスポンス

200

閉じた異常の疑い

application/json

Example Value

{
  "data": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "status": "open",
    "scope": "device",
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "score": 0,
    "threshold": 1,
    "confirmations": 1,
    "signals": [
      "string"
    ],
    "action": "notify",
    "license_suspended_by_anomaly": true,
    "license_status": "active",
    "detected_at": "2026-09-21T00:00:00Z",
    "last_observed_at": "2026-09-21T00:00:00Z",
    "resolved_at": "2026-09-21T00:00:00Z",
    "resolution_note": "string",
    "exempt_until": "2026-09-21T00:00:00Z",
    "license_resumed": true
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

Webhook

5操作

Webhook通知先と署名シークレットを管理します。

GET /mgmt/v1/webhooks Webhook通知先の一覧を取得

署名シークレットは返しません。Slack・Microsoft Teams・Google Chat・LINE WORKSの通知先のURLは、それ自体がチャンネルへ誰でも投稿できる権限を持つため、返しません。

認証
managementApiKey
必要な権限
webhooks:read
操作ID
mgmt_v1_webhook_endpoints_index

レスポンス

200

Webhook通知先の操作に成功しました

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "url": "https://example.com/resource",
      "events": [
        "string"
      ],
      "status": "active",
      "secret_rotation": {
        "scheduled": true,
        "activates_at": "2026-09-21T00:00:00Z"
      },
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/webhooks Webhook通知先を作成

Webhook通知先を作成し、署名シークレットを一度だけ返します。この操作の Idempotency-Key は任意です。送った場合は、同じキーと同じ本文の再送に、通知先を増やさず最初の応答(署名シークレットを含む)を返します。live の製品がある契約組織では、Webhook通知先は live と test の環境で共有されているため、test のAPIキーから通知先を作成できません(403 ENVIRONMENT_MISMATCH)。この操作で作るのは、署名付きのJSONを受け取る自社システムの通知先です。チャット(Slack・Microsoft Teams・Google Chat・Chatwork・LINE WORKS)への通知先は管理画面でだけ登録できます。チャットは署名付きのJSONを表示できないため、チャットへ投稿するURLを指定すると 422 WEBHOOK_INVALID で断ります。自社システムの通知先のurlを変更するときも同じです。TeamsのワークフローのURL(environment.api.powerplatform.com・logic.azure.com)は、一般のワークフローと同じホストなので断りませんが、Teamsには表示されません。Teamsへは、管理画面で通知先の種類に「Microsoft Teams」を選んで登録してください。

認証
managementApiKey
必要な権限
webhooks:write
操作ID
mgmt_v1_webhook_endpoints_create

パラメーター

Idempotency-Key 場所: ヘッダー 任意
string 最小文字数: 16 最大文字数: 255

任意です。新しい操作ごとに一意な値を使い、結果が分からない同じ要求を再試行するときだけ同じ値を送ります。同じキーで別の本文を送ると 409 IDEMPOTENCY_CONFLICTになります。

Example Value

"stringxxxxxxxxxx"

リクエスト本文

必須
application/json

Schema

Example Value

{
  "name": "Example name",
  "url": "https://example.com/resource",
  "events": [
    "string"
  ]
}

レスポンス

201

Webhook通知先の操作に成功しました

application/json

Example Value

{
  "data": {}
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/webhooks/{id} Webhook通知先の詳細を取得

署名シークレットは返しません。Slack・Microsoft Teams・Google Chat・LINE WORKSの通知先のURLは、それ自体がチャンネルへ誰でも投稿できる権限を持つため、返しません。

認証
managementApiKey
必要な権限
webhooks:read
操作ID
mgmt_v1_webhook_endpoints_show

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

Webhook通知先の操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "url": "https://example.com/resource",
    "events": [
      "string"
    ],
    "status": "active",
    "secret_rotation": {
      "scheduled": true,
      "activates_at": "2026-09-21T00:00:00Z"
    },
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/webhooks/{id} Webhook通知先を更新

Webhook通知先は live と test の環境で共有されていて、有効な通知先はどちらの環境の出来事も受け取ります。live の製品がある契約組織では、test のAPIキーから通知先を変更できません(403 ENVIRONMENT_MISMATCH)。自社システム(署名付きJSON)の通知先のurlを、チャットへ投稿するURLへは変更できません(422 WEBHOOK_INVALID)。TeamsのワークフローのURLは断りませんが、Teamsには表示されません。

認証
managementApiKey
必要な権限
webhooks:write
操作ID
mgmt_v1_webhook_endpoints_update

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

リクエスト本文

必須
application/json

Schema

Example Value

{
  "name": "Example name",
  "url": "https://example.com/resource",
  "events": [
    "string"
  ]
}

レスポンス

200

Webhook通知先の操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "url": "https://example.com/resource",
    "events": [
      "string"
    ],
    "status": "active",
    "secret_rotation": {
      "scheduled": true,
      "activates_at": "2026-09-21T00:00:00Z"
    },
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/webhooks/{id} Webhook通知先を削除

Webhook通知先は live と test の環境で共有されていて、有効な通知先はどちらの環境の出来事も受け取ります。live の製品がある契約組織では、test のAPIキーから通知先を停止できません(403 ENVIRONMENT_MISMATCH)。

認証
managementApiKey
必要な権限
webhooks:write
操作ID
mgmt_v1_webhook_endpoints_destroy

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

204

停止しました

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

イベント・利用状況

10操作

監査イベントと利用状況レポートを取得します。

GET /mgmt/v1/events イベントの一覧を取得
認証
managementApiKey
必要な権限
events:read
操作ID
mgmt_v1_audit_events_index

パラメーター

limit 場所: クエリ 任意
integer 最小値: 1 最大値: 200

Example Value

50
cursor 場所: クエリ 任意
string

Example Value

"string"

レスポンス

200

監査イベントの取得に成功しました

application/json

Example Value

{
  "data": [
    {
      "id": "id_aaaaaaaaaaaaaaaaaaaa",
      "type": "string",
      "actor": {},
      "target": {
        "environment": "live"
      },
      "request_id": "01K5QWERTY1234567890ABCDEFG",
      "data": {},
      "created_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/plan 契約プランの上限と使用量を取得

契約プランの上限、利用ルールの推奨値、今月の使用量を取得します。この呼び出しは月間回数に数えません。

契約プランの上限、利用ルールの推奨値、今月の使用量を返します。この呼び出しは Management API の月間回数に数えないため、月間回数を使い切った後も応答します。

認証
managementApiKey
必要な権限
reports:read
操作ID
mgmt_v1_plans_show

レスポンス

200

プランの上限と使用量

application/json

Example Value

{
  "data": {
    "plan": {
      "code": "string",
      "name": "Example name",
      "trial": true,
      "ends_at": "2026-09-21T00:00:00Z"
    },
    "quotas": {
      "property": {
        "limit": 1,
        "used": 1,
        "remaining": 1,
        "limit_with_overage": 1,
        "resets_at": "2026-09-21T00:00:00Z"
      }
    },
    "policy_constraints": {
      "activation_sync_min_sec": 1,
      "revocation_exposure_max_sec": 1,
      "cert_ttl_max_sec": 1,
      "floating_sync_min_sec": 1,
      "floating_lease_ttl_min_sec": 1
    },
    "policy_defaults": {
      "heartbeat_sec": 1,
      "cert_ttl_sec": 1,
      "network_grace_sec": 1
    },
    "revocation_exposure_max_sec_by_plan": {
      "property": 1
    },
    "license_duration_max_sec": 1,
    "unavailable_features": [
      {
        "key": "string",
        "minimum_plan": "string",
        "minimum_plan_name": "Example name"
      }
    ]
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/plan/billing-status Usakeyの契約の状態を取得

支払いの失敗・未払い・解約の予約・Usakeyが設定した契約など、Usakeyの利用料金の契約の状態を業務の言葉で取得します。課金の操作は、オーナーか管理者が管理画面で本人確認をしてから行う操作です。月間回数に数えず、契約が終わったあとや未払いで止まったあとも応答します。

Usakeyの利用料金の契約の状態を、業務の言葉で返します。ライセンスの認証やManagement APIの要求が止まった理由の説明に使えます(Stripeが再試行している支払いの失敗、未払いで止まった・終わった契約、解約の予約、Usakeyが設定した契約など)。StripeのIDと、Stripeの状態の名前は返しません。課金の操作(プランの申し込み・変更・解約、支払方法の更新、請求書の支払い)は管理画面で行います。オーナーか管理者が先に本人確認をする必要があり、APIキーではこの確認ができないためです。この呼び出しはManagement APIの月間回数に数えず、契約組織のお試しや契約が終わったあと、未払いで止まったあとも応答します。

認証
managementApiKey
必要な権限
reports:read
操作ID
mgmt_v1_plan_billing_statuses_show

レスポンス

200

契約の状態

application/json

Example Value

{
  "data": {
    "status": "active",
    "service_available": true,
    "plan": {
      "code": "string",
      "name": "Example name"
    },
    "billing_interval": "string",
    "renews_at": "2026-09-21T00:00:00Z",
    "ends_at": "2026-09-21T00:00:00Z"
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/privacy/exports データの書き出しを一覧

オーナーが管理画面で依頼した、契約組織のデータの書き出し(ZIP)の状態・形式・期限・件数を一覧します。ファイルとダウンロードのリンクは返しません。依頼とダウンロードは、オーナーが管理画面で本人確認をしてから行います。月間回数に数えません。

契約組織のデータの書き出しを古い順に一覧します。書き出しは、データの移行や開示のためにオーナーが管理画面(契約組織設定 → データの書き出しと削除)で依頼する、契約組織全体の ZIP ファイルです。返すのは状態・ファイルの形式・日時・データセットごとの行数だけで、ファイル、ダウンロードのリンク、依頼した人は返しません。書き出しの依頼とダウンロードは管理画面で行います。オーナーが先にパスワード(または確認コード)を入力する必要があり、APIキーではこの確認ができないためです。downloadable は、オーナーが管理画面で ZIP をダウンロードできる間(expires_at まで)true です。書き出しは環境で分かれていないため、test と live のどちらのキーでも同じ一覧を返します。この呼び出しは Management API の月間回数に数えず、契約組織のお試しや契約が終わったあとも応答します。

認証
managementApiKey
必要な権限
events:read
操作ID
mgmt_v1_privacy_exports_index

パラメーター

status 場所: クエリ 任意
string

許容値: pending, processing, ready, failed, expired

この状態の書き出しだけを返します。

Example Value

"pending"
limit 場所: クエリ 任意
integer 最小値: 1 最大値: 200

Example Value

50
cursor 場所: クエリ 任意
string

Example Value

"string"

レスポンス

200

契約組織のデータの書き出しの一覧

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "file_format": "string",
      "requested_at": "2026-09-21T00:00:00Z",
      "started_at": "2026-09-21T00:00:00Z",
      "completed_at": "2026-09-21T00:00:00Z",
      "failed_at": "2026-09-21T00:00:00Z",
      "expires_at": "2026-09-21T00:00:00Z",
      "byte_size": 1,
      "record_counts": {
        "property": 1
      },
      "downloadable": true
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/privacy/erasure-request 契約組織の削除の依頼の状態を取得

取り消し・完了していない契約組織の削除の依頼(予定・止まっている・実行中)と、いま削除を始められない理由を取得します。依頼と取り消しは、オーナーが管理画面で本人確認をしてから行います。月間回数に数えません。

取り消し・完了していない契約組織の削除の依頼(scheduled・blocked・processing)を返します。依頼が無ければ null です。あわせて、いま削除を妨げている理由を返します。削除は、オーナーが管理画面で依頼します。猶予期間(grace_period_days)のあとに始まり、それまではオーナーが管理画面で取り消せます。依頼と取り消しは管理画面で行います。オーナーが先にパスワード(または確認コード)を入力する必要があり、APIキーではこの確認ができないためです。blocker は、新しい依頼を断る理由、または予定日を過ぎた依頼を始められない理由です。billing_open(解約を予約していない有料プランが続いている)、checkout_open(決済の手続きが終わっていない)、tenant_suspended のどれかで、妨げるものが無ければ null です。削除が始まると最初の手順で契約組織の APIキーを削除するため、このエンドポイントは応答しなくなります。この呼び出しは Management API の月間回数に数えず、契約組織のお試しや契約が終わったあとも応答します。

認証
managementApiKey
必要な権限
events:read
操作ID
mgmt_v1_privacy_erasure_requests_show

レスポンス

200

契約組織の削除の状態

application/json

Example Value

{
  "data": {
    "request": {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "origin": "string",
      "requested_at": "2026-09-21T00:00:00Z",
      "scheduled_for": "2026-09-21T00:00:00Z",
      "cancelable": true
    },
    "blocker": "string",
    "paid_until": "2026-09-21T00:00:00Z",
    "grace_period_days": 1
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/reports/usage API利用状況を取得

期間内のAPI利用量と上限の集計を取得します。

認証
managementApiKey
必要な権限
reports:read
操作ID
mgmt_v1_reports_usage

レスポンス

200

利用状況の集計に成功しました

application/json

Example Value

{
  "data": {
    "period": {},
    "new_activations": 1,
    "active_machines": 1,
    "active_licenses": 1,
    "active_leases": 1
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/exports データの書き出しの一覧を取得

依頼した書き出しを、依頼した順に取得します。APIキーで読める種類だけが返ります。

書き出しを依頼した順(古い順。cursorでページを送ります)に一覧します。APIキーが読める種類だけを返します(顧客とライセンスユーザーはcustomers:read、端末・ライセンス・割当はlicenses:read、操作履歴はevents:readが必要です)。製品の環境で分かれる種類は、APIキーの環境の書き出しだけを返します。列の説明は含みません。GET /mgmt/v1/exports/{id}で取得してください。

認証
managementApiKey
必要な権限
reports:read
操作ID
mgmt_v1_report_exports_index

パラメーター

limit 場所: クエリ 任意
integer 最小値: 1 最大値: 200

Example Value

50
cursor 場所: クエリ 任意
string

Example Value

"string"
kind 場所: クエリ 任意

Example Value

"usage_daily"
status 場所: クエリ 任意
string

許容値: pending, running, ready, failed, expired

Example Value

"pending"

レスポンス

200

書き出しの一覧

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "kind": "usage_daily",
      "format": "csv",
      "environment": "live",
      "status": "pending",
      "source": "console",
      "requested_by": "user",
      "period_from": "2026-09-21T00:00:00Z",
      "period_to": "2026-09-21T00:00:00Z",
      "row_count": 0,
      "byte_size": 0,
      "content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "filename": "Example name",
      "failure_code": "string",
      "created_at": "2026-09-21T00:00:00Z",
      "started_at": "2026-09-21T00:00:00Z",
      "completed_at": "2026-09-21T00:00:00Z",
      "expires_at": "2026-09-21T00:00:00Z",
      "schedule_id": "schedule_id_aaaaaaaaaaaaaaaaaaaa",
      "delivery": {
        "status": "pending",
        "error_code": "string",
        "delivered_at": "2026-09-21T00:00:00Z",
        "object_key": "string"
      },
      "columns": [
        {
          "name": "Example name",
          "type": "string",
          "description": "Example description"
        }
      ]
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/exports データの書き出しを依頼

利用状況・端末・ライセンス・顧客などを、CSVかParquetのファイルに書き出すよう依頼します。ファイルは裏で作ります。

書き出しを依頼します。ファイルは裏で作ります。statusがreadyになるまでGET /mgmt/v1/exports/{id}で確かめてから、downloadを呼んでください。reports:readに加えて、種類の読み取り権限(customers:read、licenses:read、events:readのどれか。usage_dailyはreports:readだけ)が必要です。製品の環境で分かれる種類(usage_daily、activations、licenses、license_assignments)はAPIキーの環境を使い、別の環境を指定すると403 ENVIRONMENT_MISMATCHを返します。period_fromとperiod_toには日付(UTCの1日)かISO 8601の日時を指定します。usage_dailyは省略すると直近30日で、最長366日です。ほかの種類は期間を省略するとすべてを書き出します。usage_daily・activationsとParquet形式はチームプラン以上、audit_eventsは大規模プランで使えます(403 PLAN_ENTITLEMENT_REQUIRED)。待ち・作成中の書き出しは契約組織で5件までです(409 EXPORTS_IN_PROGRESS、retryable)。ファイルはBOM付きUTF-8のCSVかParquet(Snappy)で、日時はUTCです。ファイルは7日間ダウンロードできます。

認証
managementApiKey
必要な権限
reports:read
操作ID
mgmt_v1_report_exports_create

パラメーター

Idempotency-Key 場所: ヘッダー 必須
string 最小文字数: 16 最大文字数: 255

Example Value

"stringxxxxxxxxxx"

リクエスト本文

必須
application/json

Example Value

{
  "kind": "usage_daily",
  "format": "csv",
  "environment": "live",
  "period_from": "string",
  "period_to": "string"
}

レスポンス

202

書き出しを受け付けました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "kind": "usage_daily",
    "format": "csv",
    "environment": "live",
    "status": "pending",
    "source": "console",
    "requested_by": "user",
    "period_from": "2026-09-21T00:00:00Z",
    "period_to": "2026-09-21T00:00:00Z",
    "row_count": 0,
    "byte_size": 0,
    "content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "filename": "Example name",
    "failure_code": "string",
    "created_at": "2026-09-21T00:00:00Z",
    "started_at": "2026-09-21T00:00:00Z",
    "completed_at": "2026-09-21T00:00:00Z",
    "expires_at": "2026-09-21T00:00:00Z",
    "schedule_id": "schedule_id_aaaaaaaaaaaaaaaaaaaa",
    "delivery": {
      "status": "pending",
      "error_code": "string",
      "delivered_at": "2026-09-21T00:00:00Z",
      "object_key": "string"
    },
    "columns": [
      {
        "name": "Example name",
        "type": "string",
        "description": "Example description"
      }
    ]
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/exports/{id} データの書き出しを取得

書き出し1件の状態・行数・大きさ・期限と、ファイルの列の説明を取得します。

書き出し1件の状態・行数・大きさ・ファイルのSHA-256・期限と、列の名前・型・説明を返します。failure_codeは作成できなかった理由です(too_many_rows、too_large、storage_unavailable、stalled、internal_error)。

認証
managementApiKey
必要な権限
reports:read
操作ID
mgmt_v1_report_exports_show

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

書き出し

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "kind": "usage_daily",
    "format": "csv",
    "environment": "live",
    "status": "pending",
    "source": "console",
    "requested_by": "user",
    "period_from": "2026-09-21T00:00:00Z",
    "period_to": "2026-09-21T00:00:00Z",
    "row_count": 0,
    "byte_size": 0,
    "content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "filename": "Example name",
    "failure_code": "string",
    "created_at": "2026-09-21T00:00:00Z",
    "started_at": "2026-09-21T00:00:00Z",
    "completed_at": "2026-09-21T00:00:00Z",
    "expires_at": "2026-09-21T00:00:00Z",
    "schedule_id": "schedule_id_aaaaaaaaaaaaaaaaaaaa",
    "delivery": {
      "status": "pending",
      "error_code": "string",
      "delivered_at": "2026-09-21T00:00:00Z",
      "object_key": "string"
    },
    "columns": [
      {
        "name": "Example name",
        "type": "string",
        "description": "Example description"
      }
    ]
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/exports/{id}/download 書き出したファイルのURLを取得

書き出したファイルを取り出すための、短い時間だけ使えるURLを取得します。

ファイルを取り出すための、短い時間(既定5分)だけ使えるURLを返します。URLにはAuthorizationヘッダーを付けずにアクセスしてください。呼び出すたびに操作履歴に残ります。まだできていない・失敗した・期限切れの書き出しは409 EXPORT_NOT_READYを返します(pendingかrunningの間はretryable)。

認証
managementApiKey
必要な権限
reports:read
操作ID
mgmt_v1_report_exports_download

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

ダウンロード用のURL

application/json

Example Value

{
  "data": {
    "url": "https://example.com/resource",
    "expires_at": "2026-09-21T00:00:00Z",
    "filename": "Example name",
    "content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "byte_size": 0
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

販売店

15操作

販売店の登録と状態を管理します。

GET /mgmt/v1/resellers 販売店の一覧を取得
認証
managementApiKey
必要な権限
customers:read
操作ID
mgmt_v1_resellers_index

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

販売店の操作に成功しました

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "email": "developer@example.com",
      "external_ref": "string",
      "organization_limit": 1,
      "user_limit": 1,
      "status": "active",
      "metadata": {},
      "archived_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/resellers 販売店を作成
認証
managementApiKey
必要な権限
customers:write
操作ID
mgmt_v1_resellers_create

リクエスト本文

必須
application/json

Schema

Example Value

{
  "name": "Example name",
  "email": "developer@example.com",
  "external_ref": "string",
  "organization_limit": 1,
  "user_limit": 1,
  "status": "active",
  "metadata": {}
}

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
201

販売店の操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "email": "developer@example.com",
    "external_ref": "string",
    "organization_limit": 1,
    "user_limit": 1,
    "status": "active",
    "metadata": {},
    "archived_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/resellers/{id} 販売店の詳細を取得
認証
managementApiKey
必要な権限
customers:read
操作ID
mgmt_v1_resellers_show

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

販売店の操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "email": "developer@example.com",
    "external_ref": "string",
    "organization_limit": 1,
    "user_limit": 1,
    "status": "active",
    "metadata": {},
    "archived_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/resellers/{id} 販売店を更新
認証
managementApiKey
必要な権限
customers:write
操作ID
mgmt_v1_resellers_update

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

リクエスト本文

必須
application/json

Schema

Example Value

{
  "name": "Example name",
  "email": "developer@example.com",
  "external_ref": "string",
  "organization_limit": 1,
  "user_limit": 1,
  "status": "active",
  "metadata": {}
}

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

販売店の操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "email": "developer@example.com",
    "external_ref": "string",
    "organization_limit": 1,
    "user_limit": 1,
    "status": "active",
    "metadata": {},
    "archived_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/resellers/{id} 販売店を削除
認証
managementApiKey
必要な権限
customers:write
操作ID
mgmt_v1_resellers_destroy

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
204

処理が完了しました(応答本文なし)

402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/resellers/{id}/usage 販売店の台数を取得

この販売店がAPIキーの環境の発行枠で発行した台数と、それに対応するライセンス・認証済みの端末の数、顧客の数を返します。

認証
managementApiKey
必要な権限
customers:read
操作ID
mgmt_v1_resellers_usage

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

正常に処理しました。

application/json

Example Value

{
  "data": {
    "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
    "issued_seats": 1,
    "license_count": 1,
    "active_devices": 1,
    "customer_count": 1,
    "allocations": [
      {
        "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
        "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
        "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
        "product_id": "prod_0123456789abcdef0123",
        "seat_limit": 1,
        "max_duration_days": 1,
        "status": "active",
        "issued_seats": 1,
        "remaining_seats": 1,
        "license_count": 1,
        "active_devices": 1,
        "created_at": "2026-09-21T00:00:00Z",
        "updated_at": "2026-09-21T00:00:00Z"
      }
    ]
  }
}
GET /mgmt/v1/resellers/{reseller_id}/allocations 販売店の発行枠を一覧

APIキーの環境の製品の、有効な発行枠を一覧します。発行枠があると、販売店の担当者は販売店ポータルからその利用ルールのライセンスを発行できます。

認証
managementApiKey
必要な権限
customers:read
操作ID
mgmt_v1_reseller_allocations_index

パラメーター

reseller_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

正常に処理しました。

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
      "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
      "product_id": "prod_0123456789abcdef0123",
      "seat_limit": 1,
      "max_duration_days": 1,
      "status": "active",
      "issued_seats": 1,
      "remaining_seats": 1,
      "license_count": 1,
      "active_devices": 1,
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ]
}
POST /mgmt/v1/resellers/{reseller_id}/allocations 販売店の発行枠を追加

発行枠を追加します。seat_limitはこの枠で発行できる台数の合計です(nullは上限なし)。max_duration_daysは期間制のライセンスの最長の日数です(nullは制限なし)。お試しの利用ルールは追加できません。

認証
managementApiKey
必要な権限
customers:write
操作ID
mgmt_v1_reseller_allocations_create

パラメーター

reseller_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
Idempotency-Key 場所: ヘッダー 必須
string 最小文字数: 16 最大文字数: 255

Example Value

"stringxxxxxxxxxx"

リクエスト本文

必須
application/json

Example Value

{
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "seat_limit": 0,
  "max_duration_days": 1
}

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
201

正常に処理しました。

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "seat_limit": 1,
    "max_duration_days": 1,
    "status": "active",
    "issued_seats": 1,
    "remaining_seats": 1,
    "license_count": 1,
    "active_devices": 1,
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
422

入力の検証に失敗しました。

GET /mgmt/v1/resellers/{reseller_id}/allocations/{id} 販売店の発行枠を取得

発行枠1件の設定と使用状況を返します。

認証
managementApiKey
必要な権限
customers:read
操作ID
mgmt_v1_reseller_allocations_show

パラメーター

reseller_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

正常に処理しました。

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "seat_limit": 1,
    "max_duration_days": 1,
    "status": "active",
    "issued_seats": 1,
    "remaining_seats": 1,
    "license_count": 1,
    "active_devices": 1,
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
PATCH /mgmt/v1/resellers/{reseller_id}/allocations/{id} 販売店の発行枠を変更

台数の上限または最長の日数を変更します。発行済みのライセンスは変わりません。

認証
managementApiKey
必要な権限
customers:write
操作ID
mgmt_v1_reseller_allocations_update

パラメーター

reseller_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

リクエスト本文

必須
application/json

Example Value

{
  "seat_limit": 0,
  "max_duration_days": 1
}

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

正常に処理しました。

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "seat_limit": 1,
    "max_duration_days": 1,
    "status": "active",
    "issued_seats": 1,
    "remaining_seats": 1,
    "license_count": 1,
    "active_devices": 1,
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
422

入力の検証に失敗しました。

DELETE /mgmt/v1/resellers/{reseller_id}/allocations/{id} 販売店の発行枠を閉じる

発行枠を閉じます。発行済みのライセンスはそのまま使えます。

認証
managementApiKey
必要な権限
customers:write
操作ID
mgmt_v1_reseller_allocations_destroy

パラメーター

reseller_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
204

発行枠を閉じました。

GET /mgmt/v1/resellers/{reseller_id}/members 販売店の担当者を一覧

招待中または利用中の販売店の担当者を一覧します。

認証
managementApiKey
必要な権限
customers:read
操作ID
mgmt_v1_reseller_members_index

パラメーター

reseller_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

正常に処理しました。

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
      "email": "developer@example.com",
      "role": "manager",
      "status": "invited",
      "invited_at": "2026-09-21T00:00:00Z",
      "accepted_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z"
    }
  ]
}
POST /mgmt/v1/resellers/{reseller_id}/members 販売店の担当者を招待

メールアドレス宛てに販売店ポータルへの招待を送ります。招待された人は、そのアドレスのUsakeyアカウントでログインして承認します。担当者は環境に結びつかないため、本番用のAPIキーが必要です。招待中のアドレスを指定すると、招待を送り直します。

認証
managementApiKey
必要な権限
customers:write
操作ID
mgmt_v1_reseller_members_create

パラメーター

reseller_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
Idempotency-Key 場所: ヘッダー 必須
string 最小文字数: 16 最大文字数: 255

Example Value

"stringxxxxxxxxxx"

リクエスト本文

必須
application/json

Example Value

{
  "email": "developer@example.com",
  "role": "manager"
}

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
201

正常に処理しました。

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
    "email": "developer@example.com",
    "role": "manager",
    "status": "invited",
    "invited_at": "2026-09-21T00:00:00Z",
    "accepted_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z"
  }
}
422

入力の検証に失敗しました。

PATCH /mgmt/v1/resellers/{reseller_id}/members/{id} 販売店の担当者の役割を変更

担当者の役割を変更します。本番用のAPIキーが必要です。

認証
managementApiKey
必要な権限
customers:write
操作ID
mgmt_v1_reseller_members_update

パラメーター

reseller_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

リクエスト本文

必須
application/json

Example Value

{
  "role": "manager"
}

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

正常に処理しました。

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
    "email": "developer@example.com",
    "role": "manager",
    "status": "invited",
    "invited_at": "2026-09-21T00:00:00Z",
    "accepted_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z"
  }
}
422

入力の検証に失敗しました。

DELETE /mgmt/v1/resellers/{reseller_id}/members/{id} 販売店の担当者を外す

担当者のポータルの利用をすぐに止めるか、招待を取り消します。本番用のAPIキーが必要です。

認証
managementApiKey
必要な権限
customers:write
操作ID
mgmt_v1_reseller_members_destroy

パラメーター

reseller_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
204

利用を止めました。

Management API

組織(互換)

5操作

組織は顧客に統合しました(2026年10月)。利用者の管理を使う顧客を統合前の組織の形で扱う、互換の窓口です。IDは、統合前の組織ID(org_…)も顧客ID(cus_…)も使えます。

GET /mgmt/v1/organizations 組織の一覧を取得

顧客組織は顧客に統合しました。この互換のエンドポイントは、利用者の管理(ライセンスユーザー・グループ・OIDC接続)を使っている顧客を、アーカイブ済みも含めて返します。public_id は統合前の組織ID(org_…)で、統合後に利用者の管理を始めた顧客は顧客ID(cus_…)です。組織IDを指定する所では、どちらのIDも使えます。status は active、suspended(利用者の管理を停止中)、archived(顧客がアーカイブ済み)のどれかです。プランの organizations の枠は、利用者の管理が有効な顧客の数で数えます。

認証
managementApiKey
必要な権限
customers:read
操作ID
mgmt_v1_organizations_index

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

顧客組織の操作に成功しました

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "email": "developer@example.com",
      "external_ref": "string",
      "user_limit": 1,
      "status": "active",
      "metadata": {},
      "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
      "archived_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/organizations 組織を作成

顧客で利用者の管理を始め、その顧客を Organization の形で返します。顧客は、customer_id で指定した顧客、それが無ければ利用者の管理をまだ使っていない顧客のうち external_ref が一致する顧客、どちらでもなければ name・email・external_ref から新しく作る顧客の順に決めます。既存の顧客では、名前・メールアドレス・external_ref は顧客の値のままです。organization_management の機能と、organizations の枠の空きが必要です。status には active(既定)か suspended を指定できます。すでに利用者の管理を使っている顧客と、アーカイブ済みの顧客は 422 DIRECTORY_VALIDATION_FAILED を返します。

認証
managementApiKey
必要な権限
customers:write
操作ID
mgmt_v1_organizations_create

リクエスト本文

必須
application/json

Example Value

{
  "name": "Example name",
  "email": "developer@example.com",
  "external_ref": "string",
  "user_limit": 1,
  "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "metadata": {},
  "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa"
}

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
201

顧客組織の操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "email": "developer@example.com",
    "external_ref": "string",
    "user_limit": 1,
    "status": "active",
    "metadata": {},
    "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
    "archived_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/organizations/{id} 組織の詳細を取得

統合前の組織ID(org_…)か、顧客ID(cus_…)で指定します。利用者の管理を使っていない顧客は 404 を返します。

認証
managementApiKey
必要な権限
customers:read
操作ID
mgmt_v1_organizations_show

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

顧客組織の操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "email": "developer@example.com",
    "external_ref": "string",
    "user_limit": 1,
    "status": "active",
    "metadata": {},
    "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
    "archived_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/organizations/{id} 組織を更新

GET と同じく、どちらのIDでも指定できます。status が active なら利用者の管理を再開し(プランを確かめ直し、アーカイブ済みの顧客は 422 DIRECTORY_VALIDATION_FAILED)、suspended なら停止、archived なら顧客をアーカイブします。停止中は、その顧客のOIDC接続でのサインインを断り、利用者とグループを追加できません。ライセンスはそのまま使えます。name・email・external_ref は顧客そのものを変えます。顧客は live と test の環境で共有されています。test のAPIキーからは、live のライセンスを持つ顧客と、live のライセンスに席を持つライセンスユーザーがいる顧客を変更できません(403 ENVIRONMENT_MISMATCH)。

認証
managementApiKey
必要な権限
customers:write
操作ID
mgmt_v1_organizations_update

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

リクエスト本文

必須
application/json

Example Value

{
  "name": "Example name",
  "email": "developer@example.com",
  "external_ref": "string",
  "user_limit": 1,
  "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "metadata": {},
  "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa"
}

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

顧客組織の操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "email": "developer@example.com",
    "external_ref": "string",
    "user_limit": 1,
    "status": "active",
    "metadata": {},
    "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
    "archived_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/organizations/{id} 組織を削除

DELETE /mgmt/v1/customers/{id} と同じく顧客をアーカイブし、その顧客のOIDC接続でのサインインも止まります。顧客は live と test の環境で共有されています。test のAPIキーからは、live のライセンスを持つ顧客と、live のライセンスに席を持つライセンスユーザーがいる顧客をアーカイブできません(403 ENVIRONMENT_MISMATCH)。Usakeyは販売元のStripeや販売サービスの購読を解約しないため、購入者への請求を止めるには販売側で購読を解約してください。

認証
managementApiKey
必要な権限
customers:write
操作ID
mgmt_v1_organizations_destroy

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
204

処理が完了しました(応答本文なし)

402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

グループの所属

3操作

グループに所属する利用者を管理します。

GET /mgmt/v1/organization_groups/{organization_group_id}/memberships グループの所属の一覧を取得
認証
managementApiKey
必要な権限
customers:read
操作ID
mgmt_v1_organization_group_memberships_index

パラメーター

organization_group_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

組織グループの所属の操作に成功しました

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "organization_group_id": "organization_group_id_aaaaaaaaaaaaaaaaaaaa",
      "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "assigned_at": "2026-09-21T00:00:00Z",
      "revoked_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/organization_groups/{organization_group_id}/memberships グループの所属を作成
認証
managementApiKey
必要な権限
customers:write
操作ID
mgmt_v1_organization_group_memberships_create

パラメーター

organization_group_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

リクエスト本文

必須
application/json

Example Value

{
  "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa"
}

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
201

組織グループの所属の操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "organization_group_id": "organization_group_id_aaaaaaaaaaaaaaaaaaaa",
    "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "assigned_at": "2026-09-21T00:00:00Z",
    "revoked_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/organization_groups/{organization_group_id}/memberships/{id} グループの所属を削除
認証
managementApiKey
必要な権限
customers:write
操作ID
mgmt_v1_organization_group_memberships_destroy

パラメーター

organization_group_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
204

処理が完了しました(応答本文なし)

402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

グループ

5操作

利用者の管理を使う顧客の、利用者のグループを管理します。

GET /mgmt/v1/organization_groups グループの一覧を取得
認証
managementApiKey
必要な権限
customers:read
操作ID
mgmt_v1_organization_groups_index

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

組織グループの操作に成功しました

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "status": "active",
      "metadata": {},
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/organization_groups グループを作成

利用者の管理を使っている顧客にグループを作成します。organization_id は顧客ID(cus_…)か統合前の組織ID(org_…)です。利用者の管理が有効である必要があり、停止中・まだ始めていない・アーカイブ済みの顧客を指定すると 422 DIRECTORY_VALIDATION_FAILED を返し、理由を details.errors.base に入れます。

認証
managementApiKey
必要な権限
customers:write
操作ID
mgmt_v1_organization_groups_create

リクエスト本文

必須
application/json

Example Value

{
  "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
  "name": "Example name",
  "status": "active",
  "metadata": {}
}

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
201

組織グループの操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "status": "active",
    "metadata": {},
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/organization_groups/{id} グループの詳細を取得
認証
managementApiKey
必要な権限
customers:read
操作ID
mgmt_v1_organization_groups_show

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

組織グループの操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "status": "active",
    "metadata": {},
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/organization_groups/{id} グループを更新
認証
managementApiKey
必要な権限
customers:write
操作ID
mgmt_v1_organization_groups_update

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

リクエスト本文

必須
application/json

Example Value

{
  "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
  "name": "Example name",
  "status": "active",
  "metadata": {}
}

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

組織グループの操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "status": "active",
    "metadata": {},
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/organization_groups/{id} グループを削除
認証
managementApiKey
必要な権限
customers:write
操作ID
mgmt_v1_organization_groups_destroy

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
204

処理が完了しました(応答本文なし)

402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

ライセンスユーザー

5操作

製品を利用する人のIDと状態を管理します。

GET /mgmt/v1/license_users ライセンスユーザーの一覧を取得
認証
managementApiKey
必要な権限
customers:read
操作ID
mgmt_v1_license_users_index

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

ライセンスユーザーの操作に成功しました

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "issuer": "https://example.com/resource",
      "subject": "string",
      "email": "developer@example.com",
      "name": "Example name",
      "status": "active",
      "two_factor_state": "string",
      "two_factor_method": "string",
      "metadata": {},
      "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
      "oidc_connection_id": "oidc_connection_id_aaaaaaaaaaaaaaaaaaaa",
      "last_authenticated_at": "2026-09-21T00:00:00Z",
      "deprovisioned_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/license_users ライセンスユーザーを作成

ライセンスユーザーを作成します。`oidc_connection_id`を指定してOIDC接続へ関連付ける操作はチーム以上のプランかつ`oidc_sso`の機能権限が必要で、利用できないプランではHTTP 403(`PLAN_ENTITLEMENT_REQUIRED`)を返します。個人プランではこの値を省略し、ローカル台帳・API割当として管理してください。

認証
managementApiKey
必要な権限
customers:write
操作ID
mgmt_v1_license_users_create

リクエスト本文

必須
application/json

Example Value

{
  "issuer": "string",
  "subject": "string",
  "email": "developer@example.com",
  "name": "Example name",
  "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
  "oidc_connection_id": "oidc_connection_id_aaaaaaaaaaaaaaaaaaaa",
  "saml_connection_id": "saml_connection_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "metadata": {}
}

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

スコープが不足しているか、`oidc_connection_id`の指定に必要なチーム以上のプランの`oidc_sso`機能権限がなく`PLAN_ENTITLEMENT_REQUIRED`となった場合

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
201

ライセンスユーザーの操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "issuer": "https://example.com/resource",
    "subject": "string",
    "email": "developer@example.com",
    "name": "Example name",
    "status": "active",
    "two_factor_state": "string",
    "two_factor_method": "string",
    "metadata": {},
    "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
    "oidc_connection_id": "oidc_connection_id_aaaaaaaaaaaaaaaaaaaa",
    "last_authenticated_at": "2026-09-21T00:00:00Z",
    "deprovisioned_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/license_users/{id} ライセンスユーザーの詳細を取得
認証
managementApiKey
必要な権限
customers:read
操作ID
mgmt_v1_license_users_show

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

ライセンスユーザーの操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "issuer": "https://example.com/resource",
    "subject": "string",
    "email": "developer@example.com",
    "name": "Example name",
    "status": "active",
    "two_factor_state": "string",
    "two_factor_method": "string",
    "metadata": {},
    "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
    "oidc_connection_id": "oidc_connection_id_aaaaaaaaaaaaaaaaaaaa",
    "last_authenticated_at": "2026-09-21T00:00:00Z",
    "deprovisioned_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/license_users/{id} ライセンスユーザーを更新

ライセンスユーザーを更新します。`oidc_connection_id`を指定してOIDC接続へ関連付ける操作はチーム以上のプランかつ`oidc_sso`の機能権限が必要で、利用できないプランではHTTP 403(`PLAN_ENTITLEMENT_REQUIRED`)を返します。個人プランのローカル台帳・API割当はこの値を指定せずに更新します。`organization_id`に`null`または空文字を送ると、所属する顧客を外します(省略した場合は変えません)。

認証
managementApiKey
必要な権限
customers:write
操作ID
mgmt_v1_license_users_update

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

リクエスト本文

必須
application/json

Example Value

{
  "issuer": "string",
  "subject": "string",
  "email": "developer@example.com",
  "name": "Example name",
  "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
  "oidc_connection_id": "oidc_connection_id_aaaaaaaaaaaaaaaaaaaa",
  "saml_connection_id": "saml_connection_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "metadata": {}
}

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

スコープが不足しているか、`oidc_connection_id`の指定に必要なチーム以上のプランの`oidc_sso`機能権限がなく`PLAN_ENTITLEMENT_REQUIRED`となった場合

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

ライセンスユーザーの操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "issuer": "https://example.com/resource",
    "subject": "string",
    "email": "developer@example.com",
    "name": "Example name",
    "status": "active",
    "two_factor_state": "string",
    "two_factor_method": "string",
    "metadata": {},
    "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
    "oidc_connection_id": "oidc_connection_id_aaaaaaaaaaaaaaaaaaaa",
    "last_authenticated_at": "2026-09-21T00:00:00Z",
    "deprovisioned_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/license_users/{id} ライセンスユーザーを削除

ライセンスユーザーは live と test の環境で共有されています。test のAPIキーからは、live のライセンスに席を持つライセンスユーザーの利用を終了できません(403 ENVIRONMENT_MISMATCH)。live のAPIキーはどのライセンスユーザーも利用を終了できます。

認証
managementApiKey
必要な権限
customers:write
操作ID
mgmt_v1_license_users_destroy

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
204

処理が完了しました(応答本文なし)

402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

OIDC接続

6操作

顧客のIDプロバイダー接続を管理します。

GET /mgmt/v1/oidc_connections OIDC接続の一覧を取得
認証
managementApiKey
必要な権限
sso:read
操作ID
mgmt_v1_oidc_connections_index

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

OIDC接続の操作に成功しました

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "issuer": "https://example.com/resource",
      "client_id": "01K5QWERTY1234567890ABCDEFG",
      "authorization_endpoint": "https://example.com/resource",
      "token_endpoint": "https://example.com/resource",
      "jwks_uri": "https://example.com/resource",
      "scopes": [
        "string"
      ],
      "allowed_audiences": [
        "string"
      ],
      "pkce_required": true,
      "jit_provisioning": true,
      "status": "active",
      "metadata": {},
      "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
      "client_secret_rotated_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/oidc_connections OIDC接続を作成

OIDC接続を作成します。チーム以上のプランかつ`oidc_sso`の機能権限が必要で、個人プランではHTTP 403(`PLAN_ENTITLEMENT_REQUIRED`)を返します。

認証
managementApiKey
必要な権限
sso:write
操作ID
mgmt_v1_oidc_connections_create

リクエスト本文

必須
application/json

Example Value

{
  "name": "Example name",
  "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
  "issuer": "string",
  "client_id": "01K5QWERTY1234567890ABCDEFG",
  "client_secret": "example-token",
  "authorization_endpoint": "https://example.com/resource",
  "token_endpoint": "https://example.com/resource",
  "jwks_uri": "https://example.com/resource",
  "pkce_required": true,
  "jit_provisioning": true,
  "status": "active",
  "scopes": [
    "string"
  ],
  "allowed_audiences": [
    "string"
  ],
  "metadata": {}
}

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

スコープが不足しているか、チーム以上のプランの`oidc_sso`機能権限がなく`PLAN_ENTITLEMENT_REQUIRED`となった場合

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
201

OIDC接続の操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "issuer": "https://example.com/resource",
    "client_id": "01K5QWERTY1234567890ABCDEFG",
    "authorization_endpoint": "https://example.com/resource",
    "token_endpoint": "https://example.com/resource",
    "jwks_uri": "https://example.com/resource",
    "scopes": [
      "string"
    ],
    "allowed_audiences": [
      "string"
    ],
    "pkce_required": true,
    "jit_provisioning": true,
    "status": "active",
    "metadata": {},
    "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
    "client_secret_rotated_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/oidc_connections/{id} OIDC接続の詳細を取得
認証
managementApiKey
必要な権限
sso:read
操作ID
mgmt_v1_oidc_connections_show

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

OIDC接続の操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "issuer": "https://example.com/resource",
    "client_id": "01K5QWERTY1234567890ABCDEFG",
    "authorization_endpoint": "https://example.com/resource",
    "token_endpoint": "https://example.com/resource",
    "jwks_uri": "https://example.com/resource",
    "scopes": [
      "string"
    ],
    "allowed_audiences": [
      "string"
    ],
    "pkce_required": true,
    "jit_provisioning": true,
    "status": "active",
    "metadata": {},
    "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
    "client_secret_rotated_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/oidc_connections/{id} OIDC接続を更新

指定したOIDC接続を更新します。Issuer・client_id・各Endpoint・jwks_uri・allowed_audiences・metadataのmfa_acr_values/max_age/trust_upstream_mfa/require_phishing_resistant_mfa/requested_acr_valuesを変えるときは、同じ要求でclient_secretを送ります(送らないとHTTP 422 `OIDC_CLIENT_SECRET_REENTRY_REQUIRED`)。これらの変更は契約組織のオーナー全員にメールで知らせます。IDプロバイダーの多要素認証は、IDトークンのamrにmfa・otp・sms・hwk・swk・popのどれかがあるか、acrがmfa_acr_valuesと一致すれば済んだものとして扱います。require_phishing_resistant_mfaがtrueなら、認めるのは鍵を使った方法(hwk・swk・pop。パスキーなど)とmfa_acr_valuesだけです。trust_upstream_mfaがtrueなら、Usakeyで2段階認証を設定していない利用者がIDプロバイダーで多要素認証を済ませてログインしたとき、2段階認証をIDプロバイダーでの管理に切り替えます。requested_acr_valuesの値は、認可の要求のacr_valuesに入ります。

OIDC接続を変更・再開する操作はチーム以上のプランかつ`oidc_sso`の機能権限が必要で、個人プランではHTTP 403(`PLAN_ENTITLEMENT_REQUIRED`)を返します。既存接続を安全に停止するため、`status`を`disabled`へ変更する操作だけは個人プランでも利用できます。顧客ポータルの利用者の本人確認を左右する設定(`issuer`・`client_id`・`authorization_endpoint`・`token_endpoint`・`jwks_uri`・`allowed_audiences`・`metadata`の`mfa_acr_values`・`max_age`・`trust_upstream_mfa`・`require_phishing_resistant_mfa`・`requested_acr_values`)を変えるときは、同じ要求で`client_secret`を送ってください。送った値で保存し直し、契約組織のオーナー全員にメールで知らせます。送らないとHTTP 422(`OIDC_CLIENT_SECRET_REENTRY_REQUIRED`、`details.fields`に該当項目)を返し、何も変えません。これらを変えない要求で`client_secret`を送るとHTTP 422(`OIDC_CLIENT_SECRET_ROTATION_REQUIRED`)です。Client Secretだけを入れ替えるときは専用のエンドポイントを使います。IDプロバイダー(IdP)の多要素認証の扱いは`metadata`で決めます。IDトークンの`amr`に`mfa`・`otp`・`sms`・`hwk`・`swk`・`pop`のどれかがあるか、`acr`が`mfa_acr_values`のどれかと一致すれば、IdPで多要素認証が済んだものとして扱います。`require_phishing_resistant_mfa`が`true`なら、認めるのは鍵を使った方法(`hwk`・`swk`・`pop`。パスキーやセキュリティキー)と`mfa_acr_values`だけです。`trust_upstream_mfa`が`true`なら、Usakeyで2段階認証を設定していない利用者がIdPで多要素認証を済ませて顧客ポータルにログインしたとき、その利用者の2段階認証をIdPでの管理に切り替え、以後のログインではIdPの多要素認証を毎回求めます。`requested_acr_values`(空白を含まない文字列の配列、10個まで)の値は、認可の要求の`acr_values`に入ります。

認証
managementApiKey
必要な権限
sso:write
操作ID
mgmt_v1_oidc_connections_update

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

リクエスト本文

必須
application/json

Example Value

{
  "client_secret": "example-token",
  "name": "Example name",
  "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
  "issuer": "string",
  "client_id": "01K5QWERTY1234567890ABCDEFG",
  "authorization_endpoint": "https://example.com/resource",
  "token_endpoint": "https://example.com/resource",
  "jwks_uri": "https://example.com/resource",
  "pkce_required": true,
  "jit_provisioning": true,
  "status": "active",
  "scopes": [
    "string"
  ],
  "allowed_audiences": [
    "string"
  ],
  "metadata": {}
}

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

スコープが不足しているか、停止以外の変更に必要なチーム以上のプランの`oidc_sso`機能権限がなく`PLAN_ENTITLEMENT_REQUIRED`となった場合

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

OIDC接続の操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "issuer": "https://example.com/resource",
    "client_id": "01K5QWERTY1234567890ABCDEFG",
    "authorization_endpoint": "https://example.com/resource",
    "token_endpoint": "https://example.com/resource",
    "jwks_uri": "https://example.com/resource",
    "scopes": [
      "string"
    ],
    "allowed_audiences": [
      "string"
    ],
    "pkce_required": true,
    "jit_provisioning": true,
    "status": "active",
    "metadata": {},
    "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
    "client_secret_rotated_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/oidc_connections/{id} OIDC接続を削除
認証
managementApiKey
必要な権限
sso:write
操作ID
mgmt_v1_oidc_connections_destroy

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
204

処理が完了しました(応答本文なし)

402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/oidc_connections/{oidc_connection_id}/client-secret-rotation OIDCクライアントシークレットを更新

OIDC接続のクライアントシークレットを安全に差し替えます。

OIDC Client Secretを切り替えます。チーム以上のプランかつ`oidc_sso`の機能権限が必要で、個人プランではHTTP 403(`PLAN_ENTITLEMENT_REQUIRED`)を返します。

認証
managementApiKey
必要な権限
sso:write
操作ID
mgmt_v1_oidc_client_secret_rotations_create

パラメーター

oidc_connection_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

リクエスト本文

必須
application/json

Example Value

{
  "client_secret": "example-token"
}

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

スコープが不足しているか、チーム以上のプランの`oidc_sso`機能権限がなく`PLAN_ENTITLEMENT_REQUIRED`となった場合

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Client Secretを切り替えました(シークレットの値は返しません)

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "issuer": "https://example.com/resource",
    "client_id": "01K5QWERTY1234567890ABCDEFG",
    "authorization_endpoint": "https://example.com/resource",
    "token_endpoint": "https://example.com/resource",
    "jwks_uri": "https://example.com/resource",
    "scopes": [
      "string"
    ],
    "allowed_audiences": [
      "string"
    ],
    "pkce_required": true,
    "jit_provisioning": true,
    "status": "active",
    "metadata": {},
    "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
    "client_secret_rotated_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

SAML接続

6操作

顧客ポータルにSAMLのIdPでサインインするための接続を管理します。

GET /mgmt/v1/saml_connections SAML接続の一覧を取得

顧客が顧客ポータルへのサインインに使うSAML接続を一覧します。status(activeかdisabled)とcustomer_id(cus_…か、統合前の組織のorg_…)で絞り込めます。testのAPIキーでも読み取れます。

認証
managementApiKey
必要な権限
sso:read
操作ID
mgmt_v1_saml_connections_index

パラメーター

status 場所: クエリ 任意
string

許容値: active, disabled

Example Value

"active"
customer_id 場所: クエリ 任意
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
limit 場所: クエリ 任意
integer 最小値: 1 最大値: 200

Example Value

50
cursor 場所: クエリ 任意
string

Example Value

"string"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

SAML接続の操作に成功しました

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "configured": true,
      "idp_entity_id": "01K5QWERTY1234567890ABCDEFG",
      "idp_sso_url": "https://example.com/resource",
      "idp_metadata_url": "https://example.com/resource",
      "idp_metadata_fetched_at": "2026-09-21T00:00:00Z",
      "idp_certificates": [
        "string"
      ],
      "idp_certificate_details": [
        {
          "sha256_fingerprint": "string",
          "subject_common_name": "Example name",
          "not_before": "2026-09-21T00:00:00Z",
          "not_after": "2026-09-21T00:00:00Z",
          "expired": true
        }
      ],
      "name_id_format": "Example name",
      "jit_provisioning": true,
      "metadata": {
        "trust_upstream_mfa": true,
        "require_phishing_resistant_mfa": true,
        "mfa_authn_contexts": [
          "string"
        ],
        "requested_authn_contexts": [
          "string"
        ]
      },
      "service_provider": {
        "entity_id": "https://example.com/resource",
        "acs_url": "https://example.com/resource",
        "metadata_url": "https://example.com/resource"
      },
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/saml_connections SAML接続を作成

利用者の管理が有効な顧客1件に、SAML接続を作ります。必須はnameとcustomer_idだけです。応答のservice_providerの値をIdPに登録してもらい、IdPのEntity ID・SSOのURL・署名の証明書を、PATCHかメタデータの取り込みで入れてください。3つがそろう(configuredがtrueになる)と、利用者がサインインできます。チーム以上のプランと`oidc_sso`の機能権限が必要です(403 PLAN_ENTITLEMENT_REQUIRED)。OIDC接続と同じ`oidc_connections`の枠を使います(409 PLAN_QUOTA_EXCEEDED)。書き込めるのはliveのAPIキーだけです(403 ENVIRONMENT_MISMATCH)。Idempotency-Keyが必須です。

認証
managementApiKey
必要な権限
sso:write
操作ID
mgmt_v1_saml_connections_create

パラメーター

Idempotency-Key 場所: ヘッダー 必須
string 最小文字数: 16 最大文字数: 255

Example Value

"stringxxxxxxxxxx"

リクエスト本文

必須
application/json

Example Value

{
  "name": "Example name",
  "customer_id": "01K5QWERTY1234567890ABCDEFG",
  "idp_entity_id": "01K5QWERTY1234567890ABCDEFG",
  "idp_sso_url": "https://example.com/resource",
  "idp_metadata_url": "https://example.com/resource",
  "idp_certificates": [
    "string"
  ],
  "name_id_format": "email_address",
  "jit_provisioning": true,
  "metadata": {
    "trust_upstream_mfa": true,
    "require_phishing_resistant_mfa": true,
    "mfa_authn_contexts": [
      "string"
    ],
    "requested_authn_contexts": [
      "string"
    ]
  }
}

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
201

SAML接続の操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "configured": true,
    "idp_entity_id": "01K5QWERTY1234567890ABCDEFG",
    "idp_sso_url": "https://example.com/resource",
    "idp_metadata_url": "https://example.com/resource",
    "idp_metadata_fetched_at": "2026-09-21T00:00:00Z",
    "idp_certificates": [
      "string"
    ],
    "idp_certificate_details": [
      {
        "sha256_fingerprint": "string",
        "subject_common_name": "Example name",
        "not_before": "2026-09-21T00:00:00Z",
        "not_after": "2026-09-21T00:00:00Z",
        "expired": true
      }
    ],
    "name_id_format": "Example name",
    "jit_provisioning": true,
    "metadata": {
      "trust_upstream_mfa": true,
      "require_phishing_resistant_mfa": true,
      "mfa_authn_contexts": [
        "string"
      ],
      "requested_authn_contexts": [
        "string"
      ]
    },
    "service_provider": {
      "entity_id": "https://example.com/resource",
      "acs_url": "https://example.com/resource",
      "metadata_url": "https://example.com/resource"
    },
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/saml_connections/{id} SAML接続の詳細を取得
認証
managementApiKey
必要な権限
sso:read
操作ID
mgmt_v1_saml_connections_show

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

SAML接続の操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "configured": true,
    "idp_entity_id": "01K5QWERTY1234567890ABCDEFG",
    "idp_sso_url": "https://example.com/resource",
    "idp_metadata_url": "https://example.com/resource",
    "idp_metadata_fetched_at": "2026-09-21T00:00:00Z",
    "idp_certificates": [
      "string"
    ],
    "idp_certificate_details": [
      {
        "sha256_fingerprint": "string",
        "subject_common_name": "Example name",
        "not_before": "2026-09-21T00:00:00Z",
        "not_after": "2026-09-21T00:00:00Z",
        "expired": true
      }
    ],
    "name_id_format": "Example name",
    "jit_provisioning": true,
    "metadata": {
      "trust_upstream_mfa": true,
      "require_phishing_resistant_mfa": true,
      "mfa_authn_contexts": [
        "string"
      ],
      "requested_authn_contexts": [
        "string"
      ]
    },
    "service_provider": {
      "entity_id": "https://example.com/resource",
      "acs_url": "https://example.com/resource",
      "metadata_url": "https://example.com/resource"
    },
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/saml_connections/{id} SAML接続を更新

送った項目だけを変えます。idp_certificatesとmetadataは、値の全体を置き換えます。誰がサインインできるかを決める設定(idp_entity_id・idp_sso_url・idp_certificates・name_id_format・metadataの各キー)を変えると、契約組織のオーナー全員にメールで知らせ、変えた項目を操作履歴に残します。接続に利用者かSCIMの設定があるあいだは、IdPのEntity IDを変えられません。別のIdPに移るときは、新しい接続を作ってください。statusをactiveにすると、止めた接続をプランの枠の中で再開します。変更にはチーム以上のプランと`oidc_sso`の機能権限が必要です。statusをdisabledにする変更は、どのプランでもできます。書き込めるのはliveのAPIキーだけです(403 ENVIRONMENT_MISMATCH)。

認証
managementApiKey
必要な権限
sso:write
操作ID
mgmt_v1_saml_connections_update

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

リクエスト本文

必須
application/json

Example Value

{
  "name": "Example name",
  "status": "active",
  "idp_entity_id": "01K5QWERTY1234567890ABCDEFG",
  "idp_sso_url": "https://example.com/resource",
  "idp_metadata_url": "https://example.com/resource",
  "idp_certificates": [
    "string"
  ],
  "name_id_format": "email_address",
  "jit_provisioning": true,
  "metadata": {
    "trust_upstream_mfa": true,
    "require_phishing_resistant_mfa": true,
    "mfa_authn_contexts": [
      "string"
    ],
    "requested_authn_contexts": [
      "string"
    ]
  }
}

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

SAML接続の操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "configured": true,
    "idp_entity_id": "01K5QWERTY1234567890ABCDEFG",
    "idp_sso_url": "https://example.com/resource",
    "idp_metadata_url": "https://example.com/resource",
    "idp_metadata_fetched_at": "2026-09-21T00:00:00Z",
    "idp_certificates": [
      "string"
    ],
    "idp_certificate_details": [
      {
        "sha256_fingerprint": "string",
        "subject_common_name": "Example name",
        "not_before": "2026-09-21T00:00:00Z",
        "not_after": "2026-09-21T00:00:00Z",
        "expired": true
      }
    ],
    "name_id_format": "Example name",
    "jit_provisioning": true,
    "metadata": {
      "trust_upstream_mfa": true,
      "require_phishing_resistant_mfa": true,
      "mfa_authn_contexts": [
        "string"
      ],
      "requested_authn_contexts": [
        "string"
      ]
    },
    "service_provider": {
      "entity_id": "https://example.com/resource",
      "acs_url": "https://example.com/resource",
      "metadata_url": "https://example.com/resource"
    },
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/saml_connections/{id} SAML接続を削除

接続を削除せずに停止します。再開するまで、この接続では誰もサインインできません。どのプランでも使えます。書き込めるのはliveのAPIキーだけです(403 ENVIRONMENT_MISMATCH)。

認証
managementApiKey
必要な権限
sso:write
操作ID
mgmt_v1_saml_connections_destroy

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
204

処理が完了しました(応答本文なし)

402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/saml_connections/{saml_connection_id}/metadata-import IdPのメタデータをSAML接続に取り込む

IdPのメタデータ(URLかXML)から、Entity ID・SSOのURL・署名の証明書を読み取り、SAML接続に保存します。本人確認の設定の変更なので、契約組織のオーナー全員にメールで知らせます。

IdPのメタデータをmetadata_urlかmetadata_xml(どちらか1つを送ります)から読み、Entity ID・HTTP-RedirectのSSOのURL・署名の証明書を接続に保存します。NameIDの形式は、接続に無いときだけメタデータの値を使います。URLは443番のHTTPSで、公開のアドレスからだけ取得し、OIDCのDiscoveryと同じ回数の上限があります(429 RATE_LIMITED)。DOCTYPEや実体の宣言を含むメタデータは断ります。読めないメタデータは422 DIRECTORY_VALIDATION_FAILEDで、details.errors.metadataに理由が入ります。保存すると、ほかの本人確認の設定の変更と同じく、オーナー全員にメールで知らせます。冪等キーには対応していません。書き込めるのはliveのAPIキーだけです(403 ENVIRONMENT_MISMATCH)。

認証
managementApiKey
必要な権限
sso:write
操作ID
mgmt_v1_saml_metadata_imports_create

パラメーター

saml_connection_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

リクエスト本文

必須
application/json

Example Value

{
  "metadata_url": "https://example.com/resource",
  "metadata_xml": "string"
}

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

SAML接続の操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "configured": true,
    "idp_entity_id": "01K5QWERTY1234567890ABCDEFG",
    "idp_sso_url": "https://example.com/resource",
    "idp_metadata_url": "https://example.com/resource",
    "idp_metadata_fetched_at": "2026-09-21T00:00:00Z",
    "idp_certificates": [
      "string"
    ],
    "idp_certificate_details": [
      {
        "sha256_fingerprint": "string",
        "subject_common_name": "Example name",
        "not_before": "2026-09-21T00:00:00Z",
        "not_after": "2026-09-21T00:00:00Z",
        "expired": true
      }
    ],
    "name_id_format": "Example name",
    "jit_provisioning": true,
    "metadata": {
      "trust_upstream_mfa": true,
      "require_phishing_resistant_mfa": true,
      "mfa_authn_contexts": [
        "string"
      ],
      "requested_authn_contexts": [
        "string"
      ]
    },
    "service_provider": {
      "entity_id": "https://example.com/resource",
      "acs_url": "https://example.com/resource",
      "metadata_url": "https://example.com/resource"
    },
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

SCIMの設定

7操作

顧客のIdPから利用者とグループを同期するSCIMの設定とトークンを管理します。

GET /mgmt/v1/scim_connections SCIMの設定の一覧を取得

顧客のIdPが/scim/v2で利用者とグループを同期するための、SCIMの設定を一覧します。トークンは頭の部分と状態だけを返します。status(activeかdisabled)とcustomer_idで絞り込めます。testのAPIキーでも読み取れます。

認証
managementApiKey
必要な権限
sso:read
操作ID
mgmt_v1_scim_connections_index

パラメーター

status 場所: クエリ 任意
string

許容値: active, disabled

Example Value

"active"
customer_id 場所: クエリ 任意
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
limit 場所: クエリ 任意
integer 最小値: 1 最大値: 200

Example Value

50
cursor 場所: クエリ 任意
string

Example Value

"string"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

SCIMの設定の操作に成功しました

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
      "saml_connection_id": "saml_connection_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "user_issuer": "string",
      "base_url": "https://example.com/resource",
      "last_request_at": "2026-09-21T00:00:00Z",
      "tokens": [
        {
          "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
          "token_prefix": "example-token",
          "status": "active",
          "usable": true,
          "expires_at": "2026-09-21T00:00:00Z",
          "revoked_at": "2026-09-21T00:00:00Z",
          "last_used_at": "2026-09-21T00:00:00Z",
          "created_at": "2026-09-21T00:00:00Z"
        }
      ],
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/scim_connections SCIMの設定を作成

利用者の管理が有効な顧客1件に、SCIMの設定をトークンなしで作ります。トークンはPOST /mgmt/v1/scim_connections/{scim_connection_id}/tokensで作ってください。saml_connection_id(同じ顧客の、IdPの情報を登録済みのSAML接続。1つのSAML接続にSCIMの設定は1つ)を指定すると、同期した利用者はその接続のIssuerを持ち、SAMLのNameIDがSCIMのuserNameと同じなら、その接続でサインインできます。指定しないと、同期した利用者はローカルIDの利用者になり、製品アプリでメールアドレスを確かめて本人確認します。この選択はあとから変えられません。チーム以上のプランと`oidc_sso`・`organization_management`の機能権限が必要です(403 PLAN_ENTITLEMENT_REQUIRED)。書き込めるのはliveのAPIキーだけです(403 ENVIRONMENT_MISMATCH)。Idempotency-Keyが必須です。

認証
managementApiKey
必要な権限
sso:write
操作ID
mgmt_v1_scim_connections_create

パラメーター

Idempotency-Key 場所: ヘッダー 必須
string 最小文字数: 16 最大文字数: 255

Example Value

"stringxxxxxxxxxx"

リクエスト本文

必須
application/json

Example Value

{
  "customer_id": "01K5QWERTY1234567890ABCDEFG",
  "saml_connection_id": "01K5QWERTY1234567890ABCDEFG",
  "name": "Example name"
}

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
201

SCIMの設定の操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "saml_connection_id": "saml_connection_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "user_issuer": "string",
    "base_url": "https://example.com/resource",
    "last_request_at": "2026-09-21T00:00:00Z",
    "tokens": [
      {
        "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
        "token_prefix": "example-token",
        "status": "active",
        "usable": true,
        "expires_at": "2026-09-21T00:00:00Z",
        "revoked_at": "2026-09-21T00:00:00Z",
        "last_used_at": "2026-09-21T00:00:00Z",
        "created_at": "2026-09-21T00:00:00Z"
      }
    ],
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/scim_connections/{id} SCIMの設定の詳細を取得
認証
managementApiKey
必要な権限
sso:read
操作ID
mgmt_v1_scim_connections_show

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

SCIMの設定の操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "saml_connection_id": "saml_connection_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "user_issuer": "string",
    "base_url": "https://example.com/resource",
    "last_request_at": "2026-09-21T00:00:00Z",
    "tokens": [
      {
        "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
        "token_prefix": "example-token",
        "status": "active",
        "usable": true,
        "expires_at": "2026-09-21T00:00:00Z",
        "revoked_at": "2026-09-21T00:00:00Z",
        "last_used_at": "2026-09-21T00:00:00Z",
        "created_at": "2026-09-21T00:00:00Z"
      }
    ],
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/scim_connections/{id} SCIMの設定を更新

名前か状態を変えます。disabledにするとSCIMの要求を受け付けなくなり、要求は403になります。activeにすると再開します。顧客・SAML接続・利用者のIssuerは変わりません。再開には、チーム以上のプランと`oidc_sso`・`organization_management`の機能権限、顧客の利用者の管理が有効なことが必要です。書き込めるのはliveのAPIキーだけです(403 ENVIRONMENT_MISMATCH)。

認証
managementApiKey
必要な権限
sso:write
操作ID
mgmt_v1_scim_connections_update

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

リクエスト本文

必須
application/json

Example Value

{
  "name": "Example name",
  "status": "active"
}

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

SCIMの設定の操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "saml_connection_id": "saml_connection_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "user_issuer": "string",
    "base_url": "https://example.com/resource",
    "last_request_at": "2026-09-21T00:00:00Z",
    "tokens": [
      {
        "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
        "token_prefix": "example-token",
        "status": "active",
        "usable": true,
        "expires_at": "2026-09-21T00:00:00Z",
        "revoked_at": "2026-09-21T00:00:00Z",
        "last_used_at": "2026-09-21T00:00:00Z",
        "created_at": "2026-09-21T00:00:00Z"
      }
    ],
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/scim_connections/{id} SCIMの設定を削除

SCIMの設定を削除せずに停止します。同期した利用者はそのまま残ります。どのプランでも使えます。書き込めるのはliveのAPIキーだけです(403 ENVIRONMENT_MISMATCH)。

認証
managementApiKey
必要な権限
sso:write
操作ID
mgmt_v1_scim_connections_destroy

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
204

処理が完了しました(応答本文なし)

402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/scim_connections/{scim_connection_id}/tokens SCIMのトークンを作る

IdPに渡すSCIMのトークンを作ります。トークンの値を返すのはこの応答だけで、Usakeyにはハッシュだけが残ります。それまでのトークンの期限は、24時間後です。

IdPがAuthorization: Bearerに付けるSCIMのトークンを作り、tokenに入れて返します。値を返すのはこの応答だけです(Cache-Control: no-store)。Usakeyには、HMAC-SHA256のダイジェストと頭の部分だけが残ります。それまで使えたトークンは24時間後に使えなくなります。使えるトークンは2つまでなので、3つ目を作ると1つがすぐに無効になります。無効にするのは、まだ使われていないトークン(新しいものから)で、無ければ最も古いトークンです。冪等キーには対応せず、応答を再送用に保存しません。結果が分からないときは、送り直す前にGETで設定のトークンを確かめてください。チーム以上のプランと`oidc_sso`・`organization_management`の機能権限が必要です(403 PLAN_ENTITLEMENT_REQUIRED)。書き込めるのはliveのAPIキーだけです(403 ENVIRONMENT_MISMATCH)。

認証
managementApiKey
必要な権限
sso:write
操作ID
mgmt_v1_scim_tokens_create

パラメーター

scim_connection_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
201

SCIMのトークンを作りました。トークンの値はこの応答でだけ返ります

application/json

Example Value

{
  "data": {
    "token": "example-token",
    "scim_connection_id": "scim_connection_id_aaaaaaaaaaaaaaaaaaaa",
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "token_prefix": "example-token",
    "status": "active",
    "usable": true,
    "expires_at": "2026-09-21T00:00:00Z",
    "revoked_at": "2026-09-21T00:00:00Z",
    "last_used_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z"
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/scim_connections/{scim_connection_id}/tokens/{id} SCIMのトークンを無効にする

SCIMのトークンをすぐに無効にします。以後、このトークンでの要求は401になります。

SCIMのトークンをすぐに無効にします。以後、このトークンでの要求は401になります。どのプランでも使えます。書き込めるのはliveのAPIキーだけです(403 ENVIRONMENT_MISMATCH)。

認証
managementApiKey
必要な権限
sso:write
操作ID
mgmt_v1_scim_tokens_destroy

パラメーター

scim_connection_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
204

処理が完了しました(応答本文なし)

402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

ライセンス割り当て

3操作

ユーザー単位の利用権を割り当て・解除します。

GET /mgmt/v1/licenses/{license_id}/assignments ライセンス割り当ての一覧を取得
認証
managementApiKey
必要な権限
licenses:read
操作ID
mgmt_v1_license_assignments_index

パラメーター

license_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

ライセンスの割当の操作に成功しました

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
      "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
      "source_group_id": "source_group_id_aaaaaaaaaaaaaaaaaaaa",
      "tenant_plan_id": "tenant_plan_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "license_units": 1,
      "assigned_at": "2026-09-21T00:00:00Z",
      "expires_at": "2026-09-21T00:00:00Z",
      "revoked_at": "2026-09-21T00:00:00Z",
      "entitlement_overrides": {},
      "metadata": {},
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/licenses/{license_id}/assignments ライセンス割り当てを作成
認証
managementApiKey
必要な権限
licenses:write
操作ID
mgmt_v1_license_assignments_create

パラメーター

license_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

リクエスト本文

必須
application/json

Example Value

{
  "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
  "source_group_id": "source_group_id_aaaaaaaaaaaaaaaaaaaa",
  "expires_at": "2026-09-21T00:00:00Z",
  "entitlement_overrides": {},
  "metadata": {}
}

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
201

ライセンスの割当の操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
    "source_group_id": "source_group_id_aaaaaaaaaaaaaaaaaaaa",
    "tenant_plan_id": "tenant_plan_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "license_units": 1,
    "assigned_at": "2026-09-21T00:00:00Z",
    "expires_at": "2026-09-21T00:00:00Z",
    "revoked_at": "2026-09-21T00:00:00Z",
    "entitlement_overrides": {},
    "metadata": {},
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/licenses/{license_id}/assignments/{id} ライセンス割り当てを削除
認証
managementApiKey
必要な権限
licenses:write
操作ID
mgmt_v1_license_assignments_destroy

パラメーター

license_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
204

処理が完了しました(応答本文なし)

402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

Webhook署名鍵の更新

3操作

Webhook署名シークレットを安全に更新します。

POST /mgmt/v1/webhooks/{webhook_id}/secret-rotation/promote 次のWebhook署名鍵を有効化

ローテーション準備済みの署名シークレットを現在の署名鍵へ昇格します。

Webhook通知先は live と test の環境で共有されていて、有効な通知先はどちらの環境の出来事も受け取ります。live の製品がある契約組織では、test のAPIキーから予約済みの署名シークレットの切り替えを確定できません(403 ENVIRONMENT_MISMATCH)。

認証
managementApiKey
必要な権限
webhooks:write
操作ID
mgmt_v1_webhook_secret_rotations_promote

パラメーター

webhook_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
200

Webhook通知先の操作に成功しました

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "url": "https://example.com/resource",
    "events": [
      "string"
    ],
    "status": "active",
    "secret_rotation": {
      "scheduled": true,
      "activates_at": "2026-09-21T00:00:00Z"
    },
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/webhooks/{webhook_id}/secret-rotation Webhook署名鍵の更新を開始

現在の鍵を保ったまま次のWebhook署名シークレットを発行します。

Webhook通知先は live と test の環境で共有されていて、有効な通知先はどちらの環境の出来事も受け取ります。live の製品がある契約組織では、test のAPIキーから署名シークレットの切り替えを予約できません(403 ENVIRONMENT_MISMATCH)。

認証
managementApiKey
必要な権限
webhooks:write
操作ID
mgmt_v1_webhook_secret_rotations_create

パラメーター

webhook_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

リクエスト本文

必須
application/json

Example Value

{
  "activates_at": "2026-09-21T00:00:00Z"
}

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
201

Webhook通知先の操作に成功しました

application/json

Example Value

{
  "data": {}
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/webhooks/{webhook_id}/secret-rotation Webhook署名鍵の更新を取り消し

準備中の署名シークレットを破棄し、ローテーションを取り消します。

Webhook通知先は live と test の環境で共有されていて、有効な通知先はどちらの環境の出来事も受け取ります。live の製品がある契約組織では、test のAPIキーから予約済みの署名シークレットの切り替えを取り消せません(403 ENVIRONMENT_MISMATCH)。

認証
managementApiKey
必要な権限
webhooks:write
操作ID
mgmt_v1_webhook_secret_rotations_destroy

パラメーター

webhook_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
204

処理が完了しました(応答本文なし)

402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

Stripeでの販売連携の価格の対応

5操作

StripeのPriceと、購入で発行するライセンスの対応を管理します。

GET /mgmt/v1/stripe-integration/offerings 価格とライセンスの対応の一覧を取得

契約組織のStripeでの販売連携の、価格とライセンスの対応を、停止したものも含めて一覧します。StripeのPriceごとに、購入で発行するライセンスの製品・利用ルール・期間が分かります。連携は1つの環境(種別)に属します。別の環境のキーには403 ENVIRONMENT_MISMATCHを、連携が無い契約組織には404 NOT_FOUNDを返します。Stripeでの販売連携は検証プランから使えます。検証プランではテスト環境のみ利用できます。検証プランで新規発行するライセンスの期限は、発行から最長1時間です。更新後の期限も、最初の発行から1時間以内です。数量や利用ルールの制限も適用されます。有料プランで発行済みのライセンスは、検証プランに変更しても期限を短縮しません。現在の期限を超える延長はできません。権利が無い契約では403 PLAN_ENTITLEMENT_REQUIRED(details.entitlementはstripe_integration)を返します。

認証
managementApiKey
必要な権限
products:read
操作ID
mgmt_v1_stripe_offerings_index

パラメーター

limit 場所: クエリ 任意
integer 最小値: 1 最大値: 200

Example Value

50
cursor 場所: クエリ 任意
string

Example Value

"string"

レスポンス

200

価格とライセンスの対応

application/json

Example Value

{
  "data": [
    {
      "payment_grace_days": 0,
      "license_email_enabled": true,
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "stripe_price_id": "01K5QWERTY1234567890ABCDEFG",
      "product_id": "prod_0123456789abcdef0123",
      "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
      "license_duration_days": 1,
      "status": "active",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/stripe-integration/offerings 価格とライセンスの対応を作成

StripeのPriceと、購入で発行するライセンスを、管理画面と同じ規則で対応づけます。policy_idには、連携と同じ環境の製品の、運用中の利用ルールを指定してください。管理なしの完全オフラインの買い切りは選べません。買い切りの利用ルールにはlicense_duration_daysを指定できず、トライアルの利用ルールには必須です。期間制の利用ルールでlicense_duration_daysを省くと、Stripeの購読の契約期間の終わりを期限にします。このときは、Priceが定期支払いであることを確かめてから、subscription_price_confirmedにtrueを送ってください。一回払いのPriceでは、支払いが済んでもライセンスを発行しません。1つのPriceは1つの対応にだけ使えます。停止した対応は、PATCHでstatusをactiveにすると再開できます。licenses:writeの権限も必要です。保存のときに、PriceがStripeにあるかは確かめません。

認証
managementApiKey
必要な権限
products:write
操作ID
mgmt_v1_stripe_offerings_create

パラメーター

Idempotency-Key 場所: ヘッダー 必須
string 最小文字数: 16 最大文字数: 255

Example Value

"stringxxxxxxxxxx"

リクエスト本文

必須
application/json

Example Value

{
  "payment_grace_days": 0,
  "license_email_enabled": true,
  "name": "Example name",
  "stripe_price_id": "price_1AbCdEfGhIjKlMnO",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "license_duration_days": 1,
  "subscription_price_confirmed": true
}

レスポンス

201

追加した価格とライセンスの対応

application/json

Example Value

{
  "data": {
    "payment_grace_days": 0,
    "license_email_enabled": true,
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "stripe_price_id": "01K5QWERTY1234567890ABCDEFG",
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "license_duration_days": 1,
    "status": "active",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/stripe-integration/offerings/{id} 価格とライセンスの対応の詳細を取得

価格とライセンスの対応を1件返します。

認証
managementApiKey
必要な権限
products:read
操作ID
mgmt_v1_stripe_offerings_show

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

価格とライセンスの対応

application/json

Example Value

{
  "data": {
    "payment_grace_days": 0,
    "license_email_enabled": true,
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "stripe_price_id": "01K5QWERTY1234567890ABCDEFG",
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "license_duration_days": 1,
    "status": "active",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/stripe-integration/offerings/{id} 価格とライセンスの対応を更新

送った項目だけを変えます。変更はこれからの購入に使い、発行済みのライセンスは変わりません。statusをarchivedにすると対応を止め、activeにすると再開します。有効な対応には運用中の利用ルールが必要なので、利用ルールが廃止されたときはpolicy_idを選び直してください。管理画面と同じく、期間制でlicense_duration_daysの無い有効な対応を保存するときは、名前だけの変更でもsubscription_price_confirmedにtrueが必要です。licenses:writeの権限も必要です。

認証
managementApiKey
必要な権限
products:write
操作ID
mgmt_v1_stripe_offerings_update

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

リクエスト本文

必須
application/json

Example Value

{
  "payment_grace_days": 0,
  "license_email_enabled": true,
  "name": "Example name",
  "stripe_price_id": "price_1AbCdEfGhIjKlMnO",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "license_duration_days": 1,
  "status": "active",
  "subscription_price_confirmed": true
}

レスポンス

200

更新した価格とライセンスの対応

application/json

Example Value

{
  "data": {
    "payment_grace_days": 0,
    "license_email_enabled": true,
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "stripe_price_id": "01K5QWERTY1234567890ABCDEFG",
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "license_duration_days": 1,
    "status": "active",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/stripe-integration/offerings/{id} 価格とライセンスの対応を停止

対応を止めます(statusはarchived)。そのPriceがこれから購入されても、ライセンスは発行しません。発行済みのライセンスと、その購読の更新・解約・返金の反映は続きます。statusをactiveにすると戻せます。

対応を止めます(statusはarchived)。そのPriceがこれから購入されても、ライセンスは発行しません。発行済みのライセンスと、その購読の更新・解約・返金の反映は続きます。licenses:writeの権限も必要です。

認証
managementApiKey
必要な権限
products:write
操作ID
mgmt_v1_stripe_offerings_destroy

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

204

停止しました

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

Stripeでの販売連携の通知の履歴

1操作

Stripeでの販売連携が受け取った通知と、その結果を確かめます。

GET /mgmt/v1/stripe-integration/events 通知の記録の一覧を取得

連携が受け取ったStripeの通知を、古い順に一覧します。記録するのは署名の合った通知だけで、本文は残しません。決着した記録は90日(Usakeyが扱わない種類の通知は1日)で消え、照合を待つ記録(pending)は残ります。最近の分はprocessed_afterで、結果はresultで絞り込めます。隔離した通知の再照合は管理画面で行います。

認証
managementApiKey
必要な権限
products:read
操作ID
mgmt_v1_stripe_integration_events_index

パラメーター

limit 場所: クエリ 任意
integer 最小値: 1 最大値: 200

Example Value

50
cursor 場所: クエリ 任意
string

Example Value

"string"
result 場所: クエリ 任意
value

許容値: applied, ignored, failed, pending

この結果の通知だけを返します。

Example Value

"applied"
processed_after 場所: クエリ 任意
string date-time

この日時以降に処理した通知だけを返します。

Example Value

"2026-09-21T00:00:00Z"

レスポンス

200

受け取ったStripeの通知

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "stripe_event_id": "01K5QWERTY1234567890ABCDEFG",
      "event_type": "string",
      "result": "string",
      "detail": "string",
      "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
      "processed_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

販売サービスの連携

7操作

Shopify・Square・KOMOJU・Paddle・Lemon Squeezy・汎用の受け口との連携を登録・変更・停止します。

GET /mgmt/v1/sales-integrations 販売サービスの連携の一覧を取得

APIキーと同じ環境(testまたはlive)の、販売サービスの連携(Shopify・Square・KOMOJU・Paddle・Lemon Squeezy・署名つきの汎用の受け口)を一覧します。署名の鍵は返しません。販売サービスの連携は検証プランから使えます。検証プランではテスト環境のみ利用できます。検証プランで新規発行するライセンスの期限は、発行から最長1時間です。更新後の期限も、最初の発行から1時間以内です。数量や利用ルールの制限も適用されます。有料プランで発行済みのライセンスは、検証プランに変更しても期限を短縮しません。現在の期限を超える延長はできません。権利が無い契約では403 PLAN_ENTITLEMENT_REQUIRED(details.entitlementはsales_integrations)を返します。

認証
managementApiKey
必要な権限
products:read
操作ID
mgmt_v1_sales_integrations_index

パラメーター

limit 場所: クエリ 任意
integer 最小値: 1 最大値: 200

Example Value

50
cursor 場所: クエリ 任意
string

Example Value

"string"

レスポンス

200

販売サービスの連携

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "provider": "string",
      "mode": "test",
      "status": "active",
      "display_name": "Example name",
      "signing_secret_configured": true,
      "accepting_notifications": true,
      "webhook_url": "https://example.com/resource",
      "license_claim_url": "https://example.com/resource",
      "events_to_subscribe": [
        "string"
      ],
      "last_event": {
        "type": "string",
        "result": "string",
        "at": "2026-09-21T00:00:00Z"
      },
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/sales-integrations 販売サービスの連携を作成

APIキーと同じ環境に、販売サービスの連携を登録します。連携は購入の通知でライセンスを発行するので、licenses:writeの権限も必要です。汎用の受け口では署名の鍵をUsakeyが作り、この応答と、同じIdempotency-Keyでの再送の応答でだけ返します。販売サービスでは、そのサービスに表示される署名の鍵を送ります。省略した場合は、あとからPATCHのsigning_secretか管理画面で入れてください。鍵が入るまで、その連携は通知を受け付けません。販売サービスにはwebhook_urlを登録し、events_to_subscribeの通知を選んでください。

認証
managementApiKey
必要な権限
products:write
操作ID
mgmt_v1_sales_integrations_create

パラメーター

Idempotency-Key 場所: ヘッダー 必須
string 最小文字数: 16 最大文字数: 255

Example Value

"stringxxxxxxxxxx"

リクエスト本文

必須
application/json

Example Value

{
  "provider": "generic",
  "display_name": "Example name",
  "mode": "test",
  "signing_secret": "example-token"
}

レスポンス

201

登録した販売サービスの連携

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "provider": "string",
    "mode": "test",
    "status": "active",
    "display_name": "Example name",
    "signing_secret_configured": true,
    "accepting_notifications": true,
    "webhook_url": "https://example.com/resource",
    "license_claim_url": "https://example.com/resource",
    "events_to_subscribe": [
      "string"
    ],
    "last_event": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/sales-integrations/{id} 販売サービスの連携の詳細を取得

APIキーと同じ環境の販売サービスの連携1件を、登録するURLと最後に受け取った通知と一緒に返します。署名の鍵は返しません。鍵が入っているかはsigning_secret_configuredで分かります。

認証
managementApiKey
必要な権限
products:read
操作ID
mgmt_v1_sales_integrations_show

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

販売サービスの連携

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "provider": "string",
    "mode": "test",
    "status": "active",
    "display_name": "Example name",
    "signing_secret_configured": true,
    "accepting_notifications": true,
    "webhook_url": "https://example.com/resource",
    "license_claim_url": "https://example.com/resource",
    "events_to_subscribe": [
      "string"
    ],
    "last_event": {
      "type": "string",
      "result": "string",
      "at": "2026-09-21T00:00:00Z"
    },
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/sales-integrations/{id} 販売サービスの連携を更新

表示名の変更、受け取りの停止・再開(status)、販売サービスに表示される署名の鍵の設定を行います。licenses:writeの権限も必要です。販売サービスの種類と環境は変更できません。保存済みの鍵を消すことはできません。汎用の受け口の鍵は、署名の鍵の作り直しでだけ変わります。止めても販売サービスの購読は解約されず、販売側で解約するまで購入者への請求は続きます。

認証
managementApiKey
必要な権限
products:write
操作ID
mgmt_v1_sales_integrations_update

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

リクエスト本文

必須
application/json

Example Value

{
  "display_name": "Example name",
  "status": "active",
  "signing_secret": "example-token"
}

レスポンス

200

更新した販売サービスの連携

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "provider": "string",
    "mode": "test",
    "status": "active",
    "display_name": "Example name",
    "signing_secret_configured": true,
    "accepting_notifications": true,
    "webhook_url": "https://example.com/resource",
    "license_claim_url": "https://example.com/resource",
    "events_to_subscribe": [
      "string"
    ],
    "last_event": {
      "type": "string",
      "result": "string",
      "at": "2026-09-21T00:00:00Z"
    },
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/sales-integrations/{id} 販売サービスの連携を停止

連携を止めます。止めている間は通知とライセンスキーの受け取りを断ります。発行済みのライセンス・履歴・対応は残り、statusをactiveにすると再開できます。

連携を止めます。PATCHでstatusをactiveにして再開するまで、通知とライセンスキーの受け取りを断ります。発行済みのライセンスはそのままで、履歴と商品の対応も残ります。licenses:writeの権限も必要です。止めても販売サービスの購読は解約されず、販売側で解約するまで購入者への請求は続きます。

認証
managementApiKey
必要な権限
products:write
操作ID
mgmt_v1_sales_integrations_destroy

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

204

停止しました

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/sales-integrations/{id}/url-rotation 販売サービスの連携のURLを作り直す

通知を受け取るURLとライセンスキーの受け取り口のURLを作り直します。古いURLは使えなくなるので、販売サービスと製品アプリの設定を直してください。

webhook_urlとlicense_claim_urlを作り直します。この時点から古いURLへの通知と受け取りは断るので、販売サービスと製品アプリの設定を直してください。licenses:writeの権限も必要です。

認証
managementApiKey
必要な権限
products:write
操作ID
mgmt_v1_sales_integrations_rotate_urls

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

新しいURLになった販売サービスの連携

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "provider": "string",
    "mode": "test",
    "status": "active",
    "display_name": "Example name",
    "signing_secret_configured": true,
    "accepting_notifications": true,
    "webhook_url": "https://example.com/resource",
    "license_claim_url": "https://example.com/resource",
    "events_to_subscribe": [
      "string"
    ],
    "last_event": {
      "type": "string",
      "result": "string",
      "at": "2026-09-21T00:00:00Z"
    },
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/sales-integrations/{id}/secret-rotation 汎用の受け口の署名の鍵を作り直す

汎用の受け口の新しい署名の鍵を作り、この応答で一度だけ返します。古い鍵の署名は、この時点から通りません。

汎用の受け口の新しい署名の鍵を作り、この応答でだけ返します。この時点から、古い鍵で署名した要求は断ります。ほかの販売サービスでは422 VALIDATION_FAILEDを返します(鍵は販売サービスで作り、PATCHで入れます)。licenses:writeの権限も必要です。

認証
managementApiKey
必要な権限
products:write
操作ID
mgmt_v1_sales_integrations_rotate_secret

パラメーター

id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

新しい署名の鍵になった販売サービスの連携

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "provider": "string",
    "mode": "test",
    "status": "active",
    "display_name": "Example name",
    "signing_secret_configured": true,
    "accepting_notifications": true,
    "webhook_url": "https://example.com/resource",
    "license_claim_url": "https://example.com/resource",
    "events_to_subscribe": [
      "string"
    ],
    "last_event": {}
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

販売サービスの商品の対応

5操作

販売サービスの商品と、発行するライセンスの対応を管理します。

GET /mgmt/v1/sales-integrations/{sales_integration_id}/offerings 商品とライセンスの対応の一覧を取得

連携の商品とライセンスの対応(販売サービスの商品ごとに、購入でどのライセンス(製品・利用ルール・期間)を発行するか)を一覧します。

認証
managementApiKey
必要な権限
products:read
操作ID
mgmt_v1_sales_offerings_index

パラメーター

sales_integration_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
limit 場所: クエリ 任意
integer 最小値: 1 最大値: 200

Example Value

50
cursor 場所: クエリ 任意
string

Example Value

"string"

レスポンス

200

商品とライセンスの対応

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "sales_integration_id": "sales_integration_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "external_item_id": "01K5QWERTY1234567890ABCDEFG",
      "product_id": "prod_0123456789abcdef0123",
      "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
      "license_duration_days": 1,
      "status": "active",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
POST /mgmt/v1/sales-integrations/{sales_integration_id}/offerings 商品とライセンスの対応を作成

販売サービスの商品と、発行するライセンスを対応づけます。policy_idには、連携と同じ環境の製品の、運用中の利用ルールを指定してください。お試しの利用ルールと、管理なしの完全オフラインの買い切りは選べません。購読を通知しないShopifyとKOMOJUでは、期間制の利用ルールにlicense_duration_daysが必要です。licenses:writeの権限も必要です。

認証
managementApiKey
必要な権限
products:write
操作ID
mgmt_v1_sales_offerings_create

パラメーター

sales_integration_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
Idempotency-Key 場所: ヘッダー 必須
string 最小文字数: 16 最大文字数: 255

Example Value

"stringxxxxxxxxxx"

リクエスト本文

必須
application/json

Example Value

{
  "name": "Example name",
  "external_item_id": "01K5QWERTY1234567890ABCDEFG",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "license_duration_days": 1
}

レスポンス

201

追加した商品とライセンスの対応

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "sales_integration_id": "sales_integration_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "external_item_id": "01K5QWERTY1234567890ABCDEFG",
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "license_duration_days": 1,
    "status": "active",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
409

冪等キー・バージョン・端末・同時利用の競合、または製品署名鍵の準備中です

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
GET /mgmt/v1/sales-integrations/{sales_integration_id}/offerings/{id} 商品とライセンスの対応の詳細を取得

商品とライセンスの対応1件を返します。

認証
managementApiKey
必要な権限
products:read
操作ID
mgmt_v1_sales_offerings_show

パラメーター

sales_integration_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

200

商品とライセンスの対応

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "sales_integration_id": "sales_integration_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "external_item_id": "01K5QWERTY1234567890ABCDEFG",
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "license_duration_days": 1,
    "status": "active",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
PATCH /mgmt/v1/sales-integrations/{sales_integration_id}/offerings/{id} 商品とライセンスの対応を更新

商品とライセンスの対応を変更します。変更はこれからの購入に使い、発行済みのライセンスは変わりません。licenses:writeの権限も必要です。

認証
managementApiKey
必要な権限
products:write
操作ID
mgmt_v1_sales_offerings_update

パラメーター

sales_integration_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

リクエスト本文

必須
application/json

Example Value

{
  "name": "Example name",
  "external_item_id": "01K5QWERTY1234567890ABCDEFG",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "license_duration_days": 1,
  "status": "active"
}

レスポンス

200

更新した商品とライセンスの対応

application/json

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "sales_integration_id": "sales_integration_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "external_item_id": "01K5QWERTY1234567890ABCDEFG",
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "license_duration_days": 1,
    "status": "active",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
422

状態の変更または入力の検証に失敗しました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
DELETE /mgmt/v1/sales-integrations/{sales_integration_id}/offerings/{id} 商品とライセンスの対応を停止

対応を止めます。これからの購入ではライセンスを発行しません。発行済みのライセンスと、その更新・解約・返金の反映は続きます。

対応を止めます(statusはarchived)。これからその商品が購入されても、ライセンスを発行しません。発行済みのライセンスと、その購入の更新・解約・返金の反映は続きます。licenses:writeの権限も必要です。

認証
managementApiKey
必要な権限
products:write
操作ID
mgmt_v1_sales_offerings_destroy

パラメーター

sales_integration_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"

レスポンス

204

停止しました

429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

Management API

販売サービスの通知の履歴

1操作

連携が受け取った通知と、その結果を確かめます。

GET /mgmt/v1/sales-integrations/{sales_integration_id}/events 通知の記録の一覧を取得

連携が受け取った通知を古い順に一覧します。記録するのは署名の合った通知だけで、通知の本文は残しません。記録は90日(購入に結び付かず何も変えなかった通知は1日)残ります。最近の分はprocessed_afterで、結果はresultで絞り込めます。

認証
managementApiKey
必要な権限
products:read
操作ID
mgmt_v1_sales_integration_events_index

パラメーター

sales_integration_id 場所: パス 必須
string

Example Value

"01K5QWERTY1234567890ABCDEFG"
limit 場所: クエリ 任意
integer 最小値: 1 最大値: 200

Example Value

50
cursor 場所: クエリ 任意
string

Example Value

"string"
result 場所: クエリ 任意
value

許容値: applied, ignored, failed, deferred

この結果の通知だけを返します。

Example Value

"applied"
processed_after 場所: クエリ 任意
string date-time

この日時以降に処理した通知だけを返します。

Example Value

"2026-09-21T00:00:00Z"

レスポンス

200

受け取った通知

application/json

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "event_type": "string",
      "result": "string",
      "detail": "string",
      "detail_codes": [
        "string"
      ],
      "purchase_reference": "string",
      "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
      "processed_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
401

認証情報または署名が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
403

ライセンスの状態または権限により拒否されました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
404

対象が見つかりません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
400

要求が正しくありません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
402

契約組織のトライアルまたは契約が終了しています

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

APIの保護に必要な仕組みが一時的に使えません

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}

販売サービスの受け口

販売サービスの汎用の受け口

1操作

販売者のシステムや自動化サービスから、購入の出来事を署名つきのJSONで送ります。

POST /integrations/sales/{endpoint_token}/webhook 汎用の受け口へ購入の出来事を送る

販売者のシステムや自動化サービスから、購入ごとの出来事(発行・プランの変更・期限の延長・停止・再開・取り消し)を署名つきのJSONで送ります。送り先は連携のwebhook_urlで、署名はUsakeyのWebhook通知と同じ形です。

販売サービスの連携の汎用の受け口です。販売者のシステムや自動化サービスが、購入の出来事ごとに署名つきのJSONを1件送ると、Usakeyがその購入のライセンスを発行・延長・プランの変更・停止・再開・取り消しします。送り先は連携のwebhook_urlです。署名は、時刻・ピリオド・イベントID・ピリオド・生の本文をつないだ文字列の、連携の署名の鍵によるHMAC-SHA256(16進数)で、v1=に続けて送ります(UsakeyのWebhook通知と同じ形)。Shopify・Square・KOMOJU・Paddle・Lemon Squeezyの連携の同じURLは、そのサービスの公式の形の通知を受け取ります。その形はこの操作では説明しません。

認証
なし
必要な権限
—
操作ID
integrations_sales_webhooks_create

パラメーター

endpoint_token 場所: パス 必須
string 最大文字数: 64

Example Value

"https://example.com/resource"
X-Usakey-Event-Id 場所: ヘッダー 必須
string 形式: ^[A-Za-z0-9._:-]{1,128}$

出来事の一意のIDです。同じ出来事を送り直すときは同じIDにしてください。同じIDは1回だけ処理します。

Example Value

"string"
X-Usakey-Timestamp 場所: ヘッダー 必須
string 形式: ^[0-9]{1,12}$

送った時刻(Unix秒)です。現在の時刻から前後300秒を超える要求は断ります。

Example Value

"0"
X-Usakey-Signature 場所: ヘッダー 必須
string 最大文字数: 1024

v1=に続けた16進数の署名です。鍵を切り替えている間は、複数の署名をカンマで区切って送れます。

Example Value

"example-token"

リクエスト本文

必須
application/json

Example Value

{
  "action": "issue",
  "purchase_id": "01K5QWERTY1234567890ABCDEFG",
  "item": "string",
  "customer": {
    "id": "cus_0123456789abcdef01234567",
    "reference": "string",
    "email": "developer@example.com",
    "name": "Example name"
  },
  "expires_at": "2026-09-21T00:00:00Z",
  "occurred_at": "2026-09-21T00:00:00Z",
  "reason": "string",
  "claim_challenge": "usk_claim_v1_2kRE5qRU2tR-tBGlDwMEw2avJ7QM4ikPYD_PJ3bd9Og"
}

レスポンス

200

出来事を記録しました(反映・変更なし・失敗)。同じイベントIDで送り直すと、同じ結果を返します。

application/json

Example Value

{
  "result": "string",
  "detail": "string",
  "detail_codes": [
    "string"
  ],
  "license": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "expires_at": "2026-09-21T00:00:00Z",
    "license_key": "string"
  }
}
401

署名のヘッダーが無い、署名が合わない、または時刻が範囲の外です。何も記録しません。

application/json

Example Value

{
  "error": {
    "code": "string",
    "message": "string"
  }
}
404

URLが不明、連携が停止中、URLを作り直した、または署名の鍵がまだ入っていません。

422

本文が正しくありません。何も記録しないので、直して送り直してください。

application/json

Example Value

{
  "error": {
    "code": "string",
    "message": "string"
  }
}
429

適用される時間枠の上限回数を超えました

application/json

Schema

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
503

出来事を保留しました(製品の署名鍵の準備中やプランの上限など)。または、Usakeyが一時的に使えず、本文なしで応答しています。時間をおいて、同じイベントIDで送り直してください。

application/json

Example Value

{
  "result": "string",
  "detail": "string",
  "detail_codes": [
    "string"
  ],
  "license": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "expires_at": "2026-09-21T00:00:00Z",
    "license_key": "string"
  }
}

OpenAPIの共通データ形式

データ形式

リクエストとレスポンスから参照される共通データ形式です。Example ValueでJSONの形を確認し、Schemaで必須項目、型、制約を確認できます。

ResellerAllocation 13項目

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "product_id": "prod_0123456789abcdef0123",
  "seat_limit": 1,
  "max_duration_days": 1,
  "status": "active",
  "issued_seats": 1,
  "remaining_seats": 1,
  "license_count": 1,
  "active_devices": 1,
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
public_id 必須 "public_id_aaaaaaaaaaaaaaaaaaaa"
reseller_id 必須 "reseller_id_aaaaaaaaaaaaaaaaaaaa"
policy_id 必須 "policy_id_aaaaaaaaaaaaaaaaaaaa"
product_id 必須 "prod_0123456789abcdef0123"
seat_limit 必須
integer | null

販売店が発行できる台数の合計です。nullは上限なしです。

1
max_duration_days 必須
integer | null

販売店が設定できる最長の期間(発行からの日数)です。nullは制限なしです。

1
status 必須
value

許容値: active, archived

"active"
issued_seats 必須
integer

取り消しておらず、期限を過ぎていないライセンスの台数です。

1
remaining_seats 必須
integer | null

上限が無いときはnullです。

1
license_count 必須
integer
1
active_devices 必須
integer
1
created_at 任意
string date-time
"2026-09-21T00:00:00Z"
updated_at 任意
string date-time
"2026-09-21T00:00:00Z"
ResellerAllocationInput 3項目

Schema

object

Example Value

{
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "seat_limit": 0,
  "max_duration_days": 1
}
項目必須型・説明Example Value
policy_id 必須 "policy_id_aaaaaaaaaaaaaaaaaaaa"
seat_limit 任意
integer | null 最小値: 0
0
max_duration_days 任意
integer | null 最小値: 1 最大値: 3650
1
ResellerAllocationUpdateInput 2項目

Schema

object

Example Value

{
  "seat_limit": 0,
  "max_duration_days": 1
}
項目必須型・説明Example Value
seat_limit 任意
integer | null 最小値: 0
0
max_duration_days 任意
integer | null 最小値: 1 最大値: 3650
1
ResellerAllocationResponse 1項目

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "seat_limit": 1,
    "max_duration_days": 1,
    "status": "active",
    "issued_seats": 1,
    "remaining_seats": 1,
    "license_count": 1,
    "active_devices": 1,
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
項目必須型・説明Example Value
data 必須 { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa", "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "product_id": "prod_0123456789abcdef0123", "seat_limit": 1, "max_duration_days": 1, "status": "active", "issued_seats": 1, "remaining_seats": 1, "license_count": 1, "active_devices": 1, "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
ResellerAllocationListResponse 1項目

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
      "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
      "product_id": "prod_0123456789abcdef0123",
      "seat_limit": 1,
      "max_duration_days": 1,
      "status": "active",
      "issued_seats": 1,
      "remaining_seats": 1,
      "license_count": 1,
      "active_devices": 1,
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ]
}
項目必須型・説明Example Value
data 必須
array<ResellerAllocation>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa", "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "product_id": "prod_0123456789abcdef0123", "seat_limit": 1, "max_duration_days": 1, "status": "active", "issued_seats": 1, "remaining_seats": 1, "license_count": 1, "active_devices": 1, "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
ResellerUsageResponse 1項目

Schema

object

Example Value

{
  "data": {
    "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
    "issued_seats": 1,
    "license_count": 1,
    "active_devices": 1,
    "customer_count": 1,
    "allocations": [
      {
        "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
        "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
        "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
        "product_id": "prod_0123456789abcdef0123",
        "seat_limit": 1,
        "max_duration_days": 1,
        "status": "active",
        "issued_seats": 1,
        "remaining_seats": 1,
        "license_count": 1,
        "active_devices": 1,
        "created_at": "2026-09-21T00:00:00Z",
        "updated_at": "2026-09-21T00:00:00Z"
      }
    ]
  }
}
項目必須型・説明Example Value
data 必須
object
{ "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa", "issued_seats": 1, "license_count": 1, "active_devices": 1, "customer_count": 1, "allocations": [ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa", "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "product_id": "prod_0123456789abcdef0123", "seat_limit": 1, "max_duration_days": 1, "status": "active", "issued_seats": 1, "remaining_seats": 1, "license_count": 1, "active_devices": 1, "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ] }
ResellerMember 8項目

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
  "email": "developer@example.com",
  "role": "manager",
  "status": "invited",
  "invited_at": "2026-09-21T00:00:00Z",
  "accepted_at": "2026-09-21T00:00:00Z",
  "created_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
public_id 必須 "public_id_aaaaaaaaaaaaaaaaaaaa"
reseller_id 必須 "reseller_id_aaaaaaaaaaaaaaaaaaaa"
email 必須
string
"developer@example.com"
role 必須
value

許容値: manager, viewer

managerはライセンスの発行と管理ができます。viewerは台数とライセンスを見ることだけができます。

"manager"
status 必須
value

許容値: invited, active

"invited"
invited_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
accepted_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
created_at 任意
string date-time
"2026-09-21T00:00:00Z"
ResellerMemberInput 2項目

Schema

object

Example Value

{
  "email": "developer@example.com",
  "role": "manager"
}
項目必須型・説明Example Value
email 必須
string 最大文字数: 254
"developer@example.com"
role 任意
value

許容値: manager, viewer

"manager"
ResellerMemberUpdateInput 1項目

Schema

object

Example Value

{
  "role": "manager"
}
項目必須型・説明Example Value
role 必須
value

許容値: manager, viewer

"manager"
ResellerMemberResponse 1項目

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
    "email": "developer@example.com",
    "role": "manager",
    "status": "invited",
    "invited_at": "2026-09-21T00:00:00Z",
    "accepted_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z"
  }
}
項目必須型・説明Example Value
data 必須 { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa", "email": "developer@example.com", "role": "manager", "status": "invited", "invited_at": "2026-09-21T00:00:00Z", "accepted_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z" }
ResellerMemberListResponse 1項目

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
      "email": "developer@example.com",
      "role": "manager",
      "status": "invited",
      "invited_at": "2026-09-21T00:00:00Z",
      "accepted_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z"
    }
  ]
}
項目必須型・説明Example Value
data 必須
array<ResellerMember>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa", "email": "developer@example.com", "role": "manager", "status": "invited", "invited_at": "2026-09-21T00:00:00Z", "accepted_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z" } ]
LicenseNotice 9項目

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "kind": "license_delivery",
  "source": "stripe",
  "status": "pending",
  "skip_reason": "no_recipient",
  "recipient": "string",
  "includes_key": true,
  "sent_at": "2026-09-21T00:00:00Z",
  "created_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
public_id 必須 "public_id_aaaaaaaaaaaaaaaaaaaa"
kind 必須
value

許容値: license_delivery, payment_grace_started, payment_grace_reminder, payment_grace_ended, payment_recovered

"license_delivery"
source 必須
value

許容値: stripe, reseller

"stripe"
status 必須
value

許容値: pending, sent, failed, skipped

"pending"
skip_reason 任意
string | null

許容値: no_recipient, test_recipient_not_member, key_unavailable, null

"no_recipient"
recipient 任意
string | null
"string"
includes_key 必須
boolean
true
sent_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
created_at 任意
string date-time
"2026-09-21T00:00:00Z"
LicenseNoticeResponse 1項目

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "kind": "license_delivery",
    "source": "stripe",
    "status": "pending",
    "skip_reason": "no_recipient",
    "recipient": "string",
    "includes_key": true,
    "sent_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z"
  }
}
項目必須型・説明Example Value
data 必須 { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "kind": "license_delivery", "source": "stripe", "status": "pending", "skip_reason": "no_recipient", "recipient": "string", "includes_key": true, "sent_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z" }
LicenseNoticeListResponse 1項目

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "kind": "license_delivery",
      "source": "stripe",
      "status": "pending",
      "skip_reason": "no_recipient",
      "recipient": "string",
      "includes_key": true,
      "sent_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z"
    }
  ]
}
項目必須型・説明Example Value
data 必須
array<LicenseNotice>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "kind": "license_delivery", "source": "stripe", "status": "pending", "skip_reason": "no_recipient", "recipient": "string", "includes_key": true, "sent_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z" } ]
StripeAppQueryInput 2項目

Schema

object

Example Value

{
  "name": "customer",
  "params": {}
}
項目必須型・説明Example Value
name 必須
string

許容値: customer, licenses, license, license.handoff, audit, catalog, offerings, billing_rules ほか10件

"customer"
params 必須
object

操作ごとの安全なパラメーターです。契約組織、アカウント、環境は承認済みの接続から決まります。

{}
StripeAppQueryResponse 2項目

Schema

object

Example Value

{
  "request_id": "01K5QWERTY1234567890ABCDEFG",
  "data": {}
}
項目必須型・説明Example Value
request_id 必須
string
"01K5QWERTY1234567890ABCDEFG"
data 必須
object
{}
StripeAppPreviewInput 4項目

Schema

object

Example Value

{
  "name": "license.extend",
  "params": {},
  "expected_version": "string",
  "reason": "string"
}
項目必須型・説明Example Value
name 必須
string

許容値: license.extend, license.suspend, license.resume, license.revoke, activation.release, license.issue_trial, license.update_limits, license.update_entitlements ほか11件

"license.extend"
params 必須
object

操作ごとの安全なパラメーターです。契約組織、アカウント、環境は承認済みの接続から決まります。

{}
expected_version 任意
string | integer

対象の取得時に返された版です。更新時に必要です。

"string"
reason 必須
string 最小文字数: 1 最大文字数: 300
"string"
StripeAppPreviewResponse 2項目

Schema

object

Example Value

{
  "request_id": "01K5QWERTY1234567890ABCDEFG",
  "data": {}
}
項目必須型・説明Example Value
request_id 必須
string
"01K5QWERTY1234567890ABCDEFG"
data 必須
object
{}
StripeAppCommandInput 5項目

Schema

object

Example Value

{
  "name": "license.extend",
  "params": {},
  "expected_version": "string",
  "reason": "string",
  "confirmation_token": "example-token"
}
項目必須型・説明Example Value
name 必須
string

許容値: license.extend, license.suspend, license.resume, license.revoke, activation.release, license.issue_trial, license.update_limits, license.update_entitlements ほか11件

"license.extend"
params 必須
object

操作ごとの安全なパラメーターです。契約組織、アカウント、環境は承認済みの接続から決まります。

{}
expected_version 任意
string | integer

対象の取得時に返された版です。更新時に必要です。

"string"
reason 必須
string 最小文字数: 1 最大文字数: 300
"string"
confirmation_token 必須
string 最小文字数: 1 最大文字数: 8192

変更内容の確認時に返された、有効期限内のトークンをそのまま送ってください。パラメーターを変えると無効になります。

"example-token"
StripeAppCommandResponse 2項目

Schema

object

Example Value

{
  "request_id": "01K5QWERTY1234567890ABCDEFG",
  "data": {}
}
項目必須型・説明Example Value
request_id 必須
string
"01K5QWERTY1234567890ABCDEFG"
data 必須
object
{}
PublicId 0項目

Schema

string 最大文字数: 64 形式: ^[a-z_]+[0-9a-f]{20,24}$

Example Value

"id_aaaaaaaaaaaaaaaaaaaa"
MachineInfoInventoryField 0項目

Schema

string 最小文字数: 1 最大文字数: 128

許容値: schema_version, collected_at, platform, app, app_version, app_build, sdk, sdk_version ほか37件

Example Value

"schema_version"
MachineInfo 47項目

サポートとリスク判定のために自己申告する端末情報の、安全な項目だけを許す一覧です。エンコード後のオブジェクトは16 KiB・JSONの値512個・入れ子8段・1オブジェクトのキー64個・1配列の値64個・キー128バイト・一般の文字列2 KiBまでで、下の名前付きの文字列項目は512バイトまでです。文字列の長さの制約はバイト数の目安で、サーバーはエンコード後のバイト数で判定します。生のシリアル番号、MACアドレス、端末のUUIDやID、ホスト名、利用者やホームの情報、環境変数の値、ファイルやアプリの一覧、プロセスの一覧、秘密情報は送れません。capabilities には存在する許可項目だけ、unavailable_fields には存在しない許可項目だけを入れ、両者が重ならないようにします。

Schema

object

Example Value

{
  "schema_version": 1,
  "collected_at": 0,
  "platform": "string",
  "app": "string",
  "app_version": "string",
  "app_build": "string",
  "sdk": "string",
  "sdk_version": "string",
  "os": "string",
  "os_version": "string",
  "os_build": "string",
  "os_edition": "string",
  "kernel_version": "string",
  "arch": "string",
  "cpu_vendor": "string",
  "cpu_model": "string",
  "cpu_physical_cores": 1,
  "cpu_logical_cores": 1,
  "cpu_load": 0.0,
  "memory_bytes": 1,
  "storage_bytes": 1,
  "manufacturer": "string",
  "model": "string",
  "chassis_type": "string",
  "locale": "string",
  "timezone": "string",
  "env_type": "string",
  "vm_detected": true,
  "vm_vendor": "string",
  "container_detected": true,
  "container_runtime": "string",
  "wsl_detected": true,
  "wsl_version": "string",
  "emulator_detected": true,
  "secure_boot_enabled": true,
  "tpm_present": true,
  "tpm_version": "string",
  "secure_enclave_present": true,
  "hardware_keystore_present": true,
  "root_detected": true,
  "jailbreak_detected": true,
  "debugger_detected": true,
  "clock_tamper_detected": true,
  "clock_rollback_detected": true,
  "capabilities": [
    "schema_version"
  ],
  "unavailable_fields": [
    "schema_version"
  ],
  "risk_signals": [
    {
      "kind": "clock_rollback",
      "confidence": 0,
      "source": "example.value"
    }
  ]
}
項目必須型・説明Example Value
schema_version 任意
integer 最小値: 1 最大値: 255
1
collected_at 任意
integer 最小値: 0 最大値: 9223372036854775807

Unix時刻(秒)

0
platform 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
app 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
app_version 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
app_build 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
sdk 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
sdk_version 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
os 必須
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
os_version 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
os_build 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
os_edition 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
kernel_version 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
arch 必須
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
cpu_vendor 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
cpu_model 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
cpu_physical_cores 任意
integer 最小値: 1 最大値: 9223372036854775807
1
cpu_logical_cores 任意
integer 最小値: 1 最大値: 9223372036854775807
1
cpu_load 任意
number 最小値: 0 最大値: 100

定期確認では小数を含む有限の百分率を受け付けます。端末認証とオフライン申請では整数の百分率を使います。

0.0
memory_bytes 任意
integer 最小値: 1 最大値: 9223372036854775807
1
storage_bytes 任意
integer 最小値: 1 最大値: 9223372036854775807
1
manufacturer 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
model 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
chassis_type 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
locale 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
timezone 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
env_type 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
vm_detected 任意
boolean
true
vm_vendor 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
container_detected 任意
boolean
true
container_runtime 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
wsl_detected 任意
boolean
true
wsl_version 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
emulator_detected 任意
boolean
true
secure_boot_enabled 任意
boolean
true
tpm_present 任意
boolean
true
tpm_version 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
secure_enclave_present 任意
boolean
true
hardware_keystore_present 任意
boolean
true
root_detected 任意
boolean
true
jailbreak_detected 任意
boolean
true
debugger_detected 任意
boolean
true
clock_tamper_detected 任意
boolean
true
clock_rollback_detected 任意
boolean
true
capabilities 任意
array<MachineInfoInventoryField> 最大要素数: 64 重複不可: はい
[ "schema_version" ]
unavailable_fields 任意
array<MachineInfoInventoryField> 最大要素数: 64 重複不可: はい
[ "schema_version" ]
risk_signals 任意
array<object> 最大要素数: 16
[ { "kind": "clock_rollback", "confidence": 0, "source": "example.value" } ]
StableMachineInfo 47項目

署名で守る端末認証・オフライン申請用の端末情報です。共通の許可項目を使いますが、SDKの言語をまたいで正規化した署名付きJSONを同じにするため、cpu_load は整数にします。

Schema

MachineInfo + object

Example Value

{
  "os": "string",
  "arch": "string"
}
項目必須型・説明Example Value
cpu_load 任意
number 最小値: 0 最大値: 100

定期確認では小数を含む有限の百分率を受け付けます。端末認証とオフライン申請では整数の百分率を使います。

0.0
schema_version 任意
integer 最小値: 1 最大値: 255
1
collected_at 任意
integer 最小値: 0 最大値: 9223372036854775807

Unix時刻(秒)

0
platform 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
app 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
app_version 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
app_build 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
sdk 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
sdk_version 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
os 必須
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
os_version 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
os_build 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
os_edition 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
kernel_version 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
arch 必須
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
cpu_vendor 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
cpu_model 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
cpu_physical_cores 任意
integer 最小値: 1 最大値: 9223372036854775807
1
cpu_logical_cores 任意
integer 最小値: 1 最大値: 9223372036854775807
1
memory_bytes 任意
integer 最小値: 1 最大値: 9223372036854775807
1
storage_bytes 任意
integer 最小値: 1 最大値: 9223372036854775807
1
manufacturer 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
model 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
chassis_type 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
locale 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
timezone 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
env_type 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
vm_detected 任意
boolean
true
vm_vendor 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
container_detected 任意
boolean
true
container_runtime 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
wsl_detected 任意
boolean
true
wsl_version 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
emulator_detected 任意
boolean
true
secure_boot_enabled 任意
boolean
true
tpm_present 任意
boolean
true
tpm_version 任意
string 最小文字数: 1 最大文字数: 512 形式: ^[^\x00-\x1F\x7F]+$
"string"
secure_enclave_present 任意
boolean
true
hardware_keystore_present 任意
boolean
true
root_detected 任意
boolean
true
jailbreak_detected 任意
boolean
true
debugger_detected 任意
boolean
true
clock_tamper_detected 任意
boolean
true
clock_rollback_detected 任意
boolean
true
capabilities 任意
array<MachineInfoInventoryField> 最大要素数: 64 重複不可: はい
[ "schema_version" ]
unavailable_fields 任意
array<MachineInfoInventoryField> 最大要素数: 64 重複不可: はい
[ "schema_version" ]
risk_signals 任意
array<object> 最大要素数: 16
[ { "kind": "clock_rollback", "confidence": 0, "source": "example.value" } ]
ActivationRequest 13項目

Schema

object

Example Value

{
  "license_key": "string",
  "product_id": "prod_0123456789abcdef0123",
  "device_signing_public_key": "string",
  "device_kem_public_key": "string",
  "device_proof": "string",
  "machine_signals": {
    "property": "string"
  },
  "machine_info": {
    "os": "string",
    "arch": "string"
  },
  "app_version": "string",
  "sdk_version": "string",
  "request_id": "01K5QWERTY1234567890ABCDEFG",
  "client_time": 1,
  "named_user_token": "Example name",
  "nonce": "stringxxxxxxxxxxxxxxxx"
}
項目必須型・説明Example Value
license_key 必須
string 最大文字数: 512
"string"
product_id 必須 "prod_0123456789abcdef0123"
device_signing_public_key 必須
string 最大文字数: 2048
"string"
device_kem_public_key 必須
string 最大文字数: 1024
"string"
device_proof 必須
string 最大文字数: 1024
"string"
machine_signals 任意
object
{ "property": "string" }
machine_info 必須 { "os": "string", "arch": "string" }
app_version 任意
string 最大文字数: 255
"string"
sdk_version 任意
string 最大文字数: 255
"string"
request_id 任意
string 最大文字数: 255
"01K5QWERTY1234567890ABCDEFG"
client_time 任意
integer
1
named_user_token 任意
string 最大文字数: 4096

名前付きユーザーの利用ルールで必須です。トークンは、製品アプリのメールアドレスでのライセンス確認(POST /runtime/v1/email-verifications、個人プラン以上)か、顧客ポータル(チーム以上)で発行します。無いときは 401 NAMED_USER_TOKEN_REQUIREDで、details.available_methodsに使える方法(email / portal)を返します。

"Example name"
nonce 必須
string 最小文字数: 22 最大文字数: 255
"stringxxxxxxxxxxxxxxxx"
ActivationHeartbeatRequest 4項目

Schema

value

Example Value

{
  "machine_info": {
    "os": "string",
    "arch": "string"
  }
}
項目必須型・説明Example Value
app_version 任意
string 最大文字数: 255
"string"
sdk_version 任意
string 最大文字数: 255
"string"
machine_info 任意

自己申告の完全な端末情報です。初回・内容が変わったとき・少なくとも24時間に1回送ります。os と arch を含め、サーバーの許可項目・16 KiB・JSONの値512個・入れ子8段・文字列の値2 KiBまでに収めます

{ "schema_version": 1, "collected_at": 0, "platform": "string", "app": "string", "app_version": "string", "app_build": "string", "sdk": "string", "sdk_version": "string", "os": "string", "os_version": "string", "os_build": "string", "os_edition": "string", "kernel_version": "string", "arch": "string", "cpu_vendor": "string", "cpu_model": "string", "cpu_physical_cores": 1, "cpu_logical_cores": 1, "cpu_load": 0.0, "memory_bytes": 1, "storage_bytes": 1, "manufacturer": "string", "model": "string", "chassis_type": "string", "locale": "string", "timezone": "string", "env_type": "string", "vm_detected": true, "vm_vendor": "string", "container_detected": true, "container_runtime": "string", "wsl_detected": true, "wsl_version": "string", "emulator_detected": true, "secure_boot_enabled": true, "tpm_present": true, "tpm_version": "string", "secure_enclave_present": true, "hardware_keystore_present": true, "root_detected": true, "jailbreak_detected": true, "debugger_detected": true, "clock_tamper_detected": true, "clock_rollback_detected": true, "capabilities": [ "schema_version" ], "unavailable_fields": [ "schema_version" ], "risk_signals": [ { "kind": "clock_rollback", "confidence": 0, "source": "example.value" } ] }
machine_info_digest 任意
string 形式: ^[0-9a-f]{64}$

変化していない完全な machine_info のSHA-256ハッシュ値です。直前の24時間以内に、サーバーが完全な machine_info を受け取っているときだけ受け付けます

"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
ConsumptionSyncRequest 2項目

Schema

object

Example Value

{
  "consumptions": [
    {
      "consumption_id": "01K5QWERTY1234567890ABCDEFG",
      "counter": "string",
      "amount": 1,
      "consumed_at": 0
    }
  ],
  "sdk_version": "string"
}
項目必須型・説明Example Value
consumptions 必須
array<Consumption> 最小要素数: 1 最大要素数: 40
[ { "consumption_id": "01K5QWERTY1234567890ABCDEFG", "counter": "string", "amount": 1, "consumed_at": 0 } ]
sdk_version 任意
string 最大文字数: 255
"string"
Consumption 4項目

Schema

object

Example Value

{
  "consumption_id": "01K5QWERTY1234567890ABCDEFG",
  "counter": "string",
  "amount": 1,
  "consumed_at": 0
}
項目必須型・説明Example Value
consumption_id 必須
string 形式: ^[A-Za-z0-9][A-Za-z0-9._:-]{7,63}$

端末が付ける、ライセンスの中で一意なID。同じIDは1回だけ数えます

"01K5QWERTY1234567890ABCDEFG"
counter 必須
string 形式: ^[a-z][a-z0-9_]{0,23}$

ライセンスの利用ルールに定義したカウンター名

"string"
amount 必須
integer 最小値: 1 最大値: 1000000000
1
consumed_at 任意
integer 最小値: 0

端末が消費した時刻(Unix時刻)。参考の値で、期間は Usakey が受け取った時刻で決めます

0
SealedFileKeyRequest 2項目

Schema

object

Example Value

{
  "header": "example_value",
  "sdk_version": "string"
}
項目必須型・説明Example Value
header 必須
string 最小文字数: 3 最大文字数: 2731 形式: ^[A-Za-z0-9_-]+$

暗号化したファイル(第1版)のヘッダーのバイト列そのものを、パディングなしのbase64urlにしたもの(正規形のJSONで2048バイトまで)

"example_value"
sdk_version 任意
string 最大文字数: 255
"string"
LeaseAcquireRequest 3項目

Schema

object

Example Value

{
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "instance_id": "01K5QWERTY1234567890ABCDEFG",
  "handoff_from_lease_id": "handoff_from_lease_id_aaaaaaaaaaaaaaaaaaaa"
}
項目必須型・説明Example Value
activation_id 必須 "activation_id_aaaaaaaaaaaaaaaaaaaa"
instance_id 必須
string 最小文字数: 16 最大文字数: 255
"01K5QWERTY1234567890ABCDEFG"
handoff_from_lease_id 任意

枠を引き継ぐ元の、同じ端末認証の使用中の同時利用枠です(例えば、ローリング更新で置き換えるPodの枠)。利用ルールで引き継ぎの猶予を決めている場合に使えます。新しい枠は上限ちょうどでも取得でき、元の枠は猶予のあとで切れ、それより先には更新できません。同時に重なってよい引き継ぎ元の枠は、上限と同じ数までです。持ち出し中・超過・引き継ぎ済みの枠からは引き継げません(409 LEASE_HANDOFF_UNAVAILABLE)。

"handoff_from_lease_id_aaaaaaaaaaaaaaaaaaaa"
LeaseCheckoutRequest 2項目

Schema

object

Example Value

{
  "instance_id": "01K5QWERTY1234567890ABCDEFG",
  "days": 1
}
項目必須型・説明Example Value
instance_id 必須
string 最小文字数: 16 最大文字数: 255
"01K5QWERTY1234567890ABCDEFG"
days 必須
integer 最小値: 1 最大値: 30

持ち出す日数です。利用ルールの持ち出しの最長日数を超えると422 LEASE_CHECKOUT_NOT_ALLOWEDで断り、details.max_daysに最長日数を返します。

1
LeaseInstanceRequest 1項目

Schema

object

Example Value

{
  "instance_id": "01K5QWERTY1234567890ABCDEFG"
}
項目必須型・説明Example Value
instance_id 必須
string 最小文字数: 16 最大文字数: 255
"01K5QWERTY1234567890ABCDEFG"
OfflineRequest 16項目

端末が署名した usakey-offline-request-v1 形式のJSONです。エンコード後の要求全体は64 KiB・JSONの値1,024個・入れ子8段までです。

Schema

value

Example Value

{
  "format": "usakey-offline-request-v1",
  "product_id": "prod_0123456789abcdef0123",
  "device_signing_public_key": "string",
  "device_kem_public_key": "p256:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
  "device_proof": "string",
  "machine_info": {
    "os": "string",
    "arch": "string"
  },
  "nonce": "example_valuexxxxxxxxx",
  "generated_at": 1
}
項目必須型・説明Example Value
v 任意
integer
1
format 必須
string
"usakey-offline-request-v1"
product_id 必須 "prod_0123456789abcdef0123"
device_signing_public_key 必須
string 最小文字数: 1 最大文字数: 2048

Ed25519のSubjectPublicKeyInfo形式のPEM、または ed25519: で始まる生の公開鍵

"string"
device_kem_public_key 必須
string 最小文字数: 1 最大文字数: 1024 形式: ^p256:[A-Za-z0-9_-]+$

非圧縮の65バイトのP-256 SEC1点を、パディングなしのBase64URLにしたもの

"p256:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
device_proof 任意
string 最小文字数: 1 最大文字数: 1024
"string"
request_proof 任意
string 最小文字数: 1 最大文字数: 1024

device_proof の旧名です。証明の項目はどちらか1つだけ送ります。

"string"
machine_signals 任意
object
{ "property": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
machine_info 必須 { "os": "string", "arch": "string" }
sdk_version 任意
string 最大文字数: 255
"string"
app_version 任意
string 最大文字数: 255
"string"
request_id 任意
string 最大文字数: 255
"01K5QWERTY1234567890ABCDEFG"
nonce 必須
string 最小文字数: 22 最大文字数: 255 形式: ^[A-Za-z0-9_-]+$
"example_valuexxxxxxxxx"
generated_at 必須
integer

Unix時刻(秒)。7日より古いものと、5分より先の未来のものは受け付けません

1
display 任意
object
{ "product_name": "Example name", "device_code": "string" }
sealed_file_headers 任意
array<string> 最小要素数: 1 最大要素数: 16 重複不可: はい

利用ファイルに鍵を入れたい暗号化したファイルのヘッダー(任意)。それぞれヘッダーのバイト列そのものをパディングなしのbase64urlにしたものです。ほかの項目と同じく端末の署名の対象です。指定すると利用ファイルに sealed-file-keys.json が入ります。1件でも鍵を渡せないファイルがあれば、利用ファイルは発行しません。

[ "example_value" ]
OfflineRehostRequest 5項目

移送を断るときは 422 OFFLINE_REHOST_INVALID を返し、details.reason に invalid_format、target_mismatch、device_mismatch、invalid_signature、expired、package_mismatch、already_released、same_device、assignment_mismatch、request_already_used、limit_reached、not_allowed のいずれかを入れます(limit_reached と not_allowed は details.limit も返します)。新しい利用ファイルの発行の断りは offline-certificates と同じです。

Schema

object

Example Value

{
  "release": {
    "v": 1,
    "format": "usakey-offline-release-v1",
    "product_id": "prod_0123456789abcdef0123",
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "certificate_id": "certificate_id_aaaaaaaaaaaaaaaaaaaa",
    "package_id": "package_id_aaaaaaaaaaaaaaaaaaaa",
    "package_expires_at": 1,
    "device_signing_public_key": "string",
    "device_kem_public_key": "string",
    "nonce": "example_valuexxxxxxxxx",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "released_at": 1,
    "sdk_version": "string",
    "release_proof": "string"
  },
  "request": {
    "format": "usakey-offline-request-v1",
    "product_id": "prod_0123456789abcdef0123",
    "device_signing_public_key": "string",
    "device_kem_public_key": "p256:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
    "device_proof": "string",
    "machine_info": {
      "os": "string",
      "arch": "string"
    },
    "nonce": "example_valuexxxxxxxxx",
    "generated_at": 1
  },
  "expires_at": "2026-09-21T00:00:00Z",
  "license_assignment_id": "license_assignment_id_aaaaaaaaaaaaaaaaaaaa",
  "reason": "string"
}
項目必須型・説明Example Value
release 必須 { "v": 1, "format": "usakey-offline-release-v1", "product_id": "prod_0123456789abcdef0123", "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa", "certificate_id": "certificate_id_aaaaaaaaaaaaaaaaaaaa", "package_id": "package_id_aaaaaaaaaaaaaaaaaaaa", "package_expires_at": 1, "device_signing_public_key": "string", "device_kem_public_key": "string", "nonce": "example_valuexxxxxxxxx", "request_id": "01K5QWERTY1234567890ABCDEFG", "released_at": 1, "sdk_version": "string", "release_proof": "string" }
request 必須 { "format": "usakey-offline-request-v1", "product_id": "prod_0123456789abcdef0123", "device_signing_public_key": "string", "device_kem_public_key": "p256:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "device_proof": "string", "machine_info": { "os": "string", "arch": "string" }, "nonce": "example_valuexxxxxxxxx", "generated_at": 1 }
expires_at 任意
string date-time
"2026-09-21T00:00:00Z"
license_assignment_id 任意
PublicId

名前付きユーザーのライセンスでは任意です。移送は旧端末の割り当てのまま行い、別の割り当ては断ります。

"license_assignment_id_aaaaaaaaaaaaaaaaaaaa"
reason 任意
string 最大文字数: 500

監査ログに残す理由(自由記述)です。

"string"
OfflineReleaseProof 15項目

端末が署名した usakey-offline-release-v1 のJSON(.usakeyrel)で、16 KiB 以内です。release_proof は、登録された端末の鍵による Ed25519 署名で、"Usakey-Offline-Release-v1\n" に続けて、ほかの全項目の RFC 8785 正規化JSONを署名します。released_at から30日間受け付けます。

Schema

object

Example Value

{
  "v": 1,
  "format": "usakey-offline-release-v1",
  "product_id": "prod_0123456789abcdef0123",
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "certificate_id": "certificate_id_aaaaaaaaaaaaaaaaaaaa",
  "package_id": "package_id_aaaaaaaaaaaaaaaaaaaa",
  "package_expires_at": 1,
  "device_signing_public_key": "string",
  "device_kem_public_key": "string",
  "nonce": "example_valuexxxxxxxxx",
  "request_id": "01K5QWERTY1234567890ABCDEFG",
  "released_at": 1,
  "sdk_version": "string",
  "release_proof": "string"
}
項目必須型・説明Example Value
v 必須
integer
1
format 必須
string
"usakey-offline-release-v1"
product_id 必須 "prod_0123456789abcdef0123"
license_id 必須 "license_id_aaaaaaaaaaaaaaaaaaaa"
activation_id 必須 "activation_id_aaaaaaaaaaaaaaaaaaaa"
certificate_id 必須 "certificate_id_aaaaaaaaaaaaaaaaaaaa"
package_id 必須 "package_id_aaaaaaaaaaaaaaaaaaaa"
package_expires_at 必須
integer
1
device_signing_public_key 必須
string 最小文字数: 1 最大文字数: 2048

端末のオフライン申請と同じ文字列です。

"string"
device_kem_public_key 必須
string 最小文字数: 1 最大文字数: 1024
"string"
nonce 必須
string 最小文字数: 22 最大文字数: 255 形式: ^[A-Za-z0-9_-]+$
"example_valuexxxxxxxxx"
request_id 任意
string 最大文字数: 255
"01K5QWERTY1234567890ABCDEFG"
released_at 必須
integer

端末が解除の時刻として署名した Unix 時刻です。

1
sdk_version 任意
string 最大文字数: 255
"string"
release_proof 必須
string 最小文字数: 1 最大文字数: 1024
"string"
OfflineRehostSummaryResponse 1項目

Schema

object

Example Value

{
  "data": {
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "offline_rehosts_per_year": 0,
    "moves_in_last_year": 0,
    "remaining": 0,
    "moves": [
      {
        "id": "id_aaaaaaaaaaaaaaaaaaaa",
        "moved_at": "2026-09-21T00:00:00Z",
        "released_at": "2026-09-21T00:00:00Z",
        "released_activation_id": "released_activation_id_aaaaaaaaaaaaaaaaaaaa",
        "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
        "reason": "string"
      }
    ]
  }
}
項目必須型・説明Example Value
data 必須 { "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "offline_rehosts_per_year": 0, "moves_in_last_year": 0, "remaining": 0, "moves": [ { "id": "id_aaaaaaaaaaaaaaaaaaaa", "moved_at": "2026-09-21T00:00:00Z", "released_at": "2026-09-21T00:00:00Z", "released_activation_id": "released_activation_id_aaaaaaaaaaaaaaaaaaaa", "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa", "reason": "string" } ] }
OfflineRehostSummary 6項目

Schema

object

Example Value

{
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "offline_rehosts_per_year": 0,
  "moves_in_last_year": 0,
  "remaining": 0,
  "moves": [
    {
      "id": "id_aaaaaaaaaaaaaaaaaaaa",
      "moved_at": "2026-09-21T00:00:00Z",
      "released_at": "2026-09-21T00:00:00Z",
      "released_activation_id": "released_activation_id_aaaaaaaaaaaaaaaaaaaa",
      "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
      "reason": "string"
    }
  ]
}
項目必須型・説明Example Value
license_id 必須 "license_id_aaaaaaaaaaaaaaaaaaaa"
policy_id 必須 "policy_id_aaaaaaaaaaaaaaaaaaaa"
offline_rehosts_per_year 必須
integer 最小値: 0 最大値: 100

ライセンスの利用ルールが、ライセンスごとに365日あたりで認める移送の回数です。0なら移せません。

0
moves_in_last_year 必須
integer 最小値: 0
0
remaining 必須
integer 最小値: 0

直近365日の残りの回数です。0のときは、古い端末の認証を解除してから、新しい端末へ利用ファイルを発行してください。

0
moves 必須
array<OfflineRehostMove> 最大要素数: 100
[ { "id": "id_aaaaaaaaaaaaaaaaaaaa", "moved_at": "2026-09-21T00:00:00Z", "released_at": "2026-09-21T00:00:00Z", "released_activation_id": "released_activation_id_aaaaaaaaaaaaaaaaaaaa", "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa", "reason": "string" } ]
OfflineRehostMove 6項目

Schema

object

Example Value

{
  "id": "id_aaaaaaaaaaaaaaaaaaaa",
  "moved_at": "2026-09-21T00:00:00Z",
  "released_at": "2026-09-21T00:00:00Z",
  "released_activation_id": "released_activation_id_aaaaaaaaaaaaaaaaaaaa",
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "reason": "string"
}
項目必須型・説明Example Value
id 必須 "id_aaaaaaaaaaaaaaaaaaaa"
moved_at 必須
string date-time
"2026-09-21T00:00:00Z"
released_at 必須
string date-time

古い端末が解除の証跡に署名した、解除の時刻です。

"2026-09-21T00:00:00Z"
released_activation_id 必須 "released_activation_id_aaaaaaaaaaaaaaaaaaaa"
activation_id 必須
PublicId

新しい端末の端末認証です。

"activation_id_aaaaaaaaaaaaaaaaaaaa"
reason 任意
string | null 最大文字数: 500
"string"
OfflineCertificateIssueRequest 3項目

Schema

object

Example Value

{
  "request": {
    "format": "usakey-offline-request-v1",
    "product_id": "prod_0123456789abcdef0123",
    "device_signing_public_key": "string",
    "device_kem_public_key": "p256:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
    "device_proof": "string",
    "machine_info": {
      "os": "string",
      "arch": "string"
    },
    "nonce": "example_valuexxxxxxxxx",
    "generated_at": 1
  },
  "expires_at": "2026-09-21T00:00:00Z",
  "license_assignment_id": "license_assignment_id_aaaaaaaaaaaaaaaaaaaa"
}
項目必須型・説明Example Value
request 必須 { "format": "usakey-offline-request-v1", "product_id": "prod_0123456789abcdef0123", "device_signing_public_key": "string", "device_kem_public_key": "p256:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "device_proof": "string", "machine_info": { "os": "string", "arch": "string" }, "nonce": "example_valuexxxxxxxxx", "generated_at": 1 }
expires_at 任意
string date-time
"2026-09-21T00:00:00Z"
license_assignment_id 任意
PublicId

チーム以上のプランの名前付きユーザー向けオフライン利用ルールで必須です。署名済みパッケージは7日以内に失効し、期限後は利用できなくなります。

"license_assignment_id_aaaaaaaaaaaaaaaaaaaa"
LicenseIssueRequest 12項目

Schema

object

Example Value

{
  "product_id": "prod_0123456789abcdef0123",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
  "license_type": "perpetual",
  "expires_at": "2026-09-21T00:00:00Z",
  "expiry": "2026-09-21T00:00:00Z",
  "renewal_authority": "external_billing",
  "max_machines": 0,
  "max_concurrent": 0,
  "entitlements": {},
  "metadata": {},
  "license_unit_limit_override": 1
}
項目必須型・説明Example Value
product_id 必須 "prod_0123456789abcdef0123"
policy_id 必須 "policy_id_aaaaaaaaaaaaaaaaaaaa"
customer_id 任意 "customer_id_aaaaaaaaaaaaaaaaaaaa"
license_type 任意
value

許容値: perpetual, subscription, trial

"perpetual"
expires_at 任意
string date-time

契約期限。買い切り(perpetual)では指定しません。検証プランでは発行時刻から1時間以内である必要があります。

"2026-09-21T00:00:00Z"
expiry 任意
string date-time

expires_atの旧名です。expires_atを使ってください。両方を指定した場合はexpires_atを採用します。

"2026-09-21T00:00:00Z"
renewal_authority 任意
value

許容値: external_billing, calendar, manual

"external_billing"
max_machines 任意
integer 最小値: 0
0
max_concurrent 任意
integer 最小値: 0
0
entitlements 任意
object
{}
metadata 任意
object
{}
license_unit_limit_override 任意
integer | null
1
SignedEnvelope 4項目

Schema

object

Example Value

{
  "data": "string",
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
項目必須型・説明Example Value
data 必須
value
"string"
response_assertion 必須
object
{ "v": 1, "product_id": "prod_0123456789abcdef0123", "key_id": "01K5QWERTY1234567890ABCDEFG", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "request_id": "01K5QWERTY1234567890ABCDEFG", "nonce": "string", "server_time": 1, "status": 1, "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
response_signature 必須
string
"example-token"
signing_delegation 必須
object
{ "delegation": { "v": 1, "purpose": "runtime-response", "product_id": "prod_0123456789abcdef0123", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "online_key_id": "01K5QWERTY1234567890ABCDEFG", "public_key": "string", "issued_at": 1, "expires_at": 1 }, "signature": "example-token" }
ActivationData 3項目

Schema

object

Example Value

{
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "certificate": "string",
  "machine_info_digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
項目必須型・説明Example Value
activation_id 必須 "activation_id_aaaaaaaaaaaaaaaaaaaa"
certificate 必須
string

PASETO v4.public形式のライセンス証明書

"string"
machine_info_digest 必須
string 形式: ^[0-9a-f]{64}$

この端末認証に保存した完全な machine_info のSHA-256ハッシュ値

"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
ActivationHeartbeatData 5項目

Schema

object

Example Value

{
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "license_status": "active",
  "certificate": "string",
  "next_heartbeat_in": 10,
  "machine_info_digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
項目必須型・説明Example Value
activation_id 必須 "activation_id_aaaaaaaaaaaaaaaaaaaa"
license_status 必須
value

許容値: active, suspended, revoked, expired

"active"
certificate 必須
string

PASETO v4.public形式のライセンス証明書

"string"
next_heartbeat_in 必須
integer 最小値: 10
10
machine_info_digest 必須
string 形式: ^[0-9a-f]{64}$

この端末認証に保存した完全な machine_info のSHA-256ハッシュ値

"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
ConsumptionSyncData 3項目

Schema

object

Example Value

{
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "consumptions": [
    {
      "consumption_id": "01K5QWERTY1234567890ABCDEFG",
      "status": "active",
      "reason": "string",
      "revision": 1
    }
  ],
  "counters": {
    "property": {
      "limit": 0,
      "remaining": 0,
      "resets_at": 1,
      "revision": 0
    }
  }
}
項目必須型・説明Example Value
activation_id 必須 "activation_id_aaaaaaaaaaaaaaaaaaaa"
consumptions 必須
array<ConsumptionResult>
[ { "consumption_id": "01K5QWERTY1234567890ABCDEFG", "status": "active", "reason": "string", "revision": 1 } ]
counters 必須
object

ライセンスの今のカウンター。カウンター名ごとに、ライセンス証明書の counters と同じ形で返します

{ "property": { "limit": 0, "remaining": 0, "resets_at": 1, "revision": 0 } }
ConsumptionResult 4項目

Schema

object

Example Value

{
  "consumption_id": "01K5QWERTY1234567890ABCDEFG",
  "status": "active",
  "reason": "string",
  "revision": 1
}
項目必須型・説明Example Value
consumption_id 必須
string
"01K5QWERTY1234567890ABCDEFG"
status 必須
string

recorded(今回数えた)、duplicate(前に数え済み)、rejected(数えなかった。理由は reason)のどれかです。知らない値は、まだ数えていないものとして扱い、あとで送り直してください。

"active"
reason 任意
string

数えなかった理由(例: unknown_counter、conflict)

"string"
revision 任意
integer 最小値: 1

消費を数えたときの変更の番号(recorded と duplicate)

1
CounterClaim 4項目

Schema

object

Example Value

{
  "limit": 0,
  "remaining": 0,
  "resets_at": 1,
  "revision": 0
}
項目必須型・説明Example Value
limit 必須
integer 最小値: 0

今の期間の上限(このライセンスだけの上限を含む)

0
remaining 必須
integer 最小値: 0

Usakey 側の今の期間の残量(0未満にはなりません)

0
resets_at 任意
integer

カウンターがリセットされる時刻(Unix時刻)。リセットしないカウンターには入りません

1
revision 必須
integer 最小値: 0

この値に反映した変化の番号。期間をまたいでも増えるだけです

0
SealedFileKeyData 5項目

Schema

object

Example Value

{
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "file_id": "esNxn3TKNIsd_Dyi2XYojA",
  "header_sha256": "f7511808a1669a5481adebe399a96ad043d29ebb887207743368c3fb812717e5",
  "enc": "BC1G-oCCtQBTqm4VEolqWH6MHHbpugqlixdHLXLURww-71zLlbPAaperQqYpqsHIyF9bJ66JOqwcEaZ1yHqSNPI",
  "wrapped_key": "j4LNTalkfJFXswg_u9NXmazh7FZQHrAs4iqPQNp0hHCsdQIZWcS3AOpEkYp2mape"
}
項目必須型・説明Example Value
activation_id 必須 "activation_id_aaaaaaaaaaaaaaaaaaaa"
file_id 必須
string 形式: ^[A-Za-z0-9_-]{22}$

ヘッダーにある、ファイルごとのランダムな識別子

"esNxn3TKNIsd_Dyi2XYojA"
header_sha256 必須
string 形式: ^[0-9a-f]{64}$

ヘッダーのバイト列のSHA-256。端末はこの値で鍵を探します

"f7511808a1669a5481adebe399a96ad043d29ebb887207743368c3fb812717e5"
enc 必須
string 形式: ^[A-Za-z0-9_-]{87}$

HPKEのカプセル化鍵(65バイトの非圧縮P-256点、base64url)

"BC1G-oCCtQBTqm4VEolqWH6MHHbpugqlixdHLXLURww-71zLlbPAaperQqYpqsHIyF9bJ66JOqwcEaZ1yHqSNPI"
wrapped_key 必須
string 形式: ^[A-Za-z0-9_-]{64}$

端末認証のKEM公開鍵あてにHPKEで包んだ32バイトのデータ鍵(タグ込みで48バイト、base64url)。関連データで端末認証・端末のKEM鍵の拇印・製品・ヘッダーのdigestに結び付けています。

"j4LNTalkfJFXswg_u9NXmazh7FZQHrAs4iqPQNp0hHCsdQIZWcS3AOpEkYp2mape"
LeaseData 4項目

Schema

object

Example Value

{
  "lease_id": "lease_id_aaaaaaaaaaaaaaaaaaaa",
  "instance_id": "01K5QWERTY1234567890ABCDEFG",
  "expires_at": 1,
  "heartbeat_in": 10
}
項目必須型・説明Example Value
lease_id 必須 "lease_id_aaaaaaaaaaaaaaaaaaaa"
instance_id 必須
string 最小文字数: 16 最大文字数: 255
"01K5QWERTY1234567890ABCDEFG"
expires_at 必須
integer

Unix時刻(秒)

1
heartbeat_in 必須
integer 最小値: 10
10
LeaseCheckoutData 6項目

持ち出した同時利用枠のデータです。持ち出し中の枠の更新(POST /runtime/v1/leases/{lease_id}/heartbeat)と、持ち出し中の枠を返す取得の応答にもcheckout_expires_atが入り、expires_atは同じ値になります(LeaseDataは追加の項目を受け入れます。取り消した持ち出しは返しません)。持ち出し中にもう一度持ち出すと今から数え直しますが、今のcheckout_expires_atより前には終わりません。超過の枠と、別の起動へ引き継いだ枠には短いheartbeat_inを返し、枠が切れる前に更新が届くようにします。

Schema

object

Example Value

{
  "lease_id": "lease_id_aaaaaaaaaaaaaaaaaaaa",
  "instance_id": "01K5QWERTY1234567890ABCDEFG",
  "expires_at": 1,
  "heartbeat_in": 10,
  "checkout_expires_at": 1,
  "checkout": "string"
}
項目必須型・説明Example Value
lease_id 必須 "lease_id_aaaaaaaaaaaaaaaaaaaa"
instance_id 必須
string 最小文字数: 16 最大文字数: 255
"01K5QWERTY1234567890ABCDEFG"
expires_at 必須
integer

Unix時刻。checkout_expires_atと同じ値です。

1
heartbeat_in 必須
integer 最小値: 10
10
checkout_expires_at 必須
integer

Unix時刻。この時刻まで枠は使用中のままで、SDKは通信できなくても同時利用を許します。

1
checkout 必須
string

製品の署名鍵で署名したPASETO v4.publicの持ち出しの証明です(footerのpurposeはlease-checkout、implicit assertionはusakey:{product_id}:lease-checkout:v1)。payloadには、v、checkout_id、issued_at、expires_at、tenant_id、key_id、product_id、license_id、activation_id、lease_id、device_signing_key_thumbprintが入ります。

"string"
LeaseReleaseData 2項目

Schema

object

Example Value

{
  "lease_id": "lease_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "released"
}
項目必須型・説明Example Value
lease_id 必須 "lease_id_aaaaaaaaaaaaaaaaaaaa"
status 必須
value
"released"
SignedActivationResponse 4項目

Schema

SignedEnvelope + object

Example Value

{
  "data": {
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "certificate": "string",
    "machine_info_digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
項目必須型・説明Example Value
data 必須
value
"string"
response_assertion 必須
object
{ "v": 1, "product_id": "prod_0123456789abcdef0123", "key_id": "01K5QWERTY1234567890ABCDEFG", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "request_id": "01K5QWERTY1234567890ABCDEFG", "nonce": "string", "server_time": 1, "status": 1, "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
response_signature 必須
string
"example-token"
signing_delegation 必須
object
{ "delegation": { "v": 1, "purpose": "runtime-response", "product_id": "prod_0123456789abcdef0123", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "online_key_id": "01K5QWERTY1234567890ABCDEFG", "public_key": "string", "issued_at": 1, "expires_at": 1 }, "signature": "example-token" }
SignedActivationHeartbeatResponse 4項目

Schema

SignedEnvelope + object

Example Value

{
  "data": {
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "license_status": "active",
    "certificate": "string",
    "next_heartbeat_in": 10,
    "machine_info_digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
項目必須型・説明Example Value
data 必須
value
"string"
response_assertion 必須
object
{ "v": 1, "product_id": "prod_0123456789abcdef0123", "key_id": "01K5QWERTY1234567890ABCDEFG", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "request_id": "01K5QWERTY1234567890ABCDEFG", "nonce": "string", "server_time": 1, "status": 1, "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
response_signature 必須
string
"example-token"
signing_delegation 必須
object
{ "delegation": { "v": 1, "purpose": "runtime-response", "product_id": "prod_0123456789abcdef0123", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "online_key_id": "01K5QWERTY1234567890ABCDEFG", "public_key": "string", "issued_at": 1, "expires_at": 1 }, "signature": "example-token" }
SignedConsumptionSyncResponse 4項目

Schema

SignedEnvelope + object

Example Value

{
  "data": {
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "consumptions": [
      {
        "consumption_id": "01K5QWERTY1234567890ABCDEFG",
        "status": "active"
      }
    ],
    "counters": {
      "property": {
        "limit": 0,
        "remaining": 0,
        "revision": 0
      }
    }
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
項目必須型・説明Example Value
data 必須
value
"string"
response_assertion 必須
object
{ "v": 1, "product_id": "prod_0123456789abcdef0123", "key_id": "01K5QWERTY1234567890ABCDEFG", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "request_id": "01K5QWERTY1234567890ABCDEFG", "nonce": "string", "server_time": 1, "status": 1, "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
response_signature 必須
string
"example-token"
signing_delegation 必須
object
{ "delegation": { "v": 1, "purpose": "runtime-response", "product_id": "prod_0123456789abcdef0123", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "online_key_id": "01K5QWERTY1234567890ABCDEFG", "public_key": "string", "issued_at": 1, "expires_at": 1 }, "signature": "example-token" }
SignedSealedFileKeyResponse 4項目

Schema

SignedEnvelope + object

Example Value

{
  "data": {
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "file_id": "esNxn3TKNIsd_Dyi2XYojA",
    "header_sha256": "f7511808a1669a5481adebe399a96ad043d29ebb887207743368c3fb812717e5",
    "enc": "BC1G-oCCtQBTqm4VEolqWH6MHHbpugqlixdHLXLURww-71zLlbPAaperQqYpqsHIyF9bJ66JOqwcEaZ1yHqSNPI",
    "wrapped_key": "j4LNTalkfJFXswg_u9NXmazh7FZQHrAs4iqPQNp0hHCsdQIZWcS3AOpEkYp2mape"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
項目必須型・説明Example Value
data 必須
value
"string"
response_assertion 必須
object
{ "v": 1, "product_id": "prod_0123456789abcdef0123", "key_id": "01K5QWERTY1234567890ABCDEFG", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "request_id": "01K5QWERTY1234567890ABCDEFG", "nonce": "string", "server_time": 1, "status": 1, "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
response_signature 必須
string
"example-token"
signing_delegation 必須
object
{ "delegation": { "v": 1, "purpose": "runtime-response", "product_id": "prod_0123456789abcdef0123", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "online_key_id": "01K5QWERTY1234567890ABCDEFG", "public_key": "string", "issued_at": 1, "expires_at": 1 }, "signature": "example-token" }
SignedLeaseResponse 4項目

Schema

SignedEnvelope + object

Example Value

{
  "data": {
    "lease_id": "lease_id_aaaaaaaaaaaaaaaaaaaa",
    "instance_id": "01K5QWERTY1234567890ABCDEFG",
    "expires_at": 1,
    "heartbeat_in": 10
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
項目必須型・説明Example Value
data 必須
value
"string"
response_assertion 必須
object
{ "v": 1, "product_id": "prod_0123456789abcdef0123", "key_id": "01K5QWERTY1234567890ABCDEFG", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "request_id": "01K5QWERTY1234567890ABCDEFG", "nonce": "string", "server_time": 1, "status": 1, "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
response_signature 必須
string
"example-token"
signing_delegation 必須
object
{ "delegation": { "v": 1, "purpose": "runtime-response", "product_id": "prod_0123456789abcdef0123", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "online_key_id": "01K5QWERTY1234567890ABCDEFG", "public_key": "string", "issued_at": 1, "expires_at": 1 }, "signature": "example-token" }
SignedLeaseReleaseResponse 4項目

Schema

SignedEnvelope + object

Example Value

{
  "data": {
    "lease_id": "lease_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "released"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
項目必須型・説明Example Value
data 必須
value
"string"
response_assertion 必須
object
{ "v": 1, "product_id": "prod_0123456789abcdef0123", "key_id": "01K5QWERTY1234567890ABCDEFG", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "request_id": "01K5QWERTY1234567890ABCDEFG", "nonce": "string", "server_time": 1, "status": 1, "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
response_signature 必須
string
"example-token"
signing_delegation 必須
object
{ "delegation": { "v": 1, "purpose": "runtime-response", "product_id": "prod_0123456789abcdef0123", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "online_key_id": "01K5QWERTY1234567890ABCDEFG", "public_key": "string", "issued_at": 1, "expires_at": 1 }, "signature": "example-token" }
SignedLeaseCheckoutResponse 4項目

Schema

SignedEnvelope + object

Example Value

{
  "data": {
    "lease_id": "lease_id_aaaaaaaaaaaaaaaaaaaa",
    "instance_id": "01K5QWERTY1234567890ABCDEFG",
    "expires_at": 1,
    "heartbeat_in": 10,
    "checkout_expires_at": 1,
    "checkout": "string"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
項目必須型・説明Example Value
data 必須
value
"string"
response_assertion 必須
object
{ "v": 1, "product_id": "prod_0123456789abcdef0123", "key_id": "01K5QWERTY1234567890ABCDEFG", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "request_id": "01K5QWERTY1234567890ABCDEFG", "nonce": "string", "server_time": 1, "status": 1, "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
response_signature 必須
string
"example-token"
signing_delegation 必須
object
{ "delegation": { "v": 1, "purpose": "runtime-response", "product_id": "prod_0123456789abcdef0123", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "online_key_id": "01K5QWERTY1234567890ABCDEFG", "public_key": "string", "issued_at": 1, "expires_at": 1 }, "signature": "example-token" }
EmailVerificationStartRequest 7項目

Schema

object

Example Value

{
  "product_id": "prod_0123456789abcdef0123",
  "license_key": "string",
  "email": "developer@example.com",
  "device_signing_public_key": "string",
  "nonce": "stringxxxxxxxxxxxxxxxx",
  "locale": "ja",
  "sdk_version": "string"
}
項目必須型・説明Example Value
product_id 必須 "prod_0123456789abcdef0123"
license_key 必須
string 最小文字数: 1 最大文字数: 512
"string"
email 必須
string email 最小文字数: 3 最大文字数: 254

ライセンスユーザーが製品アプリに入力したメールアドレスです。前後の空白を除き、小文字にしてから照合します

"developer@example.com"
device_signing_public_key 必須
string 最小文字数: 1 最大文字数: 2048

このあと端末認証する端末のEd25519公開鍵(PEM か ed25519:base64url)です。確認でも同じ鍵を送る必要があります

"string"
nonce 必須
string 最小文字数: 22 最大文字数: 255
"stringxxxxxxxxxxxxxxxx"
locale 任意
string 最小文字数: 2 最大文字数: 35

メールの言語(ja か en)です。無いときは Accept-Language、それも無ければ日本語です

"ja"
sdk_version 任意
string 最大文字数: 255
"string"
EmailVerificationStartData 4項目

Schema

object

Example Value

{
  "verification_id": "verification_id_aaaaaaaaaaaaaaaaaaaa",
  "expires_at": "2026-09-21T00:00:00Z",
  "resend_after_sec": 1,
  "code_length": 1
}
項目必須型・説明Example Value
verification_id 必須 "verification_id_aaaaaaaaaaaaaaaaaaaa"
expires_at 必須
string date-time

確認コードが使えなくなる日時

"2026-09-21T00:00:00Z"
resend_after_sec 必須
integer 最小値: 1

同じアドレスで開始し直すまでに待つ秒数

1
code_length 必須
integer 最小値: 1

メールで届く確認コードの桁数

1
SignedEmailVerificationStartResponse 4項目

Schema

SignedEnvelope + object

Example Value

{
  "data": {
    "verification_id": "verification_id_aaaaaaaaaaaaaaaaaaaa",
    "expires_at": "2026-09-21T00:00:00Z",
    "resend_after_sec": 1,
    "code_length": 1
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
項目必須型・説明Example Value
data 必須
value
"string"
response_assertion 必須
object
{ "v": 1, "product_id": "prod_0123456789abcdef0123", "key_id": "01K5QWERTY1234567890ABCDEFG", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "request_id": "01K5QWERTY1234567890ABCDEFG", "nonce": "string", "server_time": 1, "status": 1, "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
response_signature 必須
string
"example-token"
signing_delegation 必須
object
{ "delegation": { "v": 1, "purpose": "runtime-response", "product_id": "prod_0123456789abcdef0123", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "online_key_id": "01K5QWERTY1234567890ABCDEFG", "public_key": "string", "issued_at": 1, "expires_at": 1 }, "signature": "example-token" }
EmailVerificationConfirmRequest 5項目

Schema

object

Example Value

{
  "code": "123456",
  "second_factor_code": "string",
  "device_signing_public_key": "string",
  "nonce": "stringxxxxxxxxxxxxxxxx",
  "sdk_version": "string"
}
項目必須型・説明Example Value
code 必須
string 最小文字数: 1 最大文字数: 32

メールで届いた6桁の確認コードです。空白とハイフンは無視します

"123456"
second_factor_code 任意
string 最小文字数: 1 最大文字数: 64

認証アプリのコード、リカバリーコード、または確認メールのリンクを開いてパスキーで承認したときの承認コードです。2段階認証を使うライセンスユーザーのときだけ必要です。承認コードはこの確認だけに使え、有効期間は最長10分、使用は1回限りです

"string"
device_signing_public_key 必須
string 最小文字数: 1 最大文字数: 2048

確認の開始で送ったものと同じEd25519公開鍵

"string"
nonce 必須
string 最小文字数: 22 最大文字数: 255
"stringxxxxxxxxxxxxxxxx"
sdk_version 任意
string 最大文字数: 255
"string"
EmailVerificationConfirmData 2項目

Schema

object

Example Value

{
  "named_user_token": "Example name",
  "expires_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
named_user_token 必須
string 最大文字数: 4096

POST /runtime/v1/activations の named_user_token に渡します

"Example name"
expires_at 必須
string date-time
"2026-09-21T00:00:00Z"
SignedEmailVerificationConfirmResponse 4項目

Schema

SignedEnvelope + object

Example Value

{
  "data": {
    "named_user_token": "Example name",
    "expires_at": "2026-09-21T00:00:00Z"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
項目必須型・説明Example Value
data 必須
value
"string"
response_assertion 必須
object
{ "v": 1, "product_id": "prod_0123456789abcdef0123", "key_id": "01K5QWERTY1234567890ABCDEFG", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "request_id": "01K5QWERTY1234567890ABCDEFG", "nonce": "string", "server_time": 1, "status": 1, "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
response_signature 必須
string
"example-token"
signing_delegation 必須
object
{ "delegation": { "v": 1, "purpose": "runtime-response", "product_id": "prod_0123456789abcdef0123", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "online_key_id": "01K5QWERTY1234567890ABCDEFG", "public_key": "string", "issued_at": 1, "expires_at": 1 }, "signature": "example-token" }
EmailVerificationError 1項目

Schema

Error + object

Example Value

{
  "error": {
    "code": "EMAIL_VERIFICATION_CODE_INVALID",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "details": {
      "remaining_attempts": 0
    }
  }
}
項目必須型・説明Example Value
error 必須
object
{ "code": "string", "message": "string", "request_id": "01K5QWERTY1234567890ABCDEFG", "retryable": true, "doc_url": "https://example.com/resource", "details": {} }
ReleasableDevice 8項目

Schema

object

Example Value

{
  "handle": "string",
  "os": "string",
  "arch": "string",
  "model": "string",
  "activated_at": "2026-09-21T00:00:00Z",
  "last_check_at": "2026-09-21T00:00:00Z",
  "this_device": true,
  "releasable": true
}
項目必須型・説明Example Value
handle 必須
string 最大文字数: 64

この端末を解除するときに device_handle として送ります。この確認でだけ使えます

"string"
os 必須
string | null 最大文字数: 120

端末が申告したOSの名前と版(表示用)

"string"
arch 必須
string | null 最大文字数: 120

端末が申告したCPUの種類(x64、ARM64 など。表示用)

"string"
model 必須
string | null 最大文字数: 120

端末が申告したメーカーと機種(表示用)

"string"
activated_at 必須
string date-time
"2026-09-21T00:00:00Z"
last_check_at 必須
string | null date-time

端末の最後の定期確認

"2026-09-21T00:00:00Z"
this_device 必須
boolean

端末の解除を始めた端末なら true

true
releasable 必須
boolean

要求した端末自身と、利用ファイルがまだ有効な端末は false

true
DeviceReleaseConfirmData 5項目

Schema

object

Example Value

{
  "release_token": "example-token",
  "expires_at": "2026-09-21T00:00:00Z",
  "machine_limit": 0,
  "active_device_count": 0,
  "devices": [
    {
      "handle": "string",
      "os": "string",
      "arch": "string",
      "model": "string",
      "activated_at": "2026-09-21T00:00:00Z",
      "last_check_at": "2026-09-21T00:00:00Z",
      "this_device": true,
      "releasable": true
    }
  ]
}
項目必須型・説明Example Value
release_token 必須
string 最大文字数: 128

POST /runtime/v1/device-releases/{verification_id}/release に送ります。10分間・1回の解除に使えます。ログに残したり保存したりしないでください

"example-token"
expires_at 必須
string date-time

解除用のトークンが使えなくなる日時

"2026-09-21T00:00:00Z"
machine_limit 必須
integer | null 最小値: 0

同時に認証できる端末の数。null は上限なし

0
active_device_count 必須
integer 最小値: 0

範囲の使用中の端末の数(一覧の台数より多いことがあります)

0
devices 必須
array<ReleasableDevice> 最大要素数: 32
[ { "handle": "string", "os": "string", "arch": "string", "model": "string", "activated_at": "2026-09-21T00:00:00Z", "last_check_at": "2026-09-21T00:00:00Z", "this_device": true, "releasable": true } ]
SignedDeviceReleaseConfirmResponse 4項目

Schema

SignedEnvelope + object

Example Value

{
  "data": {
    "release_token": "example-token",
    "expires_at": "2026-09-21T00:00:00Z",
    "machine_limit": 0,
    "active_device_count": 0,
    "devices": [
      {
        "handle": "string",
        "os": "string",
        "arch": "string",
        "model": "string",
        "activated_at": "2026-09-21T00:00:00Z",
        "last_check_at": "2026-09-21T00:00:00Z",
        "this_device": true,
        "releasable": true
      }
    ]
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
項目必須型・説明Example Value
data 必須
value
"string"
response_assertion 必須
object
{ "v": 1, "product_id": "prod_0123456789abcdef0123", "key_id": "01K5QWERTY1234567890ABCDEFG", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "request_id": "01K5QWERTY1234567890ABCDEFG", "nonce": "string", "server_time": 1, "status": 1, "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
response_signature 必須
string
"example-token"
signing_delegation 必須
object
{ "delegation": { "v": 1, "purpose": "runtime-response", "product_id": "prod_0123456789abcdef0123", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "online_key_id": "01K5QWERTY1234567890ABCDEFG", "public_key": "string", "issued_at": 1, "expires_at": 1 }, "signature": "example-token" }
DeviceReleaseRequest 7項目

Schema

object

Example Value

{
  "release_token": "example-token",
  "device_handle": "string",
  "device_signing_public_key": "string",
  "device_proof": "string",
  "nonce": "stringxxxxxxxxxxxxxxxx",
  "locale": "string",
  "sdk_version": "string"
}
項目必須型・説明Example Value
release_token 必須
string 最小文字数: 1 最大文字数: 128
"example-token"
device_handle 必須
string 最小文字数: 1 最大文字数: 64
"string"
device_signing_public_key 必須
string 最小文字数: 1 最大文字数: 2048

端末の解除を始めたときと同じ Ed25519 公開鍵

"string"
device_proof 必須
string 最小文字数: 1 最大文字数: 1024

端末の署名鍵で、前置き Usakey-Device-Release-Proof-v1 と改行に続けて、device_proof を除いたこの本文の正規化JSONに署名したもの

"string"
nonce 必須
string 最小文字数: 22 最大文字数: 255
"stringxxxxxxxxxxxxxxxx"
locale 任意
string 最小文字数: 2 最大文字数: 35

解除のお知らせメールの言語(ja か en)。無ければ Accept-Language、それも無ければ日本語

"string"
sdk_version 任意
string 最大文字数: 255
"string"
DeviceReleaseData 3項目

Schema

object

Example Value

{
  "device": {
    "handle": "string",
    "os": "string",
    "arch": "string",
    "model": "string",
    "activated_at": "2026-09-21T00:00:00Z",
    "last_check_at": "2026-09-21T00:00:00Z",
    "this_device": true,
    "releasable": true
  },
  "named_user_token": "Example name",
  "named_user_token_expires_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
device 必須 { "handle": "string", "os": "string", "arch": "string", "model": "string", "activated_at": "2026-09-21T00:00:00Z", "last_check_at": "2026-09-21T00:00:00Z", "this_device": true, "releasable": true }
named_user_token 任意
string 最大文字数: 4096

ユーザー単位の利用ルールだけ。新しい端末の POST /runtime/v1/activations に named_user_token として送ります

"Example name"
named_user_token_expires_at 任意
string date-time
"2026-09-21T00:00:00Z"
SignedDeviceReleaseResponse 4項目

Schema

SignedEnvelope + object

Example Value

{
  "data": {
    "device": {
      "handle": "string",
      "os": "string",
      "arch": "string",
      "model": "string",
      "activated_at": "2026-09-21T00:00:00Z",
      "last_check_at": "2026-09-21T00:00:00Z",
      "this_device": true,
      "releasable": true
    }
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
項目必須型・説明Example Value
data 必須
value
"string"
response_assertion 必須
object
{ "v": 1, "product_id": "prod_0123456789abcdef0123", "key_id": "01K5QWERTY1234567890ABCDEFG", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "request_id": "01K5QWERTY1234567890ABCDEFG", "nonce": "string", "server_time": 1, "status": 1, "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
response_signature 必須
string
"example-token"
signing_delegation 必須
object
{ "delegation": { "v": 1, "purpose": "runtime-response", "product_id": "prod_0123456789abcdef0123", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "online_key_id": "01K5QWERTY1234567890ABCDEFG", "public_key": "string", "issued_at": 1, "expires_at": 1 }, "signature": "example-token" }
TrialVerificationStartRequest 6項目

Schema

object

Example Value

{
  "product_id": "prod_0123456789abcdef0123",
  "email": "developer@example.com",
  "device_signing_public_key": "string",
  "nonce": "stringxxxxxxxxxxxxxxxx",
  "locale": "ja",
  "sdk_version": "string"
}
項目必須型・説明Example Value
product_id 必須 "prod_0123456789abcdef0123"
email 必須
string email 最小文字数: 3 最大文字数: 254

利用者が入力したメールアドレスです。前後の空白を除き、小文字にしてから照合します

"developer@example.com"
device_signing_public_key 必須
string 最小文字数: 1 最大文字数: 2048

試用する端末のEd25519公開鍵(PEM か ed25519:base64url)です。確認でも同じ鍵を使う必要があります

"string"
nonce 必須
string 最小文字数: 22 最大文字数: 255
"stringxxxxxxxxxxxxxxxx"
locale 任意
string 最小文字数: 2 最大文字数: 35

メールの言語(ja か en)です。無いときは Accept-Language、それも無ければ日本語です

"ja"
sdk_version 任意
string 最大文字数: 255
"string"
TrialVerificationConfirmRequest 12項目

Schema

object

Example Value

{
  "code": "123456",
  "email": "developer@example.com",
  "device_signing_public_key": "string",
  "device_kem_public_key": "string",
  "device_proof": "string",
  "machine_signals": {
    "property": "string"
  },
  "machine_info": {
    "os": "string",
    "arch": "string"
  },
  "app_version": "string",
  "sdk_version": "string",
  "request_id": "01K5QWERTY1234567890ABCDEFG",
  "client_time": 1,
  "nonce": "stringxxxxxxxxxxxxxxxx"
}
項目必須型・説明Example Value
code 必須
string 最小文字数: 1 最大文字数: 32

メールで届いた6桁の確認コードです。空白とハイフンは無視します

"123456"
email 必須
string email 最小文字数: 3 最大文字数: 254

開始のときと同じメールアドレス

"developer@example.com"
device_signing_public_key 必須
string 最大文字数: 2048

開始のときと同じEd25519公開鍵

"string"
device_kem_public_key 必須
string 最大文字数: 1024
"string"
device_proof 必須
string 最大文字数: 1024

端末の署名鍵による署名です。対象は、前置き Usakey-Trial-Proof-v1、改行、この本文から device_proof を除いた正規化JSON(JCS)をつなげたものです

"string"
machine_signals 任意
object
{ "property": "string" }
machine_info 必須 { "os": "string", "arch": "string" }
app_version 任意
string 最大文字数: 255
"string"
sdk_version 任意
string 最大文字数: 255
"string"
request_id 任意
string 最大文字数: 255
"01K5QWERTY1234567890ABCDEFG"
client_time 任意
integer
1
nonce 必須
string 最小文字数: 22 最大文字数: 255
"stringxxxxxxxxxxxxxxxx"
TrialSignupData 4項目

Schema

ActivationData + object

Example Value

{
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "certificate": "string",
  "machine_info_digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa"
}
項目必須型・説明Example Value
license_id 必須 "license_id_aaaaaaaaaaaaaaaaaaaa"
activation_id 必須 "activation_id_aaaaaaaaaaaaaaaaaaaa"
certificate 必須
string

PASETO v4.public形式のライセンス証明書

"string"
machine_info_digest 必須
string 形式: ^[0-9a-f]{64}$

この端末認証に保存した完全な machine_info のSHA-256ハッシュ値

"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
SignedTrialSignupResponse 4項目

Schema

SignedEnvelope + object

Example Value

{
  "data": {
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "certificate": "string",
    "machine_info_digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
項目必須型・説明Example Value
data 必須
value
"string"
response_assertion 必須
object
{ "v": 1, "product_id": "prod_0123456789abcdef0123", "key_id": "01K5QWERTY1234567890ABCDEFG", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "request_id": "01K5QWERTY1234567890ABCDEFG", "nonce": "string", "server_time": 1, "status": 1, "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
response_signature 必須
string
"example-token"
signing_delegation 必須
object
{ "delegation": { "v": 1, "purpose": "runtime-response", "product_id": "prod_0123456789abcdef0123", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "online_key_id": "01K5QWERTY1234567890ABCDEFG", "public_key": "string", "issued_at": 1, "expires_at": 1 }, "signature": "example-token" }
RedemptionRequest 8項目

Schema

object

Example Value

{
  "product_id": "prod_0123456789abcdef0123",
  "code": "RDM-ABCDE-FGHJK-LMNPQ-RSTUV",
  "email": "developer@example.com",
  "name": "Example name",
  "nonce": "stringxxxxxxxxxxxxxxxx",
  "locale": "ja",
  "sdk_version": "string",
  "app_version": "string"
}
項目必須型・説明Example Value
product_id 必須 "prod_0123456789abcdef0123"
code 必須
string 最小文字数: 1 最大文字数: 64

引換コード。大文字と小文字・空白・ハイフンは区別しません

"RDM-ABCDE-FGHJK-LMNPQ-RSTUV"
email 任意
string email 最小文字数: 3 最大文字数: 254

ユーザー単位の利用ルールの注文では必須です(そのアドレスのローカルIDのライセンスユーザーに割り当てます)。それ以外では任意で、送るとそのアドレスにもライセンスキーをメールで送ります

"developer@example.com"
name 任意
string 最大文字数: 480

ユーザー単位の利用ルールで、そのアドレスの利用者がいないときに作るライセンスユーザーの名前

"Example name"
nonce 必須
string 最小文字数: 22 最大文字数: 255
"stringxxxxxxxxxxxxxxxx"
locale 任意
string 最小文字数: 2 最大文字数: 35

メールの言語(ja か en)です。無いときは Accept-Language、それも無ければ日本語です

"ja"
sdk_version 任意
string 最大文字数: 255
"string"
app_version 任意
string 最大文字数: 255
"string"
RedemptionData 6項目

Schema

object

Example Value

{
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
  "license_key": "string",
  "status": "active",
  "expires_at": "2026-09-21T00:00:00Z",
  "identity_mode": "license_key",
  "order_number": "string"
}
項目必須型・説明Example Value
license_id 必須 "license_id_aaaaaaaaaaaaaaaaaaaa"
license_key 必須
string

新しいライセンスキー。この応答にだけ入ります。続けてこのキーで端末認証します

"string"
status 必須
string

許容値: active

"active"
expires_at 必須
string | null date-time
"2026-09-21T00:00:00Z"
identity_mode 必須
string

許容値: license_key, named_user

named_user は、送ったアドレスにライセンスを割り当てたことを表します。端末認証の前に POST /runtime/v1/email-verifications で named_user_token を得てください

"license_key"
order_number 必須
string

販売元が注文を照合するときの注文番号

"string"
SignedRedemptionResponse 4項目

Schema

SignedEnvelope + object

Example Value

{
  "data": {
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "license_key": "string",
    "status": "active",
    "expires_at": "2026-09-21T00:00:00Z",
    "identity_mode": "license_key",
    "order_number": "string"
  },
  "response_assertion": {
    "v": 1,
    "product_id": "prod_0123456789abcdef0123",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "nonce": "string",
    "server_time": 1,
    "status": 1,
    "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "response_signature": "example-token",
  "signing_delegation": {
    "delegation": {
      "v": 1,
      "purpose": "runtime-response",
      "product_id": "prod_0123456789abcdef0123",
      "parent_key_id": "01K5QWERTY1234567890ABCDEFG",
      "online_key_id": "01K5QWERTY1234567890ABCDEFG",
      "public_key": "string",
      "issued_at": 1,
      "expires_at": 1
    },
    "signature": "example-token"
  }
}
項目必須型・説明Example Value
data 必須
value
"string"
response_assertion 必須
object
{ "v": 1, "product_id": "prod_0123456789abcdef0123", "key_id": "01K5QWERTY1234567890ABCDEFG", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "request_id": "01K5QWERTY1234567890ABCDEFG", "nonce": "string", "server_time": 1, "status": 1, "body_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
response_signature 必須
string
"example-token"
signing_delegation 必須
object
{ "delegation": { "v": 1, "purpose": "runtime-response", "product_id": "prod_0123456789abcdef0123", "parent_key_id": "01K5QWERTY1234567890ABCDEFG", "online_key_id": "01K5QWERTY1234567890ABCDEFG", "public_key": "string", "issued_at": 1, "expires_at": 1 }, "signature": "example-token" }
TrustBundleResponse 1項目

Schema

object

Example Value

{
  "data": {
    "bundle": {},
    "root_signature": "example-token"
  }
}
項目必須型・説明Example Value
data 任意
object
{ "bundle": {}, "root_signature": "example-token" }
Error 1項目

Schema

object

Example Value

{
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "retryable": true,
    "doc_url": "https://example.com/resource",
    "details": {}
  }
}
項目必須型・説明Example Value
error 必須
object
{ "code": "string", "message": "string", "request_id": "01K5QWERTY1234567890ABCDEFG", "retryable": true, "doc_url": "https://example.com/resource", "details": {} }
Pagination 2項目

Schema

object

Example Value

{
  "next_cursor": "string",
  "has_more": true
}
項目必須型・説明Example Value
next_cursor 必須
string | null
"string"
has_more 必須
boolean
true
Product 11項目

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "name": "Example name",
  "code": "string",
  "description": "Example description",
  "environment": "live",
  "status": "active",
  "trust_bundle_sequence": 1,
  "signing_status": "pending",
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z",
  "version": 1
}
項目必須型・説明Example Value
public_id 任意 "public_id_aaaaaaaaaaaaaaaaaaaa"
name 任意
string
"Example name"
code 任意
string
"string"
description 任意
string | null
"Example description"
environment 任意
value

許容値: live, test

"live"
status 任意
string
"active"
trust_bundle_sequence 任意
integer | null
1
signing_status 任意
string

許容値: pending, ready

ライセンスの発行に使う製品署名鍵の準備ができているか。

"pending"
created_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
updated_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
version 任意
integer | null
1
ProductResponse 1項目

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "code": "string",
    "description": "Example description",
    "environment": "live",
    "status": "active",
    "trust_bundle_sequence": 1,
    "signing_status": "pending",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z",
    "version": 1
  }
}
項目必須型・説明Example Value
data 必須 { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "code": "string", "description": "Example description", "environment": "live", "status": "active", "trust_bundle_sequence": 1, "signing_status": "pending", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z", "version": 1 }
ProductListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "code": "string",
      "description": "Example description",
      "environment": "live",
      "status": "active",
      "trust_bundle_sequence": 1,
      "signing_status": "pending",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z",
      "version": 1
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<Product>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "code": "string", "description": "Example description", "environment": "live", "status": "active", "trust_bundle_sequence": 1, "signing_status": "pending", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z", "version": 1 } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
IntegrationConfig 10項目

usakey.config.json の中身。

Schema

object

Example Value

{
  "usakey_config_version": 1,
  "generated_at": "2026-09-21T00:00:00Z",
  "bundle_version": "string",
  "environment": "live",
  "api_url": "https://example.com/resource",
  "product": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name"
  },
  "trust_anchor": {
    "signing_mode": "string",
    "key_id": "01K5QWERTY1234567890ABCDEFG",
    "trust_bundle_url": "https://example.com/resource",
    "minimum_trust_bundle_sequence": 1,
    "root_public_key": "string",
    "development_root_public_key": "string",
    "public_key_unavailable_reason": "string",
    "signing_keys_pending_reason": "string"
  },
  "entitlements": [
    {
      "name": "Example name",
      "type": "boolean",
      "policies": [
        "string"
      ]
    }
  ],
  "license_key_delivery": "manual",
  "stripe_license_claim_url": "https://example.com/resource"
}
項目必須型・説明Example Value
usakey_config_version 必須
integer
1
generated_at 必須
string date-time
"2026-09-21T00:00:00Z"
bundle_version 必須
string
"string"
environment 必須
value

許容値: live, test

"live"
api_url 必須
string uri
"https://example.com/resource"
product 必須
object
{ "id": "id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name" }
trust_anchor 必須 { "signing_mode": "string", "key_id": "01K5QWERTY1234567890ABCDEFG", "trust_bundle_url": "https://example.com/resource", "minimum_trust_bundle_sequence": 1, "root_public_key": "string", "development_root_public_key": "string", "public_key_unavailable_reason": "string", "signing_keys_pending_reason": "string" }
entitlements 必須
array<object>
[ { "name": "Example name", "type": "boolean", "policies": [ "string" ] } ]
license_key_delivery 必須
value

許容値: manual, stripe_checkout

"manual"
stripe_license_claim_url 任意
string uri

契約組織のStripeでの販売連携が有効で、この製品に有効な価格の対応があるときだけ入ります。

"https://example.com/resource"
IntegrationTrustAnchor 8項目

Schema

object

Example Value

{
  "signing_mode": "string",
  "key_id": "01K5QWERTY1234567890ABCDEFG",
  "trust_bundle_url": "https://example.com/resource",
  "minimum_trust_bundle_sequence": 1,
  "root_public_key": "string",
  "development_root_public_key": "string",
  "public_key_unavailable_reason": "string",
  "signing_keys_pending_reason": "string"
}
項目必須型・説明Example Value
signing_mode 必須
string
"string"
key_id 任意
string | null
"01K5QWERTY1234567890ABCDEFG"
trust_bundle_url 必須
string uri
"https://example.com/resource"
minimum_trust_bundle_sequence 必須
integer 最小値: 1
1
root_public_key 任意
string
"string"
development_root_public_key 任意
string

開発用サーバーの、テスト環境の製品だけに入ります。配布する製品には組み込まないでください。

"string"
public_key_unavailable_reason 任意
string
"string"
signing_keys_pending_reason 任意
string
"string"
IntegrationConfigDocument 3項目

Schema

object

Example Value

{
  "file_name": "Example name",
  "content": "string",
  "config": {
    "usakey_config_version": 1,
    "generated_at": "2026-09-21T00:00:00Z",
    "bundle_version": "string",
    "environment": "live",
    "api_url": "https://example.com/resource",
    "product": {
      "id": "id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name"
    },
    "trust_anchor": {
      "signing_mode": "string",
      "key_id": "01K5QWERTY1234567890ABCDEFG",
      "trust_bundle_url": "https://example.com/resource",
      "minimum_trust_bundle_sequence": 1,
      "root_public_key": "string",
      "development_root_public_key": "string",
      "public_key_unavailable_reason": "string",
      "signing_keys_pending_reason": "string"
    },
    "entitlements": [
      {
        "name": "Example name",
        "type": "boolean",
        "policies": [
          "string"
        ]
      }
    ],
    "license_key_delivery": "manual",
    "stripe_license_claim_url": "https://example.com/resource"
  }
}
項目必須型・説明Example Value
file_name 必須
string
"Example name"
content 必須
string

管理画面からダウンロードするファイルそのもの。

"string"
config 必須 { "usakey_config_version": 1, "generated_at": "2026-09-21T00:00:00Z", "bundle_version": "string", "environment": "live", "api_url": "https://example.com/resource", "product": { "id": "id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name" }, "trust_anchor": { "signing_mode": "string", "key_id": "01K5QWERTY1234567890ABCDEFG", "trust_bundle_url": "https://example.com/resource", "minimum_trust_bundle_sequence": 1, "root_public_key": "string", "development_root_public_key": "string", "public_key_unavailable_reason": "string", "signing_keys_pending_reason": "string" }, "entitlements": [ { "name": "Example name", "type": "boolean", "policies": [ "string" ] } ], "license_key_delivery": "manual", "stripe_license_claim_url": "https://example.com/resource" }
IntegrationConfigResponse 1項目

Schema

object

Example Value

{
  "data": {
    "file_name": "Example name",
    "content": "string",
    "config": {
      "usakey_config_version": 1,
      "generated_at": "2026-09-21T00:00:00Z",
      "bundle_version": "string",
      "environment": "live",
      "api_url": "https://example.com/resource",
      "product": {
        "id": "id_aaaaaaaaaaaaaaaaaaaa",
        "name": "Example name"
      },
      "trust_anchor": {
        "signing_mode": "string",
        "key_id": "01K5QWERTY1234567890ABCDEFG",
        "trust_bundle_url": "https://example.com/resource",
        "minimum_trust_bundle_sequence": 1,
        "root_public_key": "string",
        "development_root_public_key": "string",
        "public_key_unavailable_reason": "string",
        "signing_keys_pending_reason": "string"
      },
      "entitlements": [
        {
          "name": "Example name",
          "type": "boolean",
          "policies": [
            "string"
          ]
        }
      ],
      "license_key_delivery": "manual",
      "stripe_license_claim_url": "https://example.com/resource"
    }
  }
}
項目必須型・説明Example Value
data 必須 { "file_name": "Example name", "content": "string", "config": { "usakey_config_version": 1, "generated_at": "2026-09-21T00:00:00Z", "bundle_version": "string", "environment": "live", "api_url": "https://example.com/resource", "product": { "id": "id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name" }, "trust_anchor": { "signing_mode": "string", "key_id": "01K5QWERTY1234567890ABCDEFG", "trust_bundle_url": "https://example.com/resource", "minimum_trust_bundle_sequence": 1, "root_public_key": "string", "development_root_public_key": "string", "public_key_unavailable_reason": "string", "signing_keys_pending_reason": "string" }, "entitlements": [ { "name": "Example name", "type": "boolean", "policies": [ "string" ] } ], "license_key_delivery": "manual", "stripe_license_claim_url": "https://example.com/resource" } }
ProductSealedFiles 3項目

Schema

object

Example Value

{
  "product_id": "prod_0123456789abcdef0123",
  "status": "enabled",
  "current_key": {
    "key_id": "key_seal_0123456789abcdef0123",
    "public_key": "p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y",
    "sealing_key": "usakey-sealing-key:v1:prod_0123456789abcdef0123:key_seal_0123456789abcdef0123:p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y",
    "created_at": "2026-09-21T00:00:00Z"
  }
}
項目必須型・説明Example Value
product_id 必須 "prod_0123456789abcdef0123"
status 必須
string

許容値: enabled, disabled, not_entitled, unavailable

"enabled"
current_key 必須
ProductSealingKey | null
{ "key_id": "key_seal_0123456789abcdef0123", "public_key": "p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y", "sealing_key": "usakey-sealing-key:v1:prod_0123456789abcdef0123:key_seal_0123456789abcdef0123:p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y", "created_at": "2026-09-21T00:00:00Z" }
ProductSealingKey 4項目

Schema

object

Example Value

{
  "key_id": "key_seal_0123456789abcdef0123",
  "public_key": "p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y",
  "sealing_key": "usakey-sealing-key:v1:prod_0123456789abcdef0123:key_seal_0123456789abcdef0123:p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y",
  "created_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
key_id 必須
string

この鍵の版の識別子。この鍵で暗号化したすべてのファイルに書き込まれます

"key_seal_0123456789abcdef0123"
public_key 必須
string 形式: ^p256:[A-Za-z0-9_-]{87}$

非圧縮のP-256公開鍵(パディングなしのbase64url)。配備先では全製品が同じ公開鍵(環境の暗号化用の鍵)を使い、製品は key_id と製品IDで区別します。

"p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y"
sealing_key 必須
string

暗号化ツールに渡す1行の公開鍵(usakey-seal --key)。秘密ではありません。

"usakey-sealing-key:v1:prod_0123456789abcdef0123:key_seal_0123456789abcdef0123:p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y"
created_at 必須
string date-time
"2026-09-21T00:00:00Z"
ProductSealedFilesResponse 1項目

Schema

object

Example Value

{
  "data": {
    "product_id": "prod_0123456789abcdef0123",
    "status": "enabled",
    "current_key": {
      "key_id": "key_seal_0123456789abcdef0123",
      "public_key": "p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y",
      "sealing_key": "usakey-sealing-key:v1:prod_0123456789abcdef0123:key_seal_0123456789abcdef0123:p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y",
      "created_at": "2026-09-21T00:00:00Z"
    }
  }
}
項目必須型・説明Example Value
data 必須 { "product_id": "prod_0123456789abcdef0123", "status": "enabled", "current_key": { "key_id": "key_seal_0123456789abcdef0123", "public_key": "p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y", "sealing_key": "usakey-sealing-key:v1:prod_0123456789abcdef0123:key_seal_0123456789abcdef0123:p256:BC8ylpFJ44nP01V3Ei2l5hm8iUAyxR8cepHBhlWWLzsAqCUpcNOfUa05MSFt28Z9RVc7yJO2cKyY_V1rZon_v6Y", "created_at": "2026-09-21T00:00:00Z" } }
ProductBrowserRuntime 4項目

Schema

object

Example Value

{
  "product_id": "prod_0123456789abcdef0123",
  "enabled": true,
  "allowed_origins": [
    "string"
  ],
  "version": 0
}
項目必須型・説明Example Value
product_id 必須 "prod_0123456789abcdef0123"
enabled 必須
boolean
true
allowed_origins 必須
array<string> 最大要素数: 20
[ "string" ]
version 必須
integer 最小値: 0
0
ProductBrowserRuntimeResponse 1項目

Schema

object

Example Value

{
  "data": {
    "product_id": "prod_0123456789abcdef0123",
    "enabled": true,
    "allowed_origins": [
      "string"
    ],
    "version": 0
  }
}
項目必須型・説明Example Value
data 必須 { "product_id": "prod_0123456789abcdef0123", "enabled": true, "allowed_origins": [ "string" ], "version": 0 }
ProductTrialSignup 6項目

製品アプリからメール確認付きで始める試用を、製品がどう受け付けるか。

Schema

object

Example Value

{
  "product_id": "prod_0123456789abcdef0123",
  "policy_id": "01K5QWERTY1234567890ABCDEFG",
  "daily_limit": 1,
  "status": "accepting",
  "started_last_24_hours": 0,
  "version": 0
}
項目必須型・説明Example Value
product_id 必須 "prod_0123456789abcdef0123"
policy_id 必須
string | null 最大文字数: 64

アプリから始める試用に使う利用ルール(この製品の有効な、ライセンスキー方式のトライアルの利用ルール)です。受け付けていないときは null です。

"01K5QWERTY1234567890ABCDEFG"
daily_limit 必須
integer 最小値: 1 最大値: 1000

この製品で、アプリから24時間に始められる試用の上限です。既定は20件です。

1
status 必須
string

許容値: accepting, off, not_entitled, policy_unavailable, daily_limit_reached

accepting: 開始の要求で確認コードを送ります。off: 利用ルールが選ばれていません。not_entitled: いまの契約プランにトライアルが含まれていません。policy_unavailable: 選んだ利用ルールが廃止・変更されて使えません。別の利用ルールを選んでください。daily_limit_reached: started_last_24_hours が daily_limit に達しています。

"accepting"
started_last_24_hours 必須
integer 最小値: 0

直近24時間にアプリから始まった試用の数で、daily_limit と比べる数です。同じ試用に2台目の端末が加わっても数えません。

0
version 必須
integer 最小値: 0

製品の版です。読んだあとに製品が変わっていないときだけ変更するには、If-Match にこの値を送ります。

0
ProductTrialSignupResponse 1項目

Schema

object

Example Value

{
  "data": {
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "01K5QWERTY1234567890ABCDEFG",
    "daily_limit": 1,
    "status": "accepting",
    "started_last_24_hours": 0,
    "version": 0
  }
}
項目必須型・説明Example Value
data 必須 { "product_id": "prod_0123456789abcdef0123", "policy_id": "01K5QWERTY1234567890ABCDEFG", "daily_limit": 1, "status": "accepting", "started_last_24_hours": 0, "version": 0 }
PolicyDeviceRelease 5項目

この版の利用ルールで発行したライセンスの利用者が、手元に無い端末の認証を製品アプリから解除できるか(POST /runtime/v1/device-releases)。

Schema

object

Example Value

{
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "enabled": true,
  "status": "available",
  "verified_by": "license_user_email",
  "license_count": 0
}
項目必須型・説明Example Value
policy_id 必須 "policy_id_aaaaaaaaaaaaaaaaaaaa"
enabled 必須
boolean

販売者がこの版の利用ルールで許可していれば true。既定は false です。

true
status 必須
string

許容値: available, off, not_entitled, not_supported

available は、利用者が製品アプリから端末を解除できる状態です。off は許可していない状態です。not_entitled は、許可しているものの、いまのプランにメールアドレスでのライセンス確認が無いため確認コードを送らない状態です。not_supported は完全オフラインの買い切りの利用ルールで、許可できません。

"available"
verified_by 必須
string

許容値: license_user_email, customer_email

確認コードの宛先です。license_user_email はライセンスユーザーのメールアドレスで、ユーザー単位の利用ルールで使います(利用者は自分の端末だけを解除できます)。customer_email はライセンスの顧客に登録したメールアドレスで、ライセンスキー方式の利用ルールで使います(利用者はそのライセンスの端末を解除できます)。

"license_user_email"
license_count 必須
integer 最小値: 0

この版の利用ルールで発行したライセンスの数。設定の変更は、これらのライセンスにすぐ反映されます。

0
PolicyDeviceReleaseResponse 1項目

Schema

object

Example Value

{
  "data": {
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "enabled": true,
    "status": "available",
    "verified_by": "license_user_email",
    "license_count": 0
  }
}
項目必須型・説明Example Value
data 必須 { "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "enabled": true, "status": "available", "verified_by": "license_user_email", "license_count": 0 }
PolicyDeviceReleaseInput 1項目

Schema

object

Example Value

{
  "enabled": true
}
項目必須型・説明Example Value
enabled 必須
boolean

true で、この版の利用ルールの利用者による端末の入れ替えを許可します。false で許可をやめます。

true
ActivationDeactivation 4項目

端末の認証を解除した方法。

Schema

object

Example Value

{
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "deactivated_at": "2026-09-21T00:00:00Z",
  "record": {
    "method": "string",
    "event_id": "event_id_aaaaaaaaaaaaaaaaaaaa",
    "occurred_at": "2026-09-21T00:00:00Z",
    "actor": {
      "type": "string",
      "id": "01K5QWERTY1234567890ABCDEFG"
    },
    "verified_by": "string",
    "second_factor": true,
    "reason": "string"
  }
}
項目必須型・説明Example Value
activation_id 必須 "activation_id_aaaaaaaaaaaaaaaaaaaa"
status 必須
string

端末認証の状態(GET /mgmt/v1/activations/{id} と同じ)。

"active"
deactivated_at 必須
string | null date-time
"2026-09-21T00:00:00Z"
record 必須
object | null

解除した操作。端末を使用中のときと、端末自身が解除したときや記録が残っていないときは null です。

{ "method": "string", "event_id": "event_id_aaaaaaaaaaaaaaaaaaaa", "occurred_at": "2026-09-21T00:00:00Z", "actor": { "type": "string", "id": "01K5QWERTY1234567890ABCDEFG" }, "verified_by": "string", "second_factor": true, "reason": "string" }
ActivationDeactivationResponse 1項目

Schema

object

Example Value

{
  "data": {
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "deactivated_at": "2026-09-21T00:00:00Z",
    "record": {
      "method": "string",
      "event_id": "event_id_aaaaaaaaaaaaaaaaaaaa",
      "occurred_at": "2026-09-21T00:00:00Z",
      "actor": {
        "type": "string",
        "id": "01K5QWERTY1234567890ABCDEFG"
      },
      "verified_by": "string",
      "second_factor": true,
      "reason": "string"
    }
  }
}
項目必須型・説明Example Value
data 必須 { "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "deactivated_at": "2026-09-21T00:00:00Z", "record": { "method": "string", "event_id": "event_id_aaaaaaaaaaaaaaaaaaaa", "occurred_at": "2026-09-21T00:00:00Z", "actor": { "type": "string", "id": "01K5QWERTY1234567890ABCDEFG" }, "verified_by": "string", "second_factor": true, "reason": "string" } }
PlanQuota 5項目

Schema

object

Example Value

{
  "limit": 1,
  "used": 1,
  "remaining": 1,
  "limit_with_overage": 1,
  "resets_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
limit 必須
integer | null

null は上限なしを表します。

1
used 必須
integer
1
remaining 必須
integer | null
1
limit_with_overage 任意
integer

上限を超えた分を有償の超過として認めるプランで、新しい利用を断る点。

1
resets_at 任意
string date-time

月ごとの枠だけに入ります。

"2026-09-21T00:00:00Z"
PlanLimits 7項目

Schema

object

Example Value

{
  "plan": {
    "code": "string",
    "name": "Example name",
    "trial": true,
    "ends_at": "2026-09-21T00:00:00Z"
  },
  "quotas": {
    "property": {
      "limit": 1,
      "used": 1,
      "remaining": 1,
      "limit_with_overage": 1,
      "resets_at": "2026-09-21T00:00:00Z"
    }
  },
  "policy_constraints": {
    "activation_sync_min_sec": 1,
    "revocation_exposure_max_sec": 1,
    "cert_ttl_max_sec": 1,
    "floating_sync_min_sec": 1,
    "floating_lease_ttl_min_sec": 1
  },
  "policy_defaults": {
    "heartbeat_sec": 1,
    "cert_ttl_sec": 1,
    "network_grace_sec": 1
  },
  "revocation_exposure_max_sec_by_plan": {
    "property": 1
  },
  "license_duration_max_sec": 1,
  "unavailable_features": [
    {
      "key": "string",
      "minimum_plan": "string",
      "minimum_plan_name": "Example name"
    }
  ]
}
項目必須型・説明Example Value
plan 必須
object | null
{ "code": "string", "name": "Example name", "trial": true, "ends_at": "2026-09-21T00:00:00Z" }
quotas 必須
object
{ "property": { "limit": 1, "used": 1, "remaining": 1, "limit_with_overage": 1, "resets_at": "2026-09-21T00:00:00Z" } }
policy_constraints 必須
object
{ "activation_sync_min_sec": 1, "revocation_exposure_max_sec": 1, "cert_ttl_max_sec": 1, "floating_sync_min_sec": 1, "floating_lease_ttl_min_sec": 1 }
policy_defaults 必須
object
{ "heartbeat_sec": 1, "cert_ttl_sec": 1, "network_grace_sec": 1 }
revocation_exposure_max_sec_by_plan 必須
object
{ "property": 1 }
license_duration_max_sec 必須
integer | null
1
unavailable_features 必須
array<object>
[ { "key": "string", "minimum_plan": "string", "minimum_plan_name": "Example name" } ]
PlanLimitsResponse 1項目

Schema

object

Example Value

{
  "data": {
    "plan": {
      "code": "string",
      "name": "Example name",
      "trial": true,
      "ends_at": "2026-09-21T00:00:00Z"
    },
    "quotas": {
      "property": {
        "limit": 1,
        "used": 1,
        "remaining": 1,
        "limit_with_overage": 1,
        "resets_at": "2026-09-21T00:00:00Z"
      }
    },
    "policy_constraints": {
      "activation_sync_min_sec": 1,
      "revocation_exposure_max_sec": 1,
      "cert_ttl_max_sec": 1,
      "floating_sync_min_sec": 1,
      "floating_lease_ttl_min_sec": 1
    },
    "policy_defaults": {
      "heartbeat_sec": 1,
      "cert_ttl_sec": 1,
      "network_grace_sec": 1
    },
    "revocation_exposure_max_sec_by_plan": {
      "property": 1
    },
    "license_duration_max_sec": 1,
    "unavailable_features": [
      {
        "key": "string",
        "minimum_plan": "string",
        "minimum_plan_name": "Example name"
      }
    ]
  }
}
項目必須型・説明Example Value
data 必須 { "plan": { "code": "string", "name": "Example name", "trial": true, "ends_at": "2026-09-21T00:00:00Z" }, "quotas": { "property": { "limit": 1, "used": 1, "remaining": 1, "limit_with_overage": 1, "resets_at": "2026-09-21T00:00:00Z" } }, "policy_constraints": { "activation_sync_min_sec": 1, "revocation_exposure_max_sec": 1, "cert_ttl_max_sec": 1, "floating_sync_min_sec": 1, "floating_lease_ttl_min_sec": 1 }, "policy_defaults": { "heartbeat_sec": 1, "cert_ttl_sec": 1, "network_grace_sec": 1 }, "revocation_exposure_max_sec_by_plan": { "property": 1 }, "license_duration_max_sec": 1, "unavailable_features": [ { "key": "string", "minimum_plan": "string", "minimum_plan_name": "Example name" } ] }
PlanBillingStatus 6項目

Schema

object

Example Value

{
  "status": "active",
  "service_available": true,
  "plan": {
    "code": "string",
    "name": "Example name"
  },
  "billing_interval": "string",
  "renews_at": "2026-09-21T00:00:00Z",
  "ends_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
status 必須
string

evaluation(無料の検証プラン)、trial(ends_atに終わる無料の利用期間)、active(Stripeで支払う有料プラン)、cancellation_scheduled(有料プランはends_atに終わります)、payment_failed(直近の支払いに失敗しました。Stripeが2週間で最大8回まで再試行し、すべて失敗すると購読を解約します)、payment_action_required(直近の支払いに、管理画面の請求書からのカード会社の本人確認(3Dセキュア)が必要です。確定しないまま15日たつと解約されます)、unpaid(未払いの請求書のため、支払われるまで止まっています)、paused(支払いが確認されるまで止まっています)、pending(最初の支払いがまだ確定していません)、review_required(Usakeyが支払いか解約を確認しています。Usakeyサポートへお問い合わせください)、operator_contract(請求書払いなど、Stripeを通さずにUsakeyが設定した契約)、dedicated(専用環境プラン)、ended(有効なプランがありません)のどれかです。値は今後増えることがあります。知らない値は、管理画面の「課金・契約」で確かめてください。

"active"
service_available 必須
boolean

製品アプリからのライセンスの認証・定期確認(Runtime API)とManagement APIの要求を、いま受け付けているかです。契約が止まっている間と、終わったあとはfalseです。

true
plan 必須
object | null

この状態が指すプランです。有効なプランか、unpaid・paused・review_requiredではその契約のプランです。有効なプランが無ければnullです。

{ "code": "string", "name": "Example name" }
billing_interval 必須
string | null

Stripeで支払う契約では、monthlyかyearlyです。それ以外はnullです。

"string"
renews_at 必須
string | null date-time

次に自動で更新する日時です(active・payment_failed・payment_action_required)。それ以外はnullです。

"2026-09-21T00:00:00Z"
ends_at 必須
string | null date-time

何も変えなければプランが終わる日時です。cancellation_scheduledでは支払い済みの期間の末日、trialでは無料の利用期間の終わり、operator_contractでは契約期限です。終わる日が無ければnullです。

"2026-09-21T00:00:00Z"
PlanBillingStatusResponse 1項目

Schema

object

Example Value

{
  "data": {
    "status": "active",
    "service_available": true,
    "plan": {
      "code": "string",
      "name": "Example name"
    },
    "billing_interval": "string",
    "renews_at": "2026-09-21T00:00:00Z",
    "ends_at": "2026-09-21T00:00:00Z"
  }
}
項目必須型・説明Example Value
data 必須 { "status": "active", "service_available": true, "plan": { "code": "string", "name": "Example name" }, "billing_interval": "string", "renews_at": "2026-09-21T00:00:00Z", "ends_at": "2026-09-21T00:00:00Z" }
ActivationDetail 16項目

Schema

object

Example Value

{
  "id": "id_aaaaaaaaaaaaaaaaaaaa",
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "machine": {},
  "device_signing_key_thumbprint": "string",
  "first_seen_at": "2026-09-21T00:00:00Z",
  "last_seen_at": "2026-09-21T00:00:00Z",
  "deactivated_at": "2026-09-21T00:00:00Z",
  "activated_at": "2026-09-21T00:00:00Z",
  "last_heartbeat_at": "2026-09-21T00:00:00Z",
  "heartbeat_interval_sec": 1,
  "next_heartbeat_due": {
    "earliest": "2026-09-21T00:00:00Z",
    "latest": "2026-09-21T00:00:00Z"
  },
  "heartbeat_overdue": true,
  "certificate_expires_at": "2026-09-21T00:00:00Z",
  "app_version": "string",
  "sdk_version": "string"
}
項目必須型・説明Example Value
id 任意 "id_aaaaaaaaaaaaaaaaaaaa"
license_id 任意 "license_id_aaaaaaaaaaaaaaaaaaaa"
status 任意
string
"active"
machine 任意
object
{}
device_signing_key_thumbprint 任意
string
"string"
first_seen_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
last_seen_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
deactivated_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
activated_at 任意
string date-time
"2026-09-21T00:00:00Z"
last_heartbeat_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
heartbeat_interval_sec 任意
integer | null
1
next_heartbeat_due 任意
object | null

次の定期確認が届くはずの時刻です。earliest から latest の間(確認間隔に最大10%のゆらぎを足した範囲)です。

{ "earliest": "2026-09-21T00:00:00Z", "latest": "2026-09-21T00:00:00Z" }
heartbeat_overdue 任意
boolean

有効な端末が、定期確認の時間枠を過ぎても確認していないとき true です。

true
certificate_expires_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
app_version 任意
string | null
"string"
sdk_version 任意
string | null
"string"
ActivationDetailResponse 1項目

Schema

object

Example Value

{
  "data": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "machine": {},
    "device_signing_key_thumbprint": "string",
    "first_seen_at": "2026-09-21T00:00:00Z",
    "last_seen_at": "2026-09-21T00:00:00Z",
    "deactivated_at": "2026-09-21T00:00:00Z",
    "activated_at": "2026-09-21T00:00:00Z",
    "last_heartbeat_at": "2026-09-21T00:00:00Z",
    "heartbeat_interval_sec": 1,
    "next_heartbeat_due": {
      "earliest": "2026-09-21T00:00:00Z",
      "latest": "2026-09-21T00:00:00Z"
    },
    "heartbeat_overdue": true,
    "certificate_expires_at": "2026-09-21T00:00:00Z",
    "app_version": "string",
    "sdk_version": "string"
  }
}
項目必須型・説明Example Value
data 必須 { "id": "id_aaaaaaaaaaaaaaaaaaaa", "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "machine": {}, "device_signing_key_thumbprint": "string", "first_seen_at": "2026-09-21T00:00:00Z", "last_seen_at": "2026-09-21T00:00:00Z", "deactivated_at": "2026-09-21T00:00:00Z", "activated_at": "2026-09-21T00:00:00Z", "last_heartbeat_at": "2026-09-21T00:00:00Z", "heartbeat_interval_sec": 1, "next_heartbeat_due": { "earliest": "2026-09-21T00:00:00Z", "latest": "2026-09-21T00:00:00Z" }, "heartbeat_overdue": true, "certificate_expires_at": "2026-09-21T00:00:00Z", "app_version": "string", "sdk_version": "string" }
RuntimeEvent 12項目

1時間以内の、同じ対象・操作・結果コードの拒否または失敗した Runtime API の要求です。要求の本文・ライセンスキー・署名・端末の鍵は保存しません。

Schema

object

Example Value

{
  "operation": "activation_create",
  "outcome": "rejected",
  "code": "DEVICE_PROOF_INVALID",
  "http_status": 400,
  "occurrences": 1,
  "first_occurred_at": "2026-09-21T00:00:00Z",
  "last_occurred_at": "2026-09-21T00:00:00Z",
  "last_request_id": "01K5QWERTY1234567890ABCDEFG",
  "product_id": "prod_0123456789abcdef0123",
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "details_omitted": true
}
項目必須型・説明Example Value
operation 必須
value

許容値: activation_create, activation_heartbeat, activation_deactivate, lease_acquire, lease_heartbeat, lease_release

"activation_create"
outcome 必須
value

許容値: rejected, error

rejected は製品アプリ側で直す必要がある 4xx の応答、error は Usakey 側の一時的な 5xx の失敗です。

"rejected"
code 必須
string 形式: ^[A-Z][A-Z0-9_]{0,63}$

Runtime API が返した error.code です(例: DEVICE_PROOF_INVALID、CLOCK_SKEW、LICENSE_REVOKED)。

"DEVICE_PROOF_INVALID"
http_status 必須
integer 最小値: 400 最大値: 599
400
occurrences 必須
integer 最小値: 1
1
first_occurred_at 必須
string date-time
"2026-09-21T00:00:00Z"
last_occurred_at 必須
string date-time
"2026-09-21T00:00:00Z"
last_request_id 必須
string | null

最後の要求の request_id(製品アプリが受け取ったもの)です。

"01K5QWERTY1234567890ABCDEFG"
product_id 必須
PublicId | null
"prod_0123456789abcdef0123"
license_id 必須
PublicId | null

ライセンスキーの誤りなど、要求がライセンスに届かなかったときは null です。

"license_id_aaaaaaaaaaaaaaaaaaaa"
activation_id 必須
PublicId | null
"activation_id_aaaaaaaaaaaaaaaaaaaa"
details_omitted 必須
boolean

1時間あたりの記録の上限を超えた要求を、製品・ライセンス・端末認証を省いて数える記録のとき true です。

true
RuntimeEventListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "operation": "activation_create",
      "outcome": "rejected",
      "code": "DEVICE_PROOF_INVALID",
      "http_status": 400,
      "occurrences": 1,
      "first_occurred_at": "2026-09-21T00:00:00Z",
      "last_occurred_at": "2026-09-21T00:00:00Z",
      "last_request_id": "01K5QWERTY1234567890ABCDEFG",
      "product_id": "prod_0123456789abcdef0123",
      "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
      "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
      "details_omitted": true
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<RuntimeEvent>
[ { "operation": "activation_create", "outcome": "rejected", "code": "DEVICE_PROOF_INVALID", "http_status": 400, "occurrences": 1, "first_occurred_at": "2026-09-21T00:00:00Z", "last_occurred_at": "2026-09-21T00:00:00Z", "last_request_id": "01K5QWERTY1234567890ABCDEFG", "product_id": "prod_0123456789abcdef0123", "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa", "details_omitted": true } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
AnomalyListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "id": "id_aaaaaaaaaaaaaaaaaaaa",
      "status": "open",
      "scope": "device",
      "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
      "product_id": "prod_0123456789abcdef0123",
      "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
      "score": 0,
      "threshold": 1,
      "confirmations": 1,
      "signals": [
        "string"
      ],
      "action": "notify",
      "license_suspended_by_anomaly": true,
      "license_status": "active",
      "detected_at": "2026-09-21T00:00:00Z",
      "last_observed_at": "2026-09-21T00:00:00Z",
      "resolved_at": "2026-09-21T00:00:00Z",
      "resolution_note": "string",
      "exempt_until": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<Anomaly>
[ { "id": "id_aaaaaaaaaaaaaaaaaaaa", "status": "open", "scope": "device", "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "product_id": "prod_0123456789abcdef0123", "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa", "score": 0, "threshold": 1, "confirmations": 1, "signals": [ "string" ], "action": "notify", "license_suspended_by_anomaly": true, "license_status": "active", "detected_at": "2026-09-21T00:00:00Z", "last_observed_at": "2026-09-21T00:00:00Z", "resolved_at": "2026-09-21T00:00:00Z", "resolution_note": "string", "exempt_until": "2026-09-21T00:00:00Z" } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
AnomalyDetailResponse 1項目

Schema

object

Example Value

{
  "data": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "status": "open",
    "scope": "device",
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "score": 0,
    "threshold": 1,
    "confirmations": 1,
    "signals": [
      "string"
    ],
    "action": "notify",
    "license_suspended_by_anomaly": true,
    "license_status": "active",
    "detected_at": "2026-09-21T00:00:00Z",
    "last_observed_at": "2026-09-21T00:00:00Z",
    "resolved_at": "2026-09-21T00:00:00Z",
    "resolution_note": "string",
    "exempt_until": "2026-09-21T00:00:00Z",
    "breakdown": [
      {
        "signal": "string",
        "count": 0,
        "points": 0,
        "first_observed_at": "2026-09-21T00:00:00Z",
        "last_observed_at": "2026-09-21T00:00:00Z"
      }
    ],
    "events": [
      {
        "signal": "string",
        "observed_at": "2026-09-21T00:00:00Z",
        "new_devices": 0,
        "threshold": 0,
        "window_days": 1,
        "related_license_ids": [
          "related_license_ids_aaaaaaaaaaaaaaaaaaaa"
        ],
        "same_license_other_user": true
      }
    ]
  }
}
項目必須型・説明Example Value
data 必須 { "id": "id_aaaaaaaaaaaaaaaaaaaa", "status": "open", "scope": "device", "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "product_id": "prod_0123456789abcdef0123", "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa", "score": 0, "threshold": 1, "confirmations": 1, "signals": [ "string" ], "action": "notify", "license_suspended_by_anomaly": true, "license_status": "active", "detected_at": "2026-09-21T00:00:00Z", "last_observed_at": "2026-09-21T00:00:00Z", "resolved_at": "2026-09-21T00:00:00Z", "resolution_note": "string", "exempt_until": "2026-09-21T00:00:00Z", "breakdown": [ { "signal": "string", "count": 0, "points": 0, "first_observed_at": "2026-09-21T00:00:00Z", "last_observed_at": "2026-09-21T00:00:00Z" } ], "events": [ { "signal": "string", "observed_at": "2026-09-21T00:00:00Z", "new_devices": 0, "threshold": 0, "window_days": 1, "related_license_ids": [ "related_license_ids_aaaaaaaaaaaaaaaaaaaa" ], "same_license_other_user": true } ] }
AnomalyClosedResponse 1項目

Schema

object

Example Value

{
  "data": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "status": "open",
    "scope": "device",
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "score": 0,
    "threshold": 1,
    "confirmations": 1,
    "signals": [
      "string"
    ],
    "action": "notify",
    "license_suspended_by_anomaly": true,
    "license_status": "active",
    "detected_at": "2026-09-21T00:00:00Z",
    "last_observed_at": "2026-09-21T00:00:00Z",
    "resolved_at": "2026-09-21T00:00:00Z",
    "resolution_note": "string",
    "exempt_until": "2026-09-21T00:00:00Z",
    "license_resumed": true
  }
}
項目必須型・説明Example Value
data 必須 { "id": "id_aaaaaaaaaaaaaaaaaaaa", "status": "open", "scope": "device", "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "product_id": "prod_0123456789abcdef0123", "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa", "score": 0, "threshold": 1, "confirmations": 1, "signals": [ "string" ], "action": "notify", "license_suspended_by_anomaly": true, "license_status": "active", "detected_at": "2026-09-21T00:00:00Z", "last_observed_at": "2026-09-21T00:00:00Z", "resolved_at": "2026-09-21T00:00:00Z", "resolution_note": "string", "exempt_until": "2026-09-21T00:00:00Z", "license_resumed": true }
AnomalyBreakdownEntry 5項目

1つの信号が点数に足す分です。

Schema

object

Example Value

{
  "signal": "string",
  "count": 0,
  "points": 0,
  "first_observed_at": "2026-09-21T00:00:00Z",
  "last_observed_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
signal 必須
string
"string"
count 必須
integer 最小値: 0

数える期間のうちに、その信号を見つけた回数です。

0
points 必須
integer 最小値: 0

減衰と回数の上限を反映したあとに、その信号が点数に足す点数です。

0
first_observed_at 必須
string | null date-time
"2026-09-21T00:00:00Z"
last_observed_at 必須
string | null date-time
"2026-09-21T00:00:00Z"
AnomalyEvent 7項目

疑いについて見つけた、端末をまたぐ信号1件です。

Schema

object

Example Value

{
  "signal": "string",
  "observed_at": "2026-09-21T00:00:00Z",
  "new_devices": 0,
  "threshold": 0,
  "window_days": 1,
  "related_license_ids": [
    "related_license_ids_aaaaaaaaaaaaaaaaaaaa"
  ],
  "same_license_other_user": true
}
項目必須型・説明Example Value
signal 必須
string

parallel_network_use(同じ端末認証の確認が、離れた接続元から15分以内に交互に来た)、shared_hardware(同じ機器が同じ製品の別のライセンスにあるか、このライセンスの別の利用者が使っている)、device_churn(ライセンスの端末が入れ替わり続けている)のどれかです。

"string"
observed_at 必須
string date-time
"2026-09-21T00:00:00Z"
new_devices 任意
integer 最小値: 0

device_churn のときだけ返します。window_days 日のうちに、ライセンスに新しく入った端末の数です。

0
threshold 任意
integer 最小値: 0

device_churn のときだけ返します。新しい端末が多いと判断する台数で、ライセンスで同時に使える台数の2倍(最低3台)です。

0
window_days 任意
integer 最小値: 1

device_churn のときだけ返します。

1
related_license_ids 任意
array<PublicId>

shared_hardware のときだけ返します。同じ機器が見つかった、同じ製品のライセンスです。

[ "related_license_ids_aaaaaaaaaaaaaaaaaaaa" ]
same_license_other_user 任意
boolean

shared_hardware のときだけ返します。ユーザー単位のこのライセンスの別の利用者が同じ機器を使っていれば true です。

true
Anomaly 18項目

端末の複製やライセンスキーの共有の疑いです。持つのは信号の名前・点数・時刻だけで、IPアドレス・接続元・機器の識別子は持ちません。

Schema

object

Example Value

{
  "id": "id_aaaaaaaaaaaaaaaaaaaa",
  "status": "open",
  "scope": "device",
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
  "product_id": "prod_0123456789abcdef0123",
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "score": 0,
  "threshold": 1,
  "confirmations": 1,
  "signals": [
    "string"
  ],
  "action": "notify",
  "license_suspended_by_anomaly": true,
  "license_status": "active",
  "detected_at": "2026-09-21T00:00:00Z",
  "last_observed_at": "2026-09-21T00:00:00Z",
  "resolved_at": "2026-09-21T00:00:00Z",
  "resolution_note": "string",
  "exempt_until": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
id 必須 "id_aaaaaaaaaaaaaaaaaaaa"
status 必須
string

許容値: open, dismissed, resolved

open はまだ確かめていない疑い、dismissed は問題なしとして解除した疑い、resolved は対応済みにした疑いです。

"open"
scope 必須
string

許容値: device, license

device は1つの端末認証についての疑いです。license はライセンス全体についての疑い(新しい端末の入れ替わりが多い)で、activation_id はありません。

"device"
license_id 必須 "license_id_aaaaaaaaaaaaaaaaaaaa"
product_id 必須 "prod_0123456789abcdef0123"
activation_id 必須
PublicId | null
"activation_id_aaaaaaaaaaaaaaaaaaaa"
score 必須
integer 最小値: 0

最後の確認のときの異常の点数です。

0
threshold 必須
integer 最小値: 1 最大値: 1000
1
confirmations 必須
integer 最小値: 1

疑いが開いている間に、点数がしきい値に届いた確認の回数です。

1
signals 必須
array<string>

点数の元になった信号の名前を、点数の大きい順に並べます。

[ "string" ]
action 必須
string

許容値: notify, suspend_license

疑いを開いたときに、利用ルールの異常の疑いの設定で選んでいた処理です。notify は記録と通知だけです。suspend_license は、確認の回数が設定の minimum_confirmations に届いたらライセンスを一時停止します。

"notify"
license_suspended_by_anomaly 必須
boolean

この疑いが自動でライセンスを一時停止したときは true です。

true
license_status 必須
string

ライセンスの今の状態(active・suspended・revoked・expired)です。

"active"
detected_at 必須
string date-time
"2026-09-21T00:00:00Z"
last_observed_at 必須
string date-time
"2026-09-21T00:00:00Z"
resolved_at 必須
string | null date-time
"2026-09-21T00:00:00Z"
resolution_note 必須
string | null 最大文字数: 500

疑いを閉じたときの理由です。

"string"
exempt_until 必須
string | null date-time

問題なしとして解除したあと、この時刻までは同じ端末やライセンスを自動では一時停止しません。

"2026-09-21T00:00:00Z"
AnomalyDetail 20項目

点数の内訳と、記録した端末をまたぐ信号つきの異常の疑いです。

Schema

object

Example Value

{
  "id": "id_aaaaaaaaaaaaaaaaaaaa",
  "status": "open",
  "scope": "device",
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
  "product_id": "prod_0123456789abcdef0123",
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "score": 0,
  "threshold": 1,
  "confirmations": 1,
  "signals": [
    "string"
  ],
  "action": "notify",
  "license_suspended_by_anomaly": true,
  "license_status": "active",
  "detected_at": "2026-09-21T00:00:00Z",
  "last_observed_at": "2026-09-21T00:00:00Z",
  "resolved_at": "2026-09-21T00:00:00Z",
  "resolution_note": "string",
  "exempt_until": "2026-09-21T00:00:00Z",
  "breakdown": [
    {
      "signal": "string",
      "count": 0,
      "points": 0,
      "first_observed_at": "2026-09-21T00:00:00Z",
      "last_observed_at": "2026-09-21T00:00:00Z"
    }
  ],
  "events": [
    {
      "signal": "string",
      "observed_at": "2026-09-21T00:00:00Z",
      "new_devices": 0,
      "threshold": 0,
      "window_days": 1,
      "related_license_ids": [
        "related_license_ids_aaaaaaaaaaaaaaaaaaaa"
      ],
      "same_license_other_user": true
    }
  ]
}
項目必須型・説明Example Value
id 必須 "id_aaaaaaaaaaaaaaaaaaaa"
status 必須
string

許容値: open, dismissed, resolved

open はまだ確かめていない疑い、dismissed は問題なしとして解除した疑い、resolved は対応済みにした疑いです。

"open"
scope 必須
string

許容値: device, license

device は1つの端末認証についての疑いです。license はライセンス全体についての疑い(新しい端末の入れ替わりが多い)で、activation_id はありません。

"device"
license_id 必須 "license_id_aaaaaaaaaaaaaaaaaaaa"
product_id 必須 "prod_0123456789abcdef0123"
activation_id 必須
PublicId | null
"activation_id_aaaaaaaaaaaaaaaaaaaa"
score 必須
integer 最小値: 0

最後の確認のときの異常の点数です。

0
threshold 必須
integer 最小値: 1 最大値: 1000
1
confirmations 必須
integer 最小値: 1

疑いが開いている間に、点数がしきい値に届いた確認の回数です。

1
signals 必須
array<string>

点数の元になった信号の名前を、点数の大きい順に並べます。

[ "string" ]
action 必須
string

許容値: notify, suspend_license

疑いを開いたときに、利用ルールの異常の疑いの設定で選んでいた処理です。notify は記録と通知だけです。suspend_license は、確認の回数が設定の minimum_confirmations に届いたらライセンスを一時停止します。

"notify"
license_suspended_by_anomaly 必須
boolean

この疑いが自動でライセンスを一時停止したときは true です。

true
license_status 必須
string

ライセンスの今の状態(active・suspended・revoked・expired)です。

"active"
detected_at 必須
string date-time
"2026-09-21T00:00:00Z"
last_observed_at 必須
string date-time
"2026-09-21T00:00:00Z"
resolved_at 必須
string | null date-time
"2026-09-21T00:00:00Z"
resolution_note 必須
string | null 最大文字数: 500

疑いを閉じたときの理由です。

"string"
exempt_until 必須
string | null date-time

問題なしとして解除したあと、この時刻までは同じ端末やライセンスを自動では一時停止しません。

"2026-09-21T00:00:00Z"
breakdown 必須
array<AnomalyBreakdownEntry>

点数の元になった信号を、点数の大きい順に並べます。

[ { "signal": "string", "count": 0, "points": 0, "first_observed_at": "2026-09-21T00:00:00Z", "last_observed_at": "2026-09-21T00:00:00Z" } ]
events 必須
array<AnomalyEvent> 最大要素数: 30

疑いについて記録した端末をまたぐ信号を、新しい順に並べます。1台の端末の信号(vm_detected など)は breakdown にだけあります。

[ { "signal": "string", "observed_at": "2026-09-21T00:00:00Z", "new_devices": 0, "threshold": 0, "window_days": 1, "related_license_ids": [ "related_license_ids_aaaaaaaaaaaaaaaaaaaa" ], "same_license_other_user": true } ]
AnomalyClosed 19項目

閉じたばかりの異常の疑いです。

Schema

object

Example Value

{
  "id": "id_aaaaaaaaaaaaaaaaaaaa",
  "status": "open",
  "scope": "device",
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
  "product_id": "prod_0123456789abcdef0123",
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "score": 0,
  "threshold": 1,
  "confirmations": 1,
  "signals": [
    "string"
  ],
  "action": "notify",
  "license_suspended_by_anomaly": true,
  "license_status": "active",
  "detected_at": "2026-09-21T00:00:00Z",
  "last_observed_at": "2026-09-21T00:00:00Z",
  "resolved_at": "2026-09-21T00:00:00Z",
  "resolution_note": "string",
  "exempt_until": "2026-09-21T00:00:00Z",
  "license_resumed": true
}
項目必須型・説明Example Value
id 必須 "id_aaaaaaaaaaaaaaaaaaaa"
status 必須
string

許容値: open, dismissed, resolved

open はまだ確かめていない疑い、dismissed は問題なしとして解除した疑い、resolved は対応済みにした疑いです。

"open"
scope 必須
string

許容値: device, license

device は1つの端末認証についての疑いです。license はライセンス全体についての疑い(新しい端末の入れ替わりが多い)で、activation_id はありません。

"device"
license_id 必須 "license_id_aaaaaaaaaaaaaaaaaaaa"
product_id 必須 "prod_0123456789abcdef0123"
activation_id 必須
PublicId | null
"activation_id_aaaaaaaaaaaaaaaaaaaa"
score 必須
integer 最小値: 0

最後の確認のときの異常の点数です。

0
threshold 必須
integer 最小値: 1 最大値: 1000
1
confirmations 必須
integer 最小値: 1

疑いが開いている間に、点数がしきい値に届いた確認の回数です。

1
signals 必須
array<string>

点数の元になった信号の名前を、点数の大きい順に並べます。

[ "string" ]
action 必須
string

許容値: notify, suspend_license

疑いを開いたときに、利用ルールの異常の疑いの設定で選んでいた処理です。notify は記録と通知だけです。suspend_license は、確認の回数が設定の minimum_confirmations に届いたらライセンスを一時停止します。

"notify"
license_suspended_by_anomaly 必須
boolean

この疑いが自動でライセンスを一時停止したときは true です。

true
license_status 必須
string

ライセンスの今の状態(active・suspended・revoked・expired)です。

"active"
detected_at 必須
string date-time
"2026-09-21T00:00:00Z"
last_observed_at 必須
string date-time
"2026-09-21T00:00:00Z"
resolved_at 必須
string | null date-time
"2026-09-21T00:00:00Z"
resolution_note 必須
string | null 最大文字数: 500

疑いを閉じたときの理由です。

"string"
exempt_until 必須
string | null date-time

問題なしとして解除したあと、この時刻までは同じ端末やライセンスを自動では一時停止しません。

"2026-09-21T00:00:00Z"
license_resumed 必須
boolean

疑いを閉じたことで、その疑いが一時停止していたライセンスを再開したときは true です。

true
PolicyAnomalyRuleResponse 1項目

Schema

object

Example Value

{
  "data": {
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "anomaly_action": "notify",
    "threshold": 1,
    "minimum_confirmations": 1,
    "decay_hours": 1,
    "weights": {
      "property": 0
    },
    "policy_versions": 1
  }
}
項目必須型・説明Example Value
data 必須 { "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "anomaly_action": "notify", "threshold": 1, "minimum_confirmations": 1, "decay_hours": 1, "weights": { "property": 0 }, "policy_versions": 1 }
PolicyAnomalyRule 7項目

端末の複製やライセンスキーの共有の疑いについての利用ルールの設定です。同じ利用ルールのすべての版で共通です。

Schema

object

Example Value

{
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "anomaly_action": "notify",
  "threshold": 1,
  "minimum_confirmations": 1,
  "decay_hours": 1,
  "weights": {
    "property": 0
  },
  "policy_versions": 1
}
項目必須型・説明Example Value
policy_id 必須 "policy_id_aaaaaaaaaaaaaaaaaaaa"
anomaly_action 必須
string

許容値: notify, suspend_license, off

notify は疑いを記録し、監査ログと Webhook の activation.anomaly_detected で知らせるだけで、何も止めません(既定)。suspend_license は、確認の回数が minimum_confirmations に届くとライセンスも一時停止します。off は疑いを調べません。

"notify"
threshold 必須
integer 最小値: 1 最大値: 1000

疑いを開く点数です。既定は100です。

1
minimum_confirmations 必須
integer 最小値: 1 最大値: 10

suspend_license がライセンスを一時停止する前に、点数がしきい値に届いた確認が要る回数です。既定は2です。

1
decay_hours 必須
integer 最小値: 1 最大値: 2160

見つけた信号の点数が半分になるまでの時間(時間単位)です。既定は168(7日)です。

1
weights 必須
object

信号ごとの重みです(0〜1000。0 の信号は数えません)。信号は今後増えることがあります。

{ "property": 0 }
policy_versions 必須
integer 最小値: 1

この設定を共有する、同じ利用ルール(製品と名前が同じ)の版の数です。

1
StripeIntegrationStatus 7項目

Schema

object

Example Value

{
  "registered": true,
  "mode": "test",
  "status": "active",
  "secure_claims_required": true,
  "license_claim_url": "https://example.com/resource",
  "last_event": {
    "type": "string",
    "result": "string",
    "at": "2026-09-21T00:00:00Z"
  },
  "offerings": [
    {
      "payment_grace_days": 1,
      "license_email_enabled": true,
      "id": "id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "stripe_price_id": "01K5QWERTY1234567890ABCDEFG",
      "product_id": "prod_0123456789abcdef0123",
      "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "license_duration_days": 1
    }
  ]
}
項目必須型・説明Example Value
registered 必須
boolean
true
mode 任意
value

許容値: test, live

"test"
status 任意
value

許容値: active, disabled

"active"
secure_claims_required 任意
boolean
true
license_claim_url 任意
string | null uri
"https://example.com/resource"
last_event 任意
object | null
{ "type": "string", "result": "string", "at": "2026-09-21T00:00:00Z" }
offerings 必須
array<object>
[ { "payment_grace_days": 1, "license_email_enabled": true, "id": "id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "stripe_price_id": "01K5QWERTY1234567890ABCDEFG", "product_id": "prod_0123456789abcdef0123", "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "license_duration_days": 1 } ]
StripeIntegrationResponse 1項目

Schema

object

Example Value

{
  "data": {
    "registered": true,
    "mode": "test",
    "status": "active",
    "secure_claims_required": true,
    "license_claim_url": "https://example.com/resource",
    "last_event": {
      "type": "string",
      "result": "string",
      "at": "2026-09-21T00:00:00Z"
    },
    "offerings": [
      {
        "payment_grace_days": 1,
        "license_email_enabled": true,
        "id": "id_aaaaaaaaaaaaaaaaaaaa",
        "name": "Example name",
        "stripe_price_id": "01K5QWERTY1234567890ABCDEFG",
        "product_id": "prod_0123456789abcdef0123",
        "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
        "status": "active",
        "license_duration_days": 1
      }
    ]
  }
}
項目必須型・説明Example Value
data 必須 { "registered": true, "mode": "test", "status": "active", "secure_claims_required": true, "license_claim_url": "https://example.com/resource", "last_event": { "type": "string", "result": "string", "at": "2026-09-21T00:00:00Z" }, "offerings": [ { "payment_grace_days": 1, "license_email_enabled": true, "id": "id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "stripe_price_id": "01K5QWERTY1234567890ABCDEFG", "product_id": "prod_0123456789abcdef0123", "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "license_duration_days": 1 } ] }
StripeOffering 11項目

Schema

object

Example Value

{
  "payment_grace_days": 0,
  "license_email_enabled": true,
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "name": "Example name",
  "stripe_price_id": "01K5QWERTY1234567890ABCDEFG",
  "product_id": "prod_0123456789abcdef0123",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "license_duration_days": 1,
  "status": "active",
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
payment_grace_days 任意
integer 最小値: 0 最大値: 90

購読の更新の支払いに失敗してから、ライセンスを止めずに案内だけを送る日数です。0にすると、失敗したらすぐ止めます。購読にだけ使えます。

0
license_email_enabled 任意
boolean

trueにすると、支払いのあとに購入者へライセンスキーをメールで送ります。Stripeの支払いリンクのように受け取りの確認が無い購入も発行できます。テスト環境では、組織のメンバーと販売店の担当者にだけ送ります。

true
public_id 必須 "public_id_aaaaaaaaaaaaaaaaaaaa"
name 必須
string
"Example name"
stripe_price_id 必須
string

購入でライセンスを発行する、StripeのPrice ID(price_…)です。

"01K5QWERTY1234567890ABCDEFG"
product_id 必須 "prod_0123456789abcdef0123"
policy_id 必須 "policy_id_aaaaaaaaaaaaaaaaaaaa"
license_duration_days 必須
integer | null

購入日からライセンスを使える日数です。買い切りの利用ルールと、期限をStripeの購読の契約期間に合わせる期間制の利用ルールではnullです。

1
status 必須
value

許容値: active, archived

"active"
created_at 任意
string date-time
"2026-09-21T00:00:00Z"
updated_at 任意
string date-time
"2026-09-21T00:00:00Z"
StripeOfferingResponse 1項目

Schema

object

Example Value

{
  "data": {
    "payment_grace_days": 0,
    "license_email_enabled": true,
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "stripe_price_id": "01K5QWERTY1234567890ABCDEFG",
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "license_duration_days": 1,
    "status": "active",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
項目必須型・説明Example Value
data 必須 { "payment_grace_days": 0, "license_email_enabled": true, "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "stripe_price_id": "01K5QWERTY1234567890ABCDEFG", "product_id": "prod_0123456789abcdef0123", "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "license_duration_days": 1, "status": "active", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
StripeOfferingListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "payment_grace_days": 0,
      "license_email_enabled": true,
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "stripe_price_id": "01K5QWERTY1234567890ABCDEFG",
      "product_id": "prod_0123456789abcdef0123",
      "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
      "license_duration_days": 1,
      "status": "active",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<StripeOffering>
[ { "payment_grace_days": 0, "license_email_enabled": true, "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "stripe_price_id": "01K5QWERTY1234567890ABCDEFG", "product_id": "prod_0123456789abcdef0123", "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "license_duration_days": 1, "status": "active", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
StripeOfferingInput 7項目

Schema

object

Example Value

{
  "payment_grace_days": 0,
  "license_email_enabled": true,
  "name": "Example name",
  "stripe_price_id": "price_1AbCdEfGhIjKlMnO",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "license_duration_days": 1,
  "subscription_price_confirmed": true
}
項目必須型・説明Example Value
payment_grace_days 任意
integer 最小値: 0 最大値: 90

購読の更新の支払いに失敗してから、ライセンスを止めずに案内だけを送る日数です。0にすると、失敗したらすぐ止めます。購読にだけ使えます。

0
license_email_enabled 任意
boolean

trueにすると、支払いのあとに購入者へライセンスキーをメールで送ります。Stripeの支払いリンクのように受け取りの確認が無い購入も発行できます。テスト環境では、組織のメンバーと販売店の担当者にだけ送ります。

true
name 必須
string 最小文字数: 1 最大文字数: 120
"Example name"
stripe_price_id 必須
string 最小文字数: 1 最大文字数: 255 形式: ^price_[A-Za-z0-9]+$
"price_1AbCdEfGhIjKlMnO"
policy_id 必須 "policy_id_aaaaaaaaaaaaaaaaaaaa"
license_duration_days 任意
integer | null 最小値: 1 最大値: 3650

購入日からライセンスを使える日数です。買い切りの利用ルールと、期限をStripeの購読の契約期間に合わせる期間制の利用ルールでは省きます。トライアルの利用ルールでは必須です。

1
subscription_price_confirmed 任意
boolean

期間制でlicense_duration_daysの無い有効な対応では、trueが必要です。StripeのPriceが定期支払い(サブスクリプション)であることを確かめてから、trueを送ってください。一回払いのPriceでは、支払いが済んでもライセンスを発行しません。省くと未確認として扱います。

true
StripeOfferingUpdateInput 8項目

Schema

object

Example Value

{
  "payment_grace_days": 0,
  "license_email_enabled": true,
  "name": "Example name",
  "stripe_price_id": "price_1AbCdEfGhIjKlMnO",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "license_duration_days": 1,
  "status": "active",
  "subscription_price_confirmed": true
}
項目必須型・説明Example Value
payment_grace_days 任意
integer 最小値: 0 最大値: 90

購読の更新の支払いに失敗してから、ライセンスを止めずに案内だけを送る日数です。0にすると、失敗したらすぐ止めます。購読にだけ使えます。

0
license_email_enabled 任意
boolean

trueにすると、支払いのあとに購入者へライセンスキーをメールで送ります。Stripeの支払いリンクのように受け取りの確認が無い購入も発行できます。テスト環境では、組織のメンバーと販売店の担当者にだけ送ります。

true
name 任意
string 最小文字数: 1 最大文字数: 120
"Example name"
stripe_price_id 任意
string 最小文字数: 1 最大文字数: 255 形式: ^price_[A-Za-z0-9]+$
"price_1AbCdEfGhIjKlMnO"
policy_id 任意 "policy_id_aaaaaaaaaaaaaaaaaaaa"
license_duration_days 任意
integer | null 最小値: 1 最大値: 3650
1
status 任意
value

許容値: active, archived

"active"
subscription_price_confirmed 任意
boolean

保存する対応が、期間制でlicense_duration_daysの無い有効な対応なら、名前だけの変更でもtrueが必要です(管理画面と同じ)。StripeのPriceが定期支払いであることを確かめてから、trueを送ってください。

true
StripeIntegrationEvent 7項目

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "stripe_event_id": "01K5QWERTY1234567890ABCDEFG",
  "event_type": "string",
  "result": "string",
  "detail": "string",
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
  "processed_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
public_id 必須 "public_id_aaaaaaaaaaaaaaaaaaaa"
stripe_event_id 必須
string

StripeのEvent ID(evt_…)です。Stripeのダッシュボードで同じ通知を探して、再送できます。

"01K5QWERTY1234567890ABCDEFG"
event_type 必須
string

Stripeでの通知の種類です(例: checkout.session.completed)。

"string"
result 必須
string

applied・ignored・failed・pendingのどれかです。

"string"
detail 必須
string | null
"string"
license_id 必須
PublicId | null

通知でライセンスを変えなかったときはnullです。

"license_id_aaaaaaaaaaaaaaaaaaaa"
processed_at 必須
string date-time
"2026-09-21T00:00:00Z"
StripeIntegrationEventListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "stripe_event_id": "01K5QWERTY1234567890ABCDEFG",
      "event_type": "string",
      "result": "string",
      "detail": "string",
      "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
      "processed_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<StripeIntegrationEvent>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "stripe_event_id": "01K5QWERTY1234567890ABCDEFG", "event_type": "string", "result": "string", "detail": "string", "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "processed_at": "2026-09-21T00:00:00Z" } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
WorkspaceDataExport 11項目

オーナーが管理画面で依頼した、契約組織全体の ZIP です。ファイルは管理画面でだけダウンロードできます。

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "file_format": "string",
  "requested_at": "2026-09-21T00:00:00Z",
  "started_at": "2026-09-21T00:00:00Z",
  "completed_at": "2026-09-21T00:00:00Z",
  "failed_at": "2026-09-21T00:00:00Z",
  "expires_at": "2026-09-21T00:00:00Z",
  "byte_size": 1,
  "record_counts": {
    "property": 1
  },
  "downloadable": true
}
項目必須型・説明Example Value
public_id 必須 "public_id_aaaaaaaaaaaaaaaaaaaa"
status 必須
string

pending(受付済み)、processing(作成中)、ready(expires_at まで管理画面でダウンロードできる)、failed(管理画面でもう一度依頼してください)、expired(ZIP を削除した)のどれかです。

"active"
file_format 必須
string

csv か jsonl(JSON Lines)です。

"string"
requested_at 必須
string date-time
"2026-09-21T00:00:00Z"
started_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
completed_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
failed_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
expires_at 任意
string | null date-time

ZIP を削除する日時です。それまでは、オーナーが管理画面でダウンロードできます。

"2026-09-21T00:00:00Z"
byte_size 任意
integer | null
1
record_counts 任意
object

ZIP に入れたデータセットごとの行数です(customers・licenses など)。

{ "property": 1 }
downloadable 必須
boolean

オーナーが管理画面で ZIP をダウンロードできる間は true です。

true
WorkspaceDataExportListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "file_format": "string",
      "requested_at": "2026-09-21T00:00:00Z",
      "started_at": "2026-09-21T00:00:00Z",
      "completed_at": "2026-09-21T00:00:00Z",
      "failed_at": "2026-09-21T00:00:00Z",
      "expires_at": "2026-09-21T00:00:00Z",
      "byte_size": 1,
      "record_counts": {
        "property": 1
      },
      "downloadable": true
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<WorkspaceDataExport>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "file_format": "string", "requested_at": "2026-09-21T00:00:00Z", "started_at": "2026-09-21T00:00:00Z", "completed_at": "2026-09-21T00:00:00Z", "failed_at": "2026-09-21T00:00:00Z", "expires_at": "2026-09-21T00:00:00Z", "byte_size": 1, "record_counts": { "property": 1 }, "downloadable": true } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
WorkspaceErasureRequest 10項目

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "origin": "string",
  "requested_at": "2026-09-21T00:00:00Z",
  "scheduled_for": "2026-09-21T00:00:00Z",
  "reminder_sent_at": "2026-09-21T00:00:00Z",
  "blocked_at": "2026-09-21T00:00:00Z",
  "blocked_reason": "string",
  "started_at": "2026-09-21T00:00:00Z",
  "cancelable": true
}
項目必須型・説明Example Value
public_id 必須 "public_id_aaaaaaaaaaaaaaaaaaaa"
status 必須
string

scheduled(scheduled_for を待っています。オーナーが管理画面で取り消せます)、blocked(scheduled_for を過ぎましたが、blocked_reason のため始められません。解消すると始まります)、processing(削除しています。取り消せません)のどれかです。

"active"
origin 必須
string

owner_request(オーナーが依頼した)か closed_tenant_retention(閉鎖した契約組織の保持期間が過ぎた)です。

"string"
requested_at 必須
string date-time
"2026-09-21T00:00:00Z"
scheduled_for 必須
string date-time

削除を始める、最も早い日時です。

"2026-09-21T00:00:00Z"
reminder_sent_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
blocked_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
blocked_reason 任意
string | null

依頼が blocked の間、billing_open・checkout_open・tenant_suspended のどれかが入ります。

"string"
started_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
cancelable 必須
boolean

オーナーが管理画面で取り消せる間は true です。

true
WorkspaceErasureStatus 4項目

Schema

object

Example Value

{
  "request": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "origin": "string",
    "requested_at": "2026-09-21T00:00:00Z",
    "scheduled_for": "2026-09-21T00:00:00Z",
    "cancelable": true
  },
  "blocker": "string",
  "paid_until": "2026-09-21T00:00:00Z",
  "grace_period_days": 1
}
項目必須型・説明Example Value
request 必須
WorkspaceErasureRequest | null

取り消し・完了していない依頼です。無ければ null です。

{ "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "origin": "string", "requested_at": "2026-09-21T00:00:00Z", "scheduled_for": "2026-09-21T00:00:00Z", "cancelable": true }
blocker 必須
string | null

新しい依頼を断る理由、または予定日を過ぎた依頼を始められない理由です(billing_open・checkout_open・tenant_suspended)。妨げるものが無ければ null です。

"string"
paid_until 必須
string | null date-time

期間の終わりで解約する予約をした有料プランの、期間の末日です。契約組織を削除すると、その時点で使えなくなります。残りの期間の料金は返金しません。

"2026-09-21T00:00:00Z"
grace_period_days 必須
integer

依頼から削除を始めるまでの日数です。

1
WorkspaceErasureStatusResponse 1項目

Schema

object

Example Value

{
  "data": {
    "request": {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "origin": "string",
      "requested_at": "2026-09-21T00:00:00Z",
      "scheduled_for": "2026-09-21T00:00:00Z",
      "cancelable": true
    },
    "blocker": "string",
    "paid_until": "2026-09-21T00:00:00Z",
    "grace_period_days": 1
  }
}
項目必須型・説明Example Value
data 必須 { "request": { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "origin": "string", "requested_at": "2026-09-21T00:00:00Z", "scheduled_for": "2026-09-21T00:00:00Z", "cancelable": true }, "blocker": "string", "paid_until": "2026-09-21T00:00:00Z", "grace_period_days": 1 }
SalesReceiverRequest 8項目

Schema

object

Example Value

{
  "action": "issue",
  "purchase_id": "01K5QWERTY1234567890ABCDEFG",
  "item": "string",
  "customer": {
    "id": "cus_0123456789abcdef01234567",
    "reference": "string",
    "email": "developer@example.com",
    "name": "Example name"
  },
  "expires_at": "2026-09-21T00:00:00Z",
  "occurred_at": "2026-09-21T00:00:00Z",
  "reason": "string",
  "claim_challenge": "usk_claim_v1_2kRE5qRU2tR-tBGlDwMEw2avJ7QM4ikPYD_PJ3bd9Og"
}
項目必須型・説明Example Value
action 必須
value

許容値: issue, change, renew, suspend, resume, revoke

issueは購入ごとに1つライセンスを発行し、changeはそのライセンスを別の商品の対応の利用ルールへ切り替え(ライセンスキーはそのまま。同じ製品の期間制の利用ルールに対応づけた商品でないと失敗になり、ライセンスは変わりません)、renewは期限を延ばし、suspendとrevokeは止め、resumeはこの連携が止めたライセンスを再開します。

"issue"
purchase_id 必須
string 最小文字数: 1 最大文字数: 200

自社の購入のIDです。同じ購入のあとの出来事にも同じ値を使います。

"01K5QWERTY1234567890ABCDEFG"
item 任意
string 最小文字数: 1 最大文字数: 255

issueとchangeでは必須です。商品とライセンスの対応のexternal_item_idです。

"string"
customer 任意
object
{ "id": "cus_0123456789abcdef01234567", "reference": "string", "email": "developer@example.com", "name": "Example name" }
expires_at 任意
string | null date-time

期間制の利用ルールの期限です。省略すると、issueは商品とライセンスの対応のlicense_duration_daysを使い、changeは今の期限のままにします。

"2026-09-21T00:00:00Z"
occurred_at 任意
string date-time

出来事が起きた日時です。その購入に最後に反映した出来事より古い出来事は反映しません。省略すると署名の時刻を使います。

"2026-09-21T00:00:00Z"
reason 任意
string 最大文字数: 200

操作履歴に残ります。

"string"
claim_challenge 任意
string 形式: ^usk_claim_v1_[A-Za-z0-9_-]{43}$

ライセンスキーの安全な受け取りのために、購入者のアプリが購入の前に作った確認値です。

"usk_claim_v1_2kRE5qRU2tR-tBGlDwMEw2avJ7QM4ikPYD_PJ3bd9Og"
SalesReceiverResultResponse 4項目

Schema

object

Example Value

{
  "result": "string",
  "detail": "string",
  "detail_codes": [
    "string"
  ],
  "license": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "expires_at": "2026-09-21T00:00:00Z",
    "license_key": "string"
  }
}
項目必須型・説明Example Value
result 必須
string

applied(反映)・ignored(変更なし)・failed(失敗)・deferred(保留)のどれかです。

"string"
detail 必須
string

理由(日本語)です。

"string"
detail_codes 必須
array<string>
[ "string" ]
license 任意
object
{ "id": "id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "expires_at": "2026-09-21T00:00:00Z", "license_key": "string" }
SalesReceiverErrorResponse 1項目

Schema

object

Example Value

{
  "error": {
    "code": "string",
    "message": "string"
  }
}
項目必須型・説明Example Value
error 必須
object
{ "code": "string", "message": "string" }
SalesIntegration 13項目

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "provider": "string",
  "mode": "test",
  "status": "active",
  "display_name": "Example name",
  "signing_secret_configured": true,
  "accepting_notifications": true,
  "webhook_url": "https://example.com/resource",
  "license_claim_url": "https://example.com/resource",
  "events_to_subscribe": [
    "string"
  ],
  "last_event": {
    "type": "string",
    "result": "string",
    "at": "2026-09-21T00:00:00Z"
  },
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
public_id 必須 "public_id_aaaaaaaaaaaaaaaaaaaa"
provider 必須
string

generic・shopify・square・komoju・paddle・lemon_squeezyのどれかです。

"string"
mode 必須
value

許容値: test, live

"test"
status 必須
value

許容値: active, disabled

"active"
display_name 必須
string
"Example name"
signing_secret_configured 必須
boolean

署名の鍵が入っているか。鍵そのものは返しません。

true
accepting_notifications 必須
boolean

連携が有効で、署名の鍵が入っているときにtrueです。

true
webhook_url 必須
string uri

販売サービスに登録するURLです(汎用の受け口では要求の送り先のURL)。

"https://example.com/resource"
license_claim_url 必須
string | null uri

購入者のアプリがライセンスキーを受け取るときに呼ぶURLです。購入と一緒に確認値を渡せないサービスではnullです。

"https://example.com/resource"
events_to_subscribe 必須
array<string>

販売サービスの画面で選ぶ通知の名前です。汎用の受け口では空です。

[ "string" ]
last_event 必須
object | null
{ "type": "string", "result": "string", "at": "2026-09-21T00:00:00Z" }
created_at 任意
string date-time
"2026-09-21T00:00:00Z"
updated_at 任意
string date-time
"2026-09-21T00:00:00Z"
SalesIntegrationResponse 1項目

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "provider": "string",
    "mode": "test",
    "status": "active",
    "display_name": "Example name",
    "signing_secret_configured": true,
    "accepting_notifications": true,
    "webhook_url": "https://example.com/resource",
    "license_claim_url": "https://example.com/resource",
    "events_to_subscribe": [
      "string"
    ],
    "last_event": {
      "type": "string",
      "result": "string",
      "at": "2026-09-21T00:00:00Z"
    },
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
項目必須型・説明Example Value
data 必須 { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "provider": "string", "mode": "test", "status": "active", "display_name": "Example name", "signing_secret_configured": true, "accepting_notifications": true, "webhook_url": "https://example.com/resource", "license_claim_url": "https://example.com/resource", "events_to_subscribe": [ "string" ], "last_event": { "type": "string", "result": "string", "at": "2026-09-21T00:00:00Z" }, "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
SalesIntegrationListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "provider": "string",
      "mode": "test",
      "status": "active",
      "display_name": "Example name",
      "signing_secret_configured": true,
      "accepting_notifications": true,
      "webhook_url": "https://example.com/resource",
      "license_claim_url": "https://example.com/resource",
      "events_to_subscribe": [
        "string"
      ],
      "last_event": {
        "type": "string",
        "result": "string",
        "at": "2026-09-21T00:00:00Z"
      },
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<SalesIntegration>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "provider": "string", "mode": "test", "status": "active", "display_name": "Example name", "signing_secret_configured": true, "accepting_notifications": true, "webhook_url": "https://example.com/resource", "license_claim_url": "https://example.com/resource", "events_to_subscribe": [ "string" ], "last_event": { "type": "string", "result": "string", "at": "2026-09-21T00:00:00Z" }, "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
SalesIntegrationSecretResponse 1項目

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "provider": "string",
    "mode": "test",
    "status": "active",
    "display_name": "Example name",
    "signing_secret_configured": true,
    "accepting_notifications": true,
    "webhook_url": "https://example.com/resource",
    "license_claim_url": "https://example.com/resource",
    "events_to_subscribe": [
      "string"
    ],
    "last_event": {}
  }
}
項目必須型・説明Example Value
data 必須
SalesIntegration + object
{ "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "provider": "string", "mode": "test", "status": "active", "display_name": "Example name", "signing_secret_configured": true, "accepting_notifications": true, "webhook_url": "https://example.com/resource", "license_claim_url": "https://example.com/resource", "events_to_subscribe": [ "string" ], "last_event": {} }
SalesIntegrationInput 4項目

Schema

object

Example Value

{
  "provider": "generic",
  "display_name": "Example name",
  "mode": "test",
  "signing_secret": "example-token"
}
項目必須型・説明Example Value
provider 必須
value

許容値: generic, shopify, square, komoju, paddle, lemon_squeezy

"generic"
display_name 必須
string 最小文字数: 1 最大文字数: 120
"Example name"
mode 任意
value

許容値: test, live

APIキーの環境と同じ値にしてください。省略するとAPIキーの環境になります。

"test"
signing_secret 任意
string 最大文字数: 255

販売サービスに表示される署名の鍵です。汎用の受け口ではUsakeyが鍵を作るため、受け付けません。

"example-token"
SalesIntegrationUpdateInput 3項目

Schema

object

Example Value

{
  "display_name": "Example name",
  "status": "active",
  "signing_secret": "example-token"
}
項目必須型・説明Example Value
display_name 任意
string 最小文字数: 1 最大文字数: 120
"Example name"
status 任意
value

許容値: active, disabled

"active"
signing_secret 任意
string 最小文字数: 1 最大文字数: 255

販売サービスの署名の鍵を入れる、または入れ替えます。汎用の受け口では受け付けません。

"example-token"
SalesOffering 10項目

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "sales_integration_id": "sales_integration_id_aaaaaaaaaaaaaaaaaaaa",
  "name": "Example name",
  "external_item_id": "01K5QWERTY1234567890ABCDEFG",
  "product_id": "prod_0123456789abcdef0123",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "license_duration_days": 1,
  "status": "active",
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
public_id 必須 "public_id_aaaaaaaaaaaaaaaaaaaa"
sales_integration_id 必須 "sales_integration_id_aaaaaaaaaaaaaaaaaaaa"
name 必須
string
"Example name"
external_item_id 必須
string

販売サービスの商品の識別子です(例: ShopifyのバリエーションID、Paddleの価格ID、汎用の受け口のitem)。

"01K5QWERTY1234567890ABCDEFG"
product_id 必須 "prod_0123456789abcdef0123"
policy_id 必須 "policy_id_aaaaaaaaaaaaaaaaaaaa"
license_duration_days 必須
integer | null
1
status 必須
value

許容値: active, archived

"active"
created_at 任意
string date-time
"2026-09-21T00:00:00Z"
updated_at 任意
string date-time
"2026-09-21T00:00:00Z"
SalesOfferingResponse 1項目

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "sales_integration_id": "sales_integration_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "external_item_id": "01K5QWERTY1234567890ABCDEFG",
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "license_duration_days": 1,
    "status": "active",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
項目必須型・説明Example Value
data 必須 { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "sales_integration_id": "sales_integration_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "external_item_id": "01K5QWERTY1234567890ABCDEFG", "product_id": "prod_0123456789abcdef0123", "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "license_duration_days": 1, "status": "active", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
SalesOfferingListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "sales_integration_id": "sales_integration_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "external_item_id": "01K5QWERTY1234567890ABCDEFG",
      "product_id": "prod_0123456789abcdef0123",
      "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
      "license_duration_days": 1,
      "status": "active",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<SalesOffering>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "sales_integration_id": "sales_integration_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "external_item_id": "01K5QWERTY1234567890ABCDEFG", "product_id": "prod_0123456789abcdef0123", "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "license_duration_days": 1, "status": "active", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
SalesOfferingInput 4項目

Schema

object

Example Value

{
  "name": "Example name",
  "external_item_id": "01K5QWERTY1234567890ABCDEFG",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "license_duration_days": 1
}
項目必須型・説明Example Value
name 必須
string 最小文字数: 1 最大文字数: 120
"Example name"
external_item_id 必須
string 最小文字数: 1 最大文字数: 255
"01K5QWERTY1234567890ABCDEFG"
policy_id 必須 "policy_id_aaaaaaaaaaaaaaaaaaaa"
license_duration_days 任意
integer | null 最小値: 1 最大値: 3650

購入日からライセンスを使える日数です。買い切りの利用ルールと、契約期間を通知するサービスの期間制の利用ルールでは省略します。

1
SalesOfferingUpdateInput 5項目

Schema

object

Example Value

{
  "name": "Example name",
  "external_item_id": "01K5QWERTY1234567890ABCDEFG",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "license_duration_days": 1,
  "status": "active"
}
項目必須型・説明Example Value
name 任意
string 最小文字数: 1 最大文字数: 120
"Example name"
external_item_id 任意
string 最小文字数: 1 最大文字数: 255
"01K5QWERTY1234567890ABCDEFG"
policy_id 任意 "policy_id_aaaaaaaaaaaaaaaaaaaa"
license_duration_days 任意
integer | null 最小値: 1 最大値: 3650
1
status 任意
value

許容値: active, archived

"active"
SalesIntegrationEvent 8項目

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "event_type": "string",
  "result": "string",
  "detail": "string",
  "detail_codes": [
    "string"
  ],
  "purchase_reference": "string",
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
  "processed_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
public_id 必須 "public_id_aaaaaaaaaaaaaaaaaaaa"
event_type 必須
string

販売サービスでの通知の種類(例: orders/paid)、または汎用の受け口のactionです。

"string"
result 必須
string

applied(反映)・ignored(変更なし)・failed(失敗)・deferred(保留)のどれかです。

"string"
detail 必須
string | null
"string"
detail_codes 必須
array<string>
[ "string" ]
purchase_reference 必須
string | null

通知の対象の購入です(例: order:1001、sub:sub_01h…)。

"string"
license_id 必須
PublicId | null

通知でライセンスを変えなかったときはnullです。

"license_id_aaaaaaaaaaaaaaaaaaaa"
processed_at 必須
string date-time
"2026-09-21T00:00:00Z"
SalesIntegrationEventListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "event_type": "string",
      "result": "string",
      "detail": "string",
      "detail_codes": [
        "string"
      ],
      "purchase_reference": "string",
      "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
      "processed_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<SalesIntegrationEvent>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "event_type": "string", "result": "string", "detail": "string", "detail_codes": [ "string" ], "purchase_reference": "string", "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "processed_at": "2026-09-21T00:00:00Z" } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
Policy 28項目

Schema

object

Example Value

{
  "default_license_metadata": {},
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "product_id": "prod_0123456789abcdef0123",
  "name": "Example name",
  "version": 1,
  "license_type": "perpetual",
  "validation_mode": "string",
  "perpetual_mode": "managed",
  "heartbeat_required": true,
  "revocation_guarantee_sec": 0,
  "fail_mode": "string",
  "identity_mode": "string",
  "license_unit_limit": 1,
  "max_machines": 1,
  "max_concurrent": 1,
  "concurrency_unit": "string",
  "cert_ttl_sec": 1,
  "heartbeat_sec": 1,
  "lease_ttl_sec": 1,
  "lease_heartbeat_sec": 1,
  "network_grace_sec": 1,
  "fingerprint_profile": {},
  "renewal_authority": "string",
  "billing_cycle": "string",
  "trial_days": 1,
  "entitlements": {},
  "status": "active",
  "created_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
default_license_metadata 任意
object

この利用ルールで、metadataを指定せずに発行するライセンスに入る署名付きの設定項目です(JSONオブジェクト、正規化して512バイトまで)。製品アプリはSDKで読めます。端末で読めるので、秘密の情報は入れないでください。

{}
public_id 任意 "public_id_aaaaaaaaaaaaaaaaaaaa"
product_id 任意 "prod_0123456789abcdef0123"
name 任意
string
"Example name"
version 任意
integer | null

利用ルールの履歴上の版番号です。If-MatchにはGET policies/{id}で返るETagを使ってください。

1
license_type 任意
value

許容値: perpetual, subscription, trial

"perpetual"
validation_mode 任意
string
"string"
perpetual_mode 任意
string | null

許容値: managed, offline_unmanaged, null

買い切りの利用ルールで求めた値です。offline と license_key の組み合わせは offline_unmanaged、それ以外の買い切りは managed です。

"managed"
heartbeat_required 任意
boolean

端末に結び付いた offline_unmanaged の買い切りの利用ルールだけ false です。

true
revocation_guarantee_sec 任意
integer | null 最小値: 0

署名付きのオフラインで取消が反映されるまでの最長時間です。null は、オンラインでの取消の反映を約束しないことを表します。

0
fail_mode 任意
string
"string"
identity_mode 任意
string
"string"
license_unit_limit 任意
integer | null
1
max_machines 任意
integer | null
1
max_concurrent 任意
integer | null
1
concurrency_unit 任意
string
"string"
cert_ttl_sec 任意
integer | null
1
heartbeat_sec 任意
integer | null
1
lease_ttl_sec 任意
integer | null
1
lease_heartbeat_sec 任意
integer | null
1
network_grace_sec 任意
integer | null
1
fingerprint_profile 任意
object
{}
renewal_authority 任意
string
"string"
billing_cycle 任意
string
"string"
trial_days 任意
integer | null
1
entitlements 任意
object
{}
status 任意
string
"active"
created_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
PolicyOfflineRehostsResponse 1項目

Schema

object

Example Value

{
  "data": {
    "policy_id": "01K5QWERTY1234567890ABCDEFG",
    "offline_rehosts_per_year": 0
  }
}
項目必須型・説明Example Value
data 必須
object
{ "policy_id": "01K5QWERTY1234567890ABCDEFG", "offline_rehosts_per_year": 0 }
PolicyLeaseSettingsResponse 1項目

Schema

object

Example Value

{
  "data": {
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "max_concurrent": 1,
    "lease_checkout_max_days": 0,
    "lease_handoff_grace_sec": 0,
    "lease_burst_seats": 0,
    "lease_burst_sec": 0,
    "burst_cooldown_sec": 0
  }
}
項目必須型・説明Example Value
data 必須 { "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "max_concurrent": 1, "lease_checkout_max_days": 0, "lease_handoff_grace_sec": 0, "lease_burst_seats": 0, "lease_burst_sec": 0, "burst_cooldown_sec": 0 }
PolicyLeaseSettings 7項目

Schema

object

Example Value

{
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "max_concurrent": 1,
  "lease_checkout_max_days": 0,
  "lease_handoff_grace_sec": 0,
  "lease_burst_seats": 0,
  "lease_burst_sec": 0,
  "burst_cooldown_sec": 0
}
項目必須型・説明Example Value
policy_id 必須 "policy_id_aaaaaaaaaaaaaaaaaaaa"
max_concurrent 必須
integer | null

最大同時起動数。nullまたは0の利用ルールは同時利用枠を使いません。

1
lease_checkout_max_days 必須
integer 最小値: 0 最大値: 30

持ち出しの最長日数。0では持ち出せません。

0
lease_handoff_grace_sec 必須
integer 最小値: 0 最大値: 600

引き継ぎの猶予の秒数。0では引き継ぎを使いません。

0
lease_burst_seats 必須
integer 最小値: 0 最大値: 1000

超過の時間のあいだ、ライセンスがmax_concurrentを超えて使える枠の数。0では超過を使いません。

0
lease_burst_sec 必須
integer 最小値: 0 最大値: 1800

超過できる時間の秒数。

0
burst_cooldown_sec 必須
integer 最小値: 0

超過の時間が終わってから、次の超過を始めるまでの秒数(3600で固定)。

0
LicenseLeaseSummaryResponse 1項目

Schema

object

Example Value

{
  "data": {
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "max_concurrent": 1,
    "settings": {
      "lease_checkout_max_days": 0,
      "lease_handoff_grace_sec": 0,
      "lease_burst_seats": 0,
      "lease_burst_sec": 0,
      "burst_cooldown_sec": 0
    },
    "in_use": 0,
    "checked_out": 0,
    "burst": 0,
    "handed_off": 0,
    "leases": [
      {
        "id": "id_aaaaaaaaaaaaaaaaaaaa",
        "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
        "instance_id": "01K5QWERTY1234567890ABCDEFG",
        "state": "regular",
        "acquired_at": "2026-09-21T00:00:00Z",
        "last_heartbeat_at": "2026-09-21T00:00:00Z",
        "expires_at": "2026-09-21T00:00:00Z",
        "checked_out_at": "2026-09-21T00:00:00Z",
        "checkout_expires_at": "2026-09-21T00:00:00Z",
        "checkout_revoked_at": "2026-09-21T00:00:00Z",
        "burst_until": "2026-09-21T00:00:00Z",
        "handoff_deadline_at": "2026-09-21T00:00:00Z",
        "handoff_from_lease_id": "01K5QWERTY1234567890ABCDEFG"
      }
    ],
    "leases_truncated": true,
    "overages": [
      {
        "kind": "burst",
        "started_at": "2026-09-21T00:00:00Z",
        "ends_at": "2026-09-21T00:00:00Z",
        "peak_excess": 1,
        "lease_count": 1
      }
    ]
  }
}
項目必須型・説明Example Value
data 必須 { "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "max_concurrent": 1, "settings": { "lease_checkout_max_days": 0, "lease_handoff_grace_sec": 0, "lease_burst_seats": 0, "lease_burst_sec": 0, "burst_cooldown_sec": 0 }, "in_use": 0, "checked_out": 0, "burst": 0, "handed_off": 0, "leases": [ { "id": "id_aaaaaaaaaaaaaaaaaaaa", "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa", "instance_id": "01K5QWERTY1234567890ABCDEFG", "state": "regular", "acquired_at": "2026-09-21T00:00:00Z", "last_heartbeat_at": "2026-09-21T00:00:00Z", "expires_at": "2026-09-21T00:00:00Z", "checked_out_at": "2026-09-21T00:00:00Z", "checkout_expires_at": "2026-09-21T00:00:00Z", "checkout_revoked_at": "2026-09-21T00:00:00Z", "burst_until": "2026-09-21T00:00:00Z", "handoff_deadline_at": "2026-09-21T00:00:00Z", "handoff_from_lease_id": "01K5QWERTY1234567890ABCDEFG" } ], "leases_truncated": true, "overages": [ { "kind": "burst", "started_at": "2026-09-21T00:00:00Z", "ends_at": "2026-09-21T00:00:00Z", "peak_excess": 1, "lease_count": 1 } ] }
LicenseLeaseSummary 11項目

Schema

object

Example Value

{
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "max_concurrent": 1,
  "settings": {
    "lease_checkout_max_days": 0,
    "lease_handoff_grace_sec": 0,
    "lease_burst_seats": 0,
    "lease_burst_sec": 0,
    "burst_cooldown_sec": 0
  },
  "in_use": 0,
  "checked_out": 0,
  "burst": 0,
  "handed_off": 0,
  "leases": [
    {
      "id": "id_aaaaaaaaaaaaaaaaaaaa",
      "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
      "instance_id": "01K5QWERTY1234567890ABCDEFG",
      "state": "regular",
      "acquired_at": "2026-09-21T00:00:00Z",
      "last_heartbeat_at": "2026-09-21T00:00:00Z",
      "expires_at": "2026-09-21T00:00:00Z",
      "checked_out_at": "2026-09-21T00:00:00Z",
      "checkout_expires_at": "2026-09-21T00:00:00Z",
      "checkout_revoked_at": "2026-09-21T00:00:00Z",
      "burst_until": "2026-09-21T00:00:00Z",
      "handoff_deadline_at": "2026-09-21T00:00:00Z",
      "handoff_from_lease_id": "01K5QWERTY1234567890ABCDEFG"
    }
  ],
  "leases_truncated": true,
  "overages": [
    {
      "kind": "burst",
      "started_at": "2026-09-21T00:00:00Z",
      "ends_at": "2026-09-21T00:00:00Z",
      "peak_excess": 1,
      "lease_count": 1
    }
  ]
}
項目必須型・説明Example Value
license_id 必須 "license_id_aaaaaaaaaaaaaaaaaaaa"
policy_id 必須 "policy_id_aaaaaaaaaaaaaaaaaaaa"
max_concurrent 必須
integer | null

ライセンスの最大同時起動数(ライセンスで変えた値か、利用ルールの値)。

1
settings 必須 { "lease_checkout_max_days": 0, "lease_handoff_grace_sec": 0, "lease_burst_seats": 0, "lease_burst_sec": 0, "burst_cooldown_sec": 0 }
in_use 必須
integer 最小値: 0

使用中の同時利用枠の数。持ち出し中・取り消したが使用中のまま・超過・引き継ぎ済みの枠を含みます。

0
checked_out 必須
integer 最小値: 0

持ち出し中の枠の数。取り消したが枠が使用中のままの持ち出しを含みます。

0
burst 必須
integer 最小値: 0
0
handed_off 必須
integer 最小値: 0

新しい起動へ引き継がれ、引き継ぎの期限で切れる古い枠の数。

0
leases 必須
array<LicenseLease> 最大要素数: 200
[ { "id": "id_aaaaaaaaaaaaaaaaaaaa", "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa", "instance_id": "01K5QWERTY1234567890ABCDEFG", "state": "regular", "acquired_at": "2026-09-21T00:00:00Z", "last_heartbeat_at": "2026-09-21T00:00:00Z", "expires_at": "2026-09-21T00:00:00Z", "checked_out_at": "2026-09-21T00:00:00Z", "checkout_expires_at": "2026-09-21T00:00:00Z", "checkout_revoked_at": "2026-09-21T00:00:00Z", "burst_until": "2026-09-21T00:00:00Z", "handoff_deadline_at": "2026-09-21T00:00:00Z", "handoff_from_lease_id": "01K5QWERTY1234567890ABCDEFG" } ]
leases_truncated 必須
boolean

一覧に入りきらない使用中の枠があるときにtrueです。

true
overages 必須
array<LeaseOverageRecord> 最大要素数: 20
[ { "kind": "burst", "started_at": "2026-09-21T00:00:00Z", "ends_at": "2026-09-21T00:00:00Z", "peak_excess": 1, "lease_count": 1 } ]
LicenseLeaseSettings 5項目

Schema

object

Example Value

{
  "lease_checkout_max_days": 0,
  "lease_handoff_grace_sec": 0,
  "lease_burst_seats": 0,
  "lease_burst_sec": 0,
  "burst_cooldown_sec": 0
}
項目必須型・説明Example Value
lease_checkout_max_days 必須
integer 最小値: 0 最大値: 30
0
lease_handoff_grace_sec 必須
integer 最小値: 0 最大値: 600
0
lease_burst_seats 必須
integer 最小値: 0 最大値: 1000
0
lease_burst_sec 必須
integer 最小値: 0 最大値: 1800
0
burst_cooldown_sec 必須
integer 最小値: 0
0
LicenseLeaseResponse 1項目

Schema

object

Example Value

{
  "data": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
    "instance_id": "01K5QWERTY1234567890ABCDEFG",
    "state": "regular",
    "acquired_at": "2026-09-21T00:00:00Z",
    "last_heartbeat_at": "2026-09-21T00:00:00Z",
    "expires_at": "2026-09-21T00:00:00Z",
    "checked_out_at": "2026-09-21T00:00:00Z",
    "checkout_expires_at": "2026-09-21T00:00:00Z",
    "checkout_revoked_at": "2026-09-21T00:00:00Z",
    "burst_until": "2026-09-21T00:00:00Z",
    "handoff_deadline_at": "2026-09-21T00:00:00Z",
    "handoff_from_lease_id": "01K5QWERTY1234567890ABCDEFG"
  }
}
項目必須型・説明Example Value
data 必須 { "id": "id_aaaaaaaaaaaaaaaaaaaa", "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa", "instance_id": "01K5QWERTY1234567890ABCDEFG", "state": "regular", "acquired_at": "2026-09-21T00:00:00Z", "last_heartbeat_at": "2026-09-21T00:00:00Z", "expires_at": "2026-09-21T00:00:00Z", "checked_out_at": "2026-09-21T00:00:00Z", "checkout_expires_at": "2026-09-21T00:00:00Z", "checkout_revoked_at": "2026-09-21T00:00:00Z", "burst_until": "2026-09-21T00:00:00Z", "handoff_deadline_at": "2026-09-21T00:00:00Z", "handoff_from_lease_id": "01K5QWERTY1234567890ABCDEFG" }
LicenseLease 13項目

Schema

object

Example Value

{
  "id": "id_aaaaaaaaaaaaaaaaaaaa",
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "instance_id": "01K5QWERTY1234567890ABCDEFG",
  "state": "regular",
  "acquired_at": "2026-09-21T00:00:00Z",
  "last_heartbeat_at": "2026-09-21T00:00:00Z",
  "expires_at": "2026-09-21T00:00:00Z",
  "checked_out_at": "2026-09-21T00:00:00Z",
  "checkout_expires_at": "2026-09-21T00:00:00Z",
  "checkout_revoked_at": "2026-09-21T00:00:00Z",
  "burst_until": "2026-09-21T00:00:00Z",
  "handoff_deadline_at": "2026-09-21T00:00:00Z",
  "handoff_from_lease_id": "01K5QWERTY1234567890ABCDEFG"
}
項目必須型・説明Example Value
id 必須 "id_aaaaaaaaaaaaaaaaaaaa"
activation_id 必須 "activation_id_aaaaaaaaaaaaaaaaaaaa"
instance_id 必須
string 最小文字数: 16 最大文字数: 255

製品アプリが送った起動の識別子(例えばPodの名前)。

"01K5QWERTY1234567890ABCDEFG"
state 必須
value

許容値: regular, checked_out, checkout_revoked, burst, handed_off

checked_outは、オフラインでもcheckout_expires_atまで枠を使います。checkout_revokedは、端末の次の同時利用枠の要求で止まり、端末が返すか持ち出しの期限まで枠を使います。burstは、通常の枠が空かなければburst_untilで切れます。handed_offはhandoff_deadline_atで切れます。

"regular"
acquired_at 必須
string date-time
"2026-09-21T00:00:00Z"
last_heartbeat_at 必須
string date-time
"2026-09-21T00:00:00Z"
expires_at 必須
string date-time
"2026-09-21T00:00:00Z"
checked_out_at 必須
string | null date-time
"2026-09-21T00:00:00Z"
checkout_expires_at 必須
string | null date-time
"2026-09-21T00:00:00Z"
checkout_revoked_at 必須
string | null date-time
"2026-09-21T00:00:00Z"
burst_until 必須
string | null date-time
"2026-09-21T00:00:00Z"
handoff_deadline_at 必須
string | null date-time
"2026-09-21T00:00:00Z"
handoff_from_lease_id 必須
string | null

引き継ぎで枠を引き継いだ元の同時利用枠。

"01K5QWERTY1234567890ABCDEFG"
LeaseOverageRecord 5項目

Schema

object

Example Value

{
  "kind": "burst",
  "started_at": "2026-09-21T00:00:00Z",
  "ends_at": "2026-09-21T00:00:00Z",
  "peak_excess": 1,
  "lease_count": 1
}
項目必須型・説明Example Value
kind 必須
value

許容値: burst, handoff

"burst"
started_at 必須
string date-time
"2026-09-21T00:00:00Z"
ends_at 必須
string date-time
"2026-09-21T00:00:00Z"
peak_excess 必須
integer 最小値: 1

同時に上限を超えた(burst)、または重なった(handoff)枠の最大数。

1
lease_count 必須
integer 最小値: 1

記録のあいだに、上限を超えて取った(burst)、または引き継いだ(handoff)枠の数。

1
LeaseCheckoutRevocationInput 1項目

Schema

object

Example Value

{
  "reason": "string"
}
項目必須型・説明Example Value
reason 必須
string 最小文字数: 1 最大文字数: 500

持ち出しを取り消す理由。監査ログに残ります。

"string"
PolicyResponse 1項目

Schema

object

Example Value

{
  "data": {
    "default_license_metadata": {},
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "name": "Example name",
    "version": 1,
    "license_type": "perpetual",
    "validation_mode": "string",
    "perpetual_mode": "managed",
    "heartbeat_required": true,
    "revocation_guarantee_sec": 0,
    "fail_mode": "string",
    "identity_mode": "string",
    "license_unit_limit": 1,
    "max_machines": 1,
    "max_concurrent": 1,
    "concurrency_unit": "string",
    "cert_ttl_sec": 1,
    "heartbeat_sec": 1,
    "lease_ttl_sec": 1,
    "lease_heartbeat_sec": 1,
    "network_grace_sec": 1,
    "fingerprint_profile": {},
    "renewal_authority": "string",
    "billing_cycle": "string",
    "trial_days": 1,
    "entitlements": {},
    "status": "active",
    "created_at": "2026-09-21T00:00:00Z"
  }
}
項目必須型・説明Example Value
data 必須 { "default_license_metadata": {}, "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "product_id": "prod_0123456789abcdef0123", "name": "Example name", "version": 1, "license_type": "perpetual", "validation_mode": "string", "perpetual_mode": "managed", "heartbeat_required": true, "revocation_guarantee_sec": 0, "fail_mode": "string", "identity_mode": "string", "license_unit_limit": 1, "max_machines": 1, "max_concurrent": 1, "concurrency_unit": "string", "cert_ttl_sec": 1, "heartbeat_sec": 1, "lease_ttl_sec": 1, "lease_heartbeat_sec": 1, "network_grace_sec": 1, "fingerprint_profile": {}, "renewal_authority": "string", "billing_cycle": "string", "trial_days": 1, "entitlements": {}, "status": "active", "created_at": "2026-09-21T00:00:00Z" }
PolicyListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "default_license_metadata": {},
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "product_id": "prod_0123456789abcdef0123",
      "name": "Example name",
      "version": 1,
      "license_type": "perpetual",
      "validation_mode": "string",
      "perpetual_mode": "managed",
      "heartbeat_required": true,
      "revocation_guarantee_sec": 0,
      "fail_mode": "string",
      "identity_mode": "string",
      "license_unit_limit": 1,
      "max_machines": 1,
      "max_concurrent": 1,
      "concurrency_unit": "string",
      "cert_ttl_sec": 1,
      "heartbeat_sec": 1,
      "lease_ttl_sec": 1,
      "lease_heartbeat_sec": 1,
      "network_grace_sec": 1,
      "fingerprint_profile": {},
      "renewal_authority": "string",
      "billing_cycle": "string",
      "trial_days": 1,
      "entitlements": {},
      "status": "active",
      "created_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<Policy>
[ { "default_license_metadata": {}, "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "product_id": "prod_0123456789abcdef0123", "name": "Example name", "version": 1, "license_type": "perpetual", "validation_mode": "string", "perpetual_mode": "managed", "heartbeat_required": true, "revocation_guarantee_sec": 0, "fail_mode": "string", "identity_mode": "string", "license_unit_limit": 1, "max_machines": 1, "max_concurrent": 1, "concurrency_unit": "string", "cert_ttl_sec": 1, "heartbeat_sec": 1, "lease_ttl_sec": 1, "lease_heartbeat_sec": 1, "network_grace_sec": 1, "fingerprint_profile": {}, "renewal_authority": "string", "billing_cycle": "string", "trial_days": 1, "entitlements": {}, "status": "active", "created_at": "2026-09-21T00:00:00Z" } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
Customer 9項目

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "name": "Example name",
  "email": "developer@example.com",
  "external_ref": "string",
  "notes": "string",
  "status": "active",
  "kind": "individual",
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
public_id 任意 "public_id_aaaaaaaaaaaaaaaaaaaa"
name 任意
string
"Example name"
email 任意
string | null
"developer@example.com"
external_ref 任意
string | null
"string"
notes 任意
string | null
"string"
status 任意
string
"active"
kind 任意
string

許容値: individual, organization

顧客の種類(individual か organization)です。個人の顧客は、顧客と同じ名前とメールアドレスのローカルIDのライセンスユーザーを1人持ちます。

"individual"
created_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
updated_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
CustomerResponse 1項目

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "email": "developer@example.com",
    "external_ref": "string",
    "notes": "string",
    "status": "active",
    "kind": "individual",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
項目必須型・説明Example Value
data 必須 { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "email": "developer@example.com", "external_ref": "string", "notes": "string", "status": "active", "kind": "individual", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
CustomerListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "email": "developer@example.com",
      "external_ref": "string",
      "notes": "string",
      "status": "active",
      "kind": "individual",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<Customer>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "email": "developer@example.com", "external_ref": "string", "notes": "string", "status": "active", "kind": "individual", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
License 30項目

Schema

object

Example Value

{
  "payment_grace_ends_at": "2026-09-21T00:00:00Z",
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "product_id": "prod_0123456789abcdef0123",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "policy_version": 1,
  "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
  "license_type": "perpetual",
  "perpetual_mode": "managed",
  "heartbeat_required": true,
  "revocation_guarantee_sec": 0,
  "status": "active",
  "expires_at": "2026-09-21T00:00:00Z",
  "expiry": "2026-09-21T00:00:00Z",
  "renewal_authority": "string",
  "entitlements": {},
  "metadata": {},
  "current_period_start": "2026-09-21T00:00:00Z",
  "current_period_end": "2026-09-21T00:00:00Z",
  "renewal_count": 1,
  "key_hint": "string",
  "max_machines": 1,
  "max_concurrent": 1,
  "license_unit_limit": 1,
  "trial_days": 1,
  "trial_started_at": "2026-09-21T00:00:00Z",
  "trial_converted_at": "2026-09-21T00:00:00Z",
  "active_activations": 1,
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z",
  "version": 1
}
項目必須型・説明Example Value
payment_grace_ends_at 任意
string | null date-time

進行中の支払いの猶予の期限です。猶予が無いときはnullです。期限までライセンスは有効なままです。

"2026-09-21T00:00:00Z"
public_id 任意 "public_id_aaaaaaaaaaaaaaaaaaaa"
product_id 任意 "prod_0123456789abcdef0123"
policy_id 任意 "policy_id_aaaaaaaaaaaaaaaaaaaa"
policy_version 任意
integer | null
1
customer_id 任意
PublicId | null
"customer_id_aaaaaaaaaaaaaaaaaaaa"
license_type 任意
value

許容値: perpetual, subscription, trial

"perpetual"
perpetual_mode 任意
string | null

許容値: managed, offline_unmanaged, null

"managed"
heartbeat_required 任意
boolean
true
revocation_guarantee_sec 任意
integer | null 最小値: 0

offline_unmanaged と fail-open のライセンスは null です。これらのライセンスには、オンラインでの取消の反映の約束がありません。

0
status 任意
string
"active"
expires_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
expiry 任意
string | null date-time

expires_atと同じ値です。expires_atを使ってください。

"2026-09-21T00:00:00Z"
renewal_authority 任意
string
"string"
entitlements 任意
object
{}
metadata 任意
object
{}
current_period_start 任意
string | null date-time
"2026-09-21T00:00:00Z"
current_period_end 任意
string | null date-time
"2026-09-21T00:00:00Z"
renewal_count 任意
integer | null
1
key_hint 任意
string
"string"
max_machines 任意
integer | null
1
max_concurrent 任意
integer | null
1
license_unit_limit 任意
integer | null
1
trial_days 任意
integer | null
1
trial_started_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
trial_converted_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
active_activations 任意
integer | null
1
created_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
updated_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
version 任意
integer | null
1
LicenseResponse 1項目

Schema

object

Example Value

{
  "data": {}
}
項目必須型・説明Example Value
data 必須
License
{}
LicenseListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {}
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<License>
[ {} ]
pagination 必須 { "next_cursor": "string", "has_more": true }
Activation 8項目

Schema

object

Example Value

{
  "id": "id_aaaaaaaaaaaaaaaaaaaa",
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "machine": {},
  "device_signing_key_thumbprint": "string",
  "first_seen_at": "2026-09-21T00:00:00Z",
  "last_seen_at": "2026-09-21T00:00:00Z",
  "deactivated_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
id 任意 "id_aaaaaaaaaaaaaaaaaaaa"
license_id 任意 "license_id_aaaaaaaaaaaaaaaaaaaa"
status 任意
string
"active"
machine 任意
object
{}
device_signing_key_thumbprint 任意
string
"string"
first_seen_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
last_seen_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
deactivated_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
ActivationResponse 1項目

Schema

object

Example Value

{
  "data": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "machine": {},
    "device_signing_key_thumbprint": "string",
    "first_seen_at": "2026-09-21T00:00:00Z",
    "last_seen_at": "2026-09-21T00:00:00Z",
    "deactivated_at": "2026-09-21T00:00:00Z"
  }
}
項目必須型・説明Example Value
data 必須 { "id": "id_aaaaaaaaaaaaaaaaaaaa", "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "machine": {}, "device_signing_key_thumbprint": "string", "first_seen_at": "2026-09-21T00:00:00Z", "last_seen_at": "2026-09-21T00:00:00Z", "deactivated_at": "2026-09-21T00:00:00Z" }
ActivationListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "id": "id_aaaaaaaaaaaaaaaaaaaa",
      "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "machine": {},
      "device_signing_key_thumbprint": "string",
      "first_seen_at": "2026-09-21T00:00:00Z",
      "last_seen_at": "2026-09-21T00:00:00Z",
      "deactivated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<Activation>
[ { "id": "id_aaaaaaaaaaaaaaaaaaaa", "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "machine": {}, "device_signing_key_thumbprint": "string", "first_seen_at": "2026-09-21T00:00:00Z", "last_seen_at": "2026-09-21T00:00:00Z", "deactivated_at": "2026-09-21T00:00:00Z" } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
Webhook 8項目

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "name": "Example name",
  "url": "https://example.com/resource",
  "events": [
    "string"
  ],
  "status": "active",
  "secret_rotation": {
    "scheduled": true,
    "activates_at": "2026-09-21T00:00:00Z"
  },
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
public_id 任意 "public_id_aaaaaaaaaaaaaaaaaaaa"
name 任意
string
"Example name"
url 任意
string uri
"https://example.com/resource"
events 任意
array<string>
[ "string" ]
status 任意
string
"active"
secret_rotation 任意
object
{ "scheduled": true, "activates_at": "2026-09-21T00:00:00Z" }
created_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
updated_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
WebhookResponse 1項目

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "url": "https://example.com/resource",
    "events": [
      "string"
    ],
    "status": "active",
    "secret_rotation": {
      "scheduled": true,
      "activates_at": "2026-09-21T00:00:00Z"
    },
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
項目必須型・説明Example Value
data 必須 { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "url": "https://example.com/resource", "events": [ "string" ], "status": "active", "secret_rotation": { "scheduled": true, "activates_at": "2026-09-21T00:00:00Z" }, "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
WebhookListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "url": "https://example.com/resource",
      "events": [
        "string"
      ],
      "status": "active",
      "secret_rotation": {
        "scheduled": true,
        "activates_at": "2026-09-21T00:00:00Z"
      },
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<Webhook>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "url": "https://example.com/resource", "events": [ "string" ], "status": "active", "secret_rotation": { "scheduled": true, "activates_at": "2026-09-21T00:00:00Z" }, "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
Event 7項目

Schema

object

Example Value

{
  "id": "id_aaaaaaaaaaaaaaaaaaaa",
  "type": "string",
  "actor": {},
  "target": {
    "environment": "live"
  },
  "request_id": "01K5QWERTY1234567890ABCDEFG",
  "data": {},
  "created_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
id 任意 "id_aaaaaaaaaaaaaaaaaaaa"
type 任意
string
"string"
actor 任意
object
{}
target 任意
object
{ "environment": "live" }
request_id 任意
string | null
"01K5QWERTY1234567890ABCDEFG"
data 任意
object
{}
created_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
EventResponse 1項目

Schema

object

Example Value

{
  "data": {
    "id": "id_aaaaaaaaaaaaaaaaaaaa",
    "type": "string",
    "actor": {},
    "target": {
      "environment": "live"
    },
    "request_id": "01K5QWERTY1234567890ABCDEFG",
    "data": {},
    "created_at": "2026-09-21T00:00:00Z"
  }
}
項目必須型・説明Example Value
data 必須 { "id": "id_aaaaaaaaaaaaaaaaaaaa", "type": "string", "actor": {}, "target": { "environment": "live" }, "request_id": "01K5QWERTY1234567890ABCDEFG", "data": {}, "created_at": "2026-09-21T00:00:00Z" }
EventListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "id": "id_aaaaaaaaaaaaaaaaaaaa",
      "type": "string",
      "actor": {},
      "target": {
        "environment": "live"
      },
      "request_id": "01K5QWERTY1234567890ABCDEFG",
      "data": {},
      "created_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<Event>
[ { "id": "id_aaaaaaaaaaaaaaaaaaaa", "type": "string", "actor": {}, "target": { "environment": "live" }, "request_id": "01K5QWERTY1234567890ABCDEFG", "data": {}, "created_at": "2026-09-21T00:00:00Z" } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
Reseller 11項目

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "name": "Example name",
  "email": "developer@example.com",
  "external_ref": "string",
  "organization_limit": 1,
  "user_limit": 1,
  "status": "active",
  "metadata": {},
  "archived_at": "2026-09-21T00:00:00Z",
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
public_id 任意 "public_id_aaaaaaaaaaaaaaaaaaaa"
name 任意
string
"Example name"
email 任意
string | null
"developer@example.com"
external_ref 任意
string | null
"string"
organization_limit 任意
integer | null

この販売店が担当する顧客(アーカイブ済みを除く)の数の上限です。項目名は、顧客組織を顧客に統合する前の名前を残しています。null なら上限はありません。

1
user_limit 任意
integer | null

この販売店が担当する顧客のライセンスユーザー(利用終了を除く)の合計の上限です。null は上限なしです。

1
status 任意
string
"active"
metadata 任意
object
{}
archived_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
created_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
updated_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
ResellerResponse 1項目

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "email": "developer@example.com",
    "external_ref": "string",
    "organization_limit": 1,
    "user_limit": 1,
    "status": "active",
    "metadata": {},
    "archived_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
項目必須型・説明Example Value
data 必須 { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "email": "developer@example.com", "external_ref": "string", "organization_limit": 1, "user_limit": 1, "status": "active", "metadata": {}, "archived_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
ResellerListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "email": "developer@example.com",
      "external_ref": "string",
      "organization_limit": 1,
      "user_limit": 1,
      "status": "active",
      "metadata": {},
      "archived_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<Reseller>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "email": "developer@example.com", "external_ref": "string", "organization_limit": 1, "user_limit": 1, "status": "active", "metadata": {}, "archived_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
Organization 11項目

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "name": "Example name",
  "email": "developer@example.com",
  "external_ref": "string",
  "user_limit": 1,
  "status": "active",
  "metadata": {},
  "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
  "archived_at": "2026-09-21T00:00:00Z",
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
public_id 任意 "public_id_aaaaaaaaaaaaaaaaaaaa"
name 任意
string
"Example name"
email 任意
string | null
"developer@example.com"
external_ref 任意
string | null
"string"
user_limit 任意
integer | null
1
status 任意
string
"active"
metadata 任意
object
{}
reseller_id 任意
PublicId | null
"reseller_id_aaaaaaaaaaaaaaaaaaaa"
archived_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
created_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
updated_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
OrganizationResponse 1項目

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "email": "developer@example.com",
    "external_ref": "string",
    "user_limit": 1,
    "status": "active",
    "metadata": {},
    "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
    "archived_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
項目必須型・説明Example Value
data 必須 { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "email": "developer@example.com", "external_ref": "string", "user_limit": 1, "status": "active", "metadata": {}, "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa", "archived_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
OrganizationListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "email": "developer@example.com",
      "external_ref": "string",
      "user_limit": 1,
      "status": "active",
      "metadata": {},
      "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
      "archived_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<Organization>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "email": "developer@example.com", "external_ref": "string", "user_limit": 1, "status": "active", "metadata": {}, "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa", "archived_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
OrganizationGroup 7項目

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
  "name": "Example name",
  "status": "active",
  "metadata": {},
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
public_id 任意 "public_id_aaaaaaaaaaaaaaaaaaaa"
organization_id 任意

顧客を、organizations のエンドポイントと同じIDで示します。顧客組織を顧客に統合する前の組織ID(org_…)か、顧客ID(cus_…)です。

"organization_id_aaaaaaaaaaaaaaaaaaaa"
name 任意
string
"Example name"
status 任意
string
"active"
metadata 任意
object
{}
created_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
updated_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
OrganizationGroupResponse 1項目

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "status": "active",
    "metadata": {},
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
項目必須型・説明Example Value
data 必須 { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "status": "active", "metadata": {}, "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
OrganizationGroupListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "status": "active",
      "metadata": {},
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<OrganizationGroup>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "status": "active", "metadata": {}, "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
OrganizationGroupMembership 8項目

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "organization_group_id": "organization_group_id_aaaaaaaaaaaaaaaaaaaa",
  "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "assigned_at": "2026-09-21T00:00:00Z",
  "revoked_at": "2026-09-21T00:00:00Z",
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
public_id 任意 "public_id_aaaaaaaaaaaaaaaaaaaa"
organization_group_id 任意 "organization_group_id_aaaaaaaaaaaaaaaaaaaa"
license_user_id 任意 "license_user_id_aaaaaaaaaaaaaaaaaaaa"
status 任意
string
"active"
assigned_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
revoked_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
created_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
updated_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
OrganizationGroupMembershipResponse 1項目

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "organization_group_id": "organization_group_id_aaaaaaaaaaaaaaaaaaaa",
    "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "assigned_at": "2026-09-21T00:00:00Z",
    "revoked_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
項目必須型・説明Example Value
data 必須 { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "organization_group_id": "organization_group_id_aaaaaaaaaaaaaaaaaaaa", "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "assigned_at": "2026-09-21T00:00:00Z", "revoked_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
OrganizationGroupMembershipListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "organization_group_id": "organization_group_id_aaaaaaaaaaaaaaaaaaaa",
      "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "assigned_at": "2026-09-21T00:00:00Z",
      "revoked_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<OrganizationGroupMembership>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "organization_group_id": "organization_group_id_aaaaaaaaaaaaaaaaaaaa", "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "assigned_at": "2026-09-21T00:00:00Z", "revoked_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
LicenseUser 15項目

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "issuer": "https://example.com/resource",
  "subject": "string",
  "email": "developer@example.com",
  "name": "Example name",
  "status": "active",
  "two_factor_state": "string",
  "two_factor_method": "string",
  "metadata": {},
  "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
  "oidc_connection_id": "oidc_connection_id_aaaaaaaaaaaaaaaaaaaa",
  "last_authenticated_at": "2026-09-21T00:00:00Z",
  "deprovisioned_at": "2026-09-21T00:00:00Z",
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
public_id 任意 "public_id_aaaaaaaaaaaaaaaaaaaa"
issuer 任意
string uri
"https://example.com/resource"
subject 任意
string
"string"
email 任意
string | null
"developer@example.com"
name 任意
string | null
"Example name"
status 任意
string
"active"
two_factor_state 任意
string
"string"
two_factor_method 任意
string | null
"string"
metadata 任意
object
{}
organization_id 任意
PublicId | null

顧客を、organizations のエンドポイントと同じIDで示します。顧客組織を顧客に統合する前の組織ID(org_…)か、顧客ID(cus_…)です。

"organization_id_aaaaaaaaaaaaaaaaaaaa"
oidc_connection_id 任意
PublicId | null

関連付けられたOIDC接続ID。OIDCと顧客ポータルを利用できない個人プランのローカル台帳ユーザーでは通常`null`です。

"oidc_connection_id_aaaaaaaaaaaaaaaaaaaa"
last_authenticated_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
deprovisioned_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
created_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
updated_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
LicenseUserResponse 1項目

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "issuer": "https://example.com/resource",
    "subject": "string",
    "email": "developer@example.com",
    "name": "Example name",
    "status": "active",
    "two_factor_state": "string",
    "two_factor_method": "string",
    "metadata": {},
    "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
    "oidc_connection_id": "oidc_connection_id_aaaaaaaaaaaaaaaaaaaa",
    "last_authenticated_at": "2026-09-21T00:00:00Z",
    "deprovisioned_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
項目必須型・説明Example Value
data 必須 { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "issuer": "https://example.com/resource", "subject": "string", "email": "developer@example.com", "name": "Example name", "status": "active", "two_factor_state": "string", "two_factor_method": "string", "metadata": {}, "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa", "oidc_connection_id": "oidc_connection_id_aaaaaaaaaaaaaaaaaaaa", "last_authenticated_at": "2026-09-21T00:00:00Z", "deprovisioned_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
LicenseUserListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "issuer": "https://example.com/resource",
      "subject": "string",
      "email": "developer@example.com",
      "name": "Example name",
      "status": "active",
      "two_factor_state": "string",
      "two_factor_method": "string",
      "metadata": {},
      "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
      "oidc_connection_id": "oidc_connection_id_aaaaaaaaaaaaaaaaaaaa",
      "last_authenticated_at": "2026-09-21T00:00:00Z",
      "deprovisioned_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<LicenseUser>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "issuer": "https://example.com/resource", "subject": "string", "email": "developer@example.com", "name": "Example name", "status": "active", "two_factor_state": "string", "two_factor_method": "string", "metadata": {}, "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa", "oidc_connection_id": "oidc_connection_id_aaaaaaaaaaaaaaaaaaaa", "last_authenticated_at": "2026-09-21T00:00:00Z", "deprovisioned_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
OidcConnection 17項目

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "name": "Example name",
  "issuer": "https://example.com/resource",
  "client_id": "01K5QWERTY1234567890ABCDEFG",
  "authorization_endpoint": "https://example.com/resource",
  "token_endpoint": "https://example.com/resource",
  "jwks_uri": "https://example.com/resource",
  "scopes": [
    "string"
  ],
  "allowed_audiences": [
    "string"
  ],
  "pkce_required": true,
  "jit_provisioning": true,
  "status": "active",
  "metadata": {},
  "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
  "client_secret_rotated_at": "2026-09-21T00:00:00Z",
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
public_id 任意 "public_id_aaaaaaaaaaaaaaaaaaaa"
name 任意
string
"Example name"
issuer 任意
string uri
"https://example.com/resource"
client_id 任意
string
"01K5QWERTY1234567890ABCDEFG"
authorization_endpoint 任意
string uri
"https://example.com/resource"
token_endpoint 任意
string uri
"https://example.com/resource"
jwks_uri 任意
string uri
"https://example.com/resource"
scopes 任意
array<string>
[ "string" ]
allowed_audiences 任意
array<string>
[ "string" ]
pkce_required 任意
boolean
true
jit_provisioning 任意
boolean
true
status 任意
string
"active"
metadata 任意
object
{}
organization_id 任意
PublicId | null

顧客を、organizations のエンドポイントと同じIDで示します。顧客組織を顧客に統合する前の組織ID(org_…)か、顧客ID(cus_…)です。

"organization_id_aaaaaaaaaaaaaaaaaaaa"
client_secret_rotated_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
created_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
updated_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
OidcConnectionResponse 1項目

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "issuer": "https://example.com/resource",
    "client_id": "01K5QWERTY1234567890ABCDEFG",
    "authorization_endpoint": "https://example.com/resource",
    "token_endpoint": "https://example.com/resource",
    "jwks_uri": "https://example.com/resource",
    "scopes": [
      "string"
    ],
    "allowed_audiences": [
      "string"
    ],
    "pkce_required": true,
    "jit_provisioning": true,
    "status": "active",
    "metadata": {},
    "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
    "client_secret_rotated_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
項目必須型・説明Example Value
data 必須 { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "issuer": "https://example.com/resource", "client_id": "01K5QWERTY1234567890ABCDEFG", "authorization_endpoint": "https://example.com/resource", "token_endpoint": "https://example.com/resource", "jwks_uri": "https://example.com/resource", "scopes": [ "string" ], "allowed_audiences": [ "string" ], "pkce_required": true, "jit_provisioning": true, "status": "active", "metadata": {}, "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa", "client_secret_rotated_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
OidcConnectionListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "issuer": "https://example.com/resource",
      "client_id": "01K5QWERTY1234567890ABCDEFG",
      "authorization_endpoint": "https://example.com/resource",
      "token_endpoint": "https://example.com/resource",
      "jwks_uri": "https://example.com/resource",
      "scopes": [
        "string"
      ],
      "allowed_audiences": [
        "string"
      ],
      "pkce_required": true,
      "jit_provisioning": true,
      "status": "active",
      "metadata": {},
      "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
      "client_secret_rotated_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<OidcConnection>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "issuer": "https://example.com/resource", "client_id": "01K5QWERTY1234567890ABCDEFG", "authorization_endpoint": "https://example.com/resource", "token_endpoint": "https://example.com/resource", "jwks_uri": "https://example.com/resource", "scopes": [ "string" ], "allowed_audiences": [ "string" ], "pkce_required": true, "jit_provisioning": true, "status": "active", "metadata": {}, "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa", "client_secret_rotated_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
LicenseAssignment 14項目

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
  "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
  "source_group_id": "source_group_id_aaaaaaaaaaaaaaaaaaaa",
  "tenant_plan_id": "tenant_plan_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "license_units": 1,
  "assigned_at": "2026-09-21T00:00:00Z",
  "expires_at": "2026-09-21T00:00:00Z",
  "revoked_at": "2026-09-21T00:00:00Z",
  "entitlement_overrides": {},
  "metadata": {},
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
public_id 任意 "public_id_aaaaaaaaaaaaaaaaaaaa"
license_id 任意 "license_id_aaaaaaaaaaaaaaaaaaaa"
license_user_id 任意 "license_user_id_aaaaaaaaaaaaaaaaaaaa"
source_group_id 任意
PublicId | null
"source_group_id_aaaaaaaaaaaaaaaaaaaa"
tenant_plan_id 任意
PublicId | null
"tenant_plan_id_aaaaaaaaaaaaaaaaaaaa"
status 任意
string
"active"
license_units 任意
integer | null
1
assigned_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
expires_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
revoked_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
entitlement_overrides 任意
object
{}
metadata 任意
object
{}
created_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
updated_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
LicenseAssignmentResponse 1項目

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
    "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
    "source_group_id": "source_group_id_aaaaaaaaaaaaaaaaaaaa",
    "tenant_plan_id": "tenant_plan_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "license_units": 1,
    "assigned_at": "2026-09-21T00:00:00Z",
    "expires_at": "2026-09-21T00:00:00Z",
    "revoked_at": "2026-09-21T00:00:00Z",
    "entitlement_overrides": {},
    "metadata": {},
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
項目必須型・説明Example Value
data 必須 { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa", "source_group_id": "source_group_id_aaaaaaaaaaaaaaaaaaaa", "tenant_plan_id": "tenant_plan_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "license_units": 1, "assigned_at": "2026-09-21T00:00:00Z", "expires_at": "2026-09-21T00:00:00Z", "revoked_at": "2026-09-21T00:00:00Z", "entitlement_overrides": {}, "metadata": {}, "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
LicenseAssignmentListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
      "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
      "source_group_id": "source_group_id_aaaaaaaaaaaaaaaaaaaa",
      "tenant_plan_id": "tenant_plan_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "license_units": 1,
      "assigned_at": "2026-09-21T00:00:00Z",
      "expires_at": "2026-09-21T00:00:00Z",
      "revoked_at": "2026-09-21T00:00:00Z",
      "entitlement_overrides": {},
      "metadata": {},
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<LicenseAssignment>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa", "source_group_id": "source_group_id_aaaaaaaaaaaaaaaaaaaa", "tenant_plan_id": "tenant_plan_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "license_units": 1, "assigned_at": "2026-09-21T00:00:00Z", "expires_at": "2026-09-21T00:00:00Z", "revoked_at": "2026-09-21T00:00:00Z", "entitlement_overrides": {}, "metadata": {}, "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
UsageReport 5項目

Schema

object

Example Value

{
  "period": {},
  "new_activations": 1,
  "active_machines": 1,
  "active_licenses": 1,
  "active_leases": 1
}
項目必須型・説明Example Value
period 任意
object
{}
new_activations 任意
integer | null
1
active_machines 任意
integer | null

期間内に作られ、認証を解除されていない端末認証の、重複しない端末の数です。一時停止中・期限切れのライセンスの端末も含みます(ライセンスの再開後に同じ端末をまた使えるよう、端末認証を残すため)。今この製品を使える端末の数ではありません。

1
active_licenses 任意
integer | null
1
active_leases 任意
integer | null
1
UsageReportResponse 1項目

Schema

object

Example Value

{
  "data": {
    "period": {},
    "new_activations": 1,
    "active_machines": 1,
    "active_licenses": 1,
    "active_leases": 1
  }
}
項目必須型・説明Example Value
data 必須 { "period": {}, "new_activations": 1, "active_machines": 1, "active_licenses": 1, "active_leases": 1 }
UsageReportListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "period": {},
      "new_activations": 1,
      "active_machines": 1,
      "active_licenses": 1,
      "active_leases": 1
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<UsageReport>
[ { "period": {}, "new_activations": 1, "active_machines": 1, "active_licenses": 1, "active_leases": 1 } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
ProductInput 4項目

Schema

object

Example Value

{
  "name": "Example name",
  "code": "string",
  "description": "Example description",
  "environment": "string"
}
項目必須型・説明Example Value
name 任意
string
"Example name"
code 任意
string
"string"
description 任意
string
"Example description"
environment 任意
string
"string"
ProductBrowserRuntimeInput 2項目

Schema

object

Example Value

{
  "enabled": true,
  "allowed_origins": [
    "string"
  ]
}
項目必須型・説明Example Value
enabled 任意
boolean
true
allowed_origins 任意
array<string> 最大要素数: 20
[ "string" ]
ProductTrialSignupInput 2項目

Schema

object

Example Value

{
  "policy_id": "01K5QWERTY1234567890ABCDEFG",
  "daily_limit": 1
}
項目必須型・説明Example Value
policy_id 任意
string | null 最大文字数: 64

試用の受付に使う利用ルール(この製品の有効な、ライセンスキー方式のトライアルの利用ルール)です。null か空文字で受付を止めます。

"01K5QWERTY1234567890ABCDEFG"
daily_limit 任意
integer | null 最小値: 1 最大値: 1000

アプリから24時間に始められる試用の上限(1〜1000)です。null で既定の20件に戻します。

1
AnomalyCloseInput 1項目

Schema

object

Example Value

{
  "reason": "string"
}
項目必須型・説明Example Value
reason 必須
string 最小文字数: 1 最大文字数: 500

疑いを閉じる理由です。監査ログに記録し、管理画面の疑いの詳細にも表示します。

"string"
PolicyAnomalyRuleInput 5項目

Schema

object

Example Value

{
  "anomaly_action": "notify",
  "threshold": 1,
  "minimum_confirmations": 1,
  "decay_hours": 1,
  "weights": {
    "property": 0
  }
}
項目必須型・説明Example Value
anomaly_action 任意
string

許容値: notify, suspend_license, off

notify は記録と通知だけです。suspend_license は、しきい値に届いた確認が minimum_confirmations 回に達するとライセンスも一時停止します。off は検知しません。

"notify"
threshold 任意
integer 最小値: 1 最大値: 1000

疑いを開く点数です。

1
minimum_confirmations 任意
integer 最小値: 1 最大値: 10

suspend_license がライセンスを一時停止する前に、点数がしきい値に届いた確認が要る回数です。

1
decay_hours 任意
integer 最小値: 1 最大値: 2160

見つけた信号の点数が半分になるまでの時間(時間単位)です。

1
weights 任意
object

変える重みです(0〜1000。0 にした信号は数えなくなります)。指定した信号の重みだけを変えます。信号の名前は vm_detected・clock_tamper_detected・device_identity_changed・network_changed・parallel_network_use・shared_hardware・device_churn です。

{ "property": 0 }
PolicyInput 27項目

Schema

object

Example Value

{
  "default_license_metadata": {},
  "product_id": "prod_0123456789abcdef0123",
  "name": "Example name",
  "license_type": "string",
  "validation_mode": "string",
  "fail_mode": "string",
  "max_machines": 1,
  "max_concurrent": 1,
  "concurrency_unit": "string",
  "identity_mode": "string",
  "license_unit_limit": 1,
  "cert_ttl_sec": 1,
  "heartbeat_sec": 1,
  "lease_ttl_sec": 1,
  "lease_heartbeat_sec": 1,
  "lease_checkout_max_days": 0,
  "lease_handoff_grace_sec": 0,
  "lease_burst_seats": 0,
  "lease_burst_sec": 0,
  "network_grace_sec": 1,
  "fingerprint_profile": "standard",
  "renewal_authority": "string",
  "billing_cycle": "string",
  "trial_days": 1,
  "entitlements": {},
  "offline_rehosts_per_year": 0,
  "counters": [
    {
      "name": "example",
      "limit": 0,
      "reset_period": "none",
      "unit": "string",
      "alert_threshold": 0,
      "overage_action": "notify"
    }
  ]
}
項目必須型・説明Example Value
default_license_metadata 任意
object

この利用ルールで、metadataを指定せずに発行するライセンスに入る署名付きの設定項目です(JSONオブジェクト、正規化して512バイトまで)。製品アプリはSDKで読めます。端末で読めるので、秘密の情報は入れないでください。

{}
product_id 任意 "prod_0123456789abcdef0123"
name 任意
string
"Example name"
license_type 任意
string
"string"
validation_mode 任意
string

端末固定の買い切りの利用ルールでは、offline を選ぶと offline_unmanaged になります。管理付きの買い切りには periodic か online を使います。ユーザー単位の買い切りの利用ルールは、管理付きにする必要があります。

"string"
fail_mode 任意
string
"string"
max_machines 任意
integer | null
1
max_concurrent 任意
integer | null
1
concurrency_unit 任意
string
"string"
identity_mode 任意
string
"string"
license_unit_limit 任意
integer | null
1
cert_ttl_sec 任意
integer | null
1
heartbeat_sec 任意
integer | null
1
lease_ttl_sec 任意
integer | null
1
lease_heartbeat_sec 任意
integer | null
1
lease_checkout_max_days 任意
integer 最小値: 0 最大値: 30

同時利用枠を持ち出せる最長の日数(0〜30)。既定の0では持ち出せません。最大同時起動数を決めた利用ルールでだけ設定できます。

0
lease_handoff_grace_sec 任意
integer 最小値: 0 最大値: 600

引き継ぎの猶予の秒数(0、または30〜600)。既定の0では引き継ぎを使いません。最大同時起動数を決めた利用ルールでだけ設定できます。

0
lease_burst_seats 任意
integer 最小値: 0 最大値: 1000

上限を超えて一時的に使える枠の数(0から最大同時起動数まで)。lease_burst_secと一緒に設定してください。既定の0では超過を使いません。最大同時起動数を決めた利用ルールでだけ設定できます。

0
lease_burst_sec 任意
integer 最小値: 0 最大値: 1800

超過できる時間の秒数(60〜1800)。lease_burst_seatsと一緒に設定してください。

0
network_grace_sec 任意
integer | null
1
fingerprint_profile 任意
string | object

端末を見分ける方法(プロファイル)の名前を、standard のような文字列で送ります。{"profile": 名前} の形で保存して返します。オブジェクトは以前のスキーマとの互換のために型に残しているだけで、オブジェクトや配列は 422 VALIDATION_FAILED で拒否します。risk_policy はこの API では設定できません。

"standard"
renewal_authority 任意
string
"string"
billing_cycle 任意
string
"string"
trial_days 任意
integer | null
1
entitlements 任意
object
{}
offline_rehosts_per_year 任意
integer 最小値: 0 最大値: 100

この利用ルールのライセンス1件につき、直近365日に完全オフラインのライセンスを別の端末へ移せる回数です(POST /mgmt/v1/licenses/{id}/offline-rehosts)。0から100まで指定でき、0にすると移せません。指定せずに作った利用ルールは2回です。利用ルールの応答には含まれません。ライセンスごとの上限と残りの回数は、GET /mgmt/v1/licenses/{id}/offline-rehosts で確かめられます。

0
counters 任意
array<CounterDefinitionInput> 最大要素数: 8

利用ルールの消費型カウンター。一覧全体で前の定義を置き換えます(空の一覧で消します)。定義は GET /mgmt/v1/policies/{policy_id}/counters で読みます。完全オフラインの利用ルールと検証プランでは使えません。

[ { "name": "example", "limit": 0, "reset_period": "none", "unit": "string", "alert_threshold": 0, "overage_action": "notify" } ]
CounterDefinition 6項目

Schema

object

Example Value

{
  "name": "example",
  "limit": 0,
  "reset_period": "string",
  "unit": "string",
  "alert_threshold": 0,
  "overage_action": "string"
}
項目必須型・説明Example Value
name 必須
string 形式: ^[a-z][a-z0-9_]{0,23}$

製品アプリが消費するときに指定する名前。利用ルールの中で一意です

"example"
limit 必須
integer 最小値: 0 最大値: 1000000000

期間ごとに使える量

0
reset_period 必須
string

none(リセットしない)か monthly(日本時間の毎月1日にリセット)

"string"
unit 任意
string | null 最大文字数: 16

量と一緒に表示する単位(表示だけに使います)

"string"
alert_threshold 任意
integer | null 最小値: 0

残量がこの値まで減ったら、期間ごとに1回 license.counter_low を送ります

0
overage_action 必須
string

notify(超過を記録して license.counter_overage を送る)か suspend_license(あわせて、上限を超えた消費が端末から届いたらライセンスを一時停止する。再開は管理画面か Management API から)

"string"
CounterDefinitionInput 6項目

Schema

object

Example Value

{
  "name": "example",
  "limit": 0,
  "reset_period": "none",
  "unit": "string",
  "alert_threshold": 0,
  "overage_action": "notify"
}
項目必須型・説明Example Value
name 必須
string 形式: ^[a-z][a-z0-9_]{0,23}$
"example"
limit 必須
integer 最小値: 0 最大値: 1000000000
0
reset_period 任意
value

許容値: none, monthly

省略すると none です

"none"
unit 任意
string | null 最大文字数: 16
"string"
alert_threshold 任意
integer | null 最小値: 0
0
overage_action 任意
value

許容値: notify, suspend_license

省略すると notify です

"notify"
CounterDefinitionListResponse 1項目

Schema

object

Example Value

{
  "data": [
    {
      "name": "example",
      "limit": 0,
      "reset_period": "string",
      "unit": "string",
      "alert_threshold": 0,
      "overage_action": "string"
    }
  ]
}
項目必須型・説明Example Value
data 必須
array<CounterDefinition>
[ { "name": "example", "limit": 0, "reset_period": "string", "unit": "string", "alert_threshold": 0, "overage_action": "string" } ]
LicenseCounter 12項目

Schema

object

Example Value

{
  "name": "Example name",
  "unit": "string",
  "reset_period": "string",
  "defined": true,
  "limit": 0,
  "limit_override": 0,
  "adjusted": 1,
  "used": 0,
  "remaining": 0,
  "overage": 0,
  "period_starts_at": "2026-09-21T00:00:00Z",
  "period_ends_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
name 必須
string
"Example name"
unit 任意
string | null
"string"
reset_period 任意
string

none か monthly

"string"
defined 任意
boolean

ライセンスの利用ルールにもうこのカウンターが無いときは false。履歴だけが残っています

true
limit 必須
integer 最小値: 0

今の期間の上限(このライセンスだけの上限を含む)

0
limit_override 任意
integer | null 最小値: 0

このライセンスだけの上限。null は利用ルールの上限を使います

0
adjusted 任意
integer

今の期間に販売者が追加(正)・差し引き(負)した量の合計

1
used 必須
integer 最小値: 0

今の期間に端末が消費した量

0
remaining 必須
integer 最小値: 0
0
overage 必須
integer 最小値: 0

今の期間に、上限と調整の合計を超えて消費された量

0
period_starts_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
period_ends_at 任意
string | null date-time

カウンターがリセットされる日時。リセットしないカウンターは null です

"2026-09-21T00:00:00Z"
LicenseCounterResponse 1項目

Schema

object

Example Value

{
  "data": {
    "name": "Example name",
    "unit": "string",
    "reset_period": "string",
    "defined": true,
    "limit": 0,
    "limit_override": 0,
    "adjusted": 1,
    "used": 0,
    "remaining": 0,
    "overage": 0,
    "period_starts_at": "2026-09-21T00:00:00Z",
    "period_ends_at": "2026-09-21T00:00:00Z"
  }
}
項目必須型・説明Example Value
data 必須 { "name": "Example name", "unit": "string", "reset_period": "string", "defined": true, "limit": 0, "limit_override": 0, "adjusted": 1, "used": 0, "remaining": 0, "overage": 0, "period_starts_at": "2026-09-21T00:00:00Z", "period_ends_at": "2026-09-21T00:00:00Z" }
LicenseCounterListResponse 1項目

Schema

object

Example Value

{
  "data": [
    {
      "name": "Example name",
      "unit": "string",
      "reset_period": "string",
      "defined": true,
      "limit": 0,
      "limit_override": 0,
      "adjusted": 1,
      "used": 0,
      "remaining": 0,
      "overage": 0,
      "period_starts_at": "2026-09-21T00:00:00Z",
      "period_ends_at": "2026-09-21T00:00:00Z"
    }
  ]
}
項目必須型・説明Example Value
data 必須
array<LicenseCounter>
[ { "name": "Example name", "unit": "string", "reset_period": "string", "defined": true, "limit": 0, "limit_override": 0, "adjusted": 1, "used": 0, "remaining": 0, "overage": 0, "period_starts_at": "2026-09-21T00:00:00Z", "period_ends_at": "2026-09-21T00:00:00Z" } ]
LicenseCounterEntry 8項目

Schema

object

Example Value

{
  "kind": "string",
  "amount": 1,
  "period": "string",
  "consumption_id": "01K5QWERTY1234567890ABCDEFG",
  "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
  "consumed_at": "2026-09-21T00:00:00Z",
  "reason": "string",
  "recorded_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
kind 必須
string

consumption、adjustment、limit_change のどれか

"string"
amount 必須
integer

消費した量(consumption)、追加・差し引きした量(adjustment)、上限の増減(limit_change)

1
period 必須
string

記録が属する期間。リセットしないカウンターは all、毎月リセットのカウンターは YYYY-MM です

"string"
consumption_id 任意
string | null
"01K5QWERTY1234567890ABCDEFG"
activation_id 任意
PublicId | null
"activation_id_aaaaaaaaaaaaaaaaaaaa"
consumed_at 任意
string | null date-time

端末が申告した消費の時刻(参考の値)

"2026-09-21T00:00:00Z"
reason 任意
string | null
"string"
recorded_at 必須
string date-time
"2026-09-21T00:00:00Z"
LicenseCounterEntryListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "kind": "string",
      "amount": 1,
      "period": "string",
      "consumption_id": "01K5QWERTY1234567890ABCDEFG",
      "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa",
      "consumed_at": "2026-09-21T00:00:00Z",
      "reason": "string",
      "recorded_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<LicenseCounterEntry>
[ { "kind": "string", "amount": 1, "period": "string", "consumption_id": "01K5QWERTY1234567890ABCDEFG", "activation_id": "activation_id_aaaaaaaaaaaaaaaaaaaa", "consumed_at": "2026-09-21T00:00:00Z", "reason": "string", "recorded_at": "2026-09-21T00:00:00Z" } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
LicenseCounterAdjustmentInput 3項目

Schema

object

Example Value

{
  "amount": -1000000000,
  "limit": 0,
  "reason": "string"
}
項目必須型・説明Example Value
amount 任意
integer 最小値: -1000000000 最大値: 1000000000

今の期間に追加(正)・差し引き(負)する量。0は指定できません

-1000000000
limit 任意
integer | null 最小値: 0 最大値: 1000000000

このライセンスだけの上限。null で利用ルールの上限に戻します

0
reason 必須
string 最小文字数: 1 最大文字数: 500
"string"
CustomerInput 5項目

Schema

object

Example Value

{
  "name": "Example name",
  "email": "developer@example.com",
  "external_ref": "string",
  "notes": "string",
  "kind": "individual"
}
項目必須型・説明Example Value
name 任意
string
"Example name"
email 任意
string
"developer@example.com"
external_ref 任意
string
"string"
notes 任意
string
"string"
kind 任意
string

許容値: individual, organization

顧客の種類です。organization(既定)は会社・団体などで、利用者の管理を始めると複数のライセンスユーザーを持てます。individual はソフトウェアを使う本人です。個人の顧客を作る・組織から個人に変えると、顧客と同じ名前とメールアドレスのローカルIDのライセンスユーザーを作り、その顧客の有効なユーザー単位のライセンスを割り当てます。以後の名前とメールアドレスの変更も、その利用者に反映します。組織から個人に変えられるのは、アーカイブされておらず、利用者の管理を使っておらず、ライセンスユーザーが1人以下で、ライセンスがほかのライセンスユーザーに割り当てられていないときだけです(それ以外は 422 VALIDATION_FAILED)。個人から組織へはいつでも変えられ、ライセンスユーザーはそのまま残ります。

"individual"
LicenseUpdateInput 11項目

Schema

object

Example Value

{
  "expires_at": "2026-09-21T00:00:00Z",
  "expiry": "2026-09-21T00:00:00Z",
  "renewal_authority": "string",
  "max_machines_override": 1,
  "max_concurrent_override": 1,
  "license_unit_limit_override": 1,
  "entitlements": {},
  "metadata": {},
  "status_action": "active",
  "reason": "string",
  "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa"
}
項目必須型・説明Example Value
expires_at 任意
string | null date-time

契約期限。nullで期限なしにします。検証プランでは発行時刻から1時間以内である必要があります。

"2026-09-21T00:00:00Z"
expiry 任意
string | null date-time

expires_atの旧名です。expires_atを使ってください。両方を指定した場合はexpires_atを採用します。

"2026-09-21T00:00:00Z"
renewal_authority 任意
string
"string"
max_machines_override 任意
integer | null
1
max_concurrent_override 任意
integer | null
1
license_unit_limit_override 任意
integer | null
1
entitlements 任意
object
{}
metadata 任意
object
{}
status_action 任意
string
"active"
reason 任意
string
"string"
customer_id 任意
PublicId | null

ライセンスの顧客を、管理画面と同じ規則で設定・付け替え・(null で)外します。顧客ID(cus_)か、統合前の顧客組織のID(org_)で指定します。status_action と同時には指定できません。顧客がアーカイブ済み、その顧客に属さないライセンスユーザーへの割当がある、今の顧客と担当の販売店が違う、Stripeでの販売連携で購入されたライセンス、のどれかに当たると 422 VALIDATION_FAILED で断り、details.reasons に customer_archived・assigned_to_other_users・reseller_mismatch・stripe_purchase のどれかを返します。操作履歴に license.customer_changed として理由とともに残ります。

"customer_id_aaaaaaaaaaaaaaaaaaaa"
ResellerInput 7項目

Schema

object

Example Value

{
  "name": "Example name",
  "email": "developer@example.com",
  "external_ref": "string",
  "organization_limit": 1,
  "user_limit": 1,
  "status": "active",
  "metadata": {}
}
項目必須型・説明Example Value
name 任意
string
"Example name"
email 任意
string
"developer@example.com"
external_ref 任意
string
"string"
organization_limit 任意
integer | null

この販売店が担当する顧客(アーカイブ済みを除く)の数の上限です。項目名は、顧客組織を顧客に統合する前の名前を残しています。null なら上限はありません。

1
user_limit 任意
integer | null

この販売店が担当する顧客のライセンスユーザー(利用終了を除く)の合計の上限です。null は上限なしです。

1
status 任意
string
"active"
metadata 任意
object
{}
OrganizationInput 8項目

Schema

object

Example Value

{
  "name": "Example name",
  "email": "developer@example.com",
  "external_ref": "string",
  "user_limit": 1,
  "reseller_id": "reseller_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "metadata": {},
  "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa"
}
項目必須型・説明Example Value
name 任意
string
"Example name"
email 任意
string
"developer@example.com"
external_ref 任意
string
"string"
user_limit 任意
integer | null
1
reseller_id 任意
PublicId | null
"reseller_id_aaaaaaaaaaaaaaaaaaaa"
status 任意
string
"active"
metadata 任意
object
{}
customer_id 任意
PublicId | null

POST だけで使う項目です。顧客ID(cus_…)か統合前の組織ID(org_…)で指定した既存の顧客で、利用者の管理を始めます(external_ref の照合や顧客の新規作成は行いません)。顧客の名前・メールアドレス・external_ref は変わりません。PATCH では無視します。

"customer_id_aaaaaaaaaaaaaaaaaaaa"
OrganizationGroupInput 4項目

Schema

object

Example Value

{
  "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
  "name": "Example name",
  "status": "active",
  "metadata": {}
}
項目必須型・説明Example Value
organization_id 任意

顧客を、顧客ID(cus_…)か統合前の組織ID(org_…)で指定します。その顧客の利用者の管理が有効である必要があります。

"organization_id_aaaaaaaaaaaaaaaaaaaa"
name 任意
string
"Example name"
status 任意
string
"active"
metadata 任意
object
{}
OrganizationGroupMembershipInput 1項目

Schema

object

Example Value

{
  "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa"
}
項目必須型・説明Example Value
license_user_id 任意 "license_user_id_aaaaaaaaaaaaaaaaaaaa"
LicenseUserInput 9項目

ライセンスユーザーは live と test の環境で共有されています。test のAPIキーからは、live のライセンスに席を持つライセンスユーザーを、停止・利用終了も含めて変更できません(403 ENVIRONMENT_MISMATCH)。すでにあるissuerとsubjectでPOSTするとそのユーザーを更新するため、POSTにも同じ拒否が適用されます。

Schema

object

Example Value

{
  "issuer": "string",
  "subject": "string",
  "email": "developer@example.com",
  "name": "Example name",
  "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
  "oidc_connection_id": "oidc_connection_id_aaaaaaaaaaaaaaaaaaaa",
  "saml_connection_id": "saml_connection_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "metadata": {}
}
項目必須型・説明Example Value
issuer 任意
string
"string"
subject 任意
string
"string"
email 任意
string
"developer@example.com"
name 任意
string
"Example name"
organization_id 任意
PublicId | null

顧客を、顧客ID(cus_…)か統合前の組織ID(org_…)で指定します。その顧客の利用者の管理が有効である必要があります。

"organization_id_aaaaaaaaaaaaaaaaaaaa"
oidc_connection_id 任意
PublicId | null

OIDC接続へ関連付ける場合に指定します。チーム以上のプランかつ`oidc_sso`の機能権限が必要です。個人プランでは省略または`null`とし、指定した場合はHTTP 403(`PLAN_ENTITLEMENT_REQUIRED`)を返します。

"oidc_connection_id_aaaaaaaaaaaaaaaaaaaa"
saml_connection_id 任意
PublicId | null

利用者をSAML接続(sml_…)に結び付け、その接続で顧客ポータルにサインインできるようにします。issuerを省略すると、接続のIdPのEntity IDを使い、利用者は接続の顧客に所属します。チーム以上のプランと`oidc_sso`の機能権限が必要です(403 PLAN_ENTITLEMENT_REQUIRED)。1人の利用者に、oidc_connection_idとsaml_connection_idの両方は指定できません。

"saml_connection_id_aaaaaaaaaaaaaaaaaaaa"
status 任意
string
"active"
metadata 任意
object
{}
OidcConnectionCreateInput 14項目

Schema

object

Example Value

{
  "name": "Example name",
  "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
  "issuer": "string",
  "client_id": "01K5QWERTY1234567890ABCDEFG",
  "client_secret": "example-token",
  "authorization_endpoint": "https://example.com/resource",
  "token_endpoint": "https://example.com/resource",
  "jwks_uri": "https://example.com/resource",
  "pkce_required": true,
  "jit_provisioning": true,
  "status": "active",
  "scopes": [
    "string"
  ],
  "allowed_audiences": [
    "string"
  ],
  "metadata": {}
}
項目必須型・説明Example Value
name 任意
string
"Example name"
organization_id 任意
PublicId | null

この接続でサインインする利用者の顧客を、顧客ID(cus_…)か統合前の組織ID(org_…)で指定します(利用者の管理が有効な顧客に限ります)。null なら、どの顧客にも属さない共通の接続です。

"organization_id_aaaaaaaaaaaaaaaaaaaa"
issuer 任意
string
"string"
client_id 任意
string
"01K5QWERTY1234567890ABCDEFG"
client_secret 必須
string
"example-token"
authorization_endpoint 任意
string
"https://example.com/resource"
token_endpoint 任意
string
"https://example.com/resource"
jwks_uri 任意
string
"https://example.com/resource"
pkce_required 任意
boolean
true
jit_provisioning 任意
boolean
true
status 任意
string
"active"
scopes 任意
array<string>
[ "string" ]
allowed_audiences 任意
array<string>
[ "string" ]
metadata 任意
object
{}
OidcConnectionUpdateInput 14項目

Schema

object

Example Value

{
  "client_secret": "example-token",
  "name": "Example name",
  "organization_id": "organization_id_aaaaaaaaaaaaaaaaaaaa",
  "issuer": "string",
  "client_id": "01K5QWERTY1234567890ABCDEFG",
  "authorization_endpoint": "https://example.com/resource",
  "token_endpoint": "https://example.com/resource",
  "jwks_uri": "https://example.com/resource",
  "pkce_required": true,
  "jit_provisioning": true,
  "status": "active",
  "scopes": [
    "string"
  ],
  "allowed_audiences": [
    "string"
  ],
  "metadata": {}
}
項目必須型・説明Example Value
client_secret 任意
string

本人確認を左右する設定を変えるときだけ送ります。送った値で保存し直します。応答には含めません。

"example-token"
name 任意
string
"Example name"
organization_id 任意
PublicId | null

この接続でサインインする利用者の顧客を、顧客ID(cus_…)か統合前の組織ID(org_…)で指定します(利用者の管理が有効な顧客に限ります)。null なら、どの顧客にも属さない共通の接続です。

"organization_id_aaaaaaaaaaaaaaaaaaaa"
issuer 任意
string
"string"
client_id 任意
string
"01K5QWERTY1234567890ABCDEFG"
authorization_endpoint 任意
string
"https://example.com/resource"
token_endpoint 任意
string
"https://example.com/resource"
jwks_uri 任意
string
"https://example.com/resource"
pkce_required 任意
boolean
true
jit_provisioning 任意
boolean
true
status 任意
string
"active"
scopes 任意
array<string>
[ "string" ]
allowed_audiences 任意
array<string>
[ "string" ]
metadata 任意
object
{}
OidcClientSecretRotationInput 1項目

Schema

object

Example Value

{
  "client_secret": "example-token"
}
項目必須型・説明Example Value
client_secret 必須
string
"example-token"
SamlConnection 17項目

顧客ポータルにサインインするための、顧客ごとのSAML 2.0の接続です。UsakeyがSP(サービスプロバイダー)で、顧客のIdPがアサーションに署名します。

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "name": "Example name",
  "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "configured": true,
  "idp_entity_id": "01K5QWERTY1234567890ABCDEFG",
  "idp_sso_url": "https://example.com/resource",
  "idp_metadata_url": "https://example.com/resource",
  "idp_metadata_fetched_at": "2026-09-21T00:00:00Z",
  "idp_certificates": [
    "string"
  ],
  "idp_certificate_details": [
    {
      "sha256_fingerprint": "string",
      "subject_common_name": "Example name",
      "not_before": "2026-09-21T00:00:00Z",
      "not_after": "2026-09-21T00:00:00Z",
      "expired": true
    }
  ],
  "name_id_format": "Example name",
  "jit_provisioning": true,
  "metadata": {
    "trust_upstream_mfa": true,
    "require_phishing_resistant_mfa": true,
    "mfa_authn_contexts": [
      "string"
    ],
    "requested_authn_contexts": [
      "string"
    ]
  },
  "service_provider": {
    "entity_id": "https://example.com/resource",
    "acs_url": "https://example.com/resource",
    "metadata_url": "https://example.com/resource"
  },
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
public_id 任意 "public_id_aaaaaaaaaaaaaaaaaaaa"
name 任意
string
"Example name"
customer_id 任意
PublicId | null

この接続でサインインする利用者の顧客(cus_…)です。あとから変わりません。

"customer_id_aaaaaaaaaaaaaaaaaaaa"
status 任意
string

activeかdisabledです。

"active"
configured 任意
boolean

IdPのEntity ID・SSOのURL・1つ以上の署名の証明書がそろっているかです。trueで、接続が有効なときだけ、利用者がサインインできます。

true
idp_entity_id 任意
string | null

IdPのEntity IDです。応答の発行者(Issuer)はこの値と完全に一致する必要があります。この値(末尾の/を除く)が、接続のライセンスユーザーのissuerになります。

"01K5QWERTY1234567890ABCDEFG"
idp_sso_url 任意
string | null uri

HTTP-Redirectで受ける、IdPのHTTPSのシングルサインオンのURLです。

"https://example.com/resource"
idp_metadata_url 任意
string | null uri
"https://example.com/resource"
idp_metadata_fetched_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
idp_certificates 任意
array<string>

IdPの署名の証明書(PEM)です。入れ替えのあいだ新旧を並べて登録できるよう、3つまで持てます。署名はこの証明書だけで確かめ、応答に埋め込まれた証明書は使いません。

[ "string" ]
idp_certificate_details 任意
array<SamlCertificateDetail>

署名の証明書ごとの、SHA-256の指紋・共通名(CN)・有効期間です。並びはidp_certificatesと同じです。期限切れの証明書で署名された応答は断ります。

[ { "sha256_fingerprint": "string", "subject_common_name": "Example name", "not_before": "2026-09-21T00:00:00Z", "not_after": "2026-09-21T00:00:00Z", "expired": true } ]
name_id_format 任意
string | null

IdPに求めるNameIDの形式(email_address・persistent・unspecified)です。nullなら、IdPの設定に任せます。

"Example name"
jit_provisioning 任意
boolean

IdPで本人確認できた人を、初回のサインインで顧客のライセンスユーザーとして登録するかです。ライセンスは自動では割り当てません。

true
metadata 任意 { "trust_upstream_mfa": true, "require_phishing_resistant_mfa": true, "mfa_authn_contexts": [ "string" ], "requested_authn_contexts": [ "string" ] }
service_provider 任意 { "entity_id": "https://example.com/resource", "acs_url": "https://example.com/resource", "metadata_url": "https://example.com/resource" }
created_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
updated_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
SamlCertificateDetail 5項目

Schema

object

Example Value

{
  "sha256_fingerprint": "string",
  "subject_common_name": "Example name",
  "not_before": "2026-09-21T00:00:00Z",
  "not_after": "2026-09-21T00:00:00Z",
  "expired": true
}
項目必須型・説明Example Value
sha256_fingerprint 任意
string

IdPの画面の拇印と同じく、大文字の16進数をコロンで区切った値です。

"string"
subject_common_name 任意
string | null
"Example name"
not_before 任意
string date-time
"2026-09-21T00:00:00Z"
not_after 任意
string date-time
"2026-09-21T00:00:00Z"
expired 任意
boolean
true
SamlServiceProvider 3項目

IdPに登録する値です。接続ごとに違うので、ある接続に向けて発行されたアサーションは、ほかの接続では受け付けません。

Schema

object

Example Value

{
  "entity_id": "https://example.com/resource",
  "acs_url": "https://example.com/resource",
  "metadata_url": "https://example.com/resource"
}
項目必須型・説明Example Value
entity_id 任意
string uri

SPのEntity ID(識別子・Audience URI)です。

"https://example.com/resource"
acs_url 任意
string uri

HTTP-POSTの応答を受けるACSのURL(応答のURL)です。

"https://example.com/resource"
metadata_url 任意
string uri

SPのメタデータです。秘密の値は含みません。

"https://example.com/resource"
SamlConnectionMetadata 4項目

IdPの多要素認証の扱いです。trust_upstream_mfaをtrueにすると、Usakeyの2段階認証を設定していない利用者は、以後IdPの多要素認証で本人確認します。require_phishing_resistant_mfaは、多要素認証が足りないときの案内を変えます。IdPの多要素認証を数えるのは、AuthnContextClassRefかMicrosoft Entra IDのauthnmethodsreferencesの値が、mfa_authn_contextsのどれかと一致するときだけです。requested_authn_contextsは、認証の要求のRequestedAuthnContextに入ります。どちらの一覧も、空白を含まないURIかURNを10個まで持てます。ほかのキーは断ります。

Schema

object

Example Value

{
  "trust_upstream_mfa": true,
  "require_phishing_resistant_mfa": true,
  "mfa_authn_contexts": [
    "string"
  ],
  "requested_authn_contexts": [
    "string"
  ]
}
項目必須型・説明Example Value
trust_upstream_mfa 任意
boolean
true
require_phishing_resistant_mfa 任意
boolean
true
mfa_authn_contexts 任意
array<string> 最大要素数: 10
[ "string" ]
requested_authn_contexts 任意
array<string> 最大要素数: 10
[ "string" ]
SamlConnectionResponse 1項目

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "configured": true,
    "idp_entity_id": "01K5QWERTY1234567890ABCDEFG",
    "idp_sso_url": "https://example.com/resource",
    "idp_metadata_url": "https://example.com/resource",
    "idp_metadata_fetched_at": "2026-09-21T00:00:00Z",
    "idp_certificates": [
      "string"
    ],
    "idp_certificate_details": [
      {
        "sha256_fingerprint": "string",
        "subject_common_name": "Example name",
        "not_before": "2026-09-21T00:00:00Z",
        "not_after": "2026-09-21T00:00:00Z",
        "expired": true
      }
    ],
    "name_id_format": "Example name",
    "jit_provisioning": true,
    "metadata": {
      "trust_upstream_mfa": true,
      "require_phishing_resistant_mfa": true,
      "mfa_authn_contexts": [
        "string"
      ],
      "requested_authn_contexts": [
        "string"
      ]
    },
    "service_provider": {
      "entity_id": "https://example.com/resource",
      "acs_url": "https://example.com/resource",
      "metadata_url": "https://example.com/resource"
    },
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
項目必須型・説明Example Value
data 必須 { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "configured": true, "idp_entity_id": "01K5QWERTY1234567890ABCDEFG", "idp_sso_url": "https://example.com/resource", "idp_metadata_url": "https://example.com/resource", "idp_metadata_fetched_at": "2026-09-21T00:00:00Z", "idp_certificates": [ "string" ], "idp_certificate_details": [ { "sha256_fingerprint": "string", "subject_common_name": "Example name", "not_before": "2026-09-21T00:00:00Z", "not_after": "2026-09-21T00:00:00Z", "expired": true } ], "name_id_format": "Example name", "jit_provisioning": true, "metadata": { "trust_upstream_mfa": true, "require_phishing_resistant_mfa": true, "mfa_authn_contexts": [ "string" ], "requested_authn_contexts": [ "string" ] }, "service_provider": { "entity_id": "https://example.com/resource", "acs_url": "https://example.com/resource", "metadata_url": "https://example.com/resource" }, "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
SamlConnectionListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "configured": true,
      "idp_entity_id": "01K5QWERTY1234567890ABCDEFG",
      "idp_sso_url": "https://example.com/resource",
      "idp_metadata_url": "https://example.com/resource",
      "idp_metadata_fetched_at": "2026-09-21T00:00:00Z",
      "idp_certificates": [
        "string"
      ],
      "idp_certificate_details": [
        {
          "sha256_fingerprint": "string",
          "subject_common_name": "Example name",
          "not_before": "2026-09-21T00:00:00Z",
          "not_after": "2026-09-21T00:00:00Z",
          "expired": true
        }
      ],
      "name_id_format": "Example name",
      "jit_provisioning": true,
      "metadata": {
        "trust_upstream_mfa": true,
        "require_phishing_resistant_mfa": true,
        "mfa_authn_contexts": [
          "string"
        ],
        "requested_authn_contexts": [
          "string"
        ]
      },
      "service_provider": {
        "entity_id": "https://example.com/resource",
        "acs_url": "https://example.com/resource",
        "metadata_url": "https://example.com/resource"
      },
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<SamlConnection>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "configured": true, "idp_entity_id": "01K5QWERTY1234567890ABCDEFG", "idp_sso_url": "https://example.com/resource", "idp_metadata_url": "https://example.com/resource", "idp_metadata_fetched_at": "2026-09-21T00:00:00Z", "idp_certificates": [ "string" ], "idp_certificate_details": [ { "sha256_fingerprint": "string", "subject_common_name": "Example name", "not_before": "2026-09-21T00:00:00Z", "not_after": "2026-09-21T00:00:00Z", "expired": true } ], "name_id_format": "Example name", "jit_provisioning": true, "metadata": { "trust_upstream_mfa": true, "require_phishing_resistant_mfa": true, "mfa_authn_contexts": [ "string" ], "requested_authn_contexts": [ "string" ] }, "service_provider": { "entity_id": "https://example.com/resource", "acs_url": "https://example.com/resource", "metadata_url": "https://example.com/resource" }, "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
SamlConnectionCreateInput 9項目

Schema

object

Example Value

{
  "name": "Example name",
  "customer_id": "01K5QWERTY1234567890ABCDEFG",
  "idp_entity_id": "01K5QWERTY1234567890ABCDEFG",
  "idp_sso_url": "https://example.com/resource",
  "idp_metadata_url": "https://example.com/resource",
  "idp_certificates": [
    "string"
  ],
  "name_id_format": "email_address",
  "jit_provisioning": true,
  "metadata": {
    "trust_upstream_mfa": true,
    "require_phishing_resistant_mfa": true,
    "mfa_authn_contexts": [
      "string"
    ],
    "requested_authn_contexts": [
      "string"
    ]
  }
}
項目必須型・説明Example Value
name 必須
string 最大文字数: 160
"Example name"
customer_id 必須
string

この接続でサインインする利用者の顧客です。顧客のID(cus_…)か、統合前の組織のID(org_…)で指定します。顧客の利用者の管理が有効である必要があります。

"01K5QWERTY1234567890ABCDEFG"
idp_entity_id 任意
string 最大文字数: 512
"01K5QWERTY1234567890ABCDEFG"
idp_sso_url 任意
string
"https://example.com/resource"
idp_metadata_url 任意
string
"https://example.com/resource"
idp_certificates 任意
array<string> 最大要素数: 3

署名の証明書です。PEMか、BEGIN・ENDの行を除いたBase64のDERで送ります。RSAの証明書を3つまで登録できます。

[ "string" ]
name_id_format 任意
string | null
"email_address"
jit_provisioning 任意
boolean
true
metadata 任意 { "trust_upstream_mfa": true, "require_phishing_resistant_mfa": true, "mfa_authn_contexts": [ "string" ], "requested_authn_contexts": [ "string" ] }
SamlConnectionUpdateInput 9項目

Schema

object

Example Value

{
  "name": "Example name",
  "status": "active",
  "idp_entity_id": "01K5QWERTY1234567890ABCDEFG",
  "idp_sso_url": "https://example.com/resource",
  "idp_metadata_url": "https://example.com/resource",
  "idp_certificates": [
    "string"
  ],
  "name_id_format": "email_address",
  "jit_provisioning": true,
  "metadata": {
    "trust_upstream_mfa": true,
    "require_phishing_resistant_mfa": true,
    "mfa_authn_contexts": [
      "string"
    ],
    "requested_authn_contexts": [
      "string"
    ]
  }
}
項目必須型・説明Example Value
name 任意
string 最大文字数: 160
"Example name"
status 任意
string

許容値: active, disabled

"active"
idp_entity_id 任意
string 最大文字数: 512
"01K5QWERTY1234567890ABCDEFG"
idp_sso_url 任意
string
"https://example.com/resource"
idp_metadata_url 任意
string
"https://example.com/resource"
idp_certificates 任意
array<string> 最大要素数: 3

署名の証明書の全体を置き換えます(PEMか、BEGIN・ENDの行を除いたBase64のDER)。入れ替えのあいだは、新旧の証明書を一緒に送ってください。空の配列を送ると証明書が無くなり、サインインできなくなります。

[ "string" ]
name_id_format 任意
string | null
"email_address"
jit_provisioning 任意
boolean
true
metadata 任意 { "trust_upstream_mfa": true, "require_phishing_resistant_mfa": true, "mfa_authn_contexts": [ "string" ], "requested_authn_contexts": [ "string" ] }
SamlMetadataImportInput 2項目

metadata_urlとmetadata_xmlのどちらか1つを送ってください。

Schema

object

Example Value

{
  "metadata_url": "https://example.com/resource",
  "metadata_xml": "string"
}
項目必須型・説明Example Value
metadata_url 任意
string 最大文字数: 2048

IdPのメタデータのURLです(Microsoft Entra IDの「アプリのフェデレーション メタデータ URL」、Oktaの「Metadata URL」)。443番のHTTPSだけを使えます。

"https://example.com/resource"
metadata_xml 任意
string

IdPからダウンロードしたメタデータのXMLです。256KBまでで、DOCTYPEを含まないものを送ります。

"string"
ScimConnection 11項目

顧客ごとのSCIM 2.0の設定です。顧客のIdPは、設定のトークンを付けてbase_urlを呼び、この顧客の、user_issuerを持つ利用者と、SCIMで作ったグループだけを扱えます。

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "name": "Example name",
  "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
  "saml_connection_id": "saml_connection_id_aaaaaaaaaaaaaaaaaaaa",
  "status": "active",
  "user_issuer": "string",
  "base_url": "https://example.com/resource",
  "last_request_at": "2026-09-21T00:00:00Z",
  "tokens": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "token_prefix": "example-token",
      "status": "active",
      "usable": true,
      "expires_at": "2026-09-21T00:00:00Z",
      "revoked_at": "2026-09-21T00:00:00Z",
      "last_used_at": "2026-09-21T00:00:00Z",
      "created_at": "2026-09-21T00:00:00Z"
    }
  ],
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
public_id 任意 "public_id_aaaaaaaaaaaaaaaaaaaa"
name 任意
string
"Example name"
customer_id 任意
PublicId | null
"customer_id_aaaaaaaaaaaaaaaaaaaa"
saml_connection_id 任意
PublicId | null

同期した利用者がサインインに使うSAML接続です。同期した利用者がローカルIDの利用者ならnullです。あとから変わりません。

"saml_connection_id_aaaaaaaaaaaaaaaaaaaa"
status 任意
string

activeかdisabledです。

"active"
user_issuer 任意
string

この設定が作り、管理するライセンスユーザーのissuerです。SAML接続に結び付けた設定ではIdPのEntity IDで、そうでなければこの設定だけが使う値です。

"string"
base_url 任意
string uri

IdPに登録するSCIMのベースURLです(Microsoft Entra IDの「テナントの URL」、Oktaの「SCIM connector base URL」)。

"https://example.com/resource"
last_request_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
tokens 任意
array<ScimToken>

設定のトークンを、新しい順に返します。トークンの値は含みません。

[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "token_prefix": "example-token", "status": "active", "usable": true, "expires_at": "2026-09-21T00:00:00Z", "revoked_at": "2026-09-21T00:00:00Z", "last_used_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z" } ]
created_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
updated_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
ScimToken 8項目

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "token_prefix": "example-token",
  "status": "active",
  "usable": true,
  "expires_at": "2026-09-21T00:00:00Z",
  "revoked_at": "2026-09-21T00:00:00Z",
  "last_used_at": "2026-09-21T00:00:00Z",
  "created_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
public_id 任意 "public_id_aaaaaaaaaaaaaaaaaaaa"
token_prefix 任意
string

トークンの頭の部分(usk_scim_と8桁の16進数)です。IdPがどのトークンを持っているかを見分けるのに使います。

"example-token"
status 任意
string

activeかrevokedです。

"active"
usable 任意
boolean

今このトークンを受け付けるか(activeで、expires_atを過ぎていない)です。

true
expires_at 任意
string | null date-time

トークンが使えなくなる日時です。新しいトークンを作ると、その24時間後になります。nullなら期限はありません。

"2026-09-21T00:00:00Z"
revoked_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
last_used_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
created_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
ScimTokenIssued 10項目

Schema

object

Example Value

{
  "token": "example-token",
  "scim_connection_id": "scim_connection_id_aaaaaaaaaaaaaaaaaaaa",
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "token_prefix": "example-token",
  "status": "active",
  "usable": true,
  "expires_at": "2026-09-21T00:00:00Z",
  "revoked_at": "2026-09-21T00:00:00Z",
  "last_used_at": "2026-09-21T00:00:00Z",
  "created_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
token 必須
string

Authorization: Bearerに付けるSCIMのトークンです。値を返すのはこの応答だけで、Usakeyにはダイジェストだけが残ります。

"example-token"
scim_connection_id 任意 "scim_connection_id_aaaaaaaaaaaaaaaaaaaa"
public_id 任意 "public_id_aaaaaaaaaaaaaaaaaaaa"
token_prefix 任意
string
"example-token"
status 任意
string
"active"
usable 任意
boolean
true
expires_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
revoked_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
last_used_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
created_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
ScimTokenIssuedResponse 1項目

Schema

object

Example Value

{
  "data": {
    "token": "example-token",
    "scim_connection_id": "scim_connection_id_aaaaaaaaaaaaaaaaaaaa",
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "token_prefix": "example-token",
    "status": "active",
    "usable": true,
    "expires_at": "2026-09-21T00:00:00Z",
    "revoked_at": "2026-09-21T00:00:00Z",
    "last_used_at": "2026-09-21T00:00:00Z",
    "created_at": "2026-09-21T00:00:00Z"
  }
}
項目必須型・説明Example Value
data 必須 { "token": "example-token", "scim_connection_id": "scim_connection_id_aaaaaaaaaaaaaaaaaaaa", "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "token_prefix": "example-token", "status": "active", "usable": true, "expires_at": "2026-09-21T00:00:00Z", "revoked_at": "2026-09-21T00:00:00Z", "last_used_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z" }
ScimConnectionResponse 1項目

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "name": "Example name",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "saml_connection_id": "saml_connection_id_aaaaaaaaaaaaaaaaaaaa",
    "status": "active",
    "user_issuer": "string",
    "base_url": "https://example.com/resource",
    "last_request_at": "2026-09-21T00:00:00Z",
    "tokens": [
      {
        "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
        "token_prefix": "example-token",
        "status": "active",
        "usable": true,
        "expires_at": "2026-09-21T00:00:00Z",
        "revoked_at": "2026-09-21T00:00:00Z",
        "last_used_at": "2026-09-21T00:00:00Z",
        "created_at": "2026-09-21T00:00:00Z"
      }
    ],
    "created_at": "2026-09-21T00:00:00Z",
    "updated_at": "2026-09-21T00:00:00Z"
  }
}
項目必須型・説明Example Value
data 必須 { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa", "saml_connection_id": "saml_connection_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "user_issuer": "string", "base_url": "https://example.com/resource", "last_request_at": "2026-09-21T00:00:00Z", "tokens": [ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "token_prefix": "example-token", "status": "active", "usable": true, "expires_at": "2026-09-21T00:00:00Z", "revoked_at": "2026-09-21T00:00:00Z", "last_used_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z" } ], "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" }
ScimConnectionListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "name": "Example name",
      "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
      "saml_connection_id": "saml_connection_id_aaaaaaaaaaaaaaaaaaaa",
      "status": "active",
      "user_issuer": "string",
      "base_url": "https://example.com/resource",
      "last_request_at": "2026-09-21T00:00:00Z",
      "tokens": [
        {
          "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
          "token_prefix": "example-token",
          "status": "active",
          "usable": true,
          "expires_at": "2026-09-21T00:00:00Z",
          "revoked_at": "2026-09-21T00:00:00Z",
          "last_used_at": "2026-09-21T00:00:00Z",
          "created_at": "2026-09-21T00:00:00Z"
        }
      ],
      "created_at": "2026-09-21T00:00:00Z",
      "updated_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<ScimConnection>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "name": "Example name", "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa", "saml_connection_id": "saml_connection_id_aaaaaaaaaaaaaaaaaaaa", "status": "active", "user_issuer": "string", "base_url": "https://example.com/resource", "last_request_at": "2026-09-21T00:00:00Z", "tokens": [ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "token_prefix": "example-token", "status": "active", "usable": true, "expires_at": "2026-09-21T00:00:00Z", "revoked_at": "2026-09-21T00:00:00Z", "last_used_at": "2026-09-21T00:00:00Z", "created_at": "2026-09-21T00:00:00Z" } ], "created_at": "2026-09-21T00:00:00Z", "updated_at": "2026-09-21T00:00:00Z" } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
ScimConnectionCreateInput 3項目

Schema

object

Example Value

{
  "customer_id": "01K5QWERTY1234567890ABCDEFG",
  "saml_connection_id": "01K5QWERTY1234567890ABCDEFG",
  "name": "Example name"
}
項目必須型・説明Example Value
customer_id 必須
string

同期する顧客です。顧客のID(cus_…)か、統合前の組織のID(org_…)で指定します。顧客の利用者の管理が有効である必要があります。

"01K5QWERTY1234567890ABCDEFG"
saml_connection_id 任意
string | null

同期した利用者がサインインに使う、同じ顧客の、IdPの情報を登録済みのSAML接続です。ローカルIDの利用者にするときは省略します。

"01K5QWERTY1234567890ABCDEFG"
name 任意
string 最大文字数: 160

管理コンソールで設定を見分けるための名前です。省略すると、SAML接続の名前か顧客の名前から付けます。

"Example name"
ScimConnectionUpdateInput 2項目

Schema

object

Example Value

{
  "name": "Example name",
  "status": "active"
}
項目必須型・説明Example Value
name 任意
string 最大文字数: 160
"Example name"
status 任意
string

許容値: active, disabled

"active"
LicenseAssignmentInput 5項目

Schema

object

Example Value

{
  "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
  "source_group_id": "source_group_id_aaaaaaaaaaaaaaaaaaaa",
  "expires_at": "2026-09-21T00:00:00Z",
  "entitlement_overrides": {},
  "metadata": {}
}
項目必須型・説明Example Value
license_user_id 任意 "license_user_id_aaaaaaaaaaaaaaaaaaaa"
source_group_id 任意
PublicId | null
"source_group_id_aaaaaaaaaaaaaaaaaaaa"
expires_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
entitlement_overrides 任意
object
{}
metadata 任意
object
{}
WebhookInput 3項目

Schema

object

Example Value

{
  "name": "Example name",
  "url": "https://example.com/resource",
  "events": [
    "string"
  ]
}
項目必須型・説明Example Value
name 任意
string
"Example name"
url 任意
string uri
"https://example.com/resource"
events 任意
array<string>
[ "string" ]
WebhookSecretRotationInput 1項目

Schema

object

Example Value

{
  "activates_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
activates_at 任意
string date-time
"2026-09-21T00:00:00Z"
TrialConversionInput 3項目

Schema

object

Example Value

{
  "target_policy_id": "target_policy_id_aaaaaaaaaaaaaaaaaaaa",
  "expires_at": "2026-09-21T00:00:00Z",
  "entitlement_overrides": {}
}
項目必須型・説明Example Value
target_policy_id 任意 "target_policy_id_aaaaaaaaaaaaaaaaaaaa"
expires_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
entitlement_overrides 任意
object
{}
LicenseOrder 17項目

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "order_number": "string",
  "status": "unredeemed",
  "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
  "product_id": "prod_0123456789abcdef0123",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "quantity": 1,
  "redeemed_count": 0,
  "remaining": 0,
  "license_expires_at": "2026-09-21T00:00:00Z",
  "license_duration_days": 1,
  "notes": "string",
  "canceled_at": "2026-09-21T00:00:00Z",
  "cancel_reason": "string",
  "created_at": "2026-09-21T00:00:00Z",
  "updated_at": "2026-09-21T00:00:00Z",
  "version": 0
}
項目必須型・説明Example Value
public_id 必須 "public_id_aaaaaaaaaaaaaaaaaaaa"
order_number 必須
string 最大文字数: 64

人が注文を照合するための業務の番号(販売元が付けたもの。無ければ ORD-年月日-4文字)

"string"
status 必須
string

許容値: unredeemed, partially_redeemed, redeemed, canceled

"unredeemed"
customer_id 必須 "customer_id_aaaaaaaaaaaaaaaaaaaa"
product_id 必須 "prod_0123456789abcdef0123"
policy_id 必須 "policy_id_aaaaaaaaaaaaaaaaaaaa"
quantity 必須
integer 最小値: 1 最大値: 10000
1
redeemed_count 必須
integer 最小値: 0
0
remaining 必須
integer 最小値: 0
0
license_expires_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
license_duration_days 任意
integer | null 最小値: 1 最大値: 3650
1
notes 任意
string | null
"string"
canceled_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
cancel_reason 任意
string | null
"string"
created_at 任意
string date-time
"2026-09-21T00:00:00Z"
updated_at 任意
string date-time
"2026-09-21T00:00:00Z"
version 必須
integer 最小値: 0
0
LicenseOrderCode 11項目

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa",
  "code_hint": "string",
  "status": "active",
  "max_redemptions": 1,
  "redemptions_count": 0,
  "expires_at": "2026-09-21T00:00:00Z",
  "revoked_at": "2026-09-21T00:00:00Z",
  "last_redeemed_at": "2026-09-21T00:00:00Z",
  "sent_at": "2026-09-21T00:00:00Z",
  "created_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
public_id 必須 "public_id_aaaaaaaaaaaaaaaaaaaa"
order_id 必須 "order_id_aaaaaaaaaaaaaaaaaaaa"
code_hint 必須
string

種類と末尾4文字(例 RDM-…-7FT7)

"string"
status 必須
string

許容値: active, used, expired, revoked

"active"
max_redemptions 必須
integer 最小値: 1
1
redemptions_count 必須
integer 最小値: 0
0
expires_at 必須
string date-time
"2026-09-21T00:00:00Z"
revoked_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
last_redeemed_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
sent_at 任意
string | null date-time

コードを最後に顧客へメールで送った日時

"2026-09-21T00:00:00Z"
created_at 任意
string date-time
"2026-09-21T00:00:00Z"
IssuedLicenseOrderCode 12項目

Schema

LicenseOrderCode + object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa",
  "code_hint": "string",
  "status": "active",
  "max_redemptions": 1,
  "redemptions_count": 0,
  "expires_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
code 任意
string

引換コードの全文。発行したとき、reveal_codes が false でないときだけ返します

"string"
public_id 必須 "public_id_aaaaaaaaaaaaaaaaaaaa"
order_id 必須 "order_id_aaaaaaaaaaaaaaaaaaaa"
code_hint 必須
string

種類と末尾4文字(例 RDM-…-7FT7)

"string"
status 必須
string

許容値: active, used, expired, revoked

"active"
max_redemptions 必須
integer 最小値: 1
1
redemptions_count 必須
integer 最小値: 0
0
expires_at 必須
string date-time
"2026-09-21T00:00:00Z"
revoked_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
last_redeemed_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
sent_at 任意
string | null date-time

コードを最後に顧客へメールで送った日時

"2026-09-21T00:00:00Z"
created_at 任意
string date-time
"2026-09-21T00:00:00Z"
LicenseOrderRedemption 8項目

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa",
  "code_id": "code_id_aaaaaaaaaaaaaaaaaaaa",
  "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
  "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
  "channel": "redeem_page",
  "email": "developer@example.com",
  "redeemed_at": "2026-09-21T00:00:00Z"
}
項目必須型・説明Example Value
public_id 必須 "public_id_aaaaaaaaaaaaaaaaaaaa"
order_id 必須 "order_id_aaaaaaaaaaaaaaaaaaaa"
code_id 必須 "code_id_aaaaaaaaaaaaaaaaaaaa"
license_id 必須 "license_id_aaaaaaaaaaaaaaaaaaaa"
license_user_id 任意
PublicId | null
"license_user_id_aaaaaaaaaaaaaaaaaaaa"
channel 必須
string

許容値: redeem_page, runtime

"redeem_page"
email 任意
string | null

引き換えのときに入力されたアドレス(ライセンスキーを送った先。ユーザー単位の利用ルールでは割り当てた利用者)

"developer@example.com"
redeemed_at 必須
string date-time
"2026-09-21T00:00:00Z"
LicenseOrderResponse 1項目

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "order_number": "string",
    "status": "unredeemed",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "quantity": 1,
    "redeemed_count": 0,
    "remaining": 0,
    "version": 0
  }
}
項目必須型・説明Example Value
data 必須
LicenseOrder
{ "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "order_number": "string", "status": "unredeemed", "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa", "product_id": "prod_0123456789abcdef0123", "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "quantity": 1, "redeemed_count": 0, "remaining": 0, "version": 0 }
LicenseOrderListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "order_number": "string",
      "status": "unredeemed",
      "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
      "product_id": "prod_0123456789abcdef0123",
      "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
      "quantity": 1,
      "redeemed_count": 0,
      "remaining": 0,
      "version": 0
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<LicenseOrder>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "order_number": "string", "status": "unredeemed", "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa", "product_id": "prod_0123456789abcdef0123", "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "quantity": 1, "redeemed_count": 0, "remaining": 0, "version": 0 } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
LicenseOrderCreateResponse 1項目

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "order_number": "string",
    "status": "unredeemed",
    "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
    "product_id": "prod_0123456789abcdef0123",
    "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
    "quantity": 1,
    "redeemed_count": 0,
    "remaining": 0,
    "version": 0,
    "codes": [
      {
        "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
        "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa",
        "code_hint": "string",
        "status": "active",
        "max_redemptions": 1,
        "redemptions_count": 0,
        "expires_at": "2026-09-21T00:00:00Z"
      }
    ],
    "codes_emailed": true
  }
}
項目必須型・説明Example Value
data 必須
LicenseOrder + object
{ "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "order_number": "string", "status": "unredeemed", "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa", "product_id": "prod_0123456789abcdef0123", "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa", "quantity": 1, "redeemed_count": 0, "remaining": 0, "version": 0, "codes": [ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa", "code_hint": "string", "status": "active", "max_redemptions": 1, "redemptions_count": 0, "expires_at": "2026-09-21T00:00:00Z" } ], "codes_emailed": true }
LicenseOrderCodeListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa",
      "code_hint": "string",
      "status": "active",
      "max_redemptions": 1,
      "redemptions_count": 0,
      "expires_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<LicenseOrderCode>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa", "code_hint": "string", "status": "active", "max_redemptions": 1, "redemptions_count": 0, "expires_at": "2026-09-21T00:00:00Z" } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
LicenseOrderCodesIssueResponse 1項目

Schema

object

Example Value

{
  "data": {
    "codes": [
      {
        "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
        "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa",
        "code_hint": "string",
        "status": "active",
        "max_redemptions": 1,
        "redemptions_count": 0,
        "expires_at": "2026-09-21T00:00:00Z"
      }
    ],
    "codes_emailed": true
  }
}
項目必須型・説明Example Value
data 必須
object
{ "codes": [ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa", "code_hint": "string", "status": "active", "max_redemptions": 1, "redemptions_count": 0, "expires_at": "2026-09-21T00:00:00Z" } ], "codes_emailed": true }
LicenseOrderRedemptionListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa",
      "code_id": "code_id_aaaaaaaaaaaaaaaaaaaa",
      "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa",
      "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa",
      "channel": "redeem_page",
      "email": "developer@example.com",
      "redeemed_at": "2026-09-21T00:00:00Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<LicenseOrderRedemption>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "order_id": "order_id_aaaaaaaaaaaaaaaaaaaa", "code_id": "code_id_aaaaaaaaaaaaaaaaaaaa", "license_id": "license_id_aaaaaaaaaaaaaaaaaaaa", "license_user_id": "license_user_id_aaaaaaaaaaaaaaaaaaaa", "channel": "redeem_page", "email": "developer@example.com", "redeemed_at": "2026-09-21T00:00:00Z" } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
LicenseOrderCreateInput 12項目

Schema

object

Example Value

{
  "customer_id": "customer_id_aaaaaaaaaaaaaaaaaaaa",
  "product_id": "prod_0123456789abcdef0123",
  "policy_id": "policy_id_aaaaaaaaaaaaaaaaaaaa",
  "quantity": 1,
  "order_number": "string",
  "license_expires_at": "2026-09-21T00:00:00Z",
  "license_duration_days": 1,
  "notes": "string",
  "code_mode": "shared",
  "codes_expires_at": "2026-09-21T00:00:00Z",
  "send_codes": false,
  "reveal_codes": true
}
項目必須型・説明Example Value
customer_id 必須 "customer_id_aaaaaaaaaaaaaaaaaaaa"
product_id 必須 "prod_0123456789abcdef0123"
policy_id 必須 "policy_id_aaaaaaaaaaaaaaaaaaaa"
quantity 必須
integer 最小値: 1 最大値: 10000
1
order_number 任意
string 最大文字数: 64
"string"
license_expires_at 任意
string date-time

注文のすべてのライセンスの決まった期限。license_duration_days と一緒には指定できません

"2026-09-21T00:00:00Z"
license_duration_days 任意
integer 最小値: 1 最大値: 3650

ライセンスは引き換えのたびに、その日からこの日数で期限が切れます。license_expires_at と一緒には指定できません

1
notes 任意
string 最大文字数: 2000
"string"
code_mode 任意
string

許容値: shared, per_unit

"shared"
codes_expires_at 任意
string date-time

引換コードの期限。既定は90日、最長3年です

"2026-09-21T00:00:00Z"
send_codes 任意
boolean

顧客の連絡先メールアドレスへコードを送ります

false
reveal_codes 任意
boolean

応答にコードの全文を入れます。false にするときは send_codes を true にしてください

true
LicenseOrderUpdateInput 3項目

Schema

object

Example Value

{
  "order_number": "string",
  "notes": "string",
  "quantity": 1
}
項目必須型・説明Example Value
order_number 任意
string 最大文字数: 64
"string"
notes 任意
string | null 最大文字数: 2000
"string"
quantity 任意
integer 最小値: 1 最大値: 10000
1
LicenseOrderCancelInput 1項目

Schema

object

Example Value

{
  "reason": "string"
}
項目必須型・説明Example Value
reason 任意
string 最大文字数: 500

注文を取り消す理由。監査ログに残ります

"string"
LicenseOrderCodesIssueInput 5項目

Schema

object

Example Value

{
  "count": 1,
  "max_redemptions": 1,
  "expires_at": "2026-09-21T00:00:00Z",
  "send_codes": false,
  "reveal_codes": true
}
項目必須型・説明Example Value
count 任意
integer 最小値: 1 最大値: 500
1
max_redemptions 任意
integer 最小値: 1 最大値: 10000

1本あたり使える回数。既定は注文の残りの数量です

1
expires_at 任意
string date-time

既定は90日、最長3年です

"2026-09-21T00:00:00Z"
send_codes 任意
boolean
false
reveal_codes 任意
boolean
true
LicenseIssueResponse 1項目

Schema

object

Example Value

{
  "data": {}
}
項目必須型・説明Example Value
data 必須
License + object
{}
WebhookSecretResponse 1項目

Schema

object

Example Value

{
  "data": {}
}
項目必須型・説明Example Value
data 必須
Webhook + object
{}
ReportExportKind 0項目

Schema

string

許容値: usage_daily, activations, licenses, customers, license_users, license_assignments, audit_events

Example Value

"usage_daily"
ReportExportColumn 3項目

Schema

object

Example Value

{
  "name": "Example name",
  "type": "string",
  "description": "Example description"
}
項目必須型・説明Example Value
name 必須
string
"Example name"
type 必須
string

許容値: string, integer, boolean, timestamp, date

"string"
description 必須
string
"Example description"
ReportExport 21項目

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "kind": "usage_daily",
  "format": "csv",
  "environment": "live",
  "status": "pending",
  "source": "console",
  "requested_by": "user",
  "period_from": "2026-09-21T00:00:00Z",
  "period_to": "2026-09-21T00:00:00Z",
  "row_count": 0,
  "byte_size": 0,
  "content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "filename": "Example name",
  "failure_code": "string",
  "created_at": "2026-09-21T00:00:00Z",
  "started_at": "2026-09-21T00:00:00Z",
  "completed_at": "2026-09-21T00:00:00Z",
  "expires_at": "2026-09-21T00:00:00Z",
  "schedule_id": "schedule_id_aaaaaaaaaaaaaaaaaaaa",
  "delivery": {
    "status": "pending",
    "error_code": "string",
    "delivered_at": "2026-09-21T00:00:00Z",
    "object_key": "string"
  },
  "columns": [
    {
      "name": "Example name",
      "type": "string",
      "description": "Example description"
    }
  ]
}
項目必須型・説明Example Value
public_id 必須 "public_id_aaaaaaaaaaaaaaaaaaaa"
kind 必須 "usage_daily"
format 必須
string

許容値: csv, parquet

"csv"
environment 必須
string | null

許容値: live, test, null

usage_daily・activations・licenses・license_assignmentsの製品の環境です。共有の種類ではnullです。

"live"
status 必須
string

許容値: pending, running, ready, failed, expired

"pending"
source 必須
string

許容値: console, api

"console"
requested_by 必須
string

許容値: user, api_key

"user"
period_from 任意
string | null date-time
"2026-09-21T00:00:00Z"
period_to 任意
string | null date-time
"2026-09-21T00:00:00Z"
row_count 任意
integer | null 最小値: 0
0
byte_size 任意
integer | null 最小値: 0
0
content_sha256 任意
string | null 形式: ^[0-9a-f]{64}$
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
filename 任意
string | null
"Example name"
failure_code 任意
string | null
"string"
created_at 必須
string date-time
"2026-09-21T00:00:00Z"
started_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
completed_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
expires_at 任意
string | null date-time

この日時までファイルをダウンロードできます。

"2026-09-21T00:00:00Z"
schedule_id 任意
PublicId | null

常にnullです。S3への定期の書き出しは提供を終えました。既存のクライアントが動き続けるように、項目を残しています。

"schedule_id_aaaaaaaaaaaaaaaaaaaa"
delivery 任意
object | null

常にnullです。S3への定期の書き出しは提供を終えました。既存のクライアントが動き続けるように、項目を残しています。

{ "status": "pending", "error_code": "string", "delivered_at": "2026-09-21T00:00:00Z", "object_key": "string" }
columns 任意
array<ReportExportColumn>
[ { "name": "Example name", "type": "string", "description": "Example description" } ]
ReportExportResponse 1項目

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "kind": "usage_daily",
    "format": "csv",
    "environment": "live",
    "status": "pending",
    "source": "console",
    "requested_by": "user",
    "period_from": "2026-09-21T00:00:00Z",
    "period_to": "2026-09-21T00:00:00Z",
    "row_count": 0,
    "byte_size": 0,
    "content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "filename": "Example name",
    "failure_code": "string",
    "created_at": "2026-09-21T00:00:00Z",
    "started_at": "2026-09-21T00:00:00Z",
    "completed_at": "2026-09-21T00:00:00Z",
    "expires_at": "2026-09-21T00:00:00Z",
    "schedule_id": "schedule_id_aaaaaaaaaaaaaaaaaaaa",
    "delivery": {
      "status": "pending",
      "error_code": "string",
      "delivered_at": "2026-09-21T00:00:00Z",
      "object_key": "string"
    },
    "columns": [
      {
        "name": "Example name",
        "type": "string",
        "description": "Example description"
      }
    ]
  }
}
項目必須型・説明Example Value
data 必須 { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "kind": "usage_daily", "format": "csv", "environment": "live", "status": "pending", "source": "console", "requested_by": "user", "period_from": "2026-09-21T00:00:00Z", "period_to": "2026-09-21T00:00:00Z", "row_count": 0, "byte_size": 0, "content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "filename": "Example name", "failure_code": "string", "created_at": "2026-09-21T00:00:00Z", "started_at": "2026-09-21T00:00:00Z", "completed_at": "2026-09-21T00:00:00Z", "expires_at": "2026-09-21T00:00:00Z", "schedule_id": "schedule_id_aaaaaaaaaaaaaaaaaaaa", "delivery": { "status": "pending", "error_code": "string", "delivered_at": "2026-09-21T00:00:00Z", "object_key": "string" }, "columns": [ { "name": "Example name", "type": "string", "description": "Example description" } ] }
ReportExportListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "kind": "usage_daily",
      "format": "csv",
      "environment": "live",
      "status": "pending",
      "source": "console",
      "requested_by": "user",
      "period_from": "2026-09-21T00:00:00Z",
      "period_to": "2026-09-21T00:00:00Z",
      "row_count": 0,
      "byte_size": 0,
      "content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "filename": "Example name",
      "failure_code": "string",
      "created_at": "2026-09-21T00:00:00Z",
      "started_at": "2026-09-21T00:00:00Z",
      "completed_at": "2026-09-21T00:00:00Z",
      "expires_at": "2026-09-21T00:00:00Z",
      "schedule_id": "schedule_id_aaaaaaaaaaaaaaaaaaaa",
      "delivery": {
        "status": "pending",
        "error_code": "string",
        "delivered_at": "2026-09-21T00:00:00Z",
        "object_key": "string"
      },
      "columns": [
        {
          "name": "Example name",
          "type": "string",
          "description": "Example description"
        }
      ]
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<ReportExport>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "kind": "usage_daily", "format": "csv", "environment": "live", "status": "pending", "source": "console", "requested_by": "user", "period_from": "2026-09-21T00:00:00Z", "period_to": "2026-09-21T00:00:00Z", "row_count": 0, "byte_size": 0, "content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "filename": "Example name", "failure_code": "string", "created_at": "2026-09-21T00:00:00Z", "started_at": "2026-09-21T00:00:00Z", "completed_at": "2026-09-21T00:00:00Z", "expires_at": "2026-09-21T00:00:00Z", "schedule_id": "schedule_id_aaaaaaaaaaaaaaaaaaaa", "delivery": { "status": "pending", "error_code": "string", "delivered_at": "2026-09-21T00:00:00Z", "object_key": "string" }, "columns": [ { "name": "Example name", "type": "string", "description": "Example description" } ] } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
ReportExportInput 5項目

Schema

object

Example Value

{
  "kind": "usage_daily",
  "format": "csv",
  "environment": "live",
  "period_from": "string",
  "period_to": "string"
}
項目必須型・説明Example Value
kind 必須 "usage_daily"
format 任意
string

許容値: csv, parquet

"csv"
environment 任意
string

許容値: live, test

任意です。指定するときはAPIキーの環境にしてください。共有の種類では使いません。

"live"
period_from 任意
string 最大文字数: 64

日付(YYYY-MM-DD。UTCのその日の始め)かISO 8601の日時。

"string"
period_to 任意
string 最大文字数: 64

日付(YYYY-MM-DD。UTCのその日の終わり)かISO 8601の日時。

"string"
ReportExportDownload 5項目

Schema

object

Example Value

{
  "url": "https://example.com/resource",
  "expires_at": "2026-09-21T00:00:00Z",
  "filename": "Example name",
  "content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "byte_size": 0
}
項目必須型・説明Example Value
url 必須
string uri

ファイルを返す、短い時間だけ使えるURLです。Authorizationヘッダーを付けずにアクセスしてください。

"https://example.com/resource"
expires_at 必須
string date-time
"2026-09-21T00:00:00Z"
filename 必須
string
"Example name"
content_sha256 必須
string 形式: ^[0-9a-f]{64}$

ファイルのSHA-256です。取り出したファイルの確認に使います。

"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
byte_size 必須
integer 最小値: 0
0
ReportExportDownloadResponse 1項目

Schema

object

Example Value

{
  "data": {
    "url": "https://example.com/resource",
    "expires_at": "2026-09-21T00:00:00Z",
    "filename": "Example name",
    "content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "byte_size": 0
  }
}
項目必須型・説明Example Value
data 必須 { "url": "https://example.com/resource", "expires_at": "2026-09-21T00:00:00Z", "filename": "Example name", "content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "byte_size": 0 }
BulkImportKind 0項目

Schema

string

許容値: customers, license_users, licenses, license_assignments

Example Value

"customers"
BulkImport 19項目

Schema

object

Example Value

{
  "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
  "kind": "customers",
  "environment": "live",
  "status": "validating",
  "source": "console",
  "requested_by": "user",
  "filename": "Example name",
  "encoding": "utf-8",
  "byte_size": 0,
  "columns": [
    "string"
  ],
  "rows": {
    "total": 0,
    "valid": 0,
    "invalid": 0,
    "applied": 0,
    "unchanged": 0,
    "failed": 0
  },
  "preview": {
    "create": 0,
    "update": 0,
    "none": 0
  },
  "failure_code": "string",
  "created_at": "2026-09-21T00:00:00Z",
  "validated_at": "2026-09-21T00:00:00Z",
  "apply_requested_at": "2026-09-21T00:00:00Z",
  "completed_at": "2026-09-21T00:00:00Z",
  "rows_expire_at": "2026-09-21T00:00:00Z",
  "rows_purged": true
}
項目必須型・説明Example Value
public_id 必須 "public_id_aaaaaaaaaaaaaaaaaaaa"
kind 必須 "customers"
environment 必須
string | null

許容値: live, test, null

licenses・license_assignmentsの製品の環境です。customersとlicense_usersではnullです。

"live"
status 必須
string

許容値: validating, validated, applying, completed, failed, cancelled

"validating"
source 必須
string

許容値: console, api

"console"
requested_by 必須
string

許容値: user, api_key

"user"
filename 任意
string | null
"Example name"
encoding 必須
string

許容値: utf-8, shift_jis

"utf-8"
byte_size 必須
integer 最小値: 0
0
columns 必須
array<string>

アップロードしたファイルの見出しです。

[ "string" ]
rows 必須
object
{ "total": 0, "valid": 0, "invalid": 0, "applied": 0, "unchanged": 0, "failed": 0 }
preview 必須
object

まだ取り込める行の、取り込むと何をするかごとの行数です。

{ "create": 0, "update": 0, "none": 0 }
failure_code 任意
string | null
"string"
created_at 必須
string date-time
"2026-09-21T00:00:00Z"
validated_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
apply_requested_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
completed_at 任意
string | null date-time
"2026-09-21T00:00:00Z"
rows_expire_at 必須
string date-time
"2026-09-21T00:00:00Z"
rows_purged 必須
boolean
true
BulkImportResponse 1項目

Schema

object

Example Value

{
  "data": {
    "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
    "kind": "customers",
    "environment": "live",
    "status": "validating",
    "source": "console",
    "requested_by": "user",
    "filename": "Example name",
    "encoding": "utf-8",
    "byte_size": 0,
    "columns": [
      "string"
    ],
    "rows": {
      "total": 0,
      "valid": 0,
      "invalid": 0,
      "applied": 0,
      "unchanged": 0,
      "failed": 0
    },
    "preview": {
      "create": 0,
      "update": 0,
      "none": 0
    },
    "failure_code": "string",
    "created_at": "2026-09-21T00:00:00Z",
    "validated_at": "2026-09-21T00:00:00Z",
    "apply_requested_at": "2026-09-21T00:00:00Z",
    "completed_at": "2026-09-21T00:00:00Z",
    "rows_expire_at": "2026-09-21T00:00:00Z",
    "rows_purged": true
  }
}
項目必須型・説明Example Value
data 必須 { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "kind": "customers", "environment": "live", "status": "validating", "source": "console", "requested_by": "user", "filename": "Example name", "encoding": "utf-8", "byte_size": 0, "columns": [ "string" ], "rows": { "total": 0, "valid": 0, "invalid": 0, "applied": 0, "unchanged": 0, "failed": 0 }, "preview": { "create": 0, "update": 0, "none": 0 }, "failure_code": "string", "created_at": "2026-09-21T00:00:00Z", "validated_at": "2026-09-21T00:00:00Z", "apply_requested_at": "2026-09-21T00:00:00Z", "completed_at": "2026-09-21T00:00:00Z", "rows_expire_at": "2026-09-21T00:00:00Z", "rows_purged": true }
BulkImportListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa",
      "kind": "customers",
      "environment": "live",
      "status": "validating",
      "source": "console",
      "requested_by": "user",
      "filename": "Example name",
      "encoding": "utf-8",
      "byte_size": 0,
      "columns": [
        "string"
      ],
      "rows": {
        "total": 0,
        "valid": 0,
        "invalid": 0,
        "applied": 0,
        "unchanged": 0,
        "failed": 0
      },
      "preview": {
        "create": 0,
        "update": 0,
        "none": 0
      },
      "failure_code": "string",
      "created_at": "2026-09-21T00:00:00Z",
      "validated_at": "2026-09-21T00:00:00Z",
      "apply_requested_at": "2026-09-21T00:00:00Z",
      "completed_at": "2026-09-21T00:00:00Z",
      "rows_expire_at": "2026-09-21T00:00:00Z",
      "rows_purged": true
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<BulkImport>
[ { "public_id": "public_id_aaaaaaaaaaaaaaaaaaaa", "kind": "customers", "environment": "live", "status": "validating", "source": "console", "requested_by": "user", "filename": "Example name", "encoding": "utf-8", "byte_size": 0, "columns": [ "string" ], "rows": { "total": 0, "valid": 0, "invalid": 0, "applied": 0, "unchanged": 0, "failed": 0 }, "preview": { "create": 0, "update": 0, "none": 0 }, "failure_code": "string", "created_at": "2026-09-21T00:00:00Z", "validated_at": "2026-09-21T00:00:00Z", "apply_requested_at": "2026-09-21T00:00:00Z", "completed_at": "2026-09-21T00:00:00Z", "rows_expire_at": "2026-09-21T00:00:00Z", "rows_purged": true } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
BulkImportInput 3項目

Schema

object

Example Value

{
  "kind": "customers",
  "csv": "string",
  "filename": "Example name"
}
項目必須型・説明Example Value
kind 必須 "customers"
csv 必須
string 最大文字数: 5242880

CSVファイル全体の文字列(UTF-8)。5MBまで。

"string"
filename 任意
string 最大文字数: 255
"Example name"
BulkImportUploadInput 2項目

Schema

object

Example Value

{
  "kind": "customers",
  "file": "string"
}
項目必須型・説明Example Value
kind 必須 "customers"
file 必須
string binary

CSVファイル。5MBまで。

"string"
BulkImportApplyInput 1項目

Schema

object

Example Value

{
  "expected_valid_rows": 0
}
項目必須型・説明Example Value
expected_valid_rows 任意
integer 最小値: 0

確かめた、取り込める行の数です。数が違うと断ります。

0
BulkImportRow 7項目

Schema

object

Example Value

{
  "line": 2,
  "status": "pending",
  "action": "create",
  "record_type": "string",
  "record_id": "01K5QWERTY1234567890ABCDEFG",
  "messages": [
    "string"
  ],
  "license_key": "string"
}
項目必須型・説明Example Value
line 必須
integer 最小値: 2

ファイルの行番号です(見出しが1行目)。

2
status 必須
string

許容値: pending, valid, invalid, applied, unchanged, failed

"pending"
action 必須
string

許容値: create, update, none

検証で見込んだ処理(取り込む前)か、行った処理(取り込んだあと)です。

"create"
record_type 必須
string | null
"string"
record_id 必須
string | null

この行で追加・更新した顧客・ライセンスユーザー・ライセンス・割当のIDです。

"01K5QWERTY1234567890ABCDEFG"
messages 必須
array<string>

行を取り込めない、または取り込めなかった理由です。

[ "string" ]
license_key 任意
string

この行で発行したライセンスのキーの全文です。ライセンスのファイルをアップロードしたAPIキーかAIアシスタントの接続にだけ入ります。

"string"
BulkImportRowListResponse 2項目

Schema

object

Example Value

{
  "data": [
    {
      "line": 2,
      "status": "pending",
      "action": "create",
      "record_type": "string",
      "record_id": "01K5QWERTY1234567890ABCDEFG",
      "messages": [
        "string"
      ],
      "license_key": "string"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
項目必須型・説明Example Value
data 必須
array<BulkImportRow>
[ { "line": 2, "status": "pending", "action": "create", "record_type": "string", "record_id": "01K5QWERTY1234567890ABCDEFG", "messages": [ "string" ], "license_key": "string" } ]
pagination 必須 { "next_cursor": "string", "has_more": true }
BulkImportTemplate 9項目

Schema

object

Example Value

{
  "kind": "customers",
  "columns": [
    {
      "name": "Example name",
      "required": true,
      "description": "Example description"
    }
  ],
  "one_of": [
    "string"
  ],
  "ignored_columns": [
    "string"
  ],
  "forbidden_columns": [
    "string"
  ],
  "header_csv": "string",
  "max_rows": 1,
  "max_bytes": 1,
  "encodings": [
    "utf-8"
  ]
}
項目必須型・説明Example Value
kind 必須 "customers"
columns 必須
array<object>
[ { "name": "Example name", "required": true, "description": "Example description" } ]
one_of 必須
array<string>

このうち1つ以上の列が見出しに必要です。

[ "string" ]
ignored_columns 必須
array<string>

同じ種類の書き出しの列のうち、読み飛ばす列です。

[ "string" ]
forbidden_columns 必須
array<string>

このどれかの列がある見出しは断ります(ライセンスの書き出しを取り込んで、ライセンスを発行し直さないため)。

[ "string" ]
header_csv 必須
string

見出しの1行です(BOMは含みません)。

"string"
max_rows 必須
integer 最小値: 1
1
max_bytes 必須
integer 最小値: 1
1
encodings 必須
array<string>
[ "utf-8" ]
BulkImportTemplateResponse 1項目

Schema

object

Example Value

{
  "data": {
    "kind": "customers",
    "columns": [
      {
        "name": "Example name",
        "required": true,
        "description": "Example description"
      }
    ],
    "one_of": [
      "string"
    ],
    "ignored_columns": [
      "string"
    ],
    "forbidden_columns": [
      "string"
    ],
    "header_csv": "string",
    "max_rows": 1,
    "max_bytes": 1,
    "encodings": [
      "utf-8"
    ]
  }
}
項目必須型・説明Example Value
data 必須 { "kind": "customers", "columns": [ { "name": "Example name", "required": true, "description": "Example description" } ], "one_of": [ "string" ], "ignored_columns": [ "string" ], "forbidden_columns": [ "string" ], "header_csv": "string", "max_rows": 1, "max_bytes": 1, "encodings": [ "utf-8" ] }