PeumeAPI

Ads

Archive a lead form

Archives a lead form so it can no longer be used (neither Meta nor LinkedIn allows deleting one).

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/archive-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: archive-a-lead-form.

Parameters

stageboolean

Send true to store this write as a staged change instead of applying it. The response is `202` with the change, and POST /v1/ads/changes/{changeId}/confirm applies it later.

accountIdRequiredstring

Connected, facebook, instagram or linkedin ads account id (selects the platform). - A connection resolves its Page through the Facebook account linked to the same profile. - An 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.

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.