> ## Documentation Index
> Fetch the complete documentation index at: https://docs.windsurf.com/llms.txt
> Use this file to discover all available pages before exploring further.

# チームのクレジット残高を取得する

> チームの現在のクレジット残高（席単位のプロンプトクレジット、アドオンクレジット、請求サイクルに関する情報を含む）を取得します。

<div id="overview">
  ## 概要
</div>

チームの現在のクレジット残高情報を取得します。これには、1シートあたりに割り当てられたプロンプトクレジット、シート数、追加クレジットの使用量、および請求サイクルの日付が含まれます。

<div id="request">
  ## リクエスト
</div>

<ParamField body="service_key" type="string" required>
  「Billing Read」権限を持つサービスキー
</ParamField>

<div id="example-request">
  ### リクエスト例
</div>

```bash theme={null}
curl -X POST --header "Content-Type: application/json" \
--data '{
  "service_key": "your_service_key_here"
}' \
https://server.codeium.com/api/v1/GetTeamCreditBalance
```

<div id="response">
  ## レスポンス
</div>

<ResponseField name="promptCreditsPerSeat" type="integer">
  現在の請求サイクルにおいて、1シートあたりに割り当てられているプロンプトクレジット数
</ResponseField>

<ResponseField name="numSeats" type="integer">
  チームのシート数
</ResponseField>

<ResponseField name="addOnCreditsAvailable" type="integer">
  チームで利用可能なアドオンクレジットの合計
</ResponseField>

<ResponseField name="addOnCreditsUsed" type="integer">
  現在の請求サイクル中にこれまでに使用されたアドオンクレジット数
</ResponseField>

<ResponseField name="billingCycleStart" type="string">
  現在の請求サイクルの開始時刻（ISO 8601 タイムスタンプ）
</ResponseField>

<ResponseField name="billingCycleEnd" type="string">
  現在の請求サイクルの終了時刻（ISO 8601 タイムスタンプ）
</ResponseField>

<div id="example-response">
  ### レスポンス例
</div>

```json theme={null}
{
  "promptCreditsPerSeat": 500,
  "numSeats": 50,
  "addOnCreditsAvailable": 10000,
  "addOnCreditsUsed": 3500,
  "billingCycleStart": "2026-01-01T00:00:00Z",
  "billingCycleEnd": "2026-02-01T00:00:00Z"
}
```

<div id="error-responses">
  ## エラー応答
</div>

よくあるエラー シナリオ:

* サービスキーが無効であるか、権限が不足している
* ご利用のプランでは利用できない機能です（Enterprise ティアが必要）
* レート制限を超過しました
