LeadHound REST API · v1

Every lead, call and conversion — over HTTP

Read the leads and calls LeadHound captured, push leads in from your own systems, and pull the attribution and ROI numbers behind them. JSON in, JSON out, authenticated with an API key you can create in a few seconds.

Base URL

https://getleadhound.io/api/public/v1
Your first request
curl -u "$LEADHOUND_TOKEN:$LEADHOUND_SECRET" \
  "https://getleadhound.io/api/public/v1/me"

Introduction

The API is organised around the objects the product is: leads, the calls some of them came from, the websites and tracking numbers that produced them, and the reports that join them to ad spend. Every path lives under one versioned base URL, and every response is JSON.

Requests are scoped to your account automatically. There is no account id in any path — the key you authenticate with decides what you can see, and a record belonging to someone else is a 404, never a partial result.

Single objects are returned unwrapped. Collections come back under a key named for what they hold — leads, calls, profiles — alongside their pagination counters. There is no generic data envelope to unwrap.

Authentication

The API uses HTTP Basic authentication. The key’s token is the username and its secret is the password — every HTTP client has a first-class way to send that, so there is nothing to hand-roll.

A client that can only send a bearer token may send the same pair that way instead: Authorization: Bearer token:secret. This is how AI agents connect to the MCP server.

Create a key under Settings → Integrations → API Key. The secret is shown once, at creation. There are two kinds:

  • ltk_…An account key, bound to one account. 10,000 requests a day.
  • ltm_…A master key, held by an agency, valid for every client account in its organization. 50,000 requests a day.

Keep keys server-side

HTTP Basic credentials cannot be used from a browser without exposing them. Call the API from your backend. If you need to capture leads from a page, use the tracking snippet or the public capture endpoint instead — neither needs a secret.

Account key
curl -u "$LEADHOUND_TOKEN:$LEADHOUND_SECRET" \
  "https://getleadhound.io/api/public/v1/me"
Master key, one client
curl -u "$LEADHOUND_TOKEN:$LEADHOUND_SECRET" \
  -H "X-Account-Id: 43" \
  "https://getleadhound.io/api/public/v1/leads"

Accounts & websites

Data sits at three levels: an organization (an agency) owns accounts, and each account owns one or more websites. A website is called a profile, and its id is what every profile_id filter in this API expects.

An account key is pinned to its own account and needs nothing extra. A master key must say which account each request is for, with the X-Account-Id header — without it the request is a 400. Call GET /accounts for the ids you may use.

Omitting profile_id means “every website on this account”. That is the intended account-wide view, not a missing filter.

Choosing a client account
curl -u "$LEADHOUND_TOKEN:$LEADHOUND_SECRET" \
  -H "X-Account-Id: 43" \
  "https://getleadhound.io/api/public/v1/leads"

Pagination

Collections are paged with page_number and a per-page size named for the collection — leads_per_page on leads, calls_per_page on calls. Both are 1-indexed.

Every paged response reports total_pages and the total record count, so you can size a job before you run it. Keep pages modest and let the counters drive the loop rather than asking for the maximum every time; the ceiling exists for backfills, not for polling.

Paging a moving collection

New leads arrive while you page, which shifts everything down by one. For a full export, pin the window with `start_date` and `end_date` and page inside it — the set is then fixed no matter how long the export takes.

{
  "page_number": 2,
  "leads_per_page": 50,
  "total_pages": 3,
  "total_leads": 118,
  "leads": [ /* … */ ]
}

Errors

Errors use conventional HTTP status codes and always return the same body: a human-readable message, an error object naming the machine-readable type, and — for a validation failure — an errors map keyed by field.

Branch on error.type rather than on the message text. Messages are written for whoever is reading the log and may be reworded; the types below are stable.

StatusTypeWhen you see it
400invalid_request_errorThe request could not be understood. A master key lands here when an endpoint that acts on one account (a report, creating a lead) is given neither a profile_id nor an account_id, or when it names an account outside its organization.
401authentication_errorNo credentials, or a token/secret pair that does not match a key.
403permission_errorAuthenticated, but this key may not perform that action.
404invalid_request_errorNo such record on this account. Another account’s record is a 404, never a 403 — the API does not confirm that it exists.
422validation_errorThe payload or a filter failed validation. `errors` names each field.
429rate_limit_errorThe key’s daily quota is spent. `Retry-After` says how many seconds until it resets.
5xxapi_errorSomething failed on our side. Retry with backoff, and quote the X-Request-Id if it persists.
{
  "message": "The request payload failed validation.",
  "error": {
    "type": "validation_error",
    "status": 422
  },
  "errors": {
    "email": ["Provide at least an email or a phone number."]
  }
}

Rate limits

Each key has a daily request quota — 10,000 for an account key, 50,000 for a master key — which resets at midnight UTC. Every response, successful or not, reports where you stand.

  • X-RateLimit-Limit — the key’s daily ceiling.
  • X-RateLimit-Remaining — requests left today.
  • X-RateLimit-Reset — Unix timestamp of the reset.
  • X-Request-Id — this request’s id. Send your own and we will echo it back, so your logs and ours line up.

Once the quota is spent every request is a 429 carrying Retry-After in seconds. Watch X-RateLimit-Remaining and slow down before you get there rather than after.

HTTP/1.1 200 OK
X-RateLimit-Limit: 10000
X-RateLimit-Remaining: 9871
X-RateLimit-Reset: 1788393600
X-Request-Id: 6f1c9b2e-8f4a-4f6e-9d17-2b0a5c8e77aa

Idempotency

Creating a lead is idempotent on external_id — your own id for the record. Send it and a retried request returns the lead that already exists with a 200 instead of creating a second one.

This is what makes a webhook or a queued job safe to retry. Without an external_id there is nothing to match on, and a repeated POST /leads will create a duplicate.

Backfilling history

When importing old leads, send `occurred_at` with the original timestamp and `sync_conversions: false`. Otherwise a year of history is uploaded to Google Ads and Meta as conversions that all happened today, and their bidding models will believe it.

curl -u "$LEADHOUND_TOKEN:$LEADHOUND_SECRET" \
  -H "Content-Type: application/json" \
  -d '{ "email": "jane@example.com", "external_id": "crm-8841" }' \
  "https://getleadhound.io/api/public/v1/leads"

# 201 the first time, 200 and the same lead every time after.

MCP server

AI agents can use the API through LeadHound’s Model Context Protocol (MCP) server. Connect it to Claude Code, Cursor, VS Code or any MCP client and ask in plain words — “how many leads did Google Ads bring in last week, and which campaign converted best?” — and the agent calls the right tools itself.

Server URL

https://getleadhound.io/api/mcp

It uses the same API keys as the REST API, sent as a bearer token: Authorization: Bearer token:secret. The transport is streamable HTTP. Every tool reads or writes exactly what its REST endpoint does, scoped to the key’s account.

With a master key, the agent first calls list_accounts, then passes account_id to every other tool — so one connection covers every client account. An account key needs no account_id. An X-Account-Id header works too, if your client can send it.

Each tool call counts against the key’s daily quota, like a REST request. Connecting, listing tools and pings do not. When the quota is spent, the tool answers with an error the agent can read, rather than a 429.

A key made for an AI agent can be limited when it is created. “AI agent, read-only” works on the MCP server only, not the REST API, and the tools that create, update or delete leads are hidden from it. “AI agent, read-only, no personal data” also removes names, emails, phone numbers (all but the last four digits), IP addresses and recordings from what the agent reads, and replaces them in transcripts and summaries with [name], [email] and [number]. Every tool call is logged with the key, the arguments and the outcome.

Claude Code
claude mcp add --transport http leadhound https://getleadhound.io/api/mcp \
  --header "Authorization: Bearer $LEADHOUND_TOKEN:$LEADHOUND_SECRET"
Cursor
// ~/.cursor/mcp.json
{
  "mcpServers": {
    "leadhound": {
      "url": "https://getleadhound.io/api/mcp",
      "headers": { "Authorization": "Bearer ltk_…:lts_…" }
    }
  }
}
VS Code
// .vscode/mcp.json
{
  "servers": {
    "leadhound": {
      "type": "http",
      "url": "https://getleadhound.io/api/mcp",
      "headers": { "Authorization": "Bearer ltk_…:lts_…" }
    }
  }
}

MCP tools

Each tool takes the same arguments as its endpoint — the same filter names and values — and returns the same JSON, so the endpoint reference below documents both. Lists return at most 100 records per page over MCP, so one call cannot flood the agent’s context. The three reports with no endpoint — lead_insights, call_report and ad_spend_report — exist for agents only. Dates accept from and to as well as start_date and end_date.

ToolKindWhat it does
whoamiReadThe account, its websites and the quota left today. Call it first.
list_accountsReadEvery account the key can act on, with its websites. A master key needs no account_id: lists cover every account.
list_websitesReadThe account’s websites, whose ids are profile_id.
get_websiteReadOne website, with its settings.
list_leadsReadSearch leads by date, website, type, source, campaign, status.
get_leadReadOne lead, with its form fields or its call.
get_lead_journeyReadFirst touch, pages viewed, device, and conversion uploads.
create_leadWriteRecord a lead from outside the snippet.
update_leadWriteQualify, convert with a value, or mark spam.
delete_leadDestructiveDelete a lead permanently.
lead_reportReadLead totals and a breakdown over a date range.
lead_insightsReadA period against the one before it, paid vs organic, channels, top forms, and leads by hour and weekday.
list_callsReadTracked calls, missed calls and voicemails included.
get_callReadOne call, with its transcript and AI analysis.
list_phone_numbersReadTracking numbers and the website and pool each serves.
call_reportReadCalls and answer rate by outcome, hour of day and weekday.
roi_reportReadSpend, cost per lead and ROAS per platform and campaign.
ad_spend_reportReadGoogle Ads and Meta cost, impressions and clicks by day or campaign.
An agent with a master key
> Which client had the most Google
> leads last week?

