PeumeAPI

Ads

Create a lead from your own form

Stores a lead from a form on your own site or app, posted by your backend. It joins the leads from ad networks: it is listed on `GET /v1/ads/leads` (`platform: web`), fires `lead.received`, starts lead workflows, and moves through statuses with `PATCH /v1/ads/leads/{id}`.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/create-a-lead-from-your-own-form \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "email": "your email",
    "phone": "your phone"
  }
}'

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: create-a-lead-from-your-own-form.

Parameters

emailstring

Required unless phone is given.

phonestring

Required unless email is given. E.164 is best.

fieldsobject

Other answers, field name to value (`full_name`, `company`,...). Stored on the lead, never sent to an ad platform.

formIdstring

Your id for the form. Defaults to `api`.

formNamestring
leadIdstring

Your id for this lead (a CRM id, a submission id). Makes the call idempotent.

submittedAtstring

When the form was submitted. Defaults to now.

sourceUrlstring

The page the form was submitted on, with its query string.

visitorIdstring

The tag visitor id, from the `_zid` cookie.

clickIdsobject

Ad click and browser ids: `fbclid` or `fbc`, `fbp`, `gclid`, `gbraid`, `wbraid`, `ttclid`, `msclkid`, `li_fat_id`,...

utmobject

`utm_source`, `utm_campaign`,...

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.