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

# Company Work Emails API

> Finds work email addresses at a company domain, with name, title, department, seniority, confidence and sources wherever they are known.

`POST /v1/data/companies/emails/run`

**Pricing:** $0.005 per people email ($5.00 per 1,000).

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**domains** `string[]` *required*

Company website domains to find work email addresses for.

Format e.g. `stripe.com`.

**maxResults** `integer` (default: 10)

Most people emails to return from each domain. Defaults to 10; use 0 for the maximum of 100.

Min `0`; max `100`.

**emailType** `string` (default: personal)

Whether to return named people emails, generic role emails (info@, sales@), or both.

Allowed values: `personal` (Named people), `generic` (Generic role addresses), `both` (Both).

**departments** `string[]`

Restrict results to people in these departments.

**seniorities** `string[]`

Restrict results to people at these seniority levels.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/companies/emails/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "domains": [
      "stripe.com"
    ],
    "maxResults": 3
  }
}'
```

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

r = requests.post(
    "https://api.mindcase.co/v1/data/companies/emails/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "domains": [
        "stripe.com"
    ],
    "maxResults": 3
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/companies/emails/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "domains": [
    "stripe.com"
  ],
  "maxResults": 3
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one people email, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `email` | Email | email |
| `domain` | Domain | text |
| `fullName` | Full Name | text |
| `firstName` | First Name | text |
| `lastName` | Last Name | text |
| `jobTitle` | Job Title | text |
| `department` | Department | text |
| `seniority` | Seniority | text |
| `decisionMaker` | Decision Maker | boolean |
| `linkedinUrl` | LinkedIn URL | url |
| `twitterHandle` | Twitter Handle | text |
| `phoneNumber` | Phone Number | phone |
| `confidence` | Confidence | number |
| `emailSource` | Email Source | text |
| `verificationStatus` | Verification Status | text |
| `verificationDate` | Verification Date | date |
| `sourceCount` | Source Count | integer |
| `sources` | Sources | object\_array |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "companies/emails",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "verificationDate": null,
      "seniority": null,
      "email": "laurens@stripe.com",
      "verificationStatus": null,
      "sourceCount": 0,
      "decisionMaker": null,
      "linkedinUrl": null,
      "lastName": null,
      "domain": "stripe.com",
      "sources": [],
      "jobTitle": null,
      "emailSource": null,
      "twitterHandle": null,
      "fullName": null,
      "confidence": null,
      "firstName": null,
      "phoneNumber": null,
      "department": null
    }
  ]
}
```

## Related APIs

For one named person's email use [`people/professional-email`](https://docs.mindcase.co/apis/people/professional-email); for the generic addresses a site publishes (info@, press@) use [`email/role`](https://docs.mindcase.co/apis/email/role); to check addresses you already have use [`email/verify`](https://docs.mindcase.co/apis/email/verify).


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