Claude Platform Docs

Workspace-Ratenlimits auflisten

RateLimitListPage organization().workspaces().rateLimits().list(params = RateLimitListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/workspaces/{workspace_id}/rate_limits

Listet die Ratenlimits eines Workspace auf.

Standardmäßig werden nur die Gruppen und Limiter-Typen zurückgegeben, die eine Überschreibung auf Workspace-Ebene haben. Mit include_inherited=true wird jede Gruppe mit Limits auf Organisationsebene zurückgegeben, die der Workspace sehen kann, wobei für jede sowohl die von der Organisation geerbten Werte als auch die eigenen Überschreibungen aufgeführt werden. Das Feld source jedes Werts gibt an, um welchen es sich handelt.

Wenn limit weggelassen wird, werden alle passenden Einträge auf einer einzigen Seite zurückgegeben; wenn limit das Ergebnis kürzt, folge next_page, um die restlichen Einträge abzurufen.

Parameters
RateLimitListParams params
Optional<String> workspaceId⁠Path parameter

The ID of the workspace.

Optional<GroupType> groupType⁠Query parameter

Filter by group type.

BATCH("batch")
FILES("files")
MODEL_GROUP("model_group")
SKILLS("skills")
TOKEN_COUNT("token_count")
WEB_SEARCH("web_search")
Optional<Boolean> includeInherited⁠Query parameter

Also list the limiter values the workspace inherits from the organization, including groups with no workspace-level override.

Optional<Long> limit⁠Query parameter

Maximum number of items to return per page. Ranges from 1 to 1000.

When omitted, every remaining entry is returned in a single page and next_page is null.

minimum1
maximum1000
Optional<String> page⁠Query parameter

Opaque cursor from a previous response's next_page.

Returns
class WorkspaceRateLimit { type = "workspace_rate_limit"; group; limits; /* 3 more */ }
Workspace-Ratenlimits auflisten
package com.anthropic.example;

import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.organization.workspaces.ratelimits.RateLimitListPage;
import com.anthropic.models.organization.workspaces.ratelimits.RateLimitListParams;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        AnthropicClient client = AnthropicOkHttpClient.fromEnv();

        RateLimitListPage page = client.organization().workspaces().rateLimits().list("workspace_id");
    }
}
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"
}