Skip to content

Instantly share code, notes, and snippets.

@strangeways
Created July 13, 2017 23:45
Show Gist options
  • Select an option

  • Save strangeways/96b26ee7e61b9800e264b16688cce038 to your computer and use it in GitHub Desktop.

Select an option

Save strangeways/96b26ee7e61b9800e264b16688cce038 to your computer and use it in GitHub Desktop.
MailChimp webhook contents

MailChimp webhook contents

This information was discovered using RequestBin.

See MailChimp's documentation on webhooks:

Webhook validation

HTTP request method: GET

User-Agent: MailChimp.com WebHook Validator

Parameters: (none)

Webhook requests

HTTP request method: POST

User-Agent: MailChimp.com

subscribes

  • type: subscribe
  • fired_at: YYYY-MM-DD HH:MM:SS
  • data[list_id]:
  • data[email]:
  • data[id]:
  • data[web_id]:
  • data[ip_signup]:
  • data[ip_opt]:
  • data[email_type]:
  • data[merges][merge field 1 name]: merge field 1 value
  • data[merges][merge field 2 name]: merge field 2 value
  • (etc)

See description of data fields in the MailChimp API documentation for Lists -> Members -> Create.

unsubscribes

(to be filled in)

profile updates

  • type: profile
  • fired_at: YYYY-MM-DD HH:MM:SS
  • data[list_id]:
  • data[email]:
  • data[id]:
  • data[web_id]:
  • data[ip_signup]:
  • data[email_type]:
  • data[merges][merge field 1 name]: merge field 1 value
  • data[merges][merge field 2 name]: merge field 2 value
  • (etc)

See description of data fields in the MailChimp API documentation for Lists -> Members -> Edit.

cleaned address

(to be filled in)

email changed

(to be filled in)

campaign sending

  • type: campaign
  • fired_at: YYYY-MM-DD HH:MM:SS
  • data[list_id]:
  • data[reason]: (none)
  • data[subject]:
  • data[id]: campaign id
  • data[status]: sent

See description of data fields in the MailChimp API documentation for Campaigns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment