列出工作區速率限制
GET/v1/organizations/workspaces/{workspace_id}/rate_limits
列出工作區的速率限制。
預設情況下,僅傳回具有工作區層級覆寫設定的群組和限制器類型。若設定 include_inherited=true,則會傳回工作區可見、具有組織層級限制的所有群組,並針對每個群組列出其從組織繼承的值以及其自身的覆寫值。每個值的 source 會標示其來源。
若省略 limit,所有符合的項目會在單一頁面中傳回;若 limit 截斷了結果,請依循 next_page 擷取其餘項目。
Path parameters
Query parameters
Returns
列出工作區速率限制
curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID/rate_limits \
-H 'anthropic-version: 2023-06-01' \
-H "X-Api-Key: $ANTHROPIC_API_KEY"Response 200
{
"data": [
{
"group": {
"id": "id",
"display_name": "display_name",
"type": "model_group"
},
"group_type": "batch",
"limits": [
{
"org_limit": 0,
"source": {
"type": "workspace"
},
"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": {
"id": "id",
"display_name": "display_name",
"type": "model_group"
},
"group_type": "batch",
"limits": [
{
"org_limit": 0,
"source": {
"type": "workspace"
},
"type": "type",
"value": 0
}
],
"models": [
"string"
],
"rate_limit_id": "rate_limit_id",
"type": "workspace_rate_limit",
"workspace_id": "workspace_id"
}
],
"next_page": "next_page"
}