Use the Apollo.io CLI from KosmoKrator to call Apollo.io tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.
Apollo.io can be configured headlessly with `kosmokrator integrations:configure apollo`.
# Install KosmoKrator first if it is not available on PATH.curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash# Configure and verify this integration.kosmokrator integrations:configure apollo --set api_key="$APOLLO_API_KEY" --enable --read allow --write ask --jsonkosmokrator integrations:doctor apollo --jsonkosmokrator integrations:status --json
Credentials
Authentication type: API keyapi_key. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Key
Env var
Type
Required
Label
api_key
APOLLO_API_KEY
Secret secret
yes
API Key
url
APOLLO_URL
URL url
no
Base URL
Call Apollo.io Headlessly
Use the generic call form when another coding CLI or script needs a stable universal interface.
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to Apollo.io.
apollo.apollo_search_contacts
Read read
Search for people in Apollo by name, email, or keyword. Returns a paginated list of contacts with profile details including name, title, company, email, phone, and social profiles.
Retrieve full details for a specific contact in Apollo by their person ID. Returns comprehensive profile data including employment history, emails, phone numbers, and social profiles.
Enrich a contact by matching on email address and/or name. Returns enriched profile data including title, company, social profiles, and contact details. Provide at least an email or a name.
List organizations from your Apollo account. Returns paginated results with company details including name, website, industry, employee count, and revenue.
Retrieve full details for a specific organization in Apollo by its ID. Returns comprehensive company data including industry, employee count, revenue, tech stack, locations, and key contacts.
Use these parameter tables when building CLI payloads without calling integrations:schema first.
apollo.apollo_search_contacts
Search for people in Apollo by name, email, or keyword. Returns a paginated list of contacts with profile details including name, title, company, email, phone, and social profiles.
Search query — a name, email address, company name, or keyword.
page
integer
no
Page number for pagination (default: 1).
per_page
integer
no
Number of results per page (default: 25, max: 100).
apollo.apollo_get_contact
Retrieve full details for a specific contact in Apollo by their person ID. Returns comprehensive profile data including employment history, emails, phone numbers, and social profiles.
The Apollo person ID (e.g., "63f3b1c2XXXXXXXXXXXX").
apollo.apollo_enrich
Enrich a contact by matching on email address and/or name. Returns enriched profile data including title, company, social profiles, and contact details. Provide at least an email or a name.
List organizations from your Apollo account. Returns paginated results with company details including name, website, industry, employee count, and revenue.
Number of results per page (default: 25, max: 100).
apollo.apollo_get_organization
Retrieve full details for a specific organization in Apollo by its ID. Returns comprehensive company data including industry, employee count, revenue, tech stack, locations, and key contacts.
Headless calls still follow the integration read/write permission policy. Configure read/write defaults
with integrations:configure. Add --force only for trusted automation that should bypass that policy.