Install any skill in seconds. Free to start, no credit card required.
Get Started Free →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".
.claude/skills/jeremylongshore-apollo-install-auth/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 26% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 20% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 45% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 47% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 40% | 0% |
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.
bashset -euo pipefail # Node.js npm install axios dotenv # Python pip install requests python-dotenv
Apollo supports two API key types:
bash# Create .env file (never commit this) echo 'APOLLO_API_KEY=your-api-key-here' >> .env echo '.env' >> .gitignore
typescript// src/apollo/client.ts import axios, { AxiosInstance } from 'axios'; import dotenv from 'dotenv'; dotenv.config(); const BASE_URL = 'https://api.apollo.io/api/v1'; export function createApolloClient(apiKey?: string): AxiosInstance { const key = apiKey ?? process.env.APOLLO_API_KEY; if (!key) throw new Error('APOLLO_API_KEY is not set'); return axios.create({ baseURL: BASE_URL, headers: { 'Content-Type': 'application/json', 'Cache-Control': 'no-cache', 'x-api-key': key, }, timeout: 30_000, }); } export const apolloClient = createApolloClient();
typescript// src/scripts/verify-auth.ts import { apolloClient } from '../apollo/client'; async function verifyConnection() { try { // Use the health endpoint to test connectivity const response = await apolloClient.get('/auth/health'); console.log('Apollo connection:', response.data.is_logged_in ? 'OK' : 'Invalid key'); } catch (error: any) { if (error.response?.status === 401) { console.error('Invalid API key. Generate a new one at:'); console.error(' Apollo Dashboard > Settings > Integrations > API Keys'); } else { console.error('Connection failed:', error.message); } } } verifyConnection();
python# apollo_client.py import os import requests from dotenv import load_dotenv load_dotenv() class ApolloClient: BASE_URL = 'https://api.apollo.io/api/v1' def __init__(self, api_key: str | None = None): self.api_key = api_key or os.environ.get('APOLLO_API_KEY') if not self.api_key: raise ValueError('APOLLO_API_KEY is not set') self.session = requests.Session() self.session.headers.update({ 'Content-Type': 'application/json', 'Cache-Control': 'no-cache', 'x-api-key': self.api_key, }) def get(self, endpoint: str, **kwargs) -> requests.Response: return self.session.get(f'{self.BASE_URL}/{endpoint}', **kwargs) def post(self, endpoint: str, json: dict = None, **kwargs) -> requests.Response: return self.session.post(f'{self.BASE_URL}/{endpoint}', json=json, **kwargs) def verify(self) -> bool: resp = self.get('auth/health') return resp.json().get('is_logged_in', False) client = ApolloClient() print('Connected:', client.verify())
x-api-key header authentication.gitignore protection/auth/health verification| 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 |
bash# 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
After successful auth, proceed to apollo-hello-world for your first API call.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-18 | pass→pass | 14,164 | 10,199 | -28% | 1 | 1 | 0% | 2,695 | 3,455 | +28% | 0 | 0 | — |
case-01 | fail→pass | 11,471 | 8,562 | -25% | 1 | 1 | 0% | 2,621 | 3,311 | +26% | 0 | 0 | — |
case-02 | fail→pass | 13,659 | 9,201 | -33% | 1 | 1 | 0% | 3,051 | 3,649 | +20% | 0 | 0 | — |
case-03 | fail→pass | 11,639 | 8,188 | -30% | 1 | 1 | 0% | 2,266 | 3,281 | +45% | 0 | 0 | — |
case-04 | pass→pass | 7,513 | 5,842 | -22% | 1 | 1 | 0% | 1,587 | 2,301 | +45% | 0 | 0 | — |
case-05 | pass→pass | 10,626 | 5,055 | -52% | 1 | 1 | 0% | 1,826 | 2,456 | +35% | 0 | 0 | — |
case-06 | pass→pass | 3,279 | 2,527 | -23% | 1 | 1 | 0% | 640 | 1,929 | +201% | 0 | 0 | — |
case-07 | pass→pass | 8,927 | 2,255 | -75% | 1 | 1 | 0% | 1,812 | 1,776 | -2% | 0 | 0 | — |
case-08 | fail→pass | 7,529 | 4,414 | -41% | 1 | 1 | 0% | 1,584 | 2,336 | +47% | 0 | 0 | — |
case-09 | pass→pass | 8,943 | 4,963 | -45% | 1 | 1 | 0% | 1,647 | 2,439 | +48% | 0 | 0 | — |
case-10 | fail→pass | 10,246 | 7,269 | -29% | 1 | 1 | 0% | 2,020 | 2,823 | +40% | 0 | 0 | — |
case-11 | pass→pass | 4,832 | 3,223 | -33% | 1 | 1 | 0% | 1,050 | 2,027 | +93% | 0 | 0 | — |
case-12 | fail→pass | 13,776 | 8,895 | -35% | 1 | 1 | 0% | 2,690 | 3,259 | +21% | 0 | 0 | — |
case-13 | pass→pass | 12,458 | 8,031 | -36% | 1 | 1 | 0% | 2,234 | 2,965 | +33% | 0 | 0 | — |
case-14 | pass→pass | 10,857 | 6,921 | -36% | 1 | 1 | 0% | 1,954 | 2,680 | +37% | 0 | 0 | — |
case-15 | pass→pass | 7,983 | 2,117 | -73% | 1 | 1 | 0% | 1,760 | 1,850 | +5% | 0 | 0 | — |
case-16 | pass→pass | 7,998 | 2,211 | -72% | 1 | 1 | 0% | 1,457 | 1,805 | +24% | 0 | 0 | — |
case-17 | pass→pass | 4,243 | 1,761 | -58% | 1 | 1 | 0% | 687 | 1,736 | +153% | 0 | 0 | — |
case-19 | fail→pass | 7,485 | 6,172 | -18% | 1 | 1 | 0% | 1,442 | 2,786 | +93% | 0 | 0 | — |
case-20 | pass→pass | 13,909 | 13,354 | -4% | 1 | 1 | 0% | 3,141 | 4,514 | +44% | 0 | 0 | — |
case-21 | pass→pass | 8,331 | 8,249 | -1% | 1 | 1 | 0% | 1,510 | 3,068 | +103% | 0 | 0 | — |
case-22 | pass→pass | 18,036 | 16,550 | -8% | 1 | 1 | 0% | 3,850 | 4,981 | +29% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +32 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.