Call it
curl https://api.peume.com/v1/call/start-a-bulk-work-email-job \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"people": [
{
"firstName": "Patrick",
"lastName": "Collison",
"company": "Stripe",
"externalID": "crm-42"
}
],
"personIDs": [
"p_abc123",
"p_def456"
],
"clientRequestID": "my-request-123",
"webhookURL": "https://example.com/webhook"
}
}'const res = await fetch("https://api.peume.com/v1/call/start-a-bulk-work-email-job", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"people": [
{
"firstName": "Patrick",
"lastName": "Collison",
"company": "Stripe",
"externalID": "crm-42"
}
],
"personIDs": [
"p_abc123",
"p_def456"
],
"clientRequestID": "my-request-123",
"webhookURL": "https://example.com/webhook"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/start-a-bulk-work-email-job",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"people": [
{
"firstName": "Patrick",
"lastName": "Collison",
"company": "Stripe",
"externalID": "crm-42"
}
],
"personIDs": [
"p_abc123",
"p_def456"
],
"clientRequestID": "my-request-123",
"webhookURL": "https://example.com/webhook"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: start-a-bulk-work-email-job.
Parameters
peoplearraymax 500; each item is {linkedinURL} OR {firstName, lastName, company}, plus optional externalID (max 128 chars). Mutually exclusive with personIDs
Example: [{"firstName":"Patrick","lastName":"Collison","company":"Stripe","externalID":"crm-42"}]
personIDsarrayids from.people.search; externalID is NOT supported in this mode
Example: ["p_abc123","p_def456"]
clientRequestIDstringyour own correlation id — also the filter key on the jobs list
Example: my-request-123
webhookURLstringPOSTed on completion/failure, retried up to 10 times with exponential backoff
Example: https://example.com/webhook
saveToListbooleanalso persist the results as a list in the app
Other ways to do it
Same job, other sources, cheapest first.
