Meta · Arazzo Workflow

Meta Sync Custom Audience Membership

Version 1.0.0

Add a fresh set of hashed users to a custom audience and remove a stale set.

1 workflow 1 source API 1 provider
View Spec View on GitHub AdvertisingAnalyticsArtificial IntelligenceMessagingSocialSocial-MediaVirtual RealityArazzoWorkflows

Provider

meta

Workflows

sync-custom-audience-membership
Add new members to a custom audience and remove stale members.
Adds a supplied payload of users to the custom audience, then removes a second supplied payload of users from the same audience.
2 steps inputs: accessToken, addPayload, customAudienceId outputs: addSucceeded, removeSucceeded
1
addUsers
Add the supplied hashed users to the custom audience.
2
removeUsers
Remove the previously added users from the same custom audience. The remove edge is declared in the spec without a request body, so membership is dissociated by audience id.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Meta Sync Custom Audience Membership
  summary: Add a fresh set of hashed users to a custom audience and remove a stale set.
  description: >-
    Keeps a custom audience in sync by performing both halves of a membership
    update in one flow: it first adds a batch of users using a hashed payload
    schema such as EMAIL_SHA256, then removes a separate batch of users that
    should no longer be in the audience. Both edges operate on the same custom
    audience id. Every step inlines its request so the flow can be read and
    executed without opening the underlying OpenAPI description.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-400.60
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-400.60
      capability_name: Digital Marketing Management
      spec: meta-custom-audiences-api-openapi.yml
      confidence: 0.75
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: customAudiencesApi
  url: ../openapi/meta-custom-audiences-api-openapi.yml
  type: openapi
workflows:
- workflowId: sync-custom-audience-membership
  summary: Add new members to a custom audience and remove stale members.
  description: >-
    Adds a supplied payload of users to the custom audience, then removes a
    second supplied payload of users from the same audience.
  inputs:
    type: object
    required:
    - accessToken
    - customAudienceId
    - addPayload
    properties:
      accessToken:
        type: string
        description: A Meta Graph API user access token with ads permissions.
      customAudienceId:
        type: string
        description: The id of the custom audience to modify.
      addPayload:
        type: object
        description: Hashed user payload to add (e.g. EMAIL_SHA256 schema and data).
  steps:
  - stepId: addUsers
    description: >-
      Add the supplied hashed users to the custom audience.
    operationId: addUsersToCustomAudience
    parameters:
    - name: custom-audience-id
      in: path
      value: $inputs.customAudienceId
    - name: access_token
      in: query
      value: $inputs.accessToken
    requestBody:
      contentType: application/json
      payload:
        payload: $inputs.addPayload
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      addSucceeded: $response.body#/success
  - stepId: removeUsers
    description: >-
      Remove the previously added users from the same custom audience. The
      remove edge is declared in the spec without a request body, so membership
      is dissociated by audience id.
    operationId: removeUsersFromCustomAudience
    parameters:
    - name: custom-audience-id
      in: path
      value: $inputs.customAudienceId
    - name: access_token
      in: query
      value: $inputs.accessToken
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      removeSucceeded: $response.body#/success
  outputs:
    addSucceeded: $steps.addUsers.outputs.addSucceeded
    removeSucceeded: $steps.removeUsers.outputs.removeSucceeded

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/meta-sync-custom-audience-membership-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.