Skip to main content
POST
Availability: on https://app.gethuntd.com, for the same accounts as Submit Email Check. Other accounts receive 403 ENDPOINT_NOT_ON_PLAN. Counts against each company function’s allowance. Contact Huntd to enable it.
Check whether a company uses up to 20 tools, from its domain alone. Use this endpoint for company functions such as Okta, Duo or Twilio. To ask whether a person uses a tool, send their email address to Submit Email Check instead.

Overview

Most sources (tools) answer for a person, from an email address. Those go to Submit Email Check. Some answer for a company: they tell you whether acme.com uses Okta, Duo or Twilio, not whether Dana at Acme does. These are company functions, and you check them here. The check runs in the background, the same as an email check. Each domain becomes a job that you poll:
  1. Submit a domain (or a list of domains) and a list of company functions.
  2. Get back a job_id per domain and a poll_after time right away (202 Accepted).
  3. Once poll_after has passed, poll Get Email Check Result with that job_id until status is completed.
  4. Read sources[slug].is_user: true (the company uses the product), false, or null.
The response is always 202 with a job. When every answer is ready at once, status is completed and poll_after is null. Your client only needs one code path.

Getting the Answer

There is no separate result endpoint. Poll Get Email Check Result (GET /verify/{job_id}) with the job_id. A company job reads exactly like an email job, except that it names the company in domain where an email job has email:
is_user: true means the company uses the product. Answers appear for every function at once, when the job’s status is completed. The polling strategy there applies unchanged. This function submits a check and waits for the answers:
JavaScript

Timing

  • Checks only run Monday to Friday, 09:00 to 18:00 in your account’s timezone, as for email checks. A job submitted on Friday evening starts on Monday morning, and its poll_after says so.
  • A check takes minutes, not seconds.
  • poll_after can be days away. In production, save job_id and poll_after. Check back from a scheduled job instead of keeping a process asleep.

The Domain You Send

Send the company’s domain. You don’t need to clean it first. We reduce what you send to the bare domain, and that bare domain is what we check and return. The cleanup runs in this order:
  1. Surrounding spaces are trimmed and the value is lowercased.
  2. A scheme such as https:// is removed.
  3. Anything after the host (path, query, fragment or port) is dropped.
  4. A leading www. and a trailing dot are removed.
  5. Anything up to an @ is dropped.
What is left must be a real domain name: labels of letters, digits and hyphens, ending in a letters-only extension such as .com or .io. Anything else (localhost, an IP address, acme, an empty string) returns 400 INVALID_PARAMETER. Subdomains are kept: eu.acme.com is checked as eu.acme.com, not acme.com.

Checking a List

Send domains instead of domain to check up to 100 companies in one request. Send one or the other, never both. It works exactly like a list of emails: jobs lists the checked domains first, in the order you sent them, then the rejected entries.

Which Functions Check Companies

A company function is any source you have access to that checks a company domain rather than an email address, such as okta, duo or twilio. Which ones you have depends on your account. They are listed, with what each one checks, in the Huntd dashboard. The two endpoints never take each other’s functions:
  • Send a company function to POST /verify and it is refused with 400 SOURCE_NEEDS_DOMAIN.
  • Send a person function here and it is refused with 400 SOURCE_NEEDS_EMAIL.
  • Either error names every misplaced source, so you can move them all at once.
  • A source that can’t answer for a company domain at all returns 422 SOURCE_NOT_VERIFIABLE.
A source slug is accepted only when all of these are true: Access is checked first, so you never learn about sources you haven’t bought.

Allowance

Each company function comes with 5,000 companies per 30-day term by default, or 200 on a trial. Larger allowances (10,000 to 30,000, in steps of 5,000) are available: ask your account manager. How much of each allowance you’ve used is shown in the Huntd dashboard.

Limits

  • The per-function limit is all-or-nothing. If any function in the request is over its limit, the whole request is refused and nothing is used up.
  • RATE_LIMITED and RATE_LIMIT_EXCEEDED carry Retry-After (seconds). QUOTA_EXCEEDED doesn’t, because it lasts until the term ends or the allowance is raised.

Webhook

If you’d rather be told than poll, register an endpoint under Settings > API & webhooks and subscribe it to the verified_user event. Signatures, retries and idempotency work as described in Signup webhooks.
  • Only true answers are sent. When a company function finds that a company uses the product, we POST one verified_user event for that company and function. A false answer sends nothing, so keep polling if you need those.
  • It isn’t instant. The event arrives a few hours after the answer, not the moment it lands. Polling is the faster path.
  • Nothing is replayed. An endpoint only receives answers that arrive after it subscribed.
A company event describes the company, not a person. The person fields are null. The company is named in companyDomain (there is no separate domain key), and verifiedAt is set:
string
Unique per job and function. Key on this for idempotency.
string
When the answer reached your account: the time we accepted it, else data.verifiedAt, else the last time the job changed. Always set.
string
The company function that answered, such as okta.
string
The company that uses the product: the bare domain you submitted, such as acme.com.
string
When the check found that the company uses the product. This is the newest finished check for that domain and function, or, failing that, the answer saved on the job.
null
Always null on a company event: a domain names no person.
string
An empty string ("") for a domain sent through this API. A company from a list you uploaded in the dashboard carries whatever your file had in those columns.
null
Always null on a company event. They are present so one parser reads every verified_user event.

People at the same company

You may also upload lists of people in the dashboard and run a company function on them. Then each person at a company that uses the product gets their own verified_user event. It carries that person’s own fields (email, firstName, lastName, jobTitle, company and the rest, as your file had them). It also carries the same company companyDomain and verifiedAt as the company’s answer. Each person is a separate event with its own id.

Errors

400 INVALID_PARAMETER is returned when:
  • domain is missing or not a valid company domain.
  • Both domain and domains are sent.
  • email or emails is sent here, alone or mixed with domain/domains. The message reads “Send only one of email, domains. They cannot be combined.”
  • domains is empty, has over 100 entries, or has no valid domain.
  • sources is empty, not an array, has over 20 entries, or contains a non-string.
A request that returns an error created no job and used none of your allowance, so it’s always safe to retry. In a 202 list reply, only the entries with a job_id were counted.

Authorizations

X-API-Key
string
header
required

API key in format: hntd_{id}_{secret}. Create one in Settings → API & webhooks. Authorization: Bearer is also accepted.

Body

application/json

Send domain for one company, or domains for a list of up to 100. Send exactly one of the two.

domain
string
required

One company domain to check. Normalized for you: lowercased and trimmed, with any https://, www., path, query, port and trailing dot removed, and anything up to an @ dropped, so https://www.Acme.com/pricing and jane@acme.com are both checked as acme.com. Send this or domains, not both.

Example:

"acme.com"

sources
string[]
required

Company functions to check the domain against (1 to 20), by source slug, such as okta or duo. Every one must check company domains. Duplicates are ignored.

Required array length: 1 - 20 elements
Example:
domains
string[]

A list of up to 100 company domains, each checked as its own job and normalized like domain; repeats are checked once. An entry that isn't a valid domain is listed back as rejected and not counted. The whole list counts as one request toward the per-minute limit, and every valid domain counts toward each function's allowance. Send this or domain, not both.

Required array length: 1 - 100 elements
Example:

Response

Accepted. Always 202. One job for domain; a jobs list for domains.

success
enum<boolean>
Available options:
true
job_id
string<uuid>

Pass to Get Email Check Result. Opaque: don't parse it.

Example:

"8f4c2a90-6c1e-4b58-9a2f-1d3e5b7c9011"

domain
string

The domain as it will be checked, after normalizing.

Example:

"acme.com"

sources
string[]

The functions this job covers, duplicates removed.

Example:
status
enum<string>

queued if at least one function still needs checking; completed if every answer is ready.

Available options:
queued,
completed
poll_after
string<date-time> | null

Earliest moment work can start (UTC). Don't poll before it. null when every answer is ready.