list_accounts
→ [{ "id": 43, "name": "Acme" }, …]

lead_report {
  "account_id": 43,
  "group_by": "source",
  "start_date": "2026-10-12"
}

Account

Who these credentials are, which account they act on, and how much of today’s quota is left. Start here when wiring up a new integration.

Verify credentials

GET/api/public/v1/me

Returns the account the credentials resolve to, the key doing the resolving, the remaining daily quota, and every website on the account.

This is the cheapest way to confirm a key works, and the only way to see which account a master key is currently pointed at. The secret half of the pair is never returned.

curl -u "$LEADHOUND_TOKEN:$LEADHOUND_SECRET" \
  "https://getleadhound.io/api/public/v1/me"
Response200
{
  "api_version": "v1",
  "account": {
    "id": 42,
    "name": "Acme Plumbing",
    "slug": "acme-plumbing",
    "plan": "pro",
    "organization_id": 7
  },
  "api_key": {
    "name": "Zapier",
    "token": "ltk_9f2c…",
    "scope": "account"
  },
  "rate_limit": {
    "limit": 10000,
    "remaining": 9871,
    "resets_at": "2026-09-03T00:00:00+00:00"
  },
  "profiles": [
    {
      "id": 11,
      "name": "acme-plumbing.com",
      "domain": "acme-plumbing.com",
      "tracking_id": "a7Kd92Lm",
      "is_active": true
    }
  ]
}

List accounts

GET/api/public/v1/accounts

Every account these credentials can act on, and which one the current request is bound to.

An account key returns exactly one account — its own. A master key returns every account in its organization, each with its websites, and needs no account named: list endpoints cover every account, and a lead, call or website id acts on the account that owns it. Pass an id as account_id (or the X-Account-Id header) only to narrow a request to one account.

curl -u "$LEADHOUND_TOKEN:$LEADHOUND_SECRET" \
  "https://getleadhound.io/api/public/v1/accounts"
Response200
{
  "scope": "master",
  "active_account_id": null,
  "accounts": [
    {
      "id": 42,
      "name": "Acme Plumbing",
      "slug": "acme-plumbing",
      "plan": "pro",
      "profiles_count": 2,
      "profiles": [
        { "id": 7, "name": "Acme Plumbing", "domain": "acmeplumbing.com", "is_active": true },
        { "id": 8, "name": "Acme Emergency", "domain": "acme-emergency.com", "is_active": true }
      ],
      "active": false
    },
    {
      "id": 43,
      "name": "Zenith Roofing",
      "slug": "zenith-roofing",
      "plan": "starter",
      "profiles_count": 1,
      "profiles": [
        { "id": 9, "name": "Zenith Roofing", "domain": "zenithroofing.com", "is_active": true }
      ],
      "active": false
    }
  ]
}

Websites

A website (a “profile”) is the unit almost everything else is filtered by. Its tracking id is the public identifier baked into the snippet.

List websites

GET/api/public/v1/profiles

Every website on the account, alphabetically.

curl -u "$LEADHOUND_TOKEN:$LEADHOUND_SECRET" \
  "https://getleadhound.io/api/public/v1/profiles"
Response200
{
  "total_profiles": 2,
  "profiles": [
    {
      "id": 11,
      "tenant_id": 42,
      "name": "acme-plumbing.com",
      "domain": "acme-plumbing.com",
      "timezone": "America/Chicago",
      "tracking_id": "a7Kd92Lm",
      "settings": null,
      "is_active": true,
      "created_at": "2026-02-11T09:04:22+00:00",
      "updated_at": "2026-08-30T18:15:03+00:00"
    }
  ]
}

Get a website

GET/api/public/v1/profiles/{id}

One website by id.

curl -u "$LEADHOUND_TOKEN:$LEADHOUND_SECRET" \
  "https://getleadhound.io/api/public/v1/profiles/11"
Response200
{
  "id": 11,
  "tenant_id": 42,
  "name": "acme-plumbing.com",
  "domain": "acme-plumbing.com",
  "timezone": "America/Chicago",
  "tracking_id": "a7Kd92Lm",
  "settings": null,
  "is_active": true,
  "created_at": "2026-02-11T09:04:22+00:00",
  "updated_at": "2026-08-30T18:15:03+00:00"
}

Leads

Everything a visitor turned into: a form submission, a tracked call, or a lead your own systems pushed in. Reading, creating, correcting and deleting them.

List leads

GET/api/public/v1/leads

A paginated, filterable list of leads, newest first, in the same format as WhatConverts’ leads API.

Fields and filters match WhatConverts’ GET /api/v1/leads, so a client written for WhatConverts works by changing only the base URL and credentials.

