Start a background search for people at known company domains, check its status, and retrieve the results when it finishes.
Starting from a company list?
If you do not already have company domains, start with Search businesses. The end-to-end guide shows how to take content.root_domain from search results, prepare batches, and connect each person back to the original business.
Use this endpoint to find decision makers or other employees when you already know the company's website domain.
This is a background workflow:
submit a batch of tasks
check the batch status until it is ready
retrieve each result using its task ID
Before you start
Make sure you have:
an Openmart account
an API key
one or more company domains to enrich
a tool to send API requests, such as Postman or curl
Authentication. We recommend sending your API key as Authorization: Bearer <your_api_key>. If your current integration already uses X-API-Key: <your_api_key>, it will continue to work.
Allow enough time to start the job. The request can take more than 30 seconds to return a batch_id, so set your HTTP client timeout to at least 60 seconds. The enrichment then continues in the background. If your app times out, check whether it saved a batch ID before starting the same job again.
1
Step 1: Submit a task
Example: Find the head of marketing at Blue Bottle in the U.S.
Use this example after you have a company email domain (for example from Search businesses). Openmart will attempt to find a head of marketing contact for that business. Some optional fields are omitted and Openmart applies their default values.
Endpoint
POST https://api.openmart.ai/api/v1/task/batch/find_people
Parameters
Parameter
domain
Type
string
Required
Yes
Example
"bluebottlecoffee.com"
Description
Company email domain to search (e.g. acme.com, no @ or https://).
Parameter
title
Type
string
Required
Yes
Example
"Head of Marketing"
Description
Role to match (for example VP Sales, Head of Marketing).
Parameter
max_k
Type
integer
Required
Yes
Example
2
Description
Maximum number of contacts to return for this company (1–8).
Parameter
country
Type
string
Required
No
Example
"US"
Description
Location hint to narrow matching to the U.S.
Parameter
Type
Required
Example
Description
domain
string
Yes
"bluebottlecoffee.com"
Company email domain to search (e.g. acme.com, no @ or https://).
title
string
Yes
"Head of Marketing"
Role to match (for example VP Sales, Head of Marketing).
max_k
integer
Yes
2
Maximum number of contacts to return for this company (1–8).
country
string
No
"US"
Location hint to narrow matching to the U.S.
cURL request
cURL
curl--requestPOST\--urlhttps://api.openmart.ai/api/v1/task/batch/find_people\--header'Accept: application/json'\--header'Authorization: Bearer <your_api_key>'\--header'Content-Type: application/json'\--data'[{"domain":"bluebottlecoffee.com","company_name":"Blue Bottle","title":"Head of Marketing","max_k":2,"country":"US"}]'
Response details
This request returns a batch_id. Use it to poll batch status, then retrieve final results by task ID.
{"task_id":"2fc8b627-1111-2222-3333-123456789abc","status":"COMPLETED","tracking_id":"customer-42","data":[{"first_name":"Jane","last_name":"Doe","title":"Head of Marketing","email":{"email":"jane@bluebottlecoffee.com","verified":true}}]}
When status is COMPLETED, read the final payload in data.
All request parameters
Request body for POST /api/v1/task/batch/find_people. Send a JSON array of task objects (min 1, max 100). Each object uses the same schema as constants.FindPeopleAPIParam.
Most common parameters
These are the fields most teams set for day-to-day people enrichment.
domainstringRequired: Yes
Example: "bluebottlecoffee.com"
Company email domain to search (e.g. acme.com, no @ or https://).
cURL example
cURL
curl--requestPOST\--urlhttps://api.openmart.ai/api/v1/task/batch/find_people\--header'Accept: application/json'\--header'Authorization: Bearer <your_api_key>'\--header'Content-Type: application/json'\--data'[{"domain":"bluebottlecoffee.com","title":"Head of Marketing","max_k":2}]'
titlestringRequired: Yes
Example: "Head of Marketing"
Role to match (e.g. VP Sales, Marketing Director). If empty, the server may substitute a default owner/employee.
cURL example
cURL
curl--requestPOST\--urlhttps://api.openmart.ai/api/v1/task/batch/find_people\--header'Accept: application/json'\--header'Authorization: Bearer <your_api_key>'\--header'Content-Type: application/json'\--data'[{"domain":"bluebottlecoffee.com","title":"Head of Marketing","max_k":2}]'
company_namestringRequired: No
Example: "Blue Bottle Coffee"
Brand/legal name; helps disambiguate common domains.
cURL example
cURL
curl--requestPOST\--urlhttps://api.openmart.ai/api/v1/task/batch/find_people\--header'Accept: application/json'\--header'Authorization: Bearer <your_api_key>'\--header'Content-Type: application/json'\--data'[{"domain":"bluebottlecoffee.com","company_name":"Blue Bottle Coffee","title":"Head of Marketing","max_k":2}]'
max_kintegerRequired: Yes
Example: 2
Max contacts to return for this array item (1-8).
cURL example
cURL
curl--requestPOST\--urlhttps://api.openmart.ai/api/v1/task/batch/find_people\--header'Accept: application/json'\--header'Authorization: Bearer <your_api_key>'\--header'Content-Type: application/json'\--data'[{"domain":"bluebottlecoffee.com","title":"Head of Marketing","max_k":2}]'
info_accessarray[string]Required: No
Example: ["EMAIL","PHONE"]
Include EMAIL, PHONE, or both. Default: both if omitted. If provided, it must contain at least one value.
cURL example
cURL
curl--requestPOST\--urlhttps://api.openmart.ai/api/v1/task/batch/find_people\--header'Accept: application/json'\--header'Authorization: Bearer <your_api_key>'\--header'Content-Type: application/json'\--data'[{"domain":"bluebottlecoffee.com","title":"Head of Marketing","max_k":2,"info_access":["EMAIL","PHONE"]}]'
Location hints
Use these fields when one domain maps to multiple regions.
citystringRequired: No
Example: "San Francisco"
Location hint when one domain maps to multiple regions.
cURL example
cURL
curl--requestPOST\--urlhttps://api.openmart.ai/api/v1/task/batch/find_people\--header'Accept: application/json'\--header'Authorization: Bearer <your_api_key>'\--header'Content-Type: application/json'\--data'[{"domain":"bluebottlecoffee.com","title":"Head of Marketing","max_k":2,"city":"San Francisco"}]'
statestringRequired: No
Example: "CA"
Location hint when one domain maps to multiple regions.
cURL example
cURL
curl--requestPOST\--urlhttps://api.openmart.ai/api/v1/task/batch/find_people\--header'Accept: application/json'\--header'Authorization: Bearer <your_api_key>'\--header'Content-Type: application/json'\--data'[{"domain":"bluebottlecoffee.com","title":"Head of Marketing","max_k":2,"state":"CA"}]'
countrystringRequired: No
Example: "US"
Location hint when one domain maps to multiple regions.
cURL example
cURL
curl--requestPOST\--urlhttps://api.openmart.ai/api/v1/task/batch/find_people\--header'Accept: application/json'\--header'Authorization: Bearer <your_api_key>'\--header'Content-Type: application/json'\--data'[{"domain":"bluebottlecoffee.com","title":"Head of Marketing","max_k":2,"country":"US"}]'
Pipeline and delivery
Advanced options for pipeline selection and completion callbacks (when enabled).