PeumeAPI

Ads

Get a lead form

Shows a lead form in full, including its questions and thank-you page.

$0.002 per callRuns on an account you connect

Call it

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

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: get-a-lead-form.

Parameters

accountIdRequiredstring

Connected, facebook, instagram or linkedin ads account id (selects the platform). - connection: resolves its Page through the Facebook account linked to the same profile. - Instagram account: uses the Page its ads run under (its own linked Page, else the Facebook or business-login account on the same profile).

pageIdstring

Meta only. Acts on this Facebook Page instead of the connection's default one, for a Facebook or connection that manages several Pages (a business login, for example). Must be a Page the connection manages, else a 400. Omit it to use the default Page.

fieldsstring

Meta only. A Graph field selection passed through verbatim to GET /{form-id}, replacing the default projection, so fields Meta adds later are reachable without an API change. - Field names, commas and {} expansion only. Anything else (Graph field modifiers such as.limit, or characters that could open another query parameter) is a 400. - Unknown field names are rejected by Meta as a 400. - Ownership of the form is verified before the selection runs, so this cannot reach any Page but the one accountId manages.

formIdRequiredstring

Numeric form id (Meta leadgen_form id or LinkedIn leadForm id).

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.