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

# Admin API Key

> Connect Parable to the Anthropic Claude Admin API using an Admin API Key

export const platform_0 = "Anthropic Claude Console"

export const role_0 = "organization admin"

export const tokenName_0 = "Admin API Key"

<Tabs>
  <Tab title="Setup">
    <Card title="What You'll Need" icon="key">
      | Credential        | What it is                                                            |
      | ----------------- | --------------------------------------------------------------------- |
      | **Admin API Key** | Organization admin key from Claude Console (prefix `sk-ant-admin01-`) |
    </Card>

    ## Overview

    Connect Parable to the Anthropic **Admin API** to sync organization members, workspaces, API keys, invites, workspace membership, and daily usage/cost reports.

    This connector is separate from **Claude Compliance**, which uses a Compliance Access Key for audit and eDiscovery data.

    <CardGroup cols={2}>
      <Card title="Organization data" icon="users">
        Users, workspaces, workspace members, invites, and API key inventory
      </Card>

      <Card title="Usage & cost" icon="chart-line">
        Daily token usage and cost buckets for FinOps reporting
      </Card>
    </CardGroup>

    ## Prerequisites

    <Info>
      **Setup access in {platform_0}.** These steps require **{role_0}**, or a colleague with equivalent permissions who can create credentials for you.

      If that is not you, ask your {platform_0} administrator.
    </Info>

    * A Claude **organization** (Admin API is unavailable for individual accounts). Set up your organization at Console > Settings > Organization if needed.
    * **Admin API Key** access in [Claude Console](https://console.anthropic.com) (not the standard API keys page).

    <Info>
      **Claude Platform on AWS:** Most Admin API endpoints are unavailable on Claude Platform on AWS except workspace management. Usage/cost reporting and organization member endpoints may not work in that deployment model.
    </Info>

    ## Setup Guide

    <Steps>
      <Step title="Open Admin keys in Claude Console">
        1. Sign in to [console.anthropic.com](https://console.anthropic.com) as an **organization admin**.
        2. Open **Settings > Admin keys** (direct link: [console.anthropic.com/settings/admin-keys](https://console.anthropic.com/settings/admin-keys)).
      </Step>

      <Step title="Create an Admin API Key">
        1. Click **Create key** (or **Create Admin Key**).
        2. Enter a descriptive name, for example `Parable Platform`.
        3. Copy the key immediately. It is shown only once.

        <Warning>
          **Copy your {tokenName_0} now!**

          This is the only time it will be displayed. Store it in a secure password manager before closing this page.
        </Warning>

        <Warning>
          Use an **Admin API Key** (`sk-ant-admin01-...`) from **Settings > Admin keys**. Do **not** use a standard Claude API key from **Settings > API keys** (`sk-ant-api03-...`) — that key is for Messages API calls and will not authenticate to the Admin API.
        </Warning>
      </Step>

      <Step title="Connect in Parable">
        1. In Parable, open **Settings > Connectors > Add connector**.
        2. Select **Anthropic > Claude Admin**.
        3. Paste your Admin API Key.
        4. Save and run **Test connection**.
      </Step>
    </Steps>

    <Check>
      **Success!** If you received a `200 OK` response with valid data, your credentials are configured correctly. You can now proceed to configure this connector in Parable.
    </Check>

    ## What Parable syncs

    By default, Parable ingests:

    | Data                | Admin API area                              |
    | ------------------- | ------------------------------------------- |
    | Organization users  | `/v1/organizations/users`                   |
    | Workspaces          | `/v1/organizations/workspaces`              |
    | Workspace members   | `/v1/organizations/workspaces/{id}/members` |
    | API keys (metadata) | `/v1/organizations/api_keys`                |
    | Pending invites     | `/v1/organizations/invites`                 |
    | Daily message usage | `/v1/organizations/usage_report/messages`   |
    | Daily cost (USD)    | `/v1/organizations/cost_report`             |

    For compliance audit logs and chat/project content, use the **Claude Compliance** connector instead.
  </Tab>

  <Tab title="Reference">
    ## Verify your key

    ```bash theme={null}
    read -rs -p "Admin API Key: " ANTHROPIC_ADMIN_API_KEY && echo
    curl --silent "https://api.anthropic.com/v1/organizations/me" \
      --header "x-api-key: ${ANTHROPIC_ADMIN_API_KEY}" \
      --header "anthropic-version: 2023-06-01"
    unset ANTHROPIC_ADMIN_API_KEY
    ```

    A `200` response with organization JSON confirms the key is valid.

    ## Official documentation

    * [Admin API](https://platform.claude.com/docs/en/manage-claude/admin-api)
    * [Usage and Cost API](https://platform.claude.com/docs/en/build-with-claude/usage-cost-api)
    * [Compliance API access (key types comparison)](https://platform.claude.com/docs/en/manage-claude/compliance-api-access)
  </Tab>
</Tabs>
