Claude Enterprise spend lookup
Configure a vault-backed tool to read an employee's monthly Claude Enterprise allowance and spend
Use Claude Enterprise spend lookup to read the monthly spend limit that applies to one employee. The tool reports the cap, where it comes from, the billing currency, and informational spend so far in the month. It does not change the employee's allowance.
You can use this lookup before approving a spend increase. A successful read does not confirm that your key can write spend limits or that Anthropic has enabled writes for your organization.
Before you start
- You must be a Risotto Org Admin or Manager to configure and publish the tool.
- Your Anthropic organization must use Claude Enterprise with usage credits enabled.
- You need a scoped Anthropic Admin API key with
read:spend_limits. A developer API key for calling Claude models is not a substitute. - Have the employee's primary email and any aliases that refer to the same person.
Your Anthropic primary owner manages usage credits and scoped Admin keys. See Anthropic's Spend Limits API guide for the vendor prerequisites.
Configure and publish the lookup
Create the lookup tool
Open Tools > Script templates. Select Claude Enterprise spend lookup in Software Management, then click Use template. Choose a name and the department that owns the tool, or keep it org-wide.
Risotto creates a disabled draft. See Create and deploy a tool for the shared template workflow.
Configure the Admin credential
Open the new tool's Edit form. In Tool Configuration, find
ANTHROPIC_ADMIN_API_KEY.Click Choose a vault credential to select an existing Secret text credential, or Add a vault credential to store a new one. Put the scoped Admin key in the credential's value field and set its Allowed hosts to
api.anthropic.com.If you select an existing credential, confirm that it has the required read scope and host restriction. Use an org-wide credential or one owned by the tool's department. Save the configuration.
The template already restricts HTTP calls to read-only access on
api.anthropic.com; you do not need to change its API URL or authentication code.Test one known employee
Open the studio and click Test. Set
recipient_emailto the employee's primary email. If needed, add their alternate addresses inrecipient_email_aliases.For example, these inputs identify one person:
{ "recipient_email": "member@example.com", "recipient_email_aliases": ["alias@example.com"] }Replace the example addresses with your employee's addresses. Omit aliases if there are none. The tool checks all report pages before selecting a single exact match, ignoring address case and surrounding spaces. It refuses a missing or ambiguous account.
Check that the returned
user_idbelongs to the intended employee and that the cap, source, and currency agree with Claude's configuration.Publish and enable the lookup
Publish the saved draft, then turn on Enabled on the tool's page. To use the lookup before approval, turn off Requires Approval after reviewing its read-only behavior.
You can reference the tool in a runbook that answers allowance questions. Keep it separate from spend fulfillment, which changes the designated member's cap.
Read the result
Amounts are decimal strings in the currency's minor units. For USD, "100000" means a total monthly cap of $1,000. A cap is not an additional credit balance.
| Field | How to use it |
|---|---|
user_id | Anthropic's identifier for the matched employee. Use it to confirm the account and configure the fulfillment tool. |
monthly_cap_minor | Effective total monthly cap. Interpret null and "0" as described below. |
currency | Billing currency, such as USD. |
source | Where the cap comes from, such as a user override, seat tier, group, or organization default. |
period_to_date_spend_minor | Informational spend in the same minor currency units. Fractional minor units are preserved. |
read_access | "verified" means this lookup completed. |
write_access | Always "not_tested" for this read-only tool. |
| Monthly cap value | Meaning |
|---|---|
null | No cap applies for the monthly period. Limits for other periods can still apply. |
"0" | The employee can use only the plan's included usage. |
| A positive integer string | The employee's total monthly cap in minor currency units. |
See Anthropic's effective spend limits reference for the vendor's response fields.
Troubleshooting
| Problem | What to check |
|---|---|
| No matching member | Confirm Enterprise membership and the employee's primary email and aliases. The lookup does not use partial names or fuzzy email matches. |
| More than one monthly record matches | Check whether the supplied addresses belong to different Anthropic accounts. Resolve the ambiguity before continuing; aliases must belong to one person. |
| Admin key rejected | Select or rotate a valid scoped Anthropic Admin key in the vault. |
| Read refused | Check that the key has read:spend_limits for the intended Enterprise organization. |
| Credential missing or blocked by allowed hosts | Save a usable vault credential for ANTHROPIC_ADMIN_API_KEY and include api.anthropic.com in its allowed hosts. |
| Spend-limit data unavailable | Confirm the Enterprise plan, usage credits, and that Anthropic can provide a complete report. An absent cap field is not treated as an unlimited cap. |
| Rate limit, server error, timeout, or pagination error | Retry the read after the vendor recovers. The tool does not return a partial report as a successful account lookup. |
If you cannot find this template in the catalog, clear the search and check with your Risotto administrator or support that it is available in your organization.
Something wrong or missing? Report an issue · View as Markdown