アカウント管理API
MSPやディストリビューターがアカウントを管理するためのAPI
APIの機能
APIで実現する主なユースケースは以下の通りです。
試用版アカウントを作成
有料アカウントへ変換
MSPをすべて一覧表示
現在の使用状況を取得
月間の使用量を取得
有料アカウントを取り消し
期限切れのアカウントを有効化
MSP製品を一覧表示
保留中/競合するアカウントの削除
API定義
convert-to-paid
JWT with HS512 alg
Bearer
vendor_name(Provided by Keeper)
OK
Bad Request
Unauthorized
POST /bi_api/v1/services/mspvendor/convert-to-paid HTTP/1.1
Host: keepersecurity.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 29
{
"vendorInternalId": "string"
}{
"success": true,
"message": "Converted Trial to Paid"
}Fetch Current Usage
JWT with HS512 alg
Bearer
vendor_name(Provided by Keeper)
OK
current usage details
Bad Request
Unauthorized
POST /bi_api/v1/services/mspvendor/current-usage HTTP/1.1
Host: keepersecurity.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 29
{
"vendorInternalId": "string"
}{
"success": true,
"usage": {
"mspItem": {
"companyName": "msp",
"companyId": "msp_partnerId",
"invitedUsers": 0,
"products": [
{
"productName": "basePlan",
"productId": 720,
"quantity": 1
},
{
"productName": "addon",
"productId": 916,
"quantity": 1
}
]
},
"mcItems": [
{
"companyName": "mc1",
"companyId": "mc1_partnerId",
"invitedUsers": 0,
"maximumAllowedUsers": 11110,
"plan": "Keeper Business Bundle",
"products": [
{
"productName": "bundle",
"productId": 10011,
"quantity": 2
},
{
"productName": "addon",
"productId": 916,
"quantity": 1.1
}
]
},
{
"companyName": "mc2",
"companyId": "mc2_partnerId",
"invitedUsers": 0,
"maximumAllowedUsers": 1000,
"plan": "Keeper Business Plus Bundle",
"products": [
{
"productName": "bundle2",
"productId": 10011,
"quantity": 1.1
},
{
"productName": "addon",
"productId": 916,
"quantity": 1.1
}
]
}
]
}
}Fetch Monthly Usage
JWT with HS512 alg
Bearer
vendor_name(Provided by Keeper)
OK
usage details
Bad Request
Unauthorized
POST /bi_api/v1/services/mspvendor/monthly-usage HTTP/1.1
Host: keepersecurity.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 56
{
"vendorInternalId": "string",
"month": "08",
"year": "2021"
}{
"success": true,
"usage": {
"mspItem": {
"companyName": "msp",
"companyId": "msp_partner_id",
"products": [
{
"productName": "basePlan",
"productId": 720,
"quantity": 1.1,
"unitPrice": 2.54,
"unit": "string",
"avgMonthlyCost": 3.11
},
{
"productName": "addon",
"productId": 916,
"quantity": 1.1,
"unitPrice": 2.54,
"unit": "string",
"avgMonthlyCost": 3.11
}
],
"total": 2.54
},
"mcItems": [
{
"companyName": "mc1",
"companyId": "mc1_partner_id",
"products": [
{
"productName": "bundle",
"productId": 720,
"quantity": 1.1,
"unitPrice": 2.54,
"unit": "string",
"avgMonthlyCost": 3.11
},
{
"productName": "addon",
"productId": 916,
"quantity": 1.1,
"unitPrice": 2.54,
"unit": "string",
"avgMonthlyCost": 3.11
}
],
"total": 2.54
},
{
"companyName": "mc2",
"companyId": "mc2_partner_id",
"products": [
{
"productName": "bundle2",
"productId": 720,
"quantity": 1.1,
"unitPrice": 2.54,
"unit": "string",
"avgMonthlyCost": 3.11
},
{
"productName": "addon",
"productId": 916,
"quantity": 1.1,
"unitPrice": 2.54,
"unit": "string",
"avgMonthlyCost": 3.11
}
],
"total": 2.54
}
],
"subTotal": 10.1,
"tax": 0,
"totalCost": 10.1,
"currency": "USD"
}
}Cancel Paid Account
JWT with HS512 alg
Bearer
vendor_name(Provided by Keeper)
OK
Bad Request
Unauthorized
POST /bi_api/v1/services/mspvendor/cancel-paid-account HTTP/1.1
Host: keepersecurity.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 20
{
"partnerId": "text"
}{
"success": true,
"message": "Cancelled paid account"
}Create Trial Account
Bearer JWT
vendor_name(Provided by Keeper)
Create Trial Account Request
iso standard country code
USCountry Code followed by phone number
+1 9191919191falseSuccess Response
partner Details
Unique identifier for the given user.
iso standard country code
USzip-code for US , postalCode for non-US countriesUnique identifier for each account.
Bad Request
Unauthorized
POST /bi_api/v1/services/mspvendor/create-trial-account HTTP/1.1
Host: keepersecurity.com
Content-Type: application/json
Accept: */*
Content-Length: 199
{
"name": "text",
"country": "US",
"zipCode": "text",
"email": "name@gmail.com",
"vendorInternalId": "text",
"state": "text",
"city": "text",
"street": "text",
"phone": "+1 9191919191",
"showPricingInMSPConsole": false
}{
"success": true,
"partnerDetails": {
"partnerId": "12345678-1234-5678-1234-567812345678",
"first name": "John",
"last name": "Doe",
"country": "US",
"locale": "en_US",
"state": "Colorado",
"city": "Broomfield",
"street": "4753 Pine Garden Lane",
"zipCode": "80021",
"phone": "+1 9191919191",
"email": "johndoe@partner.test",
"vendorInternalId": "msp-vendor-internal-id12345678-1234-5678-1234-567812345678",
"trial": true,
"showPricingInMSPConsole": false
}
}Get All linked MSPs
JWT with HS512 alg
Bearer
vendor_name(Provided by Keeper)
OK
get All accounts response
Unauthorized
GET /bi_api/v1/services/mspvendor/accounts HTTP/1.1
Host: keepersecurity.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": true,
"accounts": [
{
"companyName": "msp11",
"vendorInternalId": "msp11_internalId",
"email": "email11",
"status": "TRIAL"
},
{
"companyName": "msp12",
"vendorInternalId": "msp13_internalId",
"email": "email12",
"status": "ACTIVE"
},
{
"companyName": "msp13",
"vendorInternalId": "msp13_internalId",
"email": "email13",
"status": "EXPIRED"
},
{
"vendorInternalId": "msp14_internalId",
"email": "email14",
"status": "PENDING"
},
{
"vendorInternalId": "msp15_internalId",
"email": "email15",
"status": "REGION_CONFLICT",
"accountRegion": "US"
},
{
"vendorInternalId": "msp16_internalId",
"email": "email16",
"status": "PRODUCT_CONFLICT",
"productType": "ENTERPRISE_TRIAL"
}
]
}Activate Expired Account
JWT with HS512 alg
Bearer
vendor_name(Provided by Keeper)
OK
Bad Request
Unauthorized
POST /bi_api/v1/services/mspvendor/activate-expired HTTP/1.1
Host: keepersecurity.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 27
{
"vendorInternalId": "text"
}{
"success": true,
"message": "Activated Expired Account"
}Get available Keeper MSP products
JWT with HS512 alg
Bearer
vendor_name(Provided by Keeper)
OK
get MSP Products response
Unauthorized
GET /bi_api/v1/services/mspvendor/msp-products HTTP/1.1
Host: keepersecurity.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": true,
"products": [
{
"productId": 720,
"productName": "Keeper MSP"
}
]
}Delete Pending/Conflict Account
JWT with HS512 alg
Bearer
vendor_name(Provided by Keeper)
OK
Bad Request
Unauthorized
POST /bi_api/v1/services/mspvendor/remove-account HTTP/1.1
Host: keepersecurity.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 20
{
"partnerId": "text"
}{
"success": true,
"message": "Deleted Pending/Conflict Account"
}事前共有シークレットからJSON Web Tokenを作成する
アクセスが要求された後、KeeperからAPIを使用するために必要な情報を含むレコードを共有します。上記のAPIメソッドを使用するにはJWTを作成する必要があります。以下の例では、「iat」と「exp」は5分間隔になっています。以下のコードは、ウェブリクエストで必要なトークンを生成するものです。
JWTスクリプトのサンプル例
以下のスクリプトでJWTが正しく生成されます。create-trial-account へのPOSTに必要なデータが含まれています。
その他のJWT生成方法
JWT.ioのようなツールを利用すれば、事前に共有されているシークレットからJSON Web Tokenを生成できます。
暗号化には、HS512アルゴリズムを使用します。
ペイロードとして以下のJSONを使用します。このトークンは5分間有効となります。
トークンをエンコードするための秘密キーとして
secret.keyを使用します。
APIについての追加詳細
MSPアカウントステータス
一部のAPIエンドポイントのレスポンスには、MSPのステータスが含まれます。各ステータスの意味は以下の表のとおりです。
PENDING (保留中)
/create-trial-account エンドポイントを通じてアカウントが作成されると、ユーザーにアカウントをアクティブにしてトライアルを開始するよう招待するメールが送信されます。
TRIAL (トライアル)
新しくアクティブとなったMSPは、自動的に14日間のトライアルを開始します。トライアルが終了した後、/convert-to-paid エンドポイントが呼び出されない場合、MSPは非アクティブ化され、ログインできなくなります。データは1年後に削除されます。期限切れのトライアルも、データ保持期間内であれば再アクティブ化できます。
ACTIVE (アクティブ)
有効期限内の有料MSPアカウント (アクティブ)
REGION_CONFLICT (地域の競合)
米国リージョンで /create-trial-account によりアカウント作成後、招待メールのリンクではなく別リージョンのサイトからトライアルを有効化したとき。レスポンスの accountRegion に登録済みアカウントのリージョンが含まれる
PRODUCT_CONFLICT (製品の競合)
米国リージョンで /create-trial-account によりアカウント作成後、招待メールのリンクではなくサイト上からエンタープライズ向けまたは個人向けのトライアルを有効化したとき。レスポンスの productType にKeeperの製品種別が含まれる
EXPIRED (期限切れ)
/cancel-paid-account エンドポイントが呼び出されると、指定されたMSPは即座に期限切れとなり、このMSPの請求が停止します。
製品IDとSKUの対応
各ラインアイテムには読みやすい名称があり、IDと対応付けられています。使用状況APIのレスポンスに含まれます。
720
Keeper MSP
10001
Keeper Business
10002
Keeper Business Plus
10010
Keeper Enterprise
10011
Keeper Enterprise Plus
967
Keeper Connection Manager Add-On
968
Keeper Secrets Manager Add-On
910
KeeperChat Add-On
920
Keeper ARAM Add-On
930
Keeper BreachWatch Add-On
940
Keeper Compliance Reporting Add-On
1011
Keeper 1TB Storage Add-On
1012
Keeper 10TB Storage Add-On
730
Dedicated Service & Support
973
Remote Browser Isolation
978
Privileged Access Management
API定義のYAMLファイル
PostmanやSwagger EditorなどでAPIの挙動を確認する場合は、関連するAPIのYAML定義をダウンロードしてください。
現在の使用状況の出力例
月間使用量の出力例

これらのAPIの使用方法についてご不明な点がございましたら、サポートチームまたは営業担当者までご連絡ください。
最終更新

