KosmoKrator

sales

Hunter CLI for AI Agents

Use the Hunter CLI from KosmoKrator to call Hunter tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

8 functions 7 read 1 write API key auth

Hunter CLI Setup

Hunter can be configured headlessly with `kosmokrator integrations:configure hunter`.

# 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 hunter --set api_key="$HUNTER_API_KEY" --enable --read allow --write ask --json
kosmokrator integrations:doctor hunter --json
kosmokrator integrations:status --json

Credentials

Authentication type: API key api_key. Configure credentials once, then use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

KeyEnv varTypeRequiredLabel
api_key HUNTER_API_KEY Secret secret yes API Key

Call Hunter Headlessly

Use the generic call form when another coding CLI or script needs a stable universal interface.

kosmo integrations:call hunter.hunter_domain_search '{
  "domain": "example_domain",
  "limit": 1,
  "offset": 1,
  "type": "example_type"
}' --json

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:hunter hunter_domain_search '{
  "domain": "example_domain",
  "limit": 1,
  "offset": 1,
  "type": "example_type"
}' --json

Agent Discovery Commands

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

kosmo integrations:docs hunter --json
kosmo integrations:docs hunter.hunter_domain_search --json
kosmo integrations:schema hunter.hunter_domain_search --json
kosmo integrations:search "Hunter" --json
kosmo integrations:list --json

All CLI Functions

Every function below can be called headlessly. The generic form is stable across all integrations; the provider shortcut is shorter but specific to Hunter.

hunter.hunter_email_finder

Read read

Find the most likely professional email address for a person based on their name and company domain. Returns the email with a confidence score and sources where the email was found.

Parameters
domain, first_name, last_name

Generic CLI call

kosmo integrations:call hunter.hunter_email_finder '{"domain":"example_domain","first_name":"example_first_name","last_name":"example_last_name"}' --json

Provider shortcut

kosmo integrations:hunter hunter_email_finder '{"domain":"example_domain","first_name":"example_first_name","last_name":"example_last_name"}' --json

hunter.hunter_email_verifier

Read read

Verify the deliverability of an email address. Checks whether the email is valid, the mailbox exists, and accepts mail. Returns a result status (deliverable, undeliverable, risky, or unknown) along with confidence scores and SMTP details.

Parameters
email

Generic CLI call

kosmo integrations:call hunter.hunter_email_verifier '{"email":"example_email"}' --json

Provider shortcut

kosmo integrations:hunter hunter_email_verifier '{"email":"example_email"}' --json

hunter.hunter_email_count

Read read

Get the total number of email addresses Hunter.io has found for a domain. Returns counts broken down by email type (personal, generic) and department. This endpoint does not consume API credits.

Parameters
domain

Generic CLI call

kosmo integrations:call hunter.hunter_email_count '{"domain":"example_domain"}' --json

Provider shortcut

kosmo integrations:hunter hunter_email_count '{"domain":"example_domain"}' --json

hunter.hunter_list_leads

Read read

List leads stored in your Hunter.io account. Supports pagination with limit and offset parameters. Returns lead details including email, name, and associated lists.

Parameters
limit, offset

Generic CLI call

kosmo integrations:call hunter.hunter_list_leads '{"limit":1,"offset":1}' --json

Provider shortcut

kosmo integrations:hunter hunter_list_leads '{"limit":1,"offset":1}' --json

hunter.hunter_get_lead

Read read

Retrieve detailed information about a single lead by its ID. Returns the lead's email address, name, company, and any associated lists or custom fields.

Parameters
id

Generic CLI call

kosmo integrations:call hunter.hunter_get_lead '{"id":1}' --json

Provider shortcut

kosmo integrations:hunter hunter_get_lead '{"id":1}' --json

hunter.hunter_create_lead

Write write

Create a new lead in Hunter.io. Requires an email address. Optionally include first name, last name, and a list ID to add the lead to a specific lead list. Returns the created lead object with its ID.

Parameters
email, first_name, last_name, list_id

Generic CLI call

kosmo integrations:call hunter.hunter_create_lead '{"email":"example_email","first_name":"example_first_name","last_name":"example_last_name","list_id":1}' --json

Provider shortcut

kosmo integrations:hunter hunter_create_lead '{"email":"example_email","first_name":"example_first_name","last_name":"example_last_name","list_id":1}' --json

hunter.hunter_get_current_user

Read read

Get information about the authenticated Hunter.io account, including the user's name, email, plan details, and API usage (requests made and remaining). Useful for verifying the API key works and checking usage limits.

Parameters
none

Generic CLI call

kosmo integrations:call hunter.hunter_get_current_user '{}' --json

Provider shortcut

kosmo integrations:hunter hunter_get_current_user '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

hunter.hunter_email_finder

Find the most likely professional email address for a person based on their name and company domain. Returns the email with a confidence score and sources where the email was found.

Operation
Read read
Schema command
kosmo integrations:schema hunter.hunter_email_finder --json
ParameterTypeRequiredDescription
domain string yes The company domain (e.g., "example.com").
first_name string no The person's first name.
last_name string no The person's last name.

hunter.hunter_email_verifier

Verify the deliverability of an email address. Checks whether the email is valid, the mailbox exists, and accepts mail. Returns a result status (deliverable, undeliverable, risky, or unknown) along with confidence scores and SMTP details.

Operation
Read read
Schema command
kosmo integrations:schema hunter.hunter_email_verifier --json
ParameterTypeRequiredDescription
email string yes The email address to verify.

hunter.hunter_email_count

Get the total number of email addresses Hunter.io has found for a domain. Returns counts broken down by email type (personal, generic) and department. This endpoint does not consume API credits.

Operation
Read read
Schema command
kosmo integrations:schema hunter.hunter_email_count --json
ParameterTypeRequiredDescription
domain string yes The domain to count emails for (e.g., "example.com").

hunter.hunter_list_leads

List leads stored in your Hunter.io account. Supports pagination with limit and offset parameters. Returns lead details including email, name, and associated lists.

Operation
Read read
Schema command
kosmo integrations:schema hunter.hunter_list_leads --json
ParameterTypeRequiredDescription
limit integer no Maximum number of leads to return (default: 20, max: 100).
offset integer no Number of leads to skip for pagination.

hunter.hunter_get_lead

Retrieve detailed information about a single lead by its ID. Returns the lead's email address, name, company, and any associated lists or custom fields.

Operation
Read read
Schema command
kosmo integrations:schema hunter.hunter_get_lead --json
ParameterTypeRequiredDescription
id integer yes The lead ID.

hunter.hunter_create_lead

Create a new lead in Hunter.io. Requires an email address. Optionally include first name, last name, and a list ID to add the lead to a specific lead list. Returns the created lead object with its ID.

Operation
Write write
Schema command
kosmo integrations:schema hunter.hunter_create_lead --json
ParameterTypeRequiredDescription
email string yes The lead's email address.
first_name string no The lead's first name.
last_name string no The lead's last name.
list_id integer no ID of the lead list to add this lead to.

hunter.hunter_get_current_user

Get information about the authenticated Hunter.io account, including the user's name, email, plan details, and API usage (requests made and remaining). Useful for verifying the API key works and checking usage limits.

Operation
Read read
Schema command
kosmo integrations:schema hunter.hunter_get_current_user --json
ParameterTypeRequiredDescription
No parameters.

Permissions

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.