GET
/
v1
/
credits
curl --request GET \
  --url https://supertoneapi.com/v1/credits \
  --header 'x-sup-api-key: <x-sup-api-key>'
{
  "balance": 123
}

このAPIは現在のアカウントの使用可能なクレジット残高を照会します。
Supertone PlayとAPIは同じクレジットシステムを使用するため、PlayでチャージしたクレジットはAPIにもそのまま適用されます。

リクエスト方法

GET /v1/credits
x-sup-api-key: [YOUR_API_KEY]

レスポンス例

{
  "balance": 146
}

現在146クレジットが使用可能であることを意味します。

参考事項

  • クレジットは秒単位基準で課金されます。
  • クレジットはPlayとAPIで共有されます。
  • 新規加入時に基本体験クレジットが提供される場合があります。

Headers

x-sup-api-key
string
required

The API key to authenticate and authorize access to the service. This key is required for every request.

Response

200
application/json

Credit balance of the user.

The response is of type object.