Call fields (tracking_number through lead_analysis) are sent on phone leads only. Fields we hold nothing for are sent as null.

Dates are ISO-8601 in the website’s own timezone. quotable, quote_value and sales_value follow the lead’s status: qualified and converted leads are quotable at their value, and a converted lead’s value is also its sale.

Sources are stored lowercase, and Meta’s fb, ig and instagram tags are stored as facebook. The lead_source filter is matched the same way, so GBP finds leads stored as gbp.

recording is a signed link to our own endpoint that stops working after 24 hours. Fetch the lead again for a fresh one rather than storing it.

Query parameters

leads_per_pageintegerdefault 25

Results per page, 1–2500.

page_numberintegerdefault 1

Which page to return.

orderstringdefault desc

Sort by date created.

ascdesc
start_datestring

Only include records created on or after this moment. ISO-8601 date or datetime, interpreted in UTC.

end_datestring

Only include records created on or before this moment. Must not precede start_date.

profile_idinteger

Restrict to a single website. Omit for every website on the account. An id belonging to another account is rejected, not silently ignored.

lead_typestring

How the lead arrived. Types we never record match no leads.

phone_callweb_formotherappointmentchatemaileventtext_messagetransaction
lead_statusstring

Whether an earlier lead on the website shared this one’s email or phone.

uniquerepeat
quotablestring

Quotable flag.

yesnopendingnot_set
quote_valuestring

Whether a quote value is set.

has_valueno_value
sales_valuestring

Whether a sales value is set.

has_valueno_value
spamboolean

true returns only spam; false leaves spam out. Omit for both.

phone_numberstring

Exact match on the E.164 phone number.

email_addressstring

Exact match on the email address.

user_idstring

The visitor’s session id.

lead_sourcestring

Match on the source, e.g. google. Case-insensitive; fb and ig match facebook.

lead_mediumstring

Exact match on the medium, e.g. cpc.

lead_campaignstring

Exact match on the campaign name.

lead_contentstring

Exact match on the ad content (utm_content).

lead_keywordstring

Exact match on the keyword.

curl -u "$LEADHOUND_TOKEN:$LEADHOUND_SECRET" \
  "https://getleadhound.io/api/public/v1/leads?leads_per_page=500&lead_type=phone_call"
Response200
{
  "page_number": 1,
  "leads_per_page": 500,
  "total_pages": 1,
  "total_leads": 118,
  "leads": [
    {
        "account_id": 42,
        "account": "Acme Plumbing",
        "profile_id": 11,
        "profile": "acme-plumbing.com",
        "lead_id": 1042,
        "user_id": "s_8f21c9",
        "lead_type": "Phone Call",
        "lead_status": "Unique",
        "date_created": "2026-08-30T09:02:55-05:00",
        "quotable": "Yes",
        "quote_value": 1250,
        "sales_value": 1250,
        "spotted_keywords": null,
        "lead_score": null,
        "lead_source": "google",
        "lead_medium": "cpc",
        "lead_campaign": "emergency-plumbing",
        "lead_content": "987654321",
        "lead_keyword": "emergency plumber austin",
        "lead_url": "https://acme-plumbing.com/contact",
        "landing_url": "https://acme-plumbing.com/",
        "operating_system": "iOS 17.4",
        "browser": "Safari 17.4",
        "device_type": "Smartphone",
        "device_make": "Apple iPhone",
        "spam": false,
        "duplicate": false,
        "city": "Austin",
        "state": "Texas",
        "zip": "78701",
        "country": "United States",
        "ip_address": "203.0.113.9",
        "notes": "Booked for Tuesday",
        "contact_name": "Jane Doe",
        "contact_company_name": null,
        "contact_email_address": "jane@example.com",
        "contact_phone_number": "+15125550147",
        "email_address": "jane@example.com",
        "phone_number": "+15125550147",
        "gclid": "Cj0KCQjw…",
        "msclkid": null,
        "facebook_click_id": null,
        "form_name": null,
        "message": null,
        "last_updated": "2026-08-31T11:20:11-05:00",
        "additional_fields": {},
        "tracking_number": "+15125550100",
        "destination_number": "••••••••0199",
        "caller_number": "+15125550147",
        "caller_name": null,
        "phone_name": null,
        "call_duration": "3 minutes and 34 seconds",
        "call_duration_seconds": 214,
        "answer_status": "Answered",
        "call_status": "Completed",
        "line_type": null,
        "recording": "https://app.leadhound.io/api/v1/calls/806/recording?expires=1788393600&signature=…",
        "call_transcription": "Hi, I have water coming through the ceiling…",
        "voicemail": null,
        "voicemail_transcription": null,
        "lead_analysis": {
          "Lead Summary": "Emergency call-out booked for a burst pipe.",
          "Customer Type": "New Customer",
          "Sentiment Detection": "Positive",
          "Keyword Detection": "burst pipe,emergency",
          "Lead Quality": "Hot"
        }
      }
  ]
}

Get a lead

GET/api/public/v1/leads/{id}

One lead, in the same format as each entry of the list.

curl -u "$LEADHOUND_TOKEN:$LEADHOUND_SECRET" \
  "https://getleadhound.io/api/public/v1/leads/1042"
Response200
{
  "account_id": 42,
  "account": "Acme Plumbing",
  "profile_id": 11,
  "profile": "acme-plumbing.com",
  "lead_id": 1042,
  "user_id": "s_8f21c9",
  "lead_type": "Phone Call",
  "lead_status": "Unique",
  "date_created": "2026-08-30T09:02:55-05:00",
  "quotable": "Yes",
  "quote_value": 1250,
  "sales_value": 1250,
  "spotted_keywords": null,
  "lead_score": null,
  "lead_source": "google",
  "lead_medium": "cpc",
  "lead_campaign": "emergency-plumbing",
  "lead_content": "987654321",
  "lead_keyword": "emergency plumber austin",
  "lead_url": "https://acme-plumbing.com/contact",
  "landing_url": "https://acme-plumbing.com/",
  "operating_system": "iOS 17.4",
  "browser": "Safari 17.4",
  "device_type": "Smartphone",
  "device_make": "Apple iPhone",
  "spam": false,
  "duplicate": false,
  "city": "Austin",
  "state": "Texas",
  "zip": "78701",
  "country": "United States",
  "ip_address": "203.0.113.9",
  "notes": "Booked for Tuesday",
  "contact_name": "Jane Doe",
  "contact_company_name": null,
  "contact_email_address": "jane@example.com",
  "contact_phone_number": "+15125550147",
  "email_address": "jane@example.com",
  "phone_number": "+15125550147",
  "gclid": "Cj0KCQjw…",
  "msclkid": null,
  "facebook_click_id": null,
  "form_name": null,
  "message": null,
  "last_updated": "2026-08-31T11:20:11-05:00",
  "additional_fields": {},
  "tracking_number": "+15125550100",
  "destination_number": "••••••••0199",
  "caller_number": "+15125550147",
  "caller_name": null,
  "phone_name": null,
  "call_duration": "3 minutes and 34 seconds",
  "call_duration_seconds": 214,
  "answer_status": "Answered",
  "call_status": "Completed",
  "line_type": null,
  "recording": "https://app.leadhound.io/api/v1/calls/806/recording?expires=1788393600&signature=…",
  "call_transcription": "Hi, I have water coming through the ceiling…",
  "voicemail": null,
  "voicemail_transcription": null,
  "lead_analysis": {
    "Lead Summary": "Emergency call-out booked for a burst pipe.",
    "Customer Type": "New Customer",
    "Sentiment Detection": "Positive",
    "Keyword Detection": "burst pipe,emergency",
    "Lead Quality": "Hot"
  }
}

Create a lead

POST/api/public/v1/leads

Push a lead in from your own site, CRM or call centre. At least an email or a phone number is required.

Send external_id and the call becomes idempotent: a repeat of the same id returns the existing lead with 200 instead of creating a second one, so a retried webhook cannot duplicate a lead.

Send gclid, fbclid or a session_id from the snippet and the lead attributes exactly like one we captured ourselves — including the campaign, ad group and keyword we look up from the Google Ads API.

Importing history? Set occurred_at to the lead’s original timestamp and sync_conversions to false, or a year of old leads is restated to the ad platforms as conversions that happened today.

Location and device come only from ip_address and user_agent. Leave them out and the lead has none, rather than your server’s.

Body parameters

namestring

The person’s name.

emailstringrequired

Email address. Required unless phone is given.

phonestringrequired

Phone number. Required unless email is given.

valuenumber

What the lead is worth. Drives ROAS reporting.

currencystringdefault USD

Three-letter currency code.

lead_typestringdefault api

How it arrived.

formphoneapi
profile_idinteger

Which website the lead belongs to.

external_idstring

Your own id for this lead. Makes the call idempotent.

sourcestring

Traffic source, e.g. google.

mediumstring

Traffic medium, e.g. cpc.

campaignstring

Campaign name.

keywordstring

Search term.

ad_groupstring

Google Ads ad group id.

ad_idstring

Google Ads creative id.

gclidstring

Google click id captured on the landing page.

fbclidstring

Meta click id captured on the landing page.

session_idstring

The snippet’s session id, linking this lead to the visit that produced it.

fieldsobject

Any extra key/value data to keep with the lead.

occurred_atstring

The lead’s original timestamp, for backfills. Never in the future.

sync_conversionsbooleandefault true

Set false to skip the ad-platform upload and the new-lead alert.

ip_addressstring

The visitor’s IP address, if you have it. Used for location and ad-platform matching. The IP your request comes from is never recorded, because that is your server, not the visitor.

user_agentstring

The visitor’s browser user agent, if you have it.

curl -u "$LEADHOUND_TOKEN:$LEADHOUND_SECRET" \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{ "name": "Jane Doe", "email": "jane@example.com", "phone": "+15125550147", "value": 1250, "external_id": "crm-8841", "gclid": "Cj0KCQjw...", "profile_id": 11 }' \
  "https://getleadhound.io/api/public/v1/leads"
Response201
{
  "lead_id": 1042,
  "lead_type": "Other",
  "date_created": "2026-09-02T06:41:07-05:00",
  "quotable": "Not Set",
  "contact_name": "Jane Doe",
  "email_address": "jane@example.com",
  "phone_number": "+15125550147",
  "gclid": "Cj0KCQjw…",
  "…": "the full lead, as in List leads"
}

Update a lead

POST/api/public/v1/leads/{id}

Correct a lead or move it through your pipeline. Only the fields you send are changed.

Setting status to converted stamps the conversion time and restates the conversion at the ad platforms; changing value restates the amount. This is how a deal closed three weeks after the click gets credited to the campaign that produced it.

Body parameters

statusstring

Pipeline status.

newqualifiedconvertedspam
valuenumber

Revised lead value.

currencystring

Three-letter currency code.

namestring

Corrected name.

emailstring

Corrected email.

phonestring

Corrected phone number.

sourcestring

Corrected source.

mediumstring

Corrected medium.

campaignstring

Corrected campaign.

keywordstring

Corrected keyword.

curl -u "$LEADHOUND_TOKEN:$LEADHOUND_SECRET" \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{ "status": "converted", "value": 1250 }' \
  "https://getleadhound.io/api/public/v1/leads/1042"
Response200
{
  "lead_id": 1042,
  "quotable": "Yes",
  "quote_value": 1250,
  "sales_value": 1250,
  "last_updated": "2026-09-02T06:44:19-05:00",
  "…": "the full lead, as in List leads"
}

Delete a lead

DELETE/api/public/v1/leads/{id}

Remove a lead permanently.

Deleting does not retract a conversion already uploaded to Google Ads or Meta. If you are removing junk, set the status to spam instead — that is what keeps the platforms’ bidding honest.

curl -u "$LEADHOUND_TOKEN:$LEADHOUND_SECRET" \
  -X DELETE \
  "https://getleadhound.io/api/public/v1/leads/1042"
Response200
{
  "deleted": true,
  "id": 1042
}

Get a lead’s journey

GET/api/public/v1/leads/{id}/journey

The visit behind the lead: first touch, the pages viewed, the device and location, and every conversion we uploaded for it.

The conversions array is the audit trail for the ad platforms — what we sent, when, and the error if a send failed. It is the first thing to check when a conversion has not appeared in Google Ads.

error is the platform’s own short explanation of a failed upload, e.g. HTTP 400 INVALID_ARGUMENT: Request contains an invalid argument., not its full raw response.

Google Ads status reflects what Google did with the upload: pending (queued), processing (delivered, Google still processing), accepted, rejected or partial_failure (with Google’s reason in error), or failed (could not be delivered). sent is a delivered Meta / GA4 event, or a Google Ads upload from before outcomes were tracked.

curl -u "$LEADHOUND_TOKEN:$LEADHOUND_SECRET" \
  "https://getleadhound.io/api/public/v1/leads/1042/journey"
Response200
{
  "session": {
    "first_touch_at": "2026-08-29T19:44:02+00:00",
    "landing_page": "https://acme-plumbing.com/emergency",
    "referrer": "https://www.google.com/",
    "last_landing_page": "https://acme-plumbing.com/contact",
    "gclid": "Cj0KCQjw…"
  },
  "visitor": {
    "ip": "203.0.113.24",
    "geo": { "city": "Austin", "region": "TX", "country": "US" },
    "browser": "Chrome",
    "os": "iOS",
    "device": "mobile",
    "device_make": "Apple"
  },
  "page_views": [
    { "url": "https://acme-plumbing.com/emergency", "at": "2026-08-29T19:44:02Z" },
    { "url": "https://acme-plumbing.com/contact", "at": "2026-08-30T14:01:30Z" }
  ],
  "conversions": [
    {
      "platform": "google_ads",
      "event_type": "lead",
      "kind": "click",
      "status": "accepted",
      "value": "1250.00",
      "currency": "USD",
      "error": null,
      "sent_at": "2026-08-31T16:20:44Z"
    }
  ]
}

Calls

Tracked calls in their own right. A missed call or a voicemail never becomes a lead — and those are usually the ones worth chasing. That is also why the call count is higher than the number of phone-call leads: spam calls, repeat callers and calls that never became a lead are counted as calls only.

List calls

GET/api/public/v1/calls

A paginated, filterable list of calls, newest first.

Transcripts and the AI analysis are not included in the list: they are the largest and most sensitive part of a call. has_transcription and has_analysis say whether each exists; fetch the call by id to read them.

recording_url is a signed link to our own endpoint that stops working after 24 hours. Fetch the call again for a fresh one rather than storing it.

Query parameters

calls_per_pageintegerdefault 25

Results per page, 1–1000.

page_numberintegerdefault 1

Which page to return.

orderstringdefault desc

Sort direction on call time.

ascdesc
start_datestring

Only include records created on or after this moment. ISO-8601 date or datetime, interpreted in UTC.

end_datestring

Only include records created on or before this moment. Must not precede start_date.

statusstring

Call outcome.

ringingansweredmissedvoicemailcompleted
profile_idinteger

Restrict to a single website. Omit for every website on the account. An id belonging to another account is rejected, not silently ignored.

tracking_numberstring

The number the call came in on, in E.164.

caller_numberstring

The number that called, in E.164.

min_durationinteger

Seconds. Filters out hang-ups and wrong numbers.

has_recordingboolean

Only calls that have a recording.

answered_onlyboolean

Only calls a person picked up. A voicemail is a missed call with a message, so it is excluded.

curl -u "$LEADHOUND_TOKEN:$LEADHOUND_SECRET" \
  "https://getleadhound.io/api/public/v1/calls?answered_only=1&min_duration=60"
Response200
{
  "page_number": 1,
  "calls_per_page": 25,
  "total_pages": 2,
  "total_calls": 34,
  "calls": [
    {
      "id": 806,
      "profile_id": 11,
      "lead_id": 1042,
      "status": "completed",
      "tracking_number": "+15125550100",
      "caller_number": "+15125550147",
      "destination_number": "•••••••1400",
      "duration_seconds": 214,
      "started_at": "2026-08-30T14:02:11+00:00",
      "recording_url": "https://app.leadhound.io/api/v1/calls/806/recording?expires=1788393600&signature=…",
      "has_transcription": true,
      "has_analysis": true,
      "transcription_redacted": true,
      "speaker_source": "diarized",
      "speakers_observed": true,
      "created_at": "2026-08-30T14:02:11+00:00",
      "lead": { "id": 1042, "name": "Jane Doe", "status": "converted", "value": "1250.00" }
    }
  ]
}

Get a call

GET/api/public/v1/calls/{id}

One call, with its recording, transcript, speaker turns and AI analysis where the number pool has them switched on.

speaker_source says how much to trust the speaker labels: diarized and corrected are evidence, labelled and inferred are a best guess. speakers_observed is the same distinction as a boolean.

When PCI redaction is on for the pool, transcription is already the redacted text and transcription_redacted is true — a card number read aloud never leaves the platform. transcription_redacted is a yes/no flag, not a second transcript: false means no redaction ran.

curl -u "$LEADHOUND_TOKEN:$LEADHOUND_SECRET" \
  "https://getleadhound.io/api/public/v1/calls/806"
Response200
{
  "id": 806,
  "profile_id": 11,
  "lead_id": 1042,
  "status": "completed",
  "tracking_number": "+15125550100",
  "caller_number": "+15125550147",
  "destination_number": "•••••••1400",
  "duration_seconds": 214,
  "started_at": "2026-08-30T14:02:11+00:00",
  "recording_url": "https://app.leadhound.io/api/v1/calls/806/recording?expires=1788393600&signature=…",
  "has_transcription": true,
  "transcription": "Hi, I have water coming through the ceiling…",
  "transcription_redacted": true,
  "transcript_segments": [
    { "speaker": "caller", "text": "Hi, I have water coming through the ceiling.", "start": 1.2 },
    { "speaker": "agent", "text": "I can get someone to you within the hour.", "start": 6.8 }
  ],
  "speaker_source": "diarized",
  "speakers_observed": true,
  "has_analysis": true,
  "analysis": {
    "summary": "Emergency call-out booked",
    "sentiment": "positive",
    "outcome": "booked"
  },
  "created_at": "2026-08-30T14:02:11+00:00"
}

Tracking numbers

The numbers the snippet swaps onto your pages, and the pool each one serves. Use these to resolve a call’s `tracking_number` to a website and a traffic source.

List tracking numbers

GET/api/public/v1/phone-numbers

Every tracking number on the account.

Forwarding destinations are masked to their last four digits. That is the customer’s real line, not tracking data, so the API never returns it in full.

Query parameters

profile_idinteger

Restrict to a single website. Omit for every website on the account. An id belonging to another account is rejected, not silently ignored.

active_onlyboolean

Exclude numbers that have been retired.

curl -u "$LEADHOUND_TOKEN:$LEADHOUND_SECRET" \
  "https://getleadhound.io/api/public/v1/phone-numbers"
Response200
{
  "total_phone_numbers": 1,
  "phone_numbers": [
    {
      "id": 60,
      "name": "Emergency landing page",
      "tracking_number": "+15125550100",
      "formatted": "+1 (512) 555-0100",
      "destination_number": "•••••••1400",
      "is_active": true,
      "provider": "plivo",
      "number_pool_id": 4,
      "created_at": "2026-03-02T10:00:00+00:00",
      "profile": { "id": 11, "name": "acme-plumbing.com" },
      "pool": { "id": 4, "name": "Paid search", "traffic_source": "search" }
    }
  ]
}

Reports

Pre-aggregated numbers, so you are not paging the whole leads collection to do the sums yourself.

Lead summary

GET/api/public/v1/reports/leads

Headline counts for a date window, plus one breakdown — by day, source, campaign, keyword, type, status or website.

Spam is left out of total, by_type, the value, the conversion rate and the breakdown. How many spam leads there were is still reported in by_status.spam. Send include_spam=1 to count them everywhere.

Query parameters

start_datestringdefault 29 days ago

First day of the window, YYYY-MM-DD.

end_datestringdefault today

Last day of the window, YYYY-MM-DD.

group_bystringdefault day

The dimension the breakdown is cut by.

daysourcemediumcampaignkeywordtypestatusprofile
profile_idinteger

Restrict to a single website. Omit for every website on the account. An id belonging to another account is rejected, not silently ignored.

lead_typestring

Restrict the whole report to one kind of lead.

formphoneapi
include_spambooleandefault false

Count spam leads too.

curl -u "$LEADHOUND_TOKEN:$LEADHOUND_SECRET" \
  "https://getleadhound.io/api/public/v1/reports/leads?group_by=source&start_date=2026-08-01&end_date=2026-08-31"
Response200
{
  "start_date": "2026-08-01",
  "end_date": "2026-08-31",
  "group_by": "source",
  "totals": {
    "total": 118,
    "by_type": { "form": 61, "phone": 49, "api": 8 },
    "by_status": { "new": 44, "qualified": 39, "converted": 28, "spam": 7 },
    "conversion_rate": 23.7,
    "total_value": 41250
  },
  "breakdown": [
    { "key": "google", "leads": 74, "converted": 21, "value": 32100, "conversion_rate": 28.4 },
    { "key": "facebook", "leads": 29, "converted": 5, "value": 6400, "conversion_rate": 17.2 },
    { "key": "direct", "leads": 15, "converted": 2, "value": 2750, "conversion_rate": 13.3 }
  ]
}

Cost per lead and ROAS

GET/api/public/v1/reports/roi

Imported ad spend joined to captured leads, per source and per campaign.

Only platforms whose spend has been imported appear here — connect Google Ads or Meta first, or the cost columns read zero.

Free traffic is excluded from a platform’s figures: a site’s organic Google visits share the google source with its Ads clicks, and counting them would flatter cost-per-lead and inflate ROAS. excluded_mediums lists the mediums left out; leads with no medium are counted. That is why this report’s google leads can be fewer than the lead report’s.

Spam is left out unless you send include_spam=1; includes_spam says which you got.

Leads a platform’s spend bought that match none of its imported campaigns (no campaign captured, or a name the import does not know) are reported in one row per platform with unattributed: true and campaign: null, so the campaign rows add up to the platform’s total. It has no cost, so its cost-per-lead and ROAS are null.

Query parameters

start_datestringdefault 29 days ago

First day of the window, YYYY-MM-DD.

end_datestringdefault today

Last day of the window, YYYY-MM-DD.

profile_idinteger

Restrict to a single website. Omit for every website on the account. An id belonging to another account is rejected, not silently ignored.

include_spambooleandefault false

Count spam leads too.

curl -u "$LEADHOUND_TOKEN:$LEADHOUND_SECRET" \
  "https://getleadhound.io/api/public/v1/reports/roi?start_date=2026-08-01&end_date=2026-08-31"
Response200
{
  "from": "2026-08-01",
  "to": "2026-08-31",
  "totals": {
    "cost": 4820,
    "leads": 103,
    "revenue": 38500,
    "cost_per_lead": 46.8,
    "roas": 7.99
  },
  "by_source": [
    {
      "source": "google",
      "clicks": 1904,
      "cost": 3600,
      "leads": 74,
      "revenue": 32100,
      "cost_per_lead": 48.65,
      "roas": 8.92
    }
  ],
  "campaigns": [
    {
      "source": "google",
      "campaign": "emergency-plumbing",
      "clicks": 902,
      "unattributed": false,
      "cost": 2100,
      "leads": 48,
      "revenue": 24800,
      "cost_per_lead": 43.75,
      "roas": 11.81
    },
    {
      "source": "google",
      "campaign": null,
      "clicks": 0,
      "unattributed": true,
      "cost": 0,
      "leads": 26,
      "revenue": 7300,
      "cost_per_lead": null,
      "roas": null
    }
  ],
  "excluded_mediums": ["organic", "referral", "email", "social", "affiliate", "sms"],
  "includes_spam": false
}

Something missing, or an endpoint behaving differently from this page? Tell us — quote the X-Request-Id from the response and we can find the exact call.