Call it
curl https://api.peume.com/v1/call/match-open-jobs-to-a-candidate-profile \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"vector": {
"query": "Backend engineer, 6 years of Go and Postgres at fintech startups, wants remote work"
},
"lexical": {
"location_types": [
"Remote"
],
"days_ago": 14
},
"page": 1,
"limit": 3
}
}'const res = await fetch("https://api.peume.com/v1/call/match-open-jobs-to-a-candidate-profile", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"vector": {
"query": "Backend engineer, 6 years of Go and Postgres at fintech startups, wants remote work"
},
"lexical": {
"location_types": [
"Remote"
],
"days_ago": 14
},
"page": 1,
"limit": 3
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/match-open-jobs-to-a-candidate-profile",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"vector": {
"query": "Backend engineer, 6 years of Go and Postgres at fintech startups, wants remote work"
},
"lexical": {
"location_types": [
"Remote"
],
"days_ago": 14
},
"page": 1,
"limit": 3
}
},
)
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: match-open-jobs-to-a-candidate-profile.
Parameters
vectorRequiredobject{query: profile text} or {job_ids: [_id,...]} for jobs like these; add score_threshold (0 to 1) inside it for a minimum similarity
Example: {"query":"Backend engineer, 6 years of Go and Postgres at fintech startups, wants remote work"}
lexicalobjectthe.jobs.search filters (job_titles, geo_locations, location_types, days_ago,...). A misspelled field inside is ignored, not refused
Example: {"location_types":["Remote"],"days_ago":14}
pageintegerExample: 1
limitintegereach job returned is charged
Example: 3
