Download OpenAPI specification:Download
The mail2many API is a REST API that enables external applications to integrate seamlessly with mail2many. With this API, developers can create, read, update, and delete subscribers and subscriber groups, send newsletters, and retrieve statistics.
If you want to get started with the mail2many API, you should first understand the basic structure of mail2many and its key terms. The API Documentation will guide you through these fundamentals.
The API Usage section provides additional details on how to work with the mail2many API.
Currently the endpoint documentation is only available in english but the Documentation is avaiable in german and english. You can switch the language in the top right
Every api key is assigned to an account. This endpoint returns the account.
| include | string Example: include=channels, languages What relations should be included. Available relations: channels, languages |
{- "data": {
- "data": {
- "objectType": "Account",
- "id": 1,
- "type": "S",
- "name": "Account A",
- "createdAt": "2024-02-27 10:35:34"
}
}
}Creates an new article and returns it. The placeholders of the article should be filled.
Article object that should be created.
| languageIso | string = 5 characters The language of the article |
| name | string [ 2 .. 191 ] characters The internal name of the article |
| templateId | integer The template of the article. |
| canEdit | boolean Default: true If the article can be edited. |
| availableFrom | string or null Default: null From which date the article is available in UTC. |
| availableUntil | string or null Default: null Until which date the article is available in UTC. |
object |
{- "languageIso": "de",
- "name": "MacBook Pro 2019",
- "templateId": 1,
- "canEdit": true,
- "availableFrom": "2019-08-28 08:00:00",
- "availableUntil": "2019-09-03 23:59:59",
- "placeholders": {
- "texts": [
- {
- "areaId": 1,
- "placeholderId": 1,
- "text": "Hello World!",
- "style": "font-size:16px;"
}
], - "buttons": [
- {
- "areaId": 1,
- "placeholderId": 2,
- "text": "Click me",
- "style": "font-size:16px;"
}
], - "images": [
- {
- "areaId": 1,
- "placeholderId": 3,
- "file": "data:image/jpg;base64,...",
- "fileName": "macbook-pro.jpg",
- "alt": "MacBook Pro 2019",
- "width": 600,
- "height": 335,
- "x": 0,
- "y": 100,
- "w": 1920,
- "h": 1080,
- "style": "border:1px solid black;"
}
]
}
}{- "id": 1,
- "languageIso": "de",
- "name": "MacBook Pro 2019",
- "templateId": 1,
- "canEdit": true,
- "availableFrom": "2019-08-28 08:00:00",
- "availableUntil": "2019-09-03 23:59:59"
}Updates an article and returns it. The placeholders of the article can be updated.
| id required | integer Id of the article |
Article object that should be updated.
| name | string [ 2 .. 191 ] characters The internal name of the article |
| availableFrom | string or null Default: null From which date the article is available in UTC. |
| availableUntil | string or null Default: null Until which date the article is available in UTC. |
object |
{- "name": "MacBook Pro 2019",
- "availableFrom": "2019-08-28 08:00:00",
- "availableUntil": "2019-09-03 23:59:59",
- "placeholders": {
- "texts": [
- {
- "areaId": 1,
- "placeholderId": 1,
- "text": "Hello World!",
- "style": "font-size:16px;"
}
], - "buttons": [
- {
- "areaId": 1,
- "placeholderId": 2,
- "text": "Click me",
- "style": "font-size:16px;"
}
], - "images": [
- {
- "areaId": 1,
- "placeholderId": 3,
- "file": "data:image/jpg;base64,...",
- "fileName": "macbook-pro.jpg",
- "alt": "MacBook Pro 2019",
- "width": 600,
- "height": 335,
- "x": 0,
- "y": 100,
- "w": 1920,
- "h": 1080,
- "style": "border:1px solid black;"
}
]
}
}{- "id": 1,
- "languageIso": "de",
- "name": "MacBook Pro 2019",
- "templateId": 1,
- "canEdit": true,
- "availableFrom": "2019-08-28 08:00:00",
- "availableUntil": "2019-09-03 23:59:59"
}Returns the available channels of the account. Returns all and not a pagination.
{- "id": 1,
- "isDefault": true,
- "type": 1,
- "translations": {
- "de": {
- "name": "Marketing",
- "description": "Kanal für Marketing Mails."
}, - "en": {
- "name": "Marketing",
- "description": "Channels for marketing mails."
}
}, - "createdAt": "2019-09-27 10:51:00",
- "updatedAt": "2019-09-27 10:52:00"
}Returns all existing customer fields. If you want to include the defaults, you have to set the include parameter.
| include | string Which relations should be included. Available: defaults. |
{- "id": 1,
- "fieldType": 1,
- "type": 1,
- "isAvailableForImport": true,
- "isAvailableForExport": true,
- "isEditable": true,
- "inputId": 1,
- "translations": {
- "de": {
- "name": "Lieblingsland",
- "description": "Das Lieblingsland eines Empfängers."
}
}, - "value": "Nepal",
- "createdAt": "2019-09-27 10:51:00",
- "updatedAt": "2019-09-27 10:52:00"
}Sets the default value for a customer field and returns it. Only defaults for account fields can be set. Other types will be skipped. If the account uses multiple languages, the default value can be set for every language. If the default for a language is missing, the global value is used.
Keep in mind that this endpoint returns the customer field. If you want to return the defaults as well, you have to set the include parameter.
| id required | integer Id of the customer field |
| include | string Which relations should be included. Available: defaults. |
The defaults which should be set.
| value | string Value for the customer field. |
| translations | object Translations for the value of the customer field. |
{- "value": "Müller GmbH",
- "translations": {
- "de": {
- "name": "Müller GmbH"
}, - "en": {
- "name": "Muller GmbH"
}
}
}{- "id": 1,
- "fieldType": 1,
- "type": 1,
- "isAvailableForImport": true,
- "isAvailableForExport": true,
- "isEditable": true,
- "inputId": 1,
- "translations": {
- "de": {
- "name": "Lieblingsland",
- "description": "Das Lieblingsland eines Empfängers."
}
}, - "value": "Nepal",
- "createdAt": "2019-09-27 10:51:00",
- "updatedAt": "2019-09-27 10:52:00"
}Sets the default values for multiple customer fields and returns it. Only defaults for account fields can be set. Other types will be skipped. If the account uses multiple languages, the default value can be set for every language. If the default for a language is missing, the global value is used.
Keep in mind that this endpoint returns the customer fields. If you want to return the defaults as well, you have to set the include parameter.
| include | string Which relations should be included. Available: defaults. |
The defaults which should be set.
Array of objects | |||||||
Array
| |||||||
{- "defaults": [
- {
- "id": 1,
- "value": "Müller GmbH",
- "translations": {
- "de": {
- "name": "Müller GmbH"
}, - "en": {
- "name": "Muller GmbH"
}
}
}
]
}{- "id": 1,
- "fieldType": 1,
- "type": 1,
- "isAvailableForImport": true,
- "isAvailableForExport": true,
- "isEditable": true,
- "inputId": 1,
- "translations": {
- "de": {
- "name": "Lieblingsland",
- "description": "Das Lieblingsland eines Empfängers."
}
}, - "value": "Nepal",
- "createdAt": "2019-09-27 10:51:00",
- "updatedAt": "2019-09-27 10:52:00"
}Returns all mailings. Newsletters can be included with the paramater ?include=newsletters. You can search and filter the mailings with query parameters.
| include | string Example: include=newsletters What relations should be included. Available relations: newsletters |
{- "id": 1,
- "languageIso": "de",
- "mailingTemplateId": 1,
- "oldVersionFrom": null,
- "name": "MacBook Pro 2022",
- "senderName": "Atrivio",
- "customerFields": {
- "1": 1234
}, - "availableFrom": "2019-08-28 08:00:00",
- "availableUntil": "2019-09-03 23:59:59",
- "activeSince": null,
- "inactiveSince": null,
- "subscriberChannelId": 1,
- "isScheduled": false,
- "isRunning": false,
- "transferedAt": "2019-09-03 23:59:59"
}Returns all sent mailings. Newsletters can be included with the paramater ?include=newsletters.
| include | string Example: include=newsletters What relations should be included. Available relations: newsletters |
{- "id": 1,
- "languageIso": "de",
- "mailingTemplateId": 1,
- "oldVersionFrom": null,
- "name": "MacBook Pro 2022",
- "senderName": "Atrivio",
- "customerFields": {
- "1": 1234
}, - "availableFrom": "2019-08-28 08:00:00",
- "availableUntil": "2019-09-03 23:59:59",
- "activeSince": null,
- "inactiveSince": null,
- "subscriberChannelId": 1,
- "isScheduled": false,
- "isRunning": false,
- "transferedAt": "2019-09-03 23:59:59"
}Returns the data of a existing trigger mailing.
The fields isScheduled, isRunning and transferedAt tells the current state of the transmission.
| id required | integer Id of the trigger mailing |
{- "id": 1,
- "languageIso": "de",
- "mailingTemplateId": 1,
- "oldVersionFrom": null,
- "name": "MacBook Pro 2022",
- "senderName": "Atrivio",
- "customerFields": {
- "1": 1234
}, - "availableFrom": "2019-08-28 08:00:00",
- "availableUntil": "2019-09-03 23:59:59",
- "activeSince": null,
- "inactiveSince": null,
- "subscriberChannelId": 1,
- "isScheduled": false,
- "isRunning": false,
- "transferedAt": "2019-09-03 23:59:59"
}Creates a new trigger mailing with the given trigger type and returns it. The next step is to add receivers.
Mailing object that should be created.
| triggerTypeId | integer The id of the trigger type to send. |
| languageIso | string = 5 characters The language of the mailing |
| senderName | string or null [ 2 .. 191 ] characters The sender name of the mailing |
| name | string [ 2 .. 191 ] characters The internal name of the mailing |
| subject | string The subject for all newsletters of the mailing. |
| foreignId | integer The id of a third-party system. Will be returned in the tracking. |
{- "triggerTypeId": 1,
- "languageIso": "de",
- "senderName": "Atrivio",
- "name": "MacBook Pro 2022",
- "subject": "Special offer",
- "foreignId": 1
}{- "id": 1,
- "languageIso": "de",
- "mailingTemplateId": 1,
- "oldVersionFrom": null,
- "name": "MacBook Pro 2022",
- "senderName": "Atrivio",
- "customerFields": {
- "1": 1234
}, - "availableFrom": "2019-08-28 08:00:00",
- "availableUntil": "2019-09-03 23:59:59",
- "activeSince": null,
- "inactiveSince": null,
- "subscriberChannelId": 1,
- "isScheduled": false,
- "isRunning": false,
- "transferedAt": "2019-09-03 23:59:59"
}Adds multiple receivers to the created trigger mailing. 100 can be added with a single request. If all are added the trigger mailing can be scheduled.
| id required | integer Id of the trigger mailing |
Receivers array that should be added.
Array of objects | |||||||||||
Array
| |||||||||||
{- "receivers": [
- {
- "email": "mail@example.com",
- "firstname": "Florian",
- "lastname": "Reichart",
- "subject": "Happy Birthday Erika",
}
]
}{- "success": true,
- "added": [
- {
- "email": "mail@example.com",
- "firstname": "Florian",
- "lastname": "Reichart"
}
], - "countAdded": 100,
- "notAdded": [
- {
- "email": "mail@example.com",
- "firstname": "Florian",
- "lastname": "Reichart"
}
], - "countNotAdded": 100
}Schedules a existing trigger mailing after all receivers were added. It can either be scheduled for now or for a date in the future.
After scheduling mail2many will take care of the transmission. The status can be retrieved with the read route and the statistic can be read with the tracking route.
| id required | integer Id of the trigger mailing |
Date when the trigger mailing should be send.
| sendNow | boolean If the mailing should be send immediately. |
| sendAt | string The date and time the mailing should be send as UTC time. |
{- "sendNow": true,
- "sendAt": "2020-07-23 08:00"
}{- "id": 1,
- "languageIso": "de",
- "mailingTemplateId": 1,
- "oldVersionFrom": null,
- "name": "MacBook Pro 2022",
- "senderName": "Atrivio",
- "customerFields": {
- "1": 1234
}, - "availableFrom": "2019-08-28 08:00:00",
- "availableUntil": "2019-09-03 23:59:59",
- "activeSince": null,
- "inactiveSince": null,
- "subscriberChannelId": 1,
- "isScheduled": false,
- "isRunning": false,
- "transferedAt": "2019-09-03 23:59:59"
}Aborts the transmission of the given trigger mailing. If no mails where sent out yet the mailing will be set back to draft. If mails were already sent the mailing will be set to sent.
| id required | integer Id of the trigger mailing |
{- "id": 1,
- "languageIso": "de",
- "mailingTemplateId": 1,
- "oldVersionFrom": null,
- "name": "MacBook Pro 2022",
- "senderName": "Atrivio",
- "customerFields": {
- "1": 1234
}, - "availableFrom": "2019-08-28 08:00:00",
- "availableUntil": "2019-09-03 23:59:59",
- "activeSince": null,
- "inactiveSince": null,
- "subscriberChannelId": 1,
- "isScheduled": false,
- "isRunning": false,
- "transferedAt": "2019-09-03 23:59:59"
}Sends a trigger mailing to a single subscriber within one request.
SingleTrigger object that should be sent.
| triggerTypeId | integer The id of the trigger type to send. |
| languageIso | string The language of the trigger mailing. |
| senderName | string or null [ 2 .. 191 ] characters The sender name of the mailing |
object |
{- "triggerTypeId": 1,
- "languageIso": "de",
- "senderName": "Atrivio",
- "receiver": {
- "email": "mail@example.com",
- "firstname": "Florian",
- "lastname": "Reichart",
- "subject": "Happy Birthday Erika",
- "attachments": [
- {
- "file": "data:application/pdf;base64,attachment-as-base-64",
- "fileName": "my-file.pdf"
}
]
}
}{- "success": true
}Sends a trigger mailing to multiple subscribers within one request. 100 can be send with a single request.
SingleTrigger object that should be sent.
| triggerTypeId | integer The id of the trigger type to send. |
| languageIso | string The language of the trigger mailing. |
| senderName | string or null [ 2 .. 191 ] characters The sender name of the mailing |
| subject | string or null A global subject for all receivers. |
Array of objects |
{- "triggerTypeId": 1,
- "languageIso": "de",
- "senderName": "Atrivio",
- "subject": "Happy Birthday",
- "receivers": [
- {
- "email": "mail@example.com",
- "firstname": "Florian",
- "lastname": "Reichart",
- "subject": "Happy Birthday Erika",
- "attachments": [
- {
- "file": "data:application/pdf;base64,attachment-as-base-64",
- "fileName": "my-file.pdf"
}
]
}
]
}{- "success": true,
- "sent": [
- {
- "email": "mail@example.com",
- "firstname": "Florian",
- "lastname": "Reichart"
}
], - "countSent": 100,
- "notSent": [
- {
- "email": "mail@example.com",
- "firstname": "Florian",
- "lastname": "Reichart"
}
], - "countNotSent": 100
}Returns all subscribers from the given newsletter.
| id required | integer Id of the newsletter |
{- "data": [
- {
- "id": 1,
- "email": "mail@example.com",
- "sentAt": "2021-11-02 12:25:20",
- "openedAt": "2021-11-02 12:25:20",
- "clickedAt": "2021-11-02 12:25:20",
- "openingCountDesktop": 1,
- "openingCountTablet": 0,
- "openingCountPhone": 2,
- "openingCountUnknown": 0,
- "privacyId": 3
}
]
}Returns the newsletter statistics data.
| id required | integer Id of the newsletter |
| statistics required | string Examples:
List of statistics |
{- "data": [ ]
}Returns all existing subscribers as pagination. The pagination can be found in the meta key.
| page | integer Example: page=1 The page to show starting with 1. |
| limit | integer Example: limit=10 How many entries should be returned. |
| include | string Which relations should be included. Available: subscriberGroups, newsletters, channels. |
{- "id": 1,
- "email": "mail@example.com",
- "status": 2,
- "statusAddition": 1,
- "genderId": 4,
- "languageIso": "de",
- "countryIso": "de",
- "reference": "123456",
- "title": "Dr.",
- "firstname": "Florian",
- "lastname": "Reichart",
- "salutationType": 1,
- "salutation": "Hi Florian",
- "company": "Atrivio",
- "street": "Albert-Einstein-Str. 6",
- "postcode": "87437",
- "city": "Kempten",
- "phoneNumber": "+49 831 512999-0",
- "birthday": "1970-01-01",
- "optInComment": "Opt-in was given",
- "optInSent": true,
- "customerFields": {
- "1": "Nepal",
- "2": 2,
- "3": "2018-06-01",
- "4": true
}, - "createdAt": "2019-09-27 10:51:00",
- "updatedAt": "2019-09-27 10:52:00"
}Creates a new subscriber and returns it. The status and statusAddition must be set correctly, check herefore the subscriber schema. If the subscriber is already existing an error will be returned.
A typical use case for this route is a registration form on a website.
| include | string Which relations should be included. Available: subscriberGroups, newsletters, channels. |
Subscriber object that should be created.
| email required | string [ 1 .. 155 ] characters The email of the subscriber. |
| status | integer Enum: 1 2 3 The status of the subscriber: 1=receive ready, 2=not receive ready, 3=archived. |
| statusAddition | integer or null Enum: 1 2 3 4 5 6 An addition to the status. For the status=1(receive ready) the addition should be null. Possible Additions for status=2(not receive ready): 1=Opt-in pending, 2=no Opt-in, 3=transaction. Possible Additions for status=3(archived): 4=unsubscribed, 5=hard bounced, 6=manual. |
| sendOptIn | boolean If an opt-in should be send to the subscriber. Will only be send if status=2 and statusAddition=1 |
| optInLanguageIso | string The language of the opt-in. If not available optInSent=false will be returned. |
| genderId | integer Enum: 1 2 3 4 The gender of the subscriber: 1=male, 2=female, 3=non-binary, 4=not specified. |
| languageIso | string or null The language of the subscriber as ISO 639-1 |
| countryIso | string or null The country of the subscriber as ISO 3166-2 |
| reference | string or null An dynamic reference for the subscriber. Can be used in different ways: Store-Id, Dealer-Id. |
| title | string or null [ 1 .. 191 ] characters The academic title of the subscriber. |
| firstname | string or null [ 1 .. 191 ] characters The firstname of the subscriber. |
| lastname | string or null [ 1 .. 191 ] characters The lastname of the subscriber. |
| salutationType | integer Enum: 1 2 3 The salutation type for the automatic greeting: 1=formal, 2=personal, 3=individual |
| salutation | string or null [ 1 .. 155 ] characters An individual salutation for the subscriber. |
| company | string or null [ 1 .. 191 ] characters The company of the subscriber. |
| street | string or null [ 1 .. 191 ] characters The street of the subscriber. |
| postcode | string or null [ 1 .. 191 ] characters The postcode of the subscriber. |
| city | string or null [ 1 .. 191 ] characters The city of the subscriber. |
| phoneNumber | string or null [ 1 .. 191 ] characters The phone number of the subscriber. |
| birthday | string or null [ 1 .. 191 ] characters The birthday of the subscriber in Y-m-d. |
| optInComment | string or null [ 1 .. 191 ] characters An opt-in comment for the subscriber. |
| subscriberGroupIds | Array of integers The subscriber groups which should be assigned. |
| subscriberGroupNames | Array of strings The subscriber groups which should be assigned (case sensitive!). If the group with the given name doesn`t exists, it will be created. |
| customerFields | Array of strings The customer fields of the subscriber. The ids of the customer fields must be known. |
{- "email": "mail@example.com",
- "status": 2,
- "statusAddition": 1,
- "sendOptIn": true,
- "optInLanguageIso": "de",
- "genderId": 4,
- "languageIso": "de",
- "countryIso": "de",
- "reference": "123456",
- "title": "Dr.",
- "firstname": "Florian",
- "lastname": "Reichart",
- "salutationType": 1,
- "salutation": "Hi Florian",
- "company": "Atrivio",
- "street": "Albert-Einstein-Str. 6",
- "postcode": "87437",
- "city": "Kempten",
- "phoneNumber": "+49 831 512999-0",
- "birthday": "1970-01-01",
- "optInComment": "Opt-in was given",
- "subscriberGroupIds": [
- 1,
- 2
], - "subscriberGroupNames": [
- "Group A",
- "Group B"
], - "customerFields": {
- "1": "Nepal",
- "2": 2,
- "3": "2018-06-01",
- "4": true
}
}{- "id": 1,
- "email": "mail@example.com",
- "status": 2,
- "statusAddition": 1,
- "genderId": 4,
- "languageIso": "de",
- "countryIso": "de",
- "reference": "123456",
- "title": "Dr.",
- "firstname": "Florian",
- "lastname": "Reichart",
- "salutationType": 1,
- "salutation": "Hi Florian",
- "company": "Atrivio",
- "street": "Albert-Einstein-Str. 6",
- "postcode": "87437",
- "city": "Kempten",
- "phoneNumber": "+49 831 512999-0",
- "birthday": "1970-01-01",
- "optInComment": "Opt-in was given",
- "optInSent": true,
- "customerFields": {
- "1": "Nepal",
- "2": 2,
- "3": "2018-06-01",
- "4": true
}, - "createdAt": "2019-09-27 10:51:00",
- "updatedAt": "2019-09-27 10:52:00"
}Deletes the subscribers with the given ids or email addresses. Only subscribers who never received a newsletter are deleted. The others will be set to archived.
An array with subscribers which should be deleted. Either ids or emails can be passed.
| subscriberIds | Array of integers or null The subscribers ids which should be deleted. |
| subscriberEmails | Array of strings or null The subscribers emails which should deleted. |
{- "subscriberIds": [
- 1
], - "subscriberEmails": [
- "info@example.com"
]
}{- "deletedSubscriberIds": [
- "info@example.com"
], - "archivedSubscriberIds": [
- "mail@example.com"
], - "deletedSubscriberEmails": [
- "info@example.com"
], - "archivedSubscriberEmails": [
- "mail@example.com"
]
}Returns the subscriber with the given id, email or uuid.
| id required | string Id, email or uuid of the subscriber |
| include | string Which relations should be included. Available: subscriberGroups, newsletters, channels. |
{- "id": 1,
- "email": "mail@example.com",
- "status": 2,
- "statusAddition": 1,
- "genderId": 4,
- "languageIso": "de",
- "countryIso": "de",
- "reference": "123456",
- "title": "Dr.",
- "firstname": "Florian",
- "lastname": "Reichart",
- "salutationType": 1,
- "salutation": "Hi Florian",
- "company": "Atrivio",
- "street": "Albert-Einstein-Str. 6",
- "postcode": "87437",
- "city": "Kempten",
- "phoneNumber": "+49 831 512999-0",
- "birthday": "1970-01-01",
- "optInComment": "Opt-in was given",
- "optInSent": true,
- "customerFields": {
- "1": "Nepal",
- "2": 2,
- "3": "2018-06-01",
- "4": true
}, - "createdAt": "2019-09-27 10:51:00",
- "updatedAt": "2019-09-27 10:52:00"
}Updates the subscriber with the given id or email. Only fields which should be updated should be passed. The status and statusAddition must be set correctly, check herefore the subscriber schema. If the subscriber is not existing an error will be returned.
| id required | string Id or email of the subscriber |
| include | string Which relations should be included. Available: subscriberGroups, newsletters, channels. |
Subscriber object that should be created.
| status | integer Enum: 1 2 3 The status of the subscriber: 1=receive ready, 2=not receive ready, 3=archived. |
| statusAddition | integer or null Enum: 1 2 3 4 5 6 An addition to the status. For the status=1(receive ready) the addition should be null. Possible Additions for status=2(not receive ready): 1=Opt-in pending, 2=no Opt-in, 3=transaction. Possible Additions for status=3(archived): 4=unsubscribed, 5=hard bounced, 6=manual. |
| genderId | integer Enum: 1 2 3 4 The gender of the subscriber: 1=male, 2=female, 3=non-binary, 4=not specified. |
| languageIso | string or null The language of the subscriber as ISO 639-1 |
| countryIso | string or null The country of the subscriber as ISO 3166-2 |
| reference | string or null An dynamic reference for the subscriber. Can be used in different ways: Store-Id, Dealer-Id. |
| title | string or null [ 1 .. 191 ] characters The academic title of the subscriber. |
| firstname | string or null [ 1 .. 191 ] characters The firstname of the subscriber. |
| lastname | string or null [ 1 .. 191 ] characters The lastname of the subscriber. |
| salutationType | integer Enum: 1 2 3 The salutation type for the automatic greeting: 1=formal, 2=personal, 3=individual |
| salutation | string or null [ 1 .. 155 ] characters An individual salutation for the subscriber. |
| company | string or null [ 1 .. 191 ] characters The company of the subscriber. |
| street | string or null [ 1 .. 191 ] characters The street of the subscriber. |
| postcode | string or null [ 1 .. 191 ] characters The postcode of the subscriber. |
| city | string or null [ 1 .. 191 ] characters The city of the subscriber. |
| phoneNumber | string or null [ 1 .. 191 ] characters The phone number of the subscriber. |
| birthday | string or null [ 1 .. 191 ] characters The birthday of the subscriber in Y-m-d. |
| detachSubscriberGroups | boolean If the existing subscriber groups should be detached and only the new ones assigned. |
| subscriberGroupIds | Array of integers The subscriber groups which should be assigned. |
| customerFields | Array of strings The customer fields of the subscriber. The ids of the customer fields must be known. |
{- "status": 2,
- "statusAddition": 1,
- "genderId": 4,
- "languageIso": "de",
- "countryIso": "de",
- "reference": "123456",
- "title": "Dr.",
- "firstname": "Florian",
- "lastname": "Reichart",
- "salutationType": 1,
- "salutation": "Hi Florian",
- "company": "Atrivio",
- "street": "Albert-Einstein-Str. 6",
- "postcode": "87437",
- "city": "Kempten",
- "phoneNumber": "+49 831 512999-0",
- "birthday": "1970-01-01",
- "detachSubscriberGroups": false,
- "subscriberGroupIds": [
- 1,
- 2
], - "customerFields": {
- "1": "Nepal",
- "2": 2,
- "3": "2018-06-01",
- "4": true
}
}{- "id": 1,
- "email": "mail@example.com",
- "status": 2,
- "statusAddition": 1,
- "genderId": 4,
- "languageIso": "de",
- "countryIso": "de",
- "reference": "123456",
- "title": "Dr.",
- "firstname": "Florian",
- "lastname": "Reichart",
- "salutationType": 1,
- "salutation": "Hi Florian",
- "company": "Atrivio",
- "street": "Albert-Einstein-Str. 6",
- "postcode": "87437",
- "city": "Kempten",
- "phoneNumber": "+49 831 512999-0",
- "birthday": "1970-01-01",
- "optInComment": "Opt-in was given",
- "optInSent": true,
- "customerFields": {
- "1": "Nepal",
- "2": 2,
- "3": "2018-06-01",
- "4": true
}, - "createdAt": "2019-09-27 10:51:00",
- "updatedAt": "2019-09-27 10:52:00"
}Deletes the subscriber with the given id or email. He is only deleted when he never received a newsletter. Otherwise he will be set to archived.
| id required | string Id or email of the subscriber |
{- "message": "Resource successfully deleted."
}Returns the subscriber related with the given parameter p.
| p required | string The parameter p of a mail2many request. |
| include | string Which relations should be included. Available: subscriberGroups, newsletters, channels. |
{- "id": 1,
- "email": "mail@example.com",
- "status": 2,
- "statusAddition": 1,
- "genderId": 4,
- "languageIso": "de",
- "countryIso": "de",
- "reference": "123456",
- "title": "Dr.",
- "firstname": "Florian",
- "lastname": "Reichart",
- "salutationType": 1,
- "salutation": "Hi Florian",
- "company": "Atrivio",
- "street": "Albert-Einstein-Str. 6",
- "postcode": "87437",
- "city": "Kempten",
- "phoneNumber": "+49 831 512999-0",
- "birthday": "1970-01-01",
- "optInComment": "Opt-in was given",
- "optInSent": true,
- "customerFields": {
- "1": "Nepal",
- "2": 2,
- "3": "2018-06-01",
- "4": true
}, - "createdAt": "2019-09-27 10:51:00",
- "updatedAt": "2019-09-27 10:52:00"
}Registers the given subscriber in the account. If the subscriber is not existing, he will be created and an opt-in will be send. If he is existing, he will be updated and an opt-in will send, when he is not already receive-ready.
A typical use case for this route is a registration form on a website. You can allways call this route and mail2many takes care of the necessary steps.
| include | string Which relations should be included. Available: subscriberGroups, newsletters, channels. |
Subscriber that should be registered.
| email required | string [ 1 .. 155 ] characters The email of the subscriber. |
| optInLanguageIso | string The language of the opt-in. If not available optInSent=false will be returned. |
| genderId | integer Enum: 1 2 3 4 The gender of the subscriber: 1=male, 2=female, 3=non-binary, 4=not specified. |
| languageIso | string or null The language of the subscriber as ISO 639-1 |
| countryIso | string or null The country of the subscriber as ISO 3166-2 |
| reference | string or null An dynamic reference for the subscriber. Can be used in different ways: Store-Id, Dealer-Id. |
| title | string or null [ 1 .. 191 ] characters The academic title of the subscriber. |
| firstname | string or null [ 1 .. 191 ] characters The firstname of the subscriber. |
| lastname | string or null [ 1 .. 191 ] characters The lastname of the subscriber. |
| salutationType | integer Enum: 1 2 3 The salutation type for the automatic greeting: 1=formal, 2=personal, 3=individual |
| salutation | string or null [ 1 .. 155 ] characters An individual salutation for the subscriber. |
| company | string or null [ 1 .. 191 ] characters The company of the subscriber. |
| street | string or null [ 1 .. 191 ] characters The street of the subscriber. |
| postcode | string or null [ 1 .. 191 ] characters The postcode of the subscriber. |
| city | string or null [ 1 .. 191 ] characters The city of the subscriber. |
| phoneNumber | string or null [ 1 .. 191 ] characters The phone number of the subscriber. |
| birthday | string or null [ 1 .. 191 ] characters The birthday of the subscriber in Y-m-d. |
| detachSubscriberGroups | boolean If the existing subscriber groups should be detached and only the new ones assigned. |
| subscriberGroupIds | Array of integers The subscriber groups which should be assigned. |
| subscriberGroupNames | Array of strings The subscriber groups which should be assigned (case sensitive!). If the group with the given name doesn`t exists, it will be created. |
| customerFields | Array of strings The customer fields of the subscriber. The ids of the customer fields must be known. |
| forceOptIn | boolean If an opt-in should be forced for existing subscribers. |
{- "email": "mail@example.com",
- "optInLanguageIso": "de",
- "genderId": 4,
- "languageIso": "de",
- "countryIso": "de",
- "reference": "123456",
- "title": "Dr.",
- "firstname": "Florian",
- "lastname": "Reichart",
- "salutationType": 1,
- "salutation": "Hi Florian",
- "company": "Atrivio",
- "street": "Albert-Einstein-Str. 6",
- "postcode": "87437",
- "city": "Kempten",
- "phoneNumber": "+49 831 512999-0",
- "birthday": "1970-01-01",
- "detachSubscriberGroups": false,
- "subscriberGroupIds": [
- 1,
- 2
], - "subscriberGroupNames": [
- "Group A",
- "Group B"
], - "customerFields": {
- "1": "Nepal",
- "2": 2,
- "3": "2018-06-01",
- "4": true
}, - "forceOptIn": true
}{- "id": 1,
- "email": "mail@example.com",
- "status": 2,
- "statusAddition": 1,
- "genderId": 4,
- "languageIso": "de",
- "countryIso": "de",
- "reference": "123456",
- "title": "Dr.",
- "firstname": "Florian",
- "lastname": "Reichart",
- "salutationType": 1,
- "salutation": "Hi Florian",
- "company": "Atrivio",
- "street": "Albert-Einstein-Str. 6",
- "postcode": "87437",
- "city": "Kempten",
- "phoneNumber": "+49 831 512999-0",
- "birthday": "1970-01-01",
- "optInComment": "Opt-in was given",
- "optInSent": true,
- "customerFields": {
- "1": "Nepal",
- "2": 2,
- "3": "2018-06-01",
- "4": true
}, - "createdAt": "2019-09-27 10:51:00",
- "updatedAt": "2019-09-27 10:52:00"
}Updates the given subscribers via id or email. He should pass either id or email for every subscriber. The id will be checked first. Only fields which should be updated should be passed. The status and statusAddition must be set correctly, check herefore the subscriber schema. If the subscriber is not existing he will be ignored.
If all subscribers should be added to the same subscriber groups the subscriberGroupIds should be passed at the first level and removed from the subscribers array for performance increase.
The rights of the api key will be checked here. If the key has not the right to set unsubscribed subscribers to receive-ready, the old status will be kept.
| include | string Which relations should be included. Available: subscriberGroups, newsletters, channels. |
Subscribers that should be updated.
Array of objects The subscribers which should updated. | |
| detachSubscriberGroups | boolean If the existing subscriber groups should be detached and only the new ones assigned. |
| subscriberGroupIds | Array of integers The subscriber groups which should be assigned to every subscriber. Should be used when every subscriber must be added in the same group. |
{- "subscribers": [
- {
- "id": 1,
- "email": "mail@example.com",
- "status": 2,
- "statusAddition": 1,
- "genderId": 4,
- "languageIso": "de",
- "countryIso": "de",
- "reference": "123456",
- "title": "Dr.",
- "firstname": "Florian",
- "lastname": "Reichart",
- "salutationType": 1,
- "salutation": "Hi Florian",
- "company": "Atrivio",
- "street": "Albert-Einstein-Str. 6",
- "postcode": "87437",
- "city": "Kempten",
- "phoneNumber": "+49 831 512999-0",
- "birthday": "1970-01-01",
- "subscriberGroupIds": [
- 1,
- 2
], - "customerFields": {
- "1": "Nepal",
- "2": 2,
- "3": "2018-06-01",
- "4": true
}
}
], - "detachSubscriberGroups": false,
- "subscriberGroupIds": [
- 1,
- 2
]
}{- "updated": [
- {
- "id": 1,
- "email": "mail@example.com",
- "status": 2,
- "statusAddition": 1,
- "genderId": 4,
- "languageIso": "de",
- "countryIso": "de",
- "reference": "123456",
- "title": "Dr.",
- "firstname": "Florian",
- "lastname": "Reichart",
- "salutationType": 1,
- "salutation": "Hi Florian",
- "company": "Atrivio",
- "street": "Albert-Einstein-Str. 6",
- "postcode": "87437",
- "city": "Kempten",
- "phoneNumber": "+49 831 512999-0",
- "birthday": "1970-01-01",
- "optInComment": "Opt-in was given",
- "optInSent": true,
- "customerFields": {
- "1": "Nepal",
- "2": 2,
- "3": "2018-06-01",
- "4": true
}, - "createdAt": "2019-09-27 10:51:00",
- "updatedAt": "2019-09-27 10:52:00"
}
], - "invalid": [
- {
- "id": 1,
- "email": "mail@example.com",
- "status": 2,
- "statusAddition": 1,
- "genderId": 4,
- "languageIso": "de",
- "countryIso": "de",
- "reference": "123456",
- "title": "Dr.",
- "firstname": "Florian",
- "lastname": "Reichart",
- "salutationType": 1,
- "salutation": "Hi Florian",
- "company": "Atrivio",
- "street": "Albert-Einstein-Str. 6",
- "postcode": "87437",
- "city": "Kempten",
- "phoneNumber": "+49 831 512999-0",
- "birthday": "1970-01-01",
- "optInComment": "Opt-in was given",
- "optInSent": true,
- "customerFields": {
- "1": "Nepal",
- "2": 2,
- "3": "2018-06-01",
- "4": true
}, - "createdAt": "2019-09-27 10:51:00",
- "updatedAt": "2019-09-27 10:52:00"
}
], - "failed": [
- {
- "id": 1,
- "email": "mail@example.com",
- "status": 2,
- "statusAddition": 1,
- "genderId": 4,
- "languageIso": "de",
- "countryIso": "de",
- "reference": "123456",
- "title": "Dr.",
- "firstname": "Florian",
- "lastname": "Reichart",
- "salutationType": 1,
- "salutation": "Hi Florian",
- "company": "Atrivio",
- "street": "Albert-Einstein-Str. 6",
- "postcode": "87437",
- "city": "Kempten",
- "phoneNumber": "+49 831 512999-0",
- "birthday": "1970-01-01",
- "optInComment": "Opt-in was given",
- "optInSent": true,
- "customerFields": {
- "1": "Nepal",
- "2": 2,
- "3": "2018-06-01",
- "4": true
}, - "createdAt": "2019-09-27 10:51:00",
- "updatedAt": "2019-09-27 10:52:00"
}
]
}Creates the given subscribers if not existing. The status and statusAddition must be set correctly, check herefore the subscriber schema. If the subscriber is already existing he will be ignored.
If all subscribers should be added to the same subscriber groups the subscriberGroupIds should be passed at the first level and removed from the subscribers array for performance increase.
| include | string Which relations should be included. Available: subscriberGroups, newsletters, channels. |
Subscribers that should be created.
Array of objects The subscribers which should created. | |
| subscriberGroupIds | Array of integers The subscriber groups which should be assigned to every subscriber. Should be used when every subscriber must be added in the same group. |
{- "subscribers": [
- {
- "email": "mail@example.com",
- "status": 2,
- "statusAddition": 1,
- "genderId": 4,
- "languageIso": "de",
- "countryIso": "de",
- "reference": "123456",
- "title": "Dr.",
- "firstname": "Florian",
- "lastname": "Reichart",
- "salutationType": 1,
- "salutation": "Hi Florian",
- "company": "Atrivio",
- "street": "Albert-Einstein-Str. 6",
- "postcode": "87437",
- "city": "Kempten",
- "phoneNumber": "+49 831 512999-0",
- "birthday": "1970-01-01",
- "sendOptIn": true,
- "subscriberGroupIds": [
- 1,
- 2
], - "customerFields": {
- "1": "Nepal",
- "2": 2,
- "3": "2018-06-01",
- "4": true
}
}
], - "subscriberGroupIds": [
- 1,
- 2
]
}{- "created": [
- {
- "id": 1,
- "email": "mail@example.com",
- "status": 2,
- "statusAddition": 1,
- "genderId": 4,
- "languageIso": "de",
- "countryIso": "de",
- "reference": "123456",
- "title": "Dr.",
- "firstname": "Florian",
- "lastname": "Reichart",
- "salutationType": 1,
- "salutation": "Hi Florian",
- "company": "Atrivio",
- "street": "Albert-Einstein-Str. 6",
- "postcode": "87437",
- "city": "Kempten",
- "phoneNumber": "+49 831 512999-0",
- "birthday": "1970-01-01",
- "optInComment": "Opt-in was given",
- "optInSent": true,
- "customerFields": {
- "1": "Nepal",
- "2": 2,
- "3": "2018-06-01",
- "4": true
}, - "createdAt": "2019-09-27 10:51:00",
- "updatedAt": "2019-09-27 10:52:00"
}
], - "invalid": [
- {
- "id": 1,
- "email": "mail@example.com",
- "status": 2,
- "statusAddition": 1,
- "genderId": 4,
- "languageIso": "de",
- "countryIso": "de",
- "reference": "123456",
- "title": "Dr.",
- "firstname": "Florian",
- "lastname": "Reichart",
- "salutationType": 1,
- "salutation": "Hi Florian",
- "company": "Atrivio",
- "street": "Albert-Einstein-Str. 6",
- "postcode": "87437",
- "city": "Kempten",
- "phoneNumber": "+49 831 512999-0",
- "birthday": "1970-01-01",
- "optInComment": "Opt-in was given",
- "optInSent": true,
- "customerFields": {
- "1": "Nepal",
- "2": 2,
- "3": "2018-06-01",
- "4": true
}, - "createdAt": "2019-09-27 10:51:00",
- "updatedAt": "2019-09-27 10:52:00"
}
], - "failed": [
- {
- "id": 1,
- "email": "mail@example.com",
- "status": 2,
- "statusAddition": 1,
- "genderId": 4,
- "languageIso": "de",
- "countryIso": "de",
- "reference": "123456",
- "title": "Dr.",
- "firstname": "Florian",
- "lastname": "Reichart",
- "salutationType": 1,
- "salutation": "Hi Florian",
- "company": "Atrivio",
- "street": "Albert-Einstein-Str. 6",
- "postcode": "87437",
- "city": "Kempten",
- "phoneNumber": "+49 831 512999-0",
- "birthday": "1970-01-01",
- "optInComment": "Opt-in was given",
- "optInSent": true,
- "customerFields": {
- "1": "Nepal",
- "2": 2,
- "3": "2018-06-01",
- "4": true
}, - "createdAt": "2019-09-27 10:51:00",
- "updatedAt": "2019-09-27 10:52:00"
}
]
}Returns the optOuts of the subscribers. An period should be send in the search field.
| search | string Example: search=[object Object]&search=[object Object] The search to apply. |
{- "id": 1,
- "action": "optOut",
- "email": "florian.reichart@atrivio.de",
- "newsletterId": 1,
- "timestamp": "2019-09-30 06:00:00",
- "ip": "127.0.0.1"
}Send an array of subscribers to mail2many. Existing subscribers will be updated and new subscribers created. The status and statusAddition must be set correctly, check herefore the subscriber schema.
If all subscribers should be added to the same subscriber groups the subscriberGroupIds should be passed at the first level and removed from the subscribers array for performance increase.
A typical use case for this route is a data synchronization between a third-party-system and mail2many.
The rights of the api key will be checked here. If the key has not the right to set unsubscribed subscribers to receive-ready, the old status will be kept.
| include | string Which relations should be included. Available: subscriberGroups, newsletters, channels. |
Subscribers that should be created or updated.
Array of objects The subscribers which should be created or updated. | |
| detachSubscriberGroups | boolean If the existing subscriber groups should be detached and only the new ones assigned. |
| subscriberGroupIds | Array of integers The subscriber groups which should be assigned. |
{- "subscribers": [
- {
- "email": "mail@example.com",
- "status": 2,
- "statusAddition": 1,
- "genderId": 4,
- "languageIso": "de",
- "countryIso": "de",
- "reference": "123456",
- "title": "Dr.",
- "firstname": "Florian",
- "lastname": "Reichart",
- "salutationType": 1,
- "salutation": "Hi Florian",
- "company": "Atrivio",
- "street": "Albert-Einstein-Str. 6",
- "postcode": "87437",
- "city": "Kempten",
- "phoneNumber": "+49 831 512999-0",
- "birthday": "1970-01-01",
- "sendOptIn": true,
- "optInLanguageIso": "de",
- "optInComment": "Opt-in was given",
- "subscriberGroupIds": [
- 1,
- 2
], - "customerFields": {
- "1": "Nepal",
- "2": 2,
- "3": "2018-06-01",
- "4": true
}
}
], - "detachSubscriberGroups": false,
- "subscriberGroupIds": [
- 1,
- 2
]
}{- "created": [
- {
- "id": 1,
- "email": "mail@example.com",
- "status": 2,
- "statusAddition": 1,
- "genderId": 4,
- "languageIso": "de",
- "countryIso": "de",
- "reference": "123456",
- "title": "Dr.",
- "firstname": "Florian",
- "lastname": "Reichart",
- "salutationType": 1,
- "salutation": "Hi Florian",
- "company": "Atrivio",
- "street": "Albert-Einstein-Str. 6",
- "postcode": "87437",
- "city": "Kempten",
- "phoneNumber": "+49 831 512999-0",
- "birthday": "1970-01-01",
- "optInComment": "Opt-in was given",
- "optInSent": true,
- "customerFields": {
- "1": "Nepal",
- "2": 2,
- "3": "2018-06-01",
- "4": true
}, - "createdAt": "2019-09-27 10:51:00",
- "updatedAt": "2019-09-27 10:52:00"
}
], - "updated": [
- {
- "id": 1,
- "email": "mail@example.com",
- "status": 2,
- "statusAddition": 1,
- "genderId": 4,
- "languageIso": "de",
- "countryIso": "de",
- "reference": "123456",
- "title": "Dr.",
- "firstname": "Florian",
- "lastname": "Reichart",
- "salutationType": 1,
- "salutation": "Hi Florian",
- "company": "Atrivio",
- "street": "Albert-Einstein-Str. 6",
- "postcode": "87437",
- "city": "Kempten",
- "phoneNumber": "+49 831 512999-0",
- "birthday": "1970-01-01",
- "optInComment": "Opt-in was given",
- "optInSent": true,
- "customerFields": {
- "1": "Nepal",
- "2": 2,
- "3": "2018-06-01",
- "4": true
}, - "createdAt": "2019-09-27 10:51:00",
- "updatedAt": "2019-09-27 10:52:00"
}
], - "invalid": [
- {
- "id": 1,
- "email": "mail@example.com",
- "status": 2,
- "statusAddition": 1,
- "genderId": 4,
- "languageIso": "de",
- "countryIso": "de",
- "reference": "123456",
- "title": "Dr.",
- "firstname": "Florian",
- "lastname": "Reichart",
- "salutationType": 1,
- "salutation": "Hi Florian",
- "company": "Atrivio",
- "street": "Albert-Einstein-Str. 6",
- "postcode": "87437",
- "city": "Kempten",
- "phoneNumber": "+49 831 512999-0",
- "birthday": "1970-01-01",
- "optInComment": "Opt-in was given",
- "optInSent": true,
- "customerFields": {
- "1": "Nepal",
- "2": 2,
- "3": "2018-06-01",
- "4": true
}, - "createdAt": "2019-09-27 10:51:00",
- "updatedAt": "2019-09-27 10:52:00"
}
], - "failed": [
- {
- "id": 1,
- "email": "mail@example.com",
- "status": 2,
- "statusAddition": 1,
- "genderId": 4,
- "languageIso": "de",
- "countryIso": "de",
- "reference": "123456",
- "title": "Dr.",
- "firstname": "Florian",
- "lastname": "Reichart",
- "salutationType": 1,
- "salutation": "Hi Florian",
- "company": "Atrivio",
- "street": "Albert-Einstein-Str. 6",
- "postcode": "87437",
- "city": "Kempten",
- "phoneNumber": "+49 831 512999-0",
- "birthday": "1970-01-01",
- "optInComment": "Opt-in was given",
- "optInSent": true,
- "customerFields": {
- "1": "Nepal",
- "2": 2,
- "3": "2018-06-01",
- "4": true
}, - "createdAt": "2019-09-27 10:51:00",
- "updatedAt": "2019-09-27 10:52:00"
}
]
}Archives the given subscribers in the given channels. If no channel ids are given, the subscribers will be archived in all assigned channels.
It is possible to archive subscribers by their ids or by their emails. If both ids and emails are given, both will be used to archive the subscribers. You should select one of the two options.
Subscribers that should be archived.
| subscriberIds | Array of integers The subscriber ids which should be archived. |
| subscriberEmails | Array of integers The subscriber emails which should be archived. |
| channelIds | Array of integers The channel ids which should be archived. |
{- "subscriberIds": [
- 2,
- 4
], - "subscriberEmails": [
- "mail@example.com",
- "test@example.com"
], - "channelIds": [
- 1,
- 2
]
}{- "totalCount": 2,
- "processedCount": 2
}Returns all existing subscriber groups.
| returnAll | boolean Example: returnAll=false If all groups should be returned. By default entries are returned paginated. |
{- "id": 1,
- "name": "Contest 2019",
- "type": 3,
- "subscriberCount": 1,
- "receiveReadyCount": 1,
- "canEdit": true,
- "canDelete": true,
- "canAssign": true,
- "pluginId": 1,
- "isCalculating": false,
- "createdAt": "2019-09-27 10:51:00",
- "updatedAt": "2019-09-27 10:52:00"
}Creates a new subscriber group and returns it. Subscribers can be added to the group by id or email. If the subscriberGroup with the given name is already existing an error will be returned.
SubscriberGroup object that should be created. The name field is required, the other fields are optional.
| name | string [ 1 .. 155 ] characters The unique name of the group |
| type | integer The type of the group: 1 = static, 2 = dynamic, 3 = external |
| subscriberIds | Array of integers or null The subscribers which should be added to the group by id. |
| subscriberEmails | Array of strings or null The subscribers which should be added to the group by email. |
| canEdit | boolean If the group can be edited from the user |
| canDelete | boolean If the group can be deleted from the user |
| canAssign | boolean If the user can assign subscribers to the group |
| isCalculating | boolean If the subscribers are currently calculating |
{- "name": "Contest 2019",
- "type": 3,
- "subscriberIds": [
- 1
], - "subscriberEmails": [
- "info@example.com"
], - "canEdit": true,
- "canDelete": true,
- "canAssign": true,
- "isCalculating": false
}{- "id": 1,
- "name": "Contest 2019",
- "type": 3,
- "subscriberCount": 1,
- "receiveReadyCount": 1,
- "canEdit": true,
- "canDelete": true,
- "canAssign": true,
- "pluginId": 1,
- "isCalculating": false,
- "createdAt": "2019-09-27 10:51:00",
- "updatedAt": "2019-09-27 10:52:00"
}Returns the subscriber group with the given id.
| id required | integer Id of the group |
{- "id": 1,
- "name": "Contest 2019",
- "type": 3,
- "subscriberCount": 1,
- "receiveReadyCount": 1,
- "canEdit": true,
- "canDelete": true,
- "canAssign": true,
- "pluginId": 1,
- "isCalculating": false,
- "createdAt": "2019-09-27 10:51:00",
- "updatedAt": "2019-09-27 10:52:00"
}Updates an existing subscriberGroup and returns it. Subscribers can be added to the group by id or email. If the subscriberGroup with the given name is already existing an error will be returned.
| id required | integer Id of the group |
SubscriberGroup object that should be updated. All fields are optional.
| name | string or null [ 1 .. 155 ] characters The unique name of the group |
| subscriberIds | Array of integers or null The subscribers which should be added to the group by id. |
| subscriberEmails | Array of strings or null The subscribers which should be added to the group by email. |
| detach | boolean If the given subscribers should be detached from the group instead of attached. |
| sync | boolean All subscribers will be detached from the given group and only the given subscribers get attached. |
| canEdit | boolean If the group can be edited from the user |
| canDelete | boolean If the group can be deleted from the user |
| canAssign | boolean If the user can assign subscribers to the group |
| isCalculating | boolean If the subscribers are currently calculating |
{- "name": "Contest 2019",
- "subscriberIds": [
- 1
], - "subscriberEmails": [
- "info@example.com"
], - "detach": false,
- "sync": true,
- "canEdit": true,
- "canDelete": true,
- "canAssign": true,
- "isCalculating": false
}{- "id": 1,
- "name": "Contest 2019",
- "type": 3,
- "subscriberCount": 1,
- "receiveReadyCount": 1,
- "canEdit": true,
- "canDelete": true,
- "canAssign": true,
- "pluginId": 1,
- "isCalculating": false,
- "createdAt": "2019-09-27 10:51:00",
- "updatedAt": "2019-09-27 10:52:00"
}Returns the trackings data of all mailings. The trackings can be filtered and sorted. Check the developers guide to see how this works.
| page | integer Example: page=1 The page to show starting with 1. |
| limit | integer Example: limit=10 How many entries should be returned. |
{- "id": 1,
- "type": "click",
- "isFirst": true,
- "subscriberId": 1,
- "subscriberEmail": "mail@example.com",
- "mailingId": 1,
- "foreignId": 1,
- "newsletterId": 1,
- "articleId": 1,
- "areaId": 1,
- "placeholderId": 1,
- "timestamp": "2019-09-03 23:59:59",
- "userAgent": "Chrome",
- "platform": "OS X",
- "deviceType": 1
}Returns the available trigger types of the account and if a mailing for the type is existing and activated. Returns all and not a pagination.
{- "id": 1,
- "shortcut": "birthday",
- "usages": {
- "de": true,
- "en": false
}, - "translations": {
- "de": {
- "name": "Geburtstag",
- "description": "Trigger zum Versand einer Sendung an einem Geburtstag."
}
}, - "createdAt": "2019-09-27 10:51:00",
- "updatedAt": "2019-09-27 10:52:00"
}