Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.serval.com/llms.txt

Use this file to discover all available pages before exploring further.

About Anthropic Admin

The Anthropic Admin API lets organization admins manage users, invites, workspaces, workspace members, and API keys, and pull usage and cost reports. Connecting it to Serval exposes that surface to workflows, so you can automate provisioning, off-boarding, key rotation, and spend monitoring.
The Admin API is separate from the inference API used to call Claude. Admin keys start with sk-ant-admin01- and are only valid against https://api.anthropic.com/v1/organizations/* endpoints. Regular sk-ant-api03- keys will not work.

What the Anthropic Admin integration enables

CapabilityDescription
User ManagementList users, look up a user by email, invite new users, update roles, remove users, list and revoke invites
Workspace ManagementList, create, and archive workspaces, and add or remove workspace members
API Key ManagementList API keys across the org and workspaces, and disable a key to immediately revoke access
Usage & Cost ReportingPull the Messages API usage report, Claude Code usage report, and cost report; summarize trailing-N-day usage; check month-to-date spend against a configurable budget
Anything defined in the Anthropic Admin API can be accessed through Serval.

Prerequisites

  • An Anthropic organization on a plan that exposes the Admin API.
  • An organization Admin role in the Anthropic Console (Admin API keys can only be generated by org admins).

Anthropic Configuration

1

Create an Admin API key

  1. Sign in to the Anthropic Console.
  2. Open Settings → Admin Keys.
  3. Click Create Admin Key, give it a descriptive name (for example, Serval Production), and create it.
  4. Copy the key immediately — it starts with sk-ant-admin01- and will only be shown once. Store it in your secret management system.
Admin keys grant organization-wide management access, including the ability to remove users, archive workspaces, and disable other API keys. Treat them like the highest-privilege credential in your stack and rotate them regularly.

Connect Anthropic Admin to Serval

1

Open the Anthropic Admin integration

In Serval, navigate to Apps → Available → Anthropic Admin and click Connect.
2

Paste the Admin API key

Paste the sk-ant-admin01-… key into the Admin API Key field and click Save. Serval authenticates every Admin API request with this key via the x-api-key header.

Installable workflow bundles

The integration ships with four bundles you can install from Apps → Anthropic Admin → Workflows:
  • User Management — list/get users, invite, update role, remove, list/revoke invites.
  • Workspace Management — list/create/archive workspaces, add/remove workspace members.
  • API Key Management — list API keys, disable a key.
  • Usage & Cost Reporting — Messages usage, Claude Code usage, cost report, trailing-N-day summary, and a spend-limit check that compares month-to-date cost against a budget you supply.
Anthropic’s Admin API does not expose a configured spend limit, so the Check Anthropic Spend Limit workflow takes the budget as a workflow input rather than reading it from Anthropic.

External Resources