Call it
curl https://api.peume.com/v1/call/search-people-base-pii \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"filters": "your filters",
"sql": "your sql"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-people-base-pii", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"filters": "your filters",
"sql": "your sql"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-people-base-pii",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"filters": "your filters",
"sql": "your sql"
}
},
)
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: search-people-base-pii.
Parameters
filtersobjectFilters on the record's own field names, listed at and a value, a list (any of them), {"gte":.., "lte":..} for a range, or {"exists": true}. Every field given must hold; combine sets with {"and": [...]}, {"or": [...]} or {"not": {...}}, and "keywords" takes a Boolean search string. A text field matches the words in order, so "nurse practitioner" also finds "family nurse practitioner". Example: {"job_title": "nurse practitioner", "state_code": "TX"}.
sqlstringA SELECT * FROM people (or companies) WHERE... statement, without LIMIT or OFFSET. = matches the whole value; ILIKE matches part of it.
es_queryobjectAn Elasticsearch-style query object on the record's field names: bool, term, terms, match, match_phrase, range, exists, prefix, wildcard, nested.
querystringDeprecated: SQL text or a query object. Send sql or es_query.
limitintegerMaximum records to return and to pay for. Default 1.
offsetintegerRecords to skip. Use cursor for deeper paging.
cursorstringThe previous page's next_cursor, with the same query and no offset.
titlecasebooleaninclude_fieldsstringComma-separated response fields to return. Does not change the price; shrinks large responses.
exclude_fieldsstringComma-separated response fields to remove.
