Claude Platform Docs

支出上限を取得

GET/v1/organizations/spend_limits/{spend_limit_id}

IDを指定して支出上限を取得します。

Path parameters
spend_limit_id: string

ID of the Spend Limit.

Returns
SpendLimit object{ id, amount, created_at, 5 more }

A configured spend limit: a cap on metered spend for one scope and period.

支出上限を取得
cURL
curl https://api.anthropic.com/v1/organizations/spend_limits/$SPEND_LIMIT_ID \
    -H 'anthropic-version: 2023-06-01' \
    -H "Authorization: Bearer $ANTHROPIC_OAUTH_TOKEN"
Returns Examples
Response 200
{
  "id": "id",
  "amount": "50000",
  "created_at": "2019-12-27T18:11:19.117Z",
  "currency": "USD",
  "period": "monthly",
  "scope": {
    "type": "user",
    "user_id": "user_01WCz1FkmYMm4gnmykNKUu3Q"
  },
  "type": "spend_limit",
  "updated_at": "2019-12-27T18:11:19.117Z"
}