PeumeAPI

Social publishing & inbox

Install an automation template

Creates every automation in the template, with your values in place of its inputs. All or nothing: if one automation fails, the ones already created are removed. New automations stay paused unless `status` is `active`.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/install-an-automation-template \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "templateId": "your templateId",
    "inputs": {
      "adAccount": {
        "accountId": "6731a0c2e4b0f1a2b3c4d5e6",
        "adAccountId": "act_1234567890"
      }
    },
    "status": "paused"
  }
}'

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: install-an-automation-template.

Parameters

templateIdRequiredstring

The template's id.

inputsobject

A value for each input, by its `key`. Required inputs without a default must be sent.

Example: {"adAccount":{"accountId":"6731a0c2e4b0f1a2b3c4d5e6","adAccountId":"act_1234567890"}}

targetsarray

Install several times in one call, for example on many ad accounts. Each target is its own install, all or nothing, and its `inputs` win over the shared `inputs`. A failed target leaves the others in place.

statusstring

The status of every automation created.

active · paused

Example: paused

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.