Mailchimp · Arazzo Workflow

Mailchimp Onboard Member into a Static Segment

Version 1.0.0

Add a member to an audience and place them into a static segment.

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

Provider

mailchimp

Workflows

onboard-member-to-segment
Add a member, create a segment, and place the member in it.
Subscribes a member, creates a static segment, then adds that member to the segment.
3 steps inputs: emailAddress, listId, segmentName, status outputs: memberId, segmentId
1
addMember
Subscribe the member to the audience.
2
createSegment
Create a static segment in the audience.
3
addToSegment
Add the onboarded member to the static segment by email.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Mailchimp Onboard Member into a Static Segment
  summary: Add a member to an audience and place them into a static segment.
  description: >-
    A three-step onboarding flow that subscribes a contact to an audience,
    creates a static segment to group them, and adds the contact to that
    segment. The list id threads into segment creation and the segment id
    threads into the segment-member add, producing a ready-to-target group
    seeded with the new contact. 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: onboard-member-to-segment
  summary: Add a member, create a segment, and place the member in it.
  description: >-
    Subscribes a member, creates a static segment, then adds that member to the
    segment.
  inputs:
    type: object
    required:
    - listId
    - emailAddress
    - segmentName
    properties:
      listId:
        type: string
        description: The unique id for the audience/list.
      emailAddress:
        type: string
        description: Email address of the subscriber to onboard.
      status:
        type: string
        description: Subscription status for the new member.
        default: subscribed
      segmentName:
        type: string
        description: The name of the static segment to create.
  steps:
  - stepId: addMember
    description: Subscribe the member to the audience.
    operationId: postListsIdMembers
    parameters:
    - name: list_id
      in: path
      value: $inputs.listId
    requestBody:
      contentType: application/json
      payload:
        email_address: $inputs.emailAddress
        status: $inputs.status
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      memberId: $response.body#/id
  - stepId: createSegment
    description: Create a static segment in the audience.
    operationId: postListsIdSegments
    parameters:
    - name: list_id
      in: path
      value: $inputs.listId
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.segmentName
        static_segment: []
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      segmentId: $response.body#/id
  - stepId: addToSegment
    description: Add the onboarded member to the static segment by email.
    operationId: postListsIdSegmentsIdMembers
    parameters:
    - name: list_id
      in: path
      value: $inputs.listId
    - name: segment_id
      in: path
      value: $steps.createSegment.outputs.segmentId
    requestBody:
      contentType: application/json
      payload:
        email_address: $inputs.emailAddress
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      segmentMemberId: $response.body#/id
  outputs:
    memberId: $steps.addMember.outputs.memberId
    segmentId: $steps.createSegment.outputs.segmentId

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-onboard-member-to-segment-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.