---
title: Get Spend Limit
url: https://platform.claude.com/docs/en/api/go/beta/organization/spend_limits/retrieve
---

# Get Spend Limit

`client.Beta.Organization.SpendLimits.Get(ctx, spendLimitID) (*BetaSpendLimit, error)`

**GET** `/v1/organizations/spend_limits/{spend_limit_id}`

Retrieve a spend limit by ID.

## Parameters

- `spendLimitID string` (path parameter)

  ID of the Spend Limit.

## Returns

- `type BetaSpendLimit`

  A configured spend limit: a cap on metered spend for one scope and period.

  - `Type SpendLimit`

    Object type. Always `spend_limit`.

    default: spend_limit

  - `ID string`

    Unique tagged ID of the spend limit (`spl_...`).

  - `Amount string`

    Limit amount as a non-negative integer decimal string in the minor unit of `currency` (cents for USD): "50000" is $500.00. `null` means no numeric cap is configured at this scope — see the effective report for whether a limit applies.

  - `CreatedAt Time`

    RFC 3339 datetime at which the spend limit was created.

    format: date-time

  - `Currency string`

    ISO 4217 code of the organization's billing currency; the unit for `amount`.

  - `IsEnabled bool`

    Read-only. `false` when extra usage is switched off for this organization (`organization` limit); `amount` is kept and applies again when it's switched back on. Always `true` for other limits.

  - `Period BetaSpendLimitPeriod`

    Length of the window the limit resets over. `amount` caps spend within each period.

    - `const BetaSpendLimitPeriodDaily BetaSpendLimitPeriod = "daily"`

    - `const BetaSpendLimitPeriodMonthly BetaSpendLimitPeriod = "monthly"`

    - `const BetaSpendLimitPeriodWeekly BetaSpendLimitPeriod = "weekly"`

  - `Scope BetaSpendLimitScopeUnion`

    What the limit applies to. A tagged union on `type`; each variant carries the identifier for its scope.

    - `type BetaSpendLimitUserScope`

      Scope selecting a single member of the organization.

      - `Type User`

        Scope type. Always `user` for this scope.

        default: user

      - `UserID string`

        Tagged ID of the member the spend limit applies to.

    - `type BetaSpendLimitSeatTierScope`

      - `Type SeatTier`

        default: seat_tier

      - `SeatTier string`

    - `type BetaSpendLimitRBACGroupScope`

      - `Type RBACGroup`

        default: rbac_group

      - `RBACGroupID string`

    - `type BetaSpendLimitOrganizationServiceScope`

      - `Type OrganizationService`

        default: organization_service

      - `Service string`

    - `type BetaSpendLimitOrganizationScope`

      - `Type Organization`

        default: organization

    - `type BetaSpendLimitWorkspaceScope`

      Scope selecting one workspace of a Claude Console organization.

      - `Type Workspace`

        Scope type. Always `workspace` for this scope.

        default: workspace

      - `WorkspaceID string`

        Tagged ID of the workspace the spend limit applies to.

    - `type BetaSpendLimitUsageTierScope`

      Scope of the monthly spend cap Anthropic sets for a Claude Console
      organization from its usage tier, or a higher cap Anthropic granted the
      organization. Read-only; its `created_at` and `updated_at` are the
      organization's creation time, so `amount` can change while `updated_at` stays
      the same.

      - `Type UsageTier`

        Scope type. Always `usage_tier` for this scope.

        default: usage_tier

  - `UpdatedAt Time`

    RFC 3339 datetime at which the spend limit was last modified.

    format: date-time

## Example

```go
package main

import (
	"context"
	"fmt"

	"github.com/anthropics/anthropic-sdk-go"
	"github.com/anthropics/anthropic-sdk-go/option"
)

func main() {
	client := anthropic.NewClient(
		option.WithAPIKey("my-anthropic-api-key"),
	)
	betaSpendLimit, err := client.Beta.Organization.SpendLimits.Get(context.TODO(), "spend_limit_id")
	if err != nil {
		panic(err.Error())
	}
	fmt.Printf("%+v\n", betaSpendLimit.ID)
}
```

### Response (200)

```json
{
  "id": "id",
  "amount": "50000",
  "created_at": "2019-12-27T18:11:19.117Z",
  "currency": "USD",
  "is_enabled": true,
  "period": "daily",
  "scope": {
    "type": "user",
    "user_id": "user_01WCz1FkmYMm4gnmykNKUu3Q"
  },
  "type": "spend_limit",
  "updated_at": "2019-12-27T18:11:19.117Z"
}
```
