組織のレート制限を一覧表示
GET/v1/organizations/rate_limits
組織の Messages API のレート制限を一覧表示します。
各エントリは 1 つのレート制限グループ(モデルファミリー、または Message Batches API や Web 検索ツールなどの API サーフェスカテゴリ)に対応し、そのグループに適用されるリミッター値のセットを含みます。
limit を省略すると、一致するすべてのエントリが 1 ページで返されます。limit によって結果が切り詰められた場合は、next_page をたどって残りのエントリを取得してください。
Parameters
Returns
組織のレート制限を一覧表示
package com.anthropic.example;
import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.organization.ratelimits.RateLimitListPage;
import com.anthropic.models.organization.ratelimits.RateLimitListParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
RateLimitListPage page = client.organization().rateLimits().list();
}
}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"
}