Meta · Arazzo Workflow

Meta Onboard User To Audience

Version 1.0.0

Confirm a user exists, then add a hashed payload to a custom audience.

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

Provider

meta

Workflows

onboard-user-to-audience
Verify a user exists, then add a hashed payload to a custom audience.
Reads the user node and, on a successful read, adds the supplied hashed payload to the custom audience.
2 steps inputs: accessToken, addPayload, customAudienceId, userId outputs: addSucceeded, userId
1
verifyUser
Read the User node to confirm it exists before the audience write. A 200 proceeds to the add; a 404 ends the flow.
2
addUsers
Add the supplied hashed users to the custom audience.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Meta Onboard User To Audience
  summary: Confirm a user exists, then add a hashed payload to a custom audience.
  description: >-
    Onboards a user into ad targeting. It reads the User node to confirm the
    user exists and is accessible, branches to end if the user is not found, and
    otherwise adds a hashed user payload to the custom audience. The existence
    check prevents adding payloads tied to invalid users. 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
- name: usersApi
  url: ../openapi/meta-users-api-openapi.yml
  type: openapi
workflows:
- workflowId: onboard-user-to-audience
  summary: Verify a user exists, then add a hashed payload to a custom audience.
  description: >-
    Reads the user node and, on a successful read, adds the supplied hashed
    payload to the custom audience.
  inputs:
    type: object
    required:
    - accessToken
    - userId
    - customAudienceId
    - addPayload
    properties:
      accessToken:
        type: string
        description: A Meta Graph API user access token with ads permissions.
      userId:
        type: string
        description: The id of the user to verify before onboarding.
      customAudienceId:
        type: string
        description: The custom audience to add the user to.
      addPayload:
        type: object
        description: Hashed user payload to add (e.g. EMAIL_SHA256 schema and data).
  steps:
  - stepId: verifyUser
    description: >-
      Read the User node to confirm it exists before the audience write. A 200
      proceeds to the add; a 404 ends the flow.
    operationId: getUser
    parameters:
    - name: user-id
      in: path
      value: $inputs.userId
    - name: access_token
      in: query
      value: $inputs.accessToken
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      userId: $response.body#/id
    onSuccess:
    - name: userExists
      type: goto
      stepId: addUsers
      criteria:
      - condition: $statusCode == 200
  - 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
  outputs:
    userId: $steps.verifyUser.outputs.userId
    addSucceeded: $steps.addUsers.outputs.addSucceeded

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-onboard-user-to-audience-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.