> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gethuntd.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Submit Company Check

> Check whether one company domain, or a list of up to 100, uses up to 20 products

> [!NOTE]
>
> **Availability:** on `https://app.gethuntd.com`, for the same accounts as
> [Submit Email Check](https://docs.gethuntd.com/api-reference/tech-tool-integration/submit-email-check.md). Other accounts receive
> `403 ENDPOINT_NOT_ON_PLAN`. Counts against each company function's allowance.
> [Contact Huntd](mailto:support@gethuntd.com) 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](https://docs.gethuntd.com/api-reference/tech-tool-integration/submit-email-check.md) instead.

```bash cURL theme={null}
curl -X POST "https://app.gethuntd.com/api/v1/public/verify/company" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: hntd_abc12345_yoursecretkey" \
  -d '{"domain": "acme.com", "sources": ["okta", "duo"]}'
```

```bash cURL (list) theme={null}
curl -X POST "https://app.gethuntd.com/api/v1/public/verify/company" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: hntd_abc12345_yoursecretkey" \
  -d '{"domains": ["acme.com", "https://www.globex.com/about", "not a domain"], "sources": ["okta", "duo"]}'
```

```javascript JavaScript theme={null}
const response = await fetch('https://app.gethuntd.com/api/v1/public/verify/company', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'X-API-Key': process.env.HUNTD_API_KEY
  },
  body: JSON.stringify({ domain: 'acme.com', sources: ['okta', 'duo'] })
});

const job = await response.json();
console.log('Job ID:', job.job_id, 'poll after:', job.poll_after);
```

```python Python theme={null}
import requests
import os

response = requests.post(
    'https://app.gethuntd.com/api/v1/public/verify/company',
    headers={
        'Content-Type': 'application/json',
        'X-API-Key': os.environ['HUNTD_API_KEY']
    },
    json={'domain': 'acme.com', 'sources': ['okta', 'duo']}
)

job = response.json()
print(f"Job ID: {job['job_id']}, poll after: {job['poll_after']}")
```

```json 202 theme={null}
{
  "success": true,
  "job_id": "8f4c2a90-6c1e-4b58-9a2f-1d3e5b7c9011",
  "domain": "acme.com",
  "sources": ["okta", "duo"],
  "status": "queued",
  "poll_after": "2026-10-12T16:00:00.000Z"
}
```

```json 202 (completed) theme={null}
{
  "success": true,
  "job_id": "8f4c2a90-6c1e-4b58-9a2f-1d3e5b7c9011",
  "domain": "acme.com",
  "sources": ["okta", "duo"],
  "status": "completed",
  "poll_after": null
}
```

```json 202 (list) theme={null}
{
  "success": true,
  "jobs": [
    { "domain": "acme.com", "job_id": "8f4c2a90-6c1e-4b58-9a2f-1d3e5b7c9011", "status": "queued" },
    { "domain": "globex.com", "job_id": "3b7e91d2-4a0f-4c55-8e1a-6f2d9c0b7a44", "status": "completed" },
    { "domain": "not a domain", "status": "rejected", "reason": "invalid_format" }
  ],
  "poll_after": "2026-10-12T16:00:00.000Z"
}
```

```json 400 theme={null}
{
  "success": false,
  "error": {
    "code": "INVALID_PARAMETER",
    "message": "`domain` is not a valid company domain. Send a domain such as `acme.com`."
  }
}
```

```json 400 (list, nothing valid) theme={null}
{
  "success": false,
  "error": {
    "code": "INVALID_PARAMETER",
    "message": "None of the company domains in `domains` can be checked."
  },
  "jobs": [
    { "domain": "not a domain", "status": "rejected", "reason": "invalid_format" },
    { "domain": "", "status": "rejected", "reason": "empty" }
  ]
}
```

```json 400 (person function) theme={null}
{
  "success": false,
  "error": {
    "code": "SOURCE_NEEDS_EMAIL",
    "message": "`gong` does not check a company domain. Send email checks to POST /verify with `email`."
  }
}
```

```json 401 theme={null}
{
  "success": false,
  "error": {
    "code": "INVALID_API_KEY",
    "message": "API key is missing, invalid, or has been revoked."
  }
}
```

```json 403 theme={null}
{
  "success": false,
  "error": {
    "code": "FUNCTION_EXPIRED",
    "message": "Okta expired on 23 Oct 2026, 12:00 am IST. Contact us to renew."
  }
}
```

```json 429 theme={null}
{
  "success": false,
  "error": {
    "code": "QUOTA_EXCEEDED",
    "message": "Cap reached for source `okta` (5000 of 5000 checks used)."
  }
}
```

## Overview

Most sources (tools) answer for a person, from an email address. Those go to
[Submit Email Check](https://docs.gethuntd.com/api-reference/tech-tool-integration/submit-email-check.md). 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](https://docs.gethuntd.com/api-reference/tech-tool-integration/get-email-check-result.md)
   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](https://docs.gethuntd.com/api-reference/tech-tool-integration/get-email-check-result.md)
(`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`:

```json theme={null}
{
  "success": true,
  "job_id": "8f4c2a90-6c1e-4b58-9a2f-1d3e5b7c9011",
  "domain": "acme.com",
  "status": "completed",
  "sources": {
    "okta": { "status": "done", "is_user": true,  "checked_at": "2026-10-12T16:09:41.000Z" },
    "duo":  { "status": "done", "is_user": false, "checked_at": "2026-10-02T11:30:05.000Z" }
  }
}
```

`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](https://docs.gethuntd.com/api-reference/tech-tool-integration/get-email-check-result.md#polling-strategy)
there applies unchanged.

This function submits a check and waits for the answers:

```javascript JavaScript theme={null}
const BASE = 'https://app.gethuntd.com/api/v1/public';
const HEADERS = { 'X-API-Key': process.env.HUNTD_API_KEY };
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));

async function checkCompany(domain, sources) {
  const submit = await fetch(BASE + '/verify/company', {
    method: 'POST',
    headers: { ...HEADERS, 'Content-Type': 'application/json' },
    body: JSON.stringify({ domain, sources })
  });
  const job = await submit.json();
  if (!job.success) throw new Error(job.error.code + ': ' + job.error.message);

  if (job.poll_after) {
    await sleep(Math.max(0, new Date(job.poll_after) - Date.now()));
  }

  for (let delay = 5_000; ; delay = Math.min(delay * 2, 60_000)) {
    const res = await fetch(BASE + '/verify/' + job.job_id, { headers: HEADERS });
    const view = await res.json();
    if (!view.success) throw new Error(view.error.code + ': ' + view.error.message);
    if (view.status === 'completed') return view.sources; // { okta: { is_user: true, ... }, ... }
    await sleep(delay);
  }
}
```

## 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.

| You send | We check |
| - | - |
| `acme.com` | `acme.com` |
| `ACME.com ` | `acme.com` |
| `https://www.acme.com/pricing?ref=1` | `acme.com` |
| `acme.com:443` | `acme.com` |
| `jane@acme.com` | `acme.com` |

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:

| Rule | What happens |
| - | - |
| **Each domain gets its own job** | It's the same job a single-domain request creates. Poll each `job_id` with [Get Email Check Result](https://docs.gethuntd.com/api-reference/tech-tool-integration/get-email-check-result.md) as usual. |
| **The list counts as one request** | It counts once toward the per-minute limits below. Every valid domain counts toward each function's allowance. |
| **Repeats are checked once** | Domains are compared after the cleanup above, so `https://www.acme.com/` and `acme.com` are one job, listed once. |
| **Bad entries don't stop the rest** | An entry that isn't a valid domain comes back with `status: "rejected"`, a `reason` and no `job_id`. It isn't counted. The valid ones are checked. If no entry is valid, the request returns `400` with each entry's reason, and nothing is counted. |
| **A list over a function's allowance is refused whole** | You get `429 QUOTA_EXCEEDED`. Nothing is queued or counted. Send a shorter list. |

`jobs` lists the checked domains first, in the order you sent them, then the rejected entries.

| `reason` | Meaning |
| - | - |
| `invalid_format` | Not a valid company domain |
| `empty` | A blank string |
| `not_a_string` | A number, `null` or other non-text value (`domain` comes back as `null`) |
| `not_queued` | We couldn't queue it on our side. It wasn't counted. Send it again. |

## 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:

| Rule | If it fails |
| - | - |
| Your organization has access to the source | `403 SOURCE_NOT_ALLOWED` |
| The source can answer for a company domain at all | `422 SOURCE_NOT_VERIFIABLE` |
| The source checks company domains, not people | `400 SOURCE_NEEDS_EMAIL` |
| The source isn't paused for maintenance | `423 SOURCE_UNAVAILABLE` |

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.

| Rule | What it means |
| - | - |
| **Every company counts once per function** | A request for `acme.com` against `okta` and `duo` uses one check from each. A refused request, and a rejected list entry, count nothing. |
| **The term starts when the function is switched on for you** | It lasts 30 days. Until a function has a term, it counts from the start of the UTC calendar month instead. |
| **All or nothing** | If any function in the request would go over its allowance, the whole request is refused with `429 QUOTA_EXCEEDED` and nothing is counted. A list says how many it needed. |
| **When a term ends** | The function takes no new checks. It returns `403 FUNCTION_EXPIRED`, naming the function and when it expired (in IST), until it is renewed. Checks queued before that still run and still answer. |

How much of each allowance you've used is shown in the Huntd dashboard.

## Limits

| Limit | Value | Error |
| - | - | - |
| Functions per request | 20 | `400 INVALID_PARAMETER` |
| Domains per request (`domains`) | 100 | `400 INVALID_PARAMETER` |
| Request body | 64 KB | `413 INVALID_BODY` |
| Requests per function | 60 per minute, per organization. A list counts as one request. | `429 RATE_LIMITED` |
| Requests per API key | 60 per minute by default. Polling a result doesn't count. | `429 RATE_LIMIT_EXCEEDED` |
| Companies per function | 5,000 per 30-day term by default; 200 on a trial | `429 QUOTA_EXCEEDED` |

* **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](https://docs.gethuntd.com/public-api/signup-webhooks.md#verifying-the-signature).

* **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:

```json theme={null}
{
  "event": "verified_user",
  "id": "vu:8f4c2a90-6c1e-4b58-9a2f-1d3e5b7c9011:okta",
  "occurredAt": "2026-10-12T16:09:41.000Z",
  "organization": "yourdomain.com",
  "data": {
    "source": "okta",
    "email": null,
    "firstName": null,
    "lastName": null,
    "jobTitle": null,
    "company": "",
    "companyDomain": "acme.com",
    "industry": "",
    "location": "",
    "linkedinUrl": null,
    "status": null,
    "verifiedAt": "2026-10-12T16:09:41.000Z",
    "confirmedAt": null,
    "previouslyNotUserAt": null
  }
}
```

**id** `string`

Unique per job and function. **Key on this for idempotency.**

**occurredAt** `string`

When the answer reached your account: the time we accepted it, else `data.verifiedAt`, else the
last time the job changed. Always set.

**data.source** `string`

The company function that answered, such as `okta`.

**data.companyDomain** `string`

The company that uses the product: the bare domain you submitted, such as `acme.com`.

**data.verifiedAt** `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.

**data.email, data.firstName, data.lastName, data.jobTitle, data.linkedinUrl** `null`

Always `null` on a company event: a domain names no person.

**data.company, data.industry, data.location** `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.

**data.status, data.confirmedAt, data.previouslyNotUserAt** `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

| HTTP | Error Code | Description |
| - | - | - |
| 400 | `INVALID_PARAMETER` | The request body is wrong. See the causes below. |
| 400 | `SOURCE_NEEDS_EMAIL` | One or more sources check people, not companies. Send them to [`POST /verify`](https://docs.gethuntd.com/api-reference/tech-tool-integration/submit-email-check). |
| 400 / 413 / 415 | `INVALID_BODY` | Body isn't JSON, is over 64 KB, or has an unsupported content type or charset |
| 401 | `INVALID_API_KEY` | API key is missing, invalid, or has been revoked |
| 403 | `ENDPOINT_NOT_ON_PLAN` | Your account doesn't include company or email checks |
| 403 | `SOURCE_NOT_ALLOWED` | Your organization doesn't have access to one of the sources |
| 403 | `FUNCTION_EXPIRED` | A function's 30-day term has ended. Contact us to renew. |
| 403 | `SUBSCRIPTION_INACTIVE` | Your workspace has no active subscription. Contact your account manager. |
| 422 | `SOURCE_NOT_VERIFIABLE` | One of the sources can't answer for a company domain. Remove it. |
| 423 | `SOURCE_UNAVAILABLE` | A source is paused for maintenance. Retry later. |
| 429 | `RATE_LIMITED` | Over 60 requests per minute for one of the functions. Wait `Retry-After` seconds. |
| 429 | `RATE_LIMIT_EXCEEDED` | Over your API key's per-minute limit. Wait `Retry-After` seconds. |
| 429 | `QUOTA_EXCEEDED` | A function's allowance for this term is used up, or the list needs more than is left |
| 500 | `INTERNAL_ERROR` | Something broke on our side. Safe to retry. |
| 503 | `ORG_KIND_UNAVAILABLE` | Your account briefly couldn't be confirmed. Retry. |

`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.


## OpenAPI

````yaml api-reference/public-api.json POST /api/v1/public/verify/company
openapi: 3.0.3
info:
  title: Huntd Public API
  version: 1.0.0
  description: >-
    Read what Huntd tracks for your organization (enterprise plan), or check
    email addresses and company domains against the tools you track (Agency
    plan).
  contact:
    name: Huntd Support
    email: support@gethuntd.com
servers:
  - url: https://app.gethuntd.com
    description: Public API
security:
  - ApiKeyAuth: []
tags:
  - name: Public API
  - name: Email Check
  - name: Company Check
paths:
  /api/v1/public/verify/company:
    post:
      tags:
        - Company Check
      summary: Submit Company Check
      description: >-
        Check whether one company domain, or a list of up to 100, uses up to 20
        company functions (sources that check a company rather than a person,
        such as Okta or Duo). Returns a job ID per domain to poll with Get Email
        Check Result.
      operationId: submitCompanyCheck
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CompanyCheckRequest'
            examples:
              one:
                summary: One domain
                value:
                  domain: acme.com
                  sources:
                    - okta
                    - duo
              list:
                summary: A list of domains
                value:
                  domains:
                    - acme.com
                    - https://www.globex.com/about
                    - not a domain
                  sources:
                    - okta
                    - duo
      responses:
        '202':
          description: >-
            Accepted. Always 202. One job for `domain`; a `jobs` list for
            `domains`.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/CompanyCheckJobResponse'
                  - $ref: '#/components/schemas/CompanyCheckListResponse'
              examples:
                queued:
                  summary: Fresh check queued
                  value:
                    success: true
                    job_id: 8f4c2a90-6c1e-4b58-9a2f-1d3e5b7c9011
                    domain: acme.com
                    sources:
                      - okta
                      - duo
                    status: queued
                    poll_after: '2026-10-12T16:00:00.000Z'
                list:
                  summary: A list of domains
                  value:
                    success: true
                    jobs:
                      - domain: acme.com
                        job_id: 8f4c2a90-6c1e-4b58-9a2f-1d3e5b7c9011
                        status: queued
                      - domain: globex.com
                        job_id: 3b7e91d2-4a0f-4c55-8e1a-6f2d9c0b7a44
                        status: completed
                      - domain: not a domain
                        status: rejected
                        reason: invalid_format
                    poll_after: '2026-10-12T16:00:00.000Z'
                completed:
                  summary: Every answer ready at once
                  value:
                    success: true
                    job_id: 8f4c2a90-6c1e-4b58-9a2f-1d3e5b7c9011
                    domain: acme.com
                    sources:
                      - okta
                      - duo
                    status: completed
                    poll_after: null
        '400':
          description: >-
            Invalid request, or a source that doesn't check company domains.
            When no entry in `domains` is valid, the reply also lists each
            entry's reason.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompanyCheckError'
              examples:
                invalidDomain:
                  summary: Not a company domain
                  value:
                    success: false
                    error:
                      code: INVALID_PARAMETER
                      message: >-
                        `domain` is not a valid company domain. Send a domain
                        such as `acme.com`.
                missingDomain:
                  summary: No `domain`
                  value:
                    success: false
                    error:
                      code: INVALID_PARAMETER
                      message: '`domain` is required.'
                emailSent:
                  summary: An email address sent here
                  value:
                    success: false
                    error:
                      code: INVALID_PARAMETER
                      message: >-
                        Email addresses are checked by POST /verify; send
                        `domain` or `domains` here.
                mixedFields:
                  summary: Email and domain fields mixed
                  value:
                    success: false
                    error:
                      code: INVALID_PARAMETER
                      message: >-
                        Send only one of `email`, `domains`. They cannot be
                        combined.
                sourceNeedsEmail:
                  summary: A function that checks people
                  value:
                    success: false
                    error:
                      code: SOURCE_NEEDS_EMAIL
                      message: >-
                        `gong` does not check a company domain. Send email
                        checks to POST /verify with `email`.
                bothFields:
                  summary: Both `domain` and `domains`
                  value:
                    success: false
                    error:
                      code: INVALID_PARAMETER
                      message: Send either `domain` or `domains`, not both.
                tooManyDomains:
                  summary: More than 100 domains
                  value:
                    success: false
                    error:
                      code: INVALID_PARAMETER
                      message: '`domains` may hold at most 100 company domains.'
                noValidDomain:
                  summary: No valid domain in `domains`
                  value:
                    success: false
                    error:
                      code: INVALID_PARAMETER
                      message: None of the company domains in `domains` can be checked.
                    jobs:
                      - domain: not a domain
                        status: rejected
                        reason: invalid_format
                      - domain: ''
                        status: rejected
                        reason: empty
                tooManySources:
                  summary: More than 20 sources
                  value:
                    success: false
                    error:
                      code: INVALID_PARAMETER
                      message: '`sources` may name at most 20 sources.'
                invalidBody:
                  summary: Body is not JSON
                  value:
                    success: false
                    error:
                      code: INVALID_BODY
                      message: Request body must be JSON and within the size limit.
        '401':
          description: Invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                success: false
                error:
                  code: INVALID_API_KEY
                  message: API key is missing, invalid, or has been revoked.
        '403':
          description: >-
            Company checks aren't included for this API key's account, no access
            to a source, a function's 30-day term has ended, or no active
            subscription
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              examples:
                sourceNotAllowed:
                  summary: No access to a source
                  value:
                    success: false
                    error:
                      code: SOURCE_NOT_ALLOWED
                      message: Your organization does not have access to source `okta`.
                functionExpired:
                  summary: A function's term has ended
                  value:
                    success: false
                    error:
                      code: FUNCTION_EXPIRED
                      message: >-
                        Okta expired on 23 Oct 2026, 12:00 am IST. Contact us to
                        renew.
                subscriptionInactive:
                  summary: Workspace has no active subscription
                  value:
                    success: false
                    error:
                      code: SUBSCRIPTION_INACTIVE
                      message: >-
                        This workspace doesn't have an active subscription.
                        Please contact your account manager to restore access.
        '413':
          description: Body over 64 KB
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                success: false
                error:
                  code: INVALID_BODY
                  message: Request body must be JSON and within the size limit.
        '415':
          description: Unsupported content type, charset or encoding
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                success: false
                error:
                  code: INVALID_BODY
                  message: >-
                    Request body uses an unsupported content type, charset or
                    encoding.
        '422':
          description: Source can't answer for a company domain at all
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                success: false
                error:
                  code: SOURCE_NOT_VERIFIABLE
                  message: >-
                    Source `source_name` cannot be verified for a company
                    domain.
        '423':
          description: Source paused for maintenance
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                success: false
                error:
                  code: SOURCE_UNAVAILABLE
                  message: Source `okta` is temporarily unavailable for maintenance.
        '429':
          description: Rate limit reached, or a function's allowance is used up
          headers:
            Retry-After:
              description: >-
                Seconds to wait. Sent with RATE_LIMITED and RATE_LIMIT_EXCEEDED,
                not with QUOTA_EXCEEDED.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              examples:
                perSource:
                  summary: Over 60 requests per minute for a source
                  value:
                    success: false
                    error:
                      code: RATE_LIMITED
                      message: >-
                        Rate limit: at most 60 verify requests per minute for
                        source `okta`. Retry in 12s.
                perKey:
                  summary: Over the API key's per-minute limit
                  value:
                    success: false
                    error:
                      code: RATE_LIMIT_EXCEEDED
                      message: >-
                        Rate limit exceeded: 60 requests per minute. Retry in
                        23s.
                allowance:
                  summary: A function's allowance is used up
                  value:
                    success: false
                    error:
                      code: QUOTA_EXCEEDED
                      message: >-
                        Cap reached for source `okta` (5000 of 5000 checks
                        used).
        '500':
          description: Internal error. Safe to retry.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                success: false
                error:
                  code: INTERNAL_ERROR
                  message: Internal server error.
        '503':
          description: >-
            Your account briefly couldn't be confirmed (`ORG_KIND_UNAVAILABLE`).
            Retry.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    CompanyCheckRequest:
      type: object
      required:
        - sources
      description: >-
        Send `domain` for one company, or `domains` for a list of up to 100.
        Send exactly one of the two.
      properties:
        domain:
          type: string
          description: >-
            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
        domains:
          type: array
          minItems: 1
          maxItems: 100
          items:
            type: string
          description: >-
            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.
          example:
            - acme.com
            - globex.com
        sources:
          type: array
          minItems: 1
          maxItems: 20
          items:
            type: string
          description: >-
            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.
          example:
            - okta
            - duo
      oneOf:
        - required:
            - domain
        - required:
            - domains
    CompanyCheckJobResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - true
        job_id:
          type: string
          format: uuid
          description: 'Pass to Get Email Check Result. Opaque: don''t parse it.'
          example: 8f4c2a90-6c1e-4b58-9a2f-1d3e5b7c9011
        domain:
          type: string
          description: The domain as it will be checked, after normalizing.
          example: acme.com
        sources:
          type: array
          items:
            type: string
          description: The functions this job covers, duplicates removed.
          example:
            - okta
            - duo
        status:
          type: string
          enum:
            - queued
            - completed
          description: >-
            `queued` if at least one function still needs checking; `completed`
            if every answer is ready.
        poll_after:
          type: string
          format: date-time
          nullable: true
          description: >-
            Earliest moment work can start (UTC). Don't poll before it. `null`
            when every answer is ready.
    CompanyCheckListResponse:
      type: object
      required:
        - success
        - jobs
        - poll_after
      properties:
        success:
          type: boolean
          enum:
            - true
        jobs:
          type: array
          items:
            $ref: '#/components/schemas/CompanyCheckListJob'
          description: >-
            One entry per distinct domain: the checked ones first, in the order
            sent, then any rejected entries.
        poll_after:
          type: string
          format: date-time
          nullable: true
          description: >-
            Earliest moment work can start on any job in the list (UTC). Don't
            poll before it. `null` when every answer is ready.
    CompanyCheckError:
      type: object
      description: >-
        The error envelope. `jobs` appears only when no entry in `domains` is a
        valid domain: it gives each entry's reason, and nothing was queued or
        counted.
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - INVALID_PARAMETER
                - INVALID_BODY
                - INVALID_API_KEY
                - ENDPOINT_NOT_ON_PLAN
                - SOURCE_NOT_ALLOWED
                - SUBSCRIPTION_INACTIVE
                - JOB_NOT_FOUND
                - SOURCE_NOT_VERIFIABLE
                - SOURCE_UNAVAILABLE
                - FUNCTION_EXPIRED
                - SOURCE_NEEDS_EMAIL
                - SOURCE_NEEDS_DOMAIN
                - RATE_LIMITED
                - RATE_LIMIT_EXCEEDED
                - QUOTA_EXCEEDED
                - STREAM_FAILED
                - INTERNAL_ERROR
                - ORG_KIND_UNAVAILABLE
            message:
              type: string
              description: Human-readable. May change.
        jobs:
          type: array
          items:
            $ref: '#/components/schemas/CompanyCheckListJob'
          description: Only when no entry in `domains` is valid.
    ApiError:
      type: object
      description: Every error uses this envelope. Branch on `error.code`, not the message.
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - INVALID_PARAMETER
                - INVALID_BODY
                - INVALID_API_KEY
                - ENDPOINT_NOT_ON_PLAN
                - SOURCE_NOT_ALLOWED
                - SUBSCRIPTION_INACTIVE
                - JOB_NOT_FOUND
                - SOURCE_NOT_VERIFIABLE
                - SOURCE_UNAVAILABLE
                - FUNCTION_EXPIRED
                - SOURCE_NEEDS_EMAIL
                - SOURCE_NEEDS_DOMAIN
                - RATE_LIMITED
                - RATE_LIMIT_EXCEEDED
                - QUOTA_EXCEEDED
                - STREAM_FAILED
                - INTERNAL_ERROR
                - ORG_KIND_UNAVAILABLE
            message:
              type: string
              description: Human-readable. May change.
    CompanyCheckListJob:
      type: object
      description: >-
        One domain from `domains`. A queued or completed entry is the same job a
        single-domain request creates; poll it with Get Email Check Result. A
        rejected entry has no `job_id` and was not counted.
      required:
        - domain
        - status
      properties:
        domain:
          type: string
          nullable: true
          description: >-
            The domain as it will be checked (normalized). For a rejected entry,
            the value exactly as you sent it, or `null` when it wasn't a string.
          example: acme.com
        job_id:
          type: string
          description: >-
            Pass to Get Email Check Result. Absent on a rejected entry. Opaque:
            don't parse it.
          example: 8f4c2a90-6c1e-4b58-9a2f-1d3e5b7c9011
        status:
          type: string
          enum:
            - queued
            - completed
            - rejected
          description: >-
            `queued` if at least one function still needs checking; `completed`
            if every answer is ready; `rejected` if the domain wasn't checked.
        reason:
          type: string
          enum:
            - invalid_format
            - empty
            - not_a_string
            - not_queued
          description: >-
            Only on a rejected entry. `invalid_format`: not a valid company
            domain. `empty`: a blank string. `not_a_string`: a number, `null` or
            other non-text value. `not_queued`: we couldn't queue it on our
            side; send it again.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key in format: hntd_{id}_{secret}. Create one in Settings → API &
        webhooks. `Authorization: Bearer` is also accepted.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.