列出工作區速率限制
GET/v1/organizations/workspaces/{workspace_id}/rate_limits
列出為工作區設定的速率限制覆寫。
僅傳回具有工作區層級覆寫的群組和限制器類型。沒有覆寫的群組
會繼承組織限制且不會列出;請使用 GET /v1/organizations/rate_limits
查看這些限制。
省略 limit 時,所有相符的項目會在單一頁面中傳回;當 limit
截斷結果時,請依循 next_page 擷取其餘項目。
Parameters
Returns
列出工作區速率限制
<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
$client = new Client(apiKey: 'my-anthropic-api-key');
$page = $client->beta->organization->workspaces->rateLimits->list(
'workspace_id', groupType: 'batch', limit: 1, page: 'page'
);
var_dump($page);Response 200
{
"data": [
{
"group_type": "batch",
"limits": [
{
"org_limit": 0,
"type": "type",
"value": 0
}
],
"models": [
"string"
],
"rate_limit_id": "rate_limit_id",
"type": "workspace_rate_limit",
"workspace_id": "workspace_id"
}
],
"next_page": "next_page"
}Returns Examples
Response 200
{
"data": [
{
"group_type": "batch",
"limits": [
{
"org_limit": 0,
"type": "type",
"value": 0
}
],
"models": [
"string"
],
"rate_limit_id": "rate_limit_id",
"type": "workspace_rate_limit",
"workspace_id": "workspace_id"
}
],
"next_page": "next_page"
}