> ## Documentation Index
> Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Anthropic

> Integrate with Anthropic Admin API to manage workspaces, monitor usage, and access organization data

## At a glance

* **Availability**: Experimental ([how to enable](/cloud/integrations)).
* **Auth**: API key.
* **Connection**: The key from `ANTHROPIC_ADMIN_API_KEY` is sent as the `x-api-key` header.
* **Docs**: [https://docs.anthropic.com/en/api/admin-api](https://docs.anthropic.com/en/api/admin-api)

## Credentials

Set these per environment. See [Connect an integration](/cloud/integrations).

| Variable                  | Required | Description                                                                                                                         |
| ------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| `ANTHROPIC_ADMIN_API_KEY` | Yes      | Admin API key for Anthropic organization management (starts with sk-ant-admin) [Docs](https://docs.anthropic.com/en/api/admin-api). |

## Setup

1. **Access Anthropic Console**: Go to [https://console.anthropic.com](https://console.anthropic.com) and sign in to your organization account
2. **Navigate to Organization Settings**: Click on your organization name in the top-right corner, then select 'Organization Settings'
3. **Go to API Keys**: In the left sidebar, click on 'API Keys' under the Organization section
4. **Create Admin API Key**: Click 'Create API Key' and select 'Admin' as the key type. Admin keys have full access to organization management features including workspaces, usage data, members, and API key management
5. **Name Your Key**: Give your key a descriptive name (e.g., 'Veryfront Admin Integration') to identify its purpose
6. **Copy and Secure Your Key**: Copy the API key immediately after creation. This is the only time you'll be able to see the full key. Store it securely - you'll need it for the ANTHROPIC\_ADMIN\_API\_KEY environment variable
7. **Set Environment Variable**: Add the API key to your .env file: ANTHROPIC\_ADMIN\_API\_KEY=sk-ant-admin-\*\*\*
8. **Verify Access**: Test the integration by calling the get-organization tool to confirm your admin key has the correct permissions

* Admin API keys have full access to organization management features. Keep them secure and never commit them to version control
* The Admin API authenticates with the x-api-key header and requires the anthropic-version header on every request (tools default it to 2023-06-01)
* Admin API keys are only available on organization accounts; individual accounts cannot use the Admin API
* You can revoke API keys at any time from the Anthropic Console
* Rate limits apply to all API endpoints. See [https://docs.anthropic.com/en/api/rate-limits](https://docs.anthropic.com/en/api/rate-limits) for details

Provider API reference: [https://docs.anthropic.com/en/api/admin-api](https://docs.anthropic.com/en/api/admin-api)

## Tools

| Tool             | Access | Description                                   |
| ---------------- | ------ | --------------------------------------------- |
| list-workspaces  | Read   | List all workspaces in the organization       |
| get-usage        | Read   | Get API usage statistics for a date range     |
| list-api-keys    | Read   | List API keys for a workspace or organization |
| list-members     | Read   | List all members in the organization          |
| get-organization | Read   | Get organization details and settings         |
