Mencantumkan Batas Pengeluaran
GET/v1/organizations/spend_limits
Mencantumkan batas pengeluaran organisasi.
Batas milik organisasi Claude Console muncul dalam urutan yang stabil di seluruh halaman. Batas milik organisasi Claude Enterprise dikelompokkan berdasarkan jenis cakupan, dengan urutan organization, seat_tier, rbac_group, organization_service, user; dalam satu jenis, batas muncul dalam urutan tetap yang bukan urutan pembuatan. Pencantuman batas Claude Console masih dalam pratinjau akses awal. Untuk meminta akses, hubungi tim akun Anthropic Anda.
Parameters
Returns
Mencantumkan Batas Pengeluaran
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"
}