Install and configure Apollo.io API authentication.
Use when setting up a new Apollo integration, configuring API keys,
or initializing Apollo client in your project.
Trigger with phrases like "install apollo", "setup apollo api",
"apollo authentication", "configure apollo api key".
Set up Apollo.io API client and configure authentication credentials. Apollo uses the x-api-key HTTP header for authentication against the base URL https://api.apollo.io/api/v1/. There is no official SDK — all integrations use the REST API directly.
Prerequisites
Node.js 18+ or Python 3.10+
Package manager (npm, pnpm, or pip)
Apollo.io account with API access (Basic plan or above)
API key from Apollo dashboard (Settings > Integrations > API Keys)
HTTP client configured with x-api-key header authentication
Environment variable file with .gitignore protection
Successful /auth/health verification
Both TypeScript and Python implementations
Error Handling
Error
Cause
Solution
401 Unauthorized
Invalid or missing API key
Verify key in Apollo Dashboard > Settings > Integrations > API Keys
403 Forbidden
Endpoint requires master key
Generate a master API key (not standard) in the dashboard
429 Rate Limited
Too many requests per minute
Implement backoff; see apollo-rate-limits
Network Error
Firewall blocking outbound HTTPS
Allow outbound to api.apollo.io on port 443
Examples
Quick cURL Verification
# Test your API key from the command line
curl -s -X GET \
-H "Content-Type: application/json" \
-H "Cache-Control: no-cache" \
-H "x-api-key: $APOLLO_API_KEY" \
"https://api.apollo.io/api/v1/auth/health" | python3 -m json.tool