Ausgabenlimits auflisten
GET/v1/organizations/spend_limits
Listet die Ausgabenlimits der Organisation auf.
Die Limits einer Claude Console-Organisation werden in einer Reihenfolge zurückgegeben, die über alle Seiten hinweg stabil ist. Die Limits einer Claude Enterprise-Organisation sind nach Bereichstyp gruppiert, in der Reihenfolge organization, seat_tier, rbac_group, organization_service, user; innerhalb eines Typs folgen sie einer festen Reihenfolge, die nicht der Erstellungsreihenfolge entspricht. Das Auflisten von Claude Console-Limits befindet sich in einer Early-Access-Preview. Wende dich an dein Anthropic-Account-Team, um Zugang anzufordern.
Parameters
Returns
Ausgabenlimits auflisten
import os
from anthropic import Anthropic
client = Anthropic(
api_key=os.environ.get(
"ANTHROPIC_API_KEY"
), # This is the default and can be omitted
)
page = client.beta.organization.spend_limits.list()
page = page.data[0]
print(page.id)Response 200
{
"data": [
{
"id": "id",
"amount": "50000",
"created_at": "2019-12-27T18:11:19.117Z",
"currency": "USD",
"is_enabled": true,
"period": "daily",
"scope": {
"type": "user",
"user_id": "user_01WCz1FkmYMm4gnmykNKUu3Q"
},
"type": "spend_limit",
"updated_at": "2019-12-27T18:11:19.117Z"
}
],
"next_page": "next_page"
}Returns Examples
Response 200
{
"data": [
{
"id": "id",
"amount": "50000",
"created_at": "2019-12-27T18:11:19.117Z",
"currency": "USD",
"is_enabled": true,
"period": "daily",
"scope": {
"type": "user",
"user_id": "user_01WCz1FkmYMm4gnmykNKUu3Q"
},
"type": "spend_limit",
"updated_at": "2019-12-27T18:11:19.117Z"
}
],
"next_page": "next_page"
}