組織のレート制限を一覧表示
GET/v1/organizations/rate_limits
組織の Messages API のレート制限を一覧表示します。
各エントリは 1 つのレート制限グループ(モデルファミリー、または Message Batches API や Web 検索ツールなどの API サーフェスカテゴリ)に対応し、そのグループに適用されるリミッター値のセットを含みます。
limit を省略すると、一致するすべてのエントリが 1 ページで返されます。limit によって結果が切り詰められた場合は、next_page をたどって残りのエントリを取得してください。
Parameters
Returns
組織のレート制限を一覧表示
package main
import (
"context"
"fmt"
"github.com/anthropics/anthropic-sdk-go"
"github.com/anthropics/anthropic-sdk-go/option"
)
func main() {
client := anthropic.NewClient(
option.WithAPIKey("my-anthropic-api-key"),
)
page, err := client.Organization.RateLimits.List(context.TODO(), anthropic.OrganizationRateLimitListParams{})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
}Response 200
{
"data": [
{
"id": "id",
"group": {
"id": "id",
"display_name": "display_name",
"type": "model_group"
},
"group_type": "batch",
"limits": [
{
"type": "type",
"value": 0
}
],
"models": [
"string"
],
"type": "rate_limit"
}
],
"next_page": "next_page"
}Returns Examples
Response 200
{
"data": [
{
"id": "id",
"group": {
"id": "id",
"display_name": "display_name",
"type": "model_group"
},
"group_type": "batch",
"limits": [
{
"type": "type",
"value": 0
}
],
"models": [
"string"
],
"type": "rate_limit"
}
],
"next_page": "next_page"
}