marjory-logo

Mailchimp v2.5.5

Tables of Contents


Contexts

Server

Type Description isCrypt
string The server of your Mailchimp account (e.g: us20) false

Transactional Api Key

Type Description isCrypt
string Your Mailchimp account API key transactional (more info: https://mandrillapp.com/settings) true

Marketing Api Key

Type Description isCrypt
string Your Mailchimp account API key marketing (more info: https://mailchimp.com/developer/marketing/guides/quick-start/#generate-your-api-key) true

Actions

Add member to list

Inputs

{
  "listId": "bd82f5fe53", /*The ID of the list(required)*/
  "email": "john@doe.com", /*The email of the new member(required)*/
  "status": "subscribed", /*The status of the new member "subscribed", "unsubscribed", "cleaned", "pending", or "transactional"(required)*/
}

Outputs

Http Code 200
{
  "id": "undefined type" /*object or string*/
}
Http Code 400
"Members Exists"
Http Code 404
"Resource Not Found"

Add member to segment

Inputs

{
  "listId": "bd82f5fe53", /*The ID of the list(required)*/
  "email": "john@doe.com", /*The email of the new member(required)*/
  "segmentId": "ac71e4ed42", /*The ID of the segment(required)*/
}

Outputs

Http Code 200
{
  "id": "undefined type" /*object or string*/
}
Http Code 400
"Members Exists"
Http Code 404
"Resource Not Found"

Send Transactional Message

Inputs

{
  "from": "bd82f5fe53", /*The ID of the list(required)*/
  "recipients":[
    {
      "to" : "string",/* Email address of recipient. e.g: "johndoe@mail.com", (required)*/
      "type" : "enum", /* Type of recipient, values are: "to"|"cc"|"bcc", default value is "to"*/
      "name" : "string", /*display name of your recipient*/   
    }
  ],
  "subject": "string", /*The email's subject, e.g: "Welcome to Marjory", (optional)*/
  "templateId":/*id of the template you want to use. Required if don't use templateSlug*/
  "templateSlug":/*slug of the template you want to use. Required if you don't use templateId*/
  "templateVariables": "string", /*Variables of the template you want to use, e.g: "{key: "value"}" (required)*/
  "attachments" : [
    {
      "marjoryFile": { /*(required)*/
        "id": "abCdEf",
        "name": "file_name", /*(required)*/
        "contentType": "image/jpeg",
        "link": "https://fileserver.marjory.io/files/abCdEf", /*(required)*/
        "size": 656, /*(required)*/
        "lastModified": "2022-05-25T09:41:28.640Z"
      },
    }
  ]

#### Outputs

##### Http Code 200

```json
{
  "id": "undefined type" /*object or string*/
}
Http Code 400
"Members Exists"
Http Code 404
"Resource Not Found"

Make Marketing Api Call

Perform a custom API call. You need a marketingApiKey to make calls.

Inputs

{
  "method": "string", /*PUT|GET|POST|PATCH|DELETE|HEAD|OPTIONS|TRACE(required)*/
  "path": "string", /*/account-exports(required)*/
  "body": "string", /*can be any type you need*/
}

Outputs

Http Code 200
{
  "response": {
    "anyField": "string"
  },
  "responseCode": "number"
}

Make Transactional Api Call

Perform a custom API call. You need a transactionalApiKey to make calls(found in https://mandrillapp.com/settings).

Inputs

{
  "method": "string", /*PUT|GET|POST|PATCH|DELETE|HEAD|OPTIONS|TRACE(required)*/
  "path": "string", /*/account-exports(required)*/
  "body": "string", /*can be any type you need*/
}

Outputs

Http Code 200
{
  "response": {
    "anyField": "string"
  },
  "responseCode": "number"
}
Version(s)
2.5.5