Submit Company Check
Check whether one company domain, or a list of up to 100, uses up to 20 products
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.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 whetheracme.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:
- Submit a domain (or a list of domains) and a list of company functions.
- Get back a
job_idper domain and apoll_aftertime right away (202 Accepted). - Once
poll_afterhas passed, poll Get Email Check Result with thatjob_iduntilstatusiscompleted. - Read
sources[slug].is_user:true(the company uses the product),false, ornull.
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:
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_aftersays so. - A check takes minutes, not seconds.
poll_aftercan be days away. In production, savejob_idandpoll_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.- Surrounding spaces are trimmed and the value is lowercased.
- A scheme such as
https://is removed. - Anything after the host (path, query, fragment or port) is dropped.
- A leading
www.and a trailing dot are removed. - Anything up to an
@is dropped.
.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
Senddomains 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 asokta, 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 /verifyand it is refused with400 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.
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.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_LIMITEDandRATE_LIMIT_EXCEEDEDcarryRetry-After(seconds).QUOTA_EXCEEDEDdoesn’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 theverified_user event. Signatures, retries and idempotency work as described in
Signup webhooks.
- Only
trueanswers are sent. When a company function finds that a company uses the product, we POST oneverified_userevent for that company and function. Afalseanswer 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.
null. The company is
named in companyDomain (there is no separate domain key), and verifiedAt is set:
data.verifiedAt, else the
last time the job changed. Always set."") 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.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 ownverified_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:
domainis missing or not a valid company domain.- Both
domainanddomainsare sent. emailoremailsis sent here, alone or mixed withdomain/domains. The message reads “Send only one ofemail,domains. They cannot be combined.”domainsis empty, has over 100 entries, or has no valid domain.sourcesis empty, not an array, has over 20 entries, or contains a non-string.
202 list reply, only the entries with a job_id were counted.Authorizations
Body
- Option 1
- Option 2
Send domain for one company, or domains for a list of up to 100. Send exactly one of the two.
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.
"acme.com"
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.
1 - 100 elementsResponse
Accepted. Always 202. One job for domain; a jobs list for domains.
- Option 1
- Option 2