Mailchimp · Arazzo Workflow

Mailchimp Create Merge Field and Add Member

Version 1.0.0

Add a custom audience field, then add a member that populates it.

1 workflow 1 source API 1 provider
View Spec View on GitHub CampaignsEmail MarketingMarketing AutomationNewslettersTransactional EmailAudience ManagementSMSE-CommerceWebhookMarketing AnalyticsArazzoWorkflows

Provider

mailchimp

Workflows

create-merge-field-add-member
Create a merge field, then add a member that fills it in.
Creates a merge field on the audience and adds a member whose merge_fields populate it.
2 steps inputs: emailAddress, listId, mergeFieldName, mergeFieldType, mergeFieldValue, mergeTag, status outputs: memberId, mergeId
1
createMergeField
Create the custom merge field on the audience.
2
addMember
Add a subscriber whose merge_fields populate the newly created field by its merge tag.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Mailchimp Create Merge Field and Add Member
  summary: Add a custom audience field, then add a member that populates it.
  description: >-
    Extends an audience's data model and immediately uses it. The workflow
    creates a new merge field (audience field) on a list, then adds a subscriber
    whose merge_fields payload populates the new field by its merge tag. This
    pairs the schema change and the first data write so a custom field is never
    left empty on its first contact. Note: merge_fields is keyed by the literal
    merge tag, so the example payload uses a placeholder key (MERGEFIELD) that
    must be replaced with the actual tag value (Arazzo runtime expressions
    cannot supply an object key dynamically). Authentication uses HTTP Basic
    auth with any username and your Mailchimp API key as the password.
  version: 1.0.0
sourceDescriptions:
- name: listsApi
  url: ../openapi/mailchimp-lists-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-merge-field-add-member
  summary: Create a merge field, then add a member that fills it in.
  description: >-
    Creates a merge field on the audience and adds a member whose merge_fields
    populate it.
  inputs:
    type: object
    required:
    - listId
    - mergeFieldName
    - mergeFieldType
    - mergeTag
    - emailAddress
    - mergeFieldValue
    properties:
      listId:
        type: string
        description: The unique id for the audience/list.
      mergeFieldName:
        type: string
        description: The display name of the merge field.
      mergeFieldType:
        type: string
        description: The merge field type (text, number, date, address, etc.).
      mergeTag:
        type: string
        description: The merge tag the field is referenced by (e.g. BIRTHDAY).
      emailAddress:
        type: string
        description: Email address of the subscriber to add.
      status:
        type: string
        description: Subscription status for the new member.
        default: subscribed
      mergeFieldValue:
        type: string
        description: The value to write into the new merge field for this member.
  steps:
  - stepId: createMergeField
    description: Create the custom merge field on the audience.
    operationId: postListsIdMergeFields
    parameters:
    - name: list_id
      in: path
      value: $inputs.listId
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.mergeFieldName
        type: $inputs.mergeFieldType
        tag: $inputs.mergeTag
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      mergeId: $response.body#/merge_id
      mergeTag: $response.body#/tag
  - stepId: addMember
    description: >-
      Add a subscriber whose merge_fields populate the newly created field by
      its merge tag.
    operationId: postListsIdMembers
    parameters:
    - name: list_id
      in: path
      value: $inputs.listId
    requestBody:
      contentType: application/json
      payload:
        email_address: $inputs.emailAddress
        status: $inputs.status
        merge_fields:
          MERGEFIELD: $inputs.mergeFieldValue
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      memberId: $response.body#/id
  outputs:
    mergeId: $steps.createMergeField.outputs.mergeId
    memberId: $steps.addMember.outputs.memberId

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/mailchimp-create-merge-field-add-member-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.