Batch multiple Meta Marketing API mutations into a single Graph API batch request

domain: developers.facebook.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. POST to the root Graph API endpoint with a top-level access_token and a batch parameter containing a JSON array of {method, relative_url, body} objects, up to 50 requests per batch.
  2. Reference a prior operation's output in a later operation using {result=<name>:$.<JSONPath>} syntax, after tagging the earlier operation with a name field.
  3. Optionally set include_headers=false to shrink the response payload when header data isn't needed.
  4. Attach binary uploads (e.g. image creatives) via multipart/mime with the attached_files field listing comma-separated attachment names per operation.
  5. Parse the response array in request order; independent operations are processed in parallel while dependent ones run sequentially, and each entry has its own status code and body.

Known gotchas

Related routes

batch-upload a product catalog to meta facebook/instagram commerce
facebook.com · 6 steps · unrated
run large-scale account mutations asynchronously via google ads api batchjobservice
developers.google.com/google-ads/api · 5 steps · unrated
Execute a Dataverse Web API $batch request to bundle multiple operations in a single HTTP round trip
learn.microsoft.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans