> ## 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>

チームの現在のクレジット残高情報を取得します。これには、席ごとに割り当てられたプロンプトクレジット、席数、アドオンのクレジット使用量、請求サイクル期間の日付が含まれます。

<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 プランが必要）
* レート制限の上限を超過
