Claude Platform Docs

列出支出限制提高請求

IncreaseRequestListPage beta().organization().spendLimits().increaseRequests().list(params = IncreaseRequestListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/spend_limit_increase_requests

列出支出限制提高請求,最新的在前。

待處理的請求包含請求者的即時 spend_summary。請求者已不再是成員的請求會被排除。

Parameters
IncreaseRequestListParams params
Optional<List<String>> actorIds⁠Query parameter

Filter by requester, as user_... tagged IDs.

Optional<Long> limit⁠Query parameter
minimum1
maximum1000
Optional<String> page⁠Query parameter

Opaque cursor from a previous response's next_page.

Optional<List<BetaSpendLimitIncreaseRequestStatus>> status⁠Query parameter

Filter by status. Omit to return all.

APPROVED("approved")
DENIED("denied")
PENDING("pending")
Returns
class BetaSpendLimitIncreaseRequest { type = "spend_limit_increase_request"; id; actor; /* 6 more */ }
列出支出限制提高請求
package com.anthropic.example;

import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.beta.organization.spendlimits.increaserequests.IncreaseRequestListPage;
import com.anthropic.models.beta.organization.spendlimits.increaserequests.IncreaseRequestListParams;

public final class Main {
    private Main() {}

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

        IncreaseRequestListPage page = client.beta().organization().spendLimits().increaseRequests().list();
    }
}
Returns Examples
Response 200
{
  "data": [
    {
      "id": "id",
      "actor": {
        "deleted": true,
        "email_address": "email_address",
        "name": "name",
        "type": "user_actor",
        "user_id": "user_01WCz1FkmYMm4gnmykNKUu3Q"
      },
      "created_at": "2019-12-27T18:11:19.117Z",
      "period": "daily",
      "resolved_at": "2019-12-27T18:11:19.117Z",
      "resolved_by": {
        "deleted": true,
        "email_address": "email_address",
        "name": "name",
        "type": "user_actor",
        "user_id": "user_01WCz1FkmYMm4gnmykNKUu3Q"
      },
      "spend_summary": {
        "actor": {
          "deleted": true,
          "email_address": "email_address",
          "name": "name",
          "type": "user_actor",
          "user_id": "user_01WCz1FkmYMm4gnmykNKUu3Q"
        },
        "amount": "50000",
        "currency": "USD",
        "period": "daily",
        "period_to_date_spend": "12050.5",
        "scope": {
          "type": "user",
          "user_id": "user_01WCz1FkmYMm4gnmykNKUu3Q"
        },
        "source": {
          "type": "user",
          "user_id": "user_01WCz1FkmYMm4gnmykNKUu3Q"
        },
        "spend_limit_id": "spend_limit_id"
      },
      "status": "approved",
      "type": "spend_limit_increase_request"
    }
  ],
  "next_page": "next_page"
}