| name | clari-install-auth |
| description | Configure Clari API authentication with API key and set up export access.
Use when connecting to the Clari API, generating API tokens,
or configuring forecast data exports.
Trigger with phrases like "install clari", "setup clari api",
"clari auth", "clari api key", "configure clari".
|
| allowed-tools | Read, Write, Edit, Bash(curl:*), Bash(pip:*), Grep |
| version | 1.6.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","revenue-intelligence","forecasting","clari"] |
| compatibility | Designed for Claude Code |
Clari Install & Auth
Overview
Set up Clari API access for exporting forecast data, pipeline snapshots, and revenue intelligence to your data warehouse. Clari uses API key authentication via the apikey header, with the primary API at api.clari.com/v4/.
Prerequisites
- Clari enterprise account with API access enabled
- Admin or RevOps role for API key generation
- Target data warehouse (Snowflake, BigQuery, or Redshift) for exports
Instructions
Step 1: Generate API Token
- Log in to Clari at https://app.clari.com
- Navigate to User Settings > API Token
- Click Generate New API Token
- Copy and store the token securely
export CLARI_API_KEY="your-api-token-here"
curl -s -H "apikey: ${CLARI_API_KEY}" \
https://api.clari.com/v4/export/forecast/list \
| jq '.forecasts | length'
Step 2: Configure Environment
CLARI_API_KEY=your-api-token
CLARI_BASE_URL=https://api.clari.com/v4
CLARI_ORG_ID=your-org-id
.env
.env.local
Step 3: Test API Connectivity
import requests
import os
api_key = os.environ["CLARI_API_KEY"]
headers = {"apikey": api_key, "Content-Type": "application/json"}
response = requests.get(
"https://api.clari.com/v4/export/forecast/list",
headers=headers,
)
response.raise_for_status()
forecasts = response.json()["forecasts"]
for fc in forecasts:
print(f" (ID: )")