Documentation / Integrations / Anthropic

Anthropic connector

Connect an Anthropic Admin API key so Meridian can pull Claude spend and usage for attribution and close.

Status: Available · Claim C-19

Overview

Connect an Anthropic Admin API key so Meridian can pull Claude spend and usage for attribution and close.

Data pulled

  • Daily spend and usage buckets from Admin Cost/Usage APIs
  • Persisted as source_type=api_sync

Authentication & credential storage

Meridian stores the following fields for this connector (values encrypted at rest):

  • api_key
  • Credentials are encrypted with AES-256-GCM using a KMS-wrapped data encryption key (DEK) and stored in vendor_connections.credentials_encrypted.
  • Meridian never returns the plaintext key after save. Revocation is disconnect: deactivate or delete the vendor connection — sync stops and the encrypted blob is no longer used.
  • Requires an Admin API key (keys that include admin in the identifier). A standard inference key validates but cannot retrieve billing.

Sync schedule & behavior

Provider Admin APIs return daily buckets. Syncs automatically every 6 hours; manual sync anytime. There is no per-connection frequency setting.

Setup steps

  1. Create an Admin API key in the Anthropic console.
  2. In Meridian → Vendors, select Anthropic, paste the admin key, and label the connection.
  3. Run or wait for sync and verify spend_records.

Troubleshooting

  • 403 on sync: replace a regular API key with an Admin key.
  • 401: regenerate the admin key and reconnect.

Related