> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Mailchimp audience members

> Mount Mailchimp audience members on your app.

Follow the [REST mounting guide](https://docs.bijection.com/integrations/native-rest.md#mount-and-bind).
Use `providerEndpoint` from `@bijectionhq/app-rest` to bind the collection,
and supply a scoped OAuth bearer token or Basic auth using base64 of `anystring:<API key>` in a sealed header credential.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
export const remote = providerEndpoint(
  "mailchimp/audience.members.observations",
  "https://us6.api.mailchimp.com",
  "/3.0/lists/a1b2c3d4e5/members",
  auth,
  data,
);
```

Pass `remote` as `receivers.provider` and bind the mount under the same `data` label. As the mount's operator, call
`source.initialize` with this profile.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{ profile: { mode: "provider", provider: "mailchimp/audience.members.observations", limit: 25 } }
```

Replace `us6` and the audience ID with the account's data center and audience. The Mailchimp subscriber hash keys rows. The observation keeps returned membership status, including unsubscribed entries. An archive or purge absent from the list does not remove a prior row. Each page advances by its row count against `total_items`. Concurrent changes can shift offsets, and a terminal page restarts the sweep at zero on the next poll.

Up to 100 rows and 36 KiB per response. The bundled parser is required. Pages publish rows and their next
position together. Use [source health and controls](https://docs.bijection.com/integrations/native-rest.md#feed-contracts)
to review failures and recover the feed.

[Provider API reference](https://mailchimp.com/developer/marketing/api/list-members/list-members-info/)

## Write members

Follow the [native write mount guide](https://docs.bijection.com/integrations/native-rest.md#native-provider-writes). Use mode `mailchimp.members.create-update-delete` with `providerWriter`, endpoint `https://us6.api.mailchimp.com` and pass the writer in `receivers.writers` under that mode. Use the account’s Mailchimp data center and `scope: ["LIST_ID"]` with a sealed credential permitted to write that audience. Create and update accept HTTP 200 with the subscriber hash as `id`. Supply the provider’s member object and preserve the subscriber email on update. Delete archives the member and accepts HTTP 204. Permanent deletion and resubscription workflows are separate actions.

The writer records evidence under the mount's label. Commands take up to 24 KiB of JSON and carry no read cursor.

[Provider write API](https://mailchimp.com/developer/marketing/api/lists/members/create-member)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.