Download OpenAPI specification:Download
To select the subscribers to be exported, you will need a target. This target can be created in the mail applilcation or by api.
📝 The default output file is an ANSI encoded csv file with ";" as column separator and CRLF windows newline character. Field names are used for column headers.
📝 The execution of the export is asynchronous, so you won't know right away if the export is successful. But in case of error, you will receive en email "Error concerning the export...".
At the end of the export, you will also receive an email with the subject starting with "Export of the file..."
⚠️ Be careful, if you run too many exports at the same time, you'll get this error : "Error, too many exports in progress (max 10)". For performance reasons, we don't allow more than 10 simultaneous exports per database.
💡 You can call this endpoint to get the execution status of your export you just created.
| idsite required | string database identifier |
Informations about the export.
| idTarget required | integer <int32> Indicates the target identifier. |
| idsFields required | Array of strings Indicates the fields identifiers you want to export. |
| idsEncodeFields required | Array of strings Indicates the fields identifiers to use inside the last column of the file. The choice of the encoding is made with the "Encoding" parameter. |
| filename | string Indicates the file name to export. |
| quantity | integer <int32> Indicates the lines count to export, 0=all. |
| typeList required | string Enum: "ID" "VALUE" Indicates how to export list type fields. |
| compress | string Enum: "GZip" "Zip" (Optional) Indicates how to compress data |
| encoding required | string Enum: "None" "MD5" "SHA1" "SHA2_256" "SHA2_512" Indicates wich encoding is used for the last encoded column. You have to use the idsEncodeFields to pass the field ids to hash in this column. |
| exportSubFolder | string subfolder (optional). For ex, "export". |
| idRepository | integer <int32> Indicates on which repository (external sftp) will be exported the file, or null for default repository (mindbaz sftp). You can contact the customer service to add you own sftp. You can get your repository IDs with use this endpoint |
| codePage | integer <int32> CodePage of the file. 📝 1252 for ANSI, 65001 for UTF8. |
| columnSeparator | string Column Separator. ";" by default |
| idNewLineCharacter | integer <int32> NewLine mode : 1 for windows new lines (CRLF) / 2 for Unix new lines (LF) |
{- "idTarget": 0,
- "idsFields": [
- "string"
], - "idsEncodeFields": [
- "string"
], - "filename": "string",
- "quantity": 0,
- "typeList": "ID",
- "compress": "GZip",
- "encoding": "None",
- "exportSubFolder": "string",
- "idRepository": 0,
- "codePage": 0,
- "columnSeparator": "string",
- "idNewLineCharacter": 0
}{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}If you don't want to use mindbaz sftp account as export output, you can ask customer service to add your own sftp account to mindbaz. You can get your SFTP account ID with this endpoint and use it in the Post Method (IdRepository parameter) to create an new export job.
| idsite required | string database identifier |
{- "success": true,
- "data": [
- {
- "idRepository": 0,
- "port": 0,
- "host": "string",
- "subfolder": "string"
}
], - "error": "string",
- "typeName": "string"
}| idExport required | integer <int32> |
| idsite required | string database identifier |
{- "success": true,
- "data": {
- "idExportJob": 0,
- "creationDate": "2019-08-24T14:15:22Z",
- "idCreationUser": 0,
- "lastModificationDate": "2019-08-24T14:15:22Z",
- "idLastModificationUser": 0,
- "lastExecutionDate": "2019-08-24T14:15:22Z",
- "idExportJobState": 0,
- "idExportType": 0,
- "isEnabled": true,
- "name": "string",
- "description": "string",
- "islockedByAdmin": true,
- "adminComments": "string",
- "fileName": "string",
- "exportSubFolder": "string",
- "idExportJobFtp": 0,
- "nbLineToExport": 0,
- "isRandomized": true,
- "idCompressionMode": 0,
- "columnSeparator": "string",
- "escapedTextDelimiter": "string",
- "textDelimiter": "string",
- "isHeaderIncludedInFirstRow": true,
- "idNewLineCharacter": 0,
- "codePage": 0,
- "errorEmailAddresses": "string",
- "reportEmailAdresses": "string",
- "scheduleFilePattern": "string",
- "scheduleFileRetentionInNbDays": 0,
- "scheduleEnabled": 0,
- "scheduleFreqType": 0,
- "scheduleFreqInterval": 0,
- "scheduleFreqSubdayType": 0,
- "scheduleFreqSubdayInterval": 0,
- "scheduleFreqRelativeInterval": 0,
- "scheduleFreqRecurrenceFactor": 0,
- "scheduleActiveStartDate": 0,
- "scheduleActiveEndDate": 0,
- "scheduleActiveStartTime": 0,
- "scheduleActiveEndTime": 0,
- "idPrimaryKey": { },
- "exportJobFtp": {
- "idExportJobFtp": 0,
- "host": "string",
- "subfolder": "string",
- "port": 0,
- "login": "string",
- "password": "string",
- "idPrimaryKey": { },
- "exportJobs": {
- "property1": { },
- "property2": { }
}
}, - "exportJobDtsxes": {
- "property1": { },
- "property2": { }
}, - "exportJobSubscribers": {
- "property1": { },
- "property2": { }
}, - "exportJobTsqls": {
- "property1": { },
- "property2": { }
}
}, - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
{- "success": true,
- "data": {
- "idExportJob": 0,
- "name": "string",
- "jobCreationDate": "2019-08-24T14:15:22Z",
- "idExportJobFtp": 0,
- "lastExecutionStartDate": "2019-08-24T14:15:22Z",
- "lastExecutionEndDate": "2019-08-24T14:15:22Z",
- "filepath": "string",
- "nbLines": 0,
- "exportJobState": "SCHEDULED"
}, - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
| idExport required | integer <int32> id of the export job. If the job does not exist, the result will be a null object. |
{- "success": true,
- "data": {
- "idExportJob": 0,
- "name": "string",
- "jobCreationDate": "2019-08-24T14:15:22Z",
- "idExportJobFtp": 0,
- "lastExecutionStartDate": "2019-08-24T14:15:22Z",
- "lastExecutionEndDate": "2019-08-24T14:15:22Z",
- "filepath": "string",
- "nbLines": 0,
- "exportJobState": "SCHEDULED"
}, - "error": "string",
- "typeName": "string"
}Service managing fields of the main mindbaz subscriber table.
📝 You can find more details on fields in the Api Documentation here
the result is the same as the field management page. It is an array of Field object.
| idsite required | string database identifier |
| type | string Default: "Unspecified" Enum: "Unspecified" "Text" "Integer" "Date" "List" "Boolean" Optional, field type to retrieve |
{- "success": true,
- "data": [
- {
- "id": 0,
- "name": "string",
- "length": 0,
- "list": [
- {
- "key": 0,
- "value": "string"
}
], - "fieldType": "Unspecified",
- "description": "string",
- "isSystem": true,
- "isVisible": true,
- "isEditable": true,
- "isHiddenByCustomer": true
}
], - "error": "string",
- "typeName": "string"
}This corresponds to the number of fields whose ID is greater than 100.
⚠️ The maximum number of fields you can create is by default 50
| idsite required | string database identifier |
{- "success": true,
- "data": {
- "quota": 0,
- "nbSpecificFields": 0,
- "nbRemainingFields": 0
}, - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
| idFields required | Array of integers <int32> [ items <int32 > ] |
{- "success": true,
- "data": [
- {
- "id": 0,
- "name": "string",
- "length": 0,
- "list": [
- {
- "key": 0,
- "value": "string"
}
], - "fieldType": "Unspecified",
- "description": "string",
- "isSystem": true,
- "isVisible": true,
- "isEditable": true,
- "isHiddenByCustomer": true
}
], - "error": "string",
- "typeName": "string"
}If the field id does not exist, a null object is returned. Otherwise, the updated field object is returned.
⚠️ You can't modify a system field (id < 100) !
📝 You can change only the parameter you want to update. But if you want to change the fieldType to "List", you must provide a "List" value too.
And if you want to change the fieldType to "Text", you must provide a "Length" value too.
⚠️ Beware, if you change the field type, the field values will be emptied!
⚠️ Please do not call this method too often. The processing to modify a field type can be long, especially if the subscribers table is large! In addition, it is not recommended to modify the type of a field if a sending or import is in progress.
| idsite required | string database identifier |
Field to update
| id | integer <int32> Field identifier |
| name required | string Field name (Max 255 characters) |
| length | integer <int32> Field length (for the text field only) |
Array of objects (FieldListTypeValue) Allowed values for a drop down list field | |
| fieldType required | string Enum: "Unspecified" "Text" "Integer" "Date" "List" "Boolean" Field type
|
| description | string Field description (Max 500 characters) |
| isSystem | boolean Value indicating whether the field is a system field (true) or a custom field (false). |
| isVisible | boolean Value indicating whether the field is visible on the Mindbaz interface |
| isEditable | boolean Value indicating whether the field is editable |
| isHiddenByCustomer | boolean Value indicating whether the field is hidden by the customer on the Mindbaz "field management" page |
{- "id": 0,
- "name": "string",
- "length": 0,
- "list": [
- {
- "key": 0,
- "value": "string"
}
], - "fieldType": "Unspecified",
- "description": "string",
- "isSystem": true,
- "isVisible": true,
- "isEditable": true,
- "isHiddenByCustomer": true
}{- "success": true,
- "data": {
- "id": 0,
- "name": "string",
- "length": 0,
- "list": [
- {
- "key": 0,
- "value": "string"
}
], - "fieldType": "Unspecified",
- "description": "string",
- "isSystem": true,
- "isVisible": true,
- "isEditable": true,
- "isHiddenByCustomer": true
}, - "error": "string",
- "typeName": "string"
}The new field id is created automaticaly (with the max ID + 1). So you don't to pass the id to the Post method.
On the other hand, the mandatory parameters are the Name and the FieldType
And if you create a new "List" field, you must provide a "List" value too.
And if you create a new "Text" field, you must provide a "Length" value too.
💡 It is recommended to choose a unique name (but not required).
The newly created field object is returned by the post method.
| idsite required | string database identifier |
Field to create
| id | integer <int32> Field identifier |
| name required | string Field name (Max 255 characters) |
| length | integer <int32> Field length (for the text field only) |
Array of objects (FieldListTypeValue) Allowed values for a drop down list field | |
| fieldType required | string Enum: "Unspecified" "Text" "Integer" "Date" "List" "Boolean" Field type
|
| description | string Field description (Max 500 characters) |
| isSystem | boolean Value indicating whether the field is a system field (true) or a custom field (false). |
| isVisible | boolean Value indicating whether the field is visible on the Mindbaz interface |
| isEditable | boolean Value indicating whether the field is editable |
| isHiddenByCustomer | boolean Value indicating whether the field is hidden by the customer on the Mindbaz "field management" page |
{- "id": 0,
- "name": "string",
- "length": 0,
- "list": [
- {
- "key": 0,
- "value": "string"
}
], - "fieldType": "Unspecified",
- "description": "string",
- "isSystem": true,
- "isVisible": true,
- "isEditable": true,
- "isHiddenByCustomer": true
}{- "success": true,
- "data": {
- "id": 0,
- "name": "string",
- "length": 0,
- "list": [
- {
- "key": 0,
- "value": "string"
}
], - "fieldType": "Unspecified",
- "description": "string",
- "isSystem": true,
- "isVisible": true,
- "isEditable": true,
- "isHiddenByCustomer": true
}, - "error": "string",
- "typeName": "string"
}Service allowing subscriber file imports.
The file import allows you to import a list from your computer or from your Mindbaz SFTP. More info here
| idImport required | integer <int32> Import identifier |
| idsite required | string database identifier |
{- "success": true,
- "data": {
- "id": 0,
- "parameters": {
- "filename": "string",
- "startLine": 0,
- "columnNamesFirstLine": true,
- "textQualifier": "string",
- "columnDelimiter": "string",
- "rowDelimiter": "string",
- "codepage": 0,
- "sheetName": "string",
- "keyDbFieldName": "string",
- "keepFld7": true,
- "insertEnabled": true,
- "safeMode": true,
- "emailNotification": "string",
- "deleteFile": true,
- "columnMapping": [
- {
- "dbFieldName": "string",
- "idMappingMode": 0,
- "fileColumnName": "string",
- "fixedValue": "string",
- "format": "string"
}
]
}, - "creationDate": "2019-08-24T14:15:22Z",
- "importState": "Scheduled",
- "isDeleted": true,
- "deletionDate": "2019-08-24T14:15:22Z",
- "schedulingInfos": {
- "scheduledDate": "2019-08-24T14:15:22Z"
}, - "lastImportLog": {
- "id": 0,
- "filename": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "errorMessage": "string",
- "totalRows": 0,
- "totalDuplicateKeys": 0,
- "nbValidations": 0,
- "nbErrorRows": 0,
- "nbBadFormattedRows": 0,
- "badFormattedRowNumbers": "string",
- "totalUpdates": 0,
- "nbUpdates": 0,
- "totalInserts": 0,
- "nbInserts": 0,
- "nbForbiddenInserts": 0
}
}, - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
Import to schedule
📝 You must only provide values for the mandatory parameter named "parameters"
| id | integer <int32> Import identifier |
required | object (ImportParameters) This structure contains parameters for creating a subscriber import |
| creationDate | string <date-time> Date of creation of the import |
| importState | string Enum: "Scheduled" "InProgress" "Completed" "Paused" "PackageErrorCreation" Import state identifier
|
| isDeleted | boolean Indicates if the import is deleted |
| deletionDate | string <date-time> Indicates the date of deletion if if the import is deleted |
required | object (ImportSchedulingInfos) Represents the scheduling informations of an import job |
object (ImportLog) Represents the result informations about the execution of an import |
{- "id": 0,
- "parameters": {
- "filename": "string",
- "startLine": 0,
- "columnNamesFirstLine": true,
- "textQualifier": "string",
- "columnDelimiter": "string",
- "rowDelimiter": "string",
- "codepage": 0,
- "sheetName": "string",
- "keyDbFieldName": "string",
- "keepFld7": true,
- "insertEnabled": true,
- "safeMode": true,
- "emailNotification": "string",
- "deleteFile": true,
- "columnMapping": [
- {
- "dbFieldName": "string",
- "idMappingMode": 0,
- "fileColumnName": "string",
- "fixedValue": "string",
- "format": "string"
}
]
}, - "creationDate": "2019-08-24T14:15:22Z",
- "importState": "Scheduled",
- "isDeleted": true,
- "deletionDate": "2019-08-24T14:15:22Z",
- "schedulingInfos": {
- "scheduledDate": "2019-08-24T14:15:22Z"
}, - "lastImportLog": {
- "id": 0,
- "filename": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "errorMessage": "string",
- "totalRows": 0,
- "totalDuplicateKeys": 0,
- "nbValidations": 0,
- "nbErrorRows": 0,
- "nbBadFormattedRows": 0,
- "badFormattedRowNumbers": "string",
- "totalUpdates": 0,
- "nbUpdates": 0,
- "totalInserts": 0,
- "nbInserts": 0,
- "nbForbiddenInserts": 0
}
}{- "success": true,
- "data": {
- "id": 0,
- "parameters": {
- "filename": "string",
- "startLine": 0,
- "columnNamesFirstLine": true,
- "textQualifier": "string",
- "columnDelimiter": "string",
- "rowDelimiter": "string",
- "codepage": 0,
- "sheetName": "string",
- "keyDbFieldName": "string",
- "keepFld7": true,
- "insertEnabled": true,
- "safeMode": true,
- "emailNotification": "string",
- "deleteFile": true,
- "columnMapping": [
- {
- "dbFieldName": "string",
- "idMappingMode": 0,
- "fileColumnName": "string",
- "fixedValue": "string",
- "format": "string"
}
]
}, - "creationDate": "2019-08-24T14:15:22Z",
- "importState": "Scheduled",
- "isDeleted": true,
- "deletionDate": "2019-08-24T14:15:22Z",
- "schedulingInfos": {
- "scheduledDate": "2019-08-24T14:15:22Z"
}, - "lastImportLog": {
- "id": 0,
- "filename": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "errorMessage": "string",
- "totalRows": 0,
- "totalDuplicateKeys": 0,
- "nbValidations": 0,
- "nbErrorRows": 0,
- "nbBadFormattedRows": 0,
- "badFormattedRowNumbers": "string",
- "totalUpdates": 0,
- "nbUpdates": 0,
- "totalInserts": 0,
- "nbInserts": 0,
- "nbForbiddenInserts": 0
}
}, - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
Import to schedule
📝 You must only provide values for mandatory parameters named "parameters" and "schedulingInfos"
| id | integer <int32> Import identifier |
required | object (ImportParameters) This structure contains parameters for creating a subscriber import |
| creationDate | string <date-time> Date of creation of the import |
| importState | string Enum: "Scheduled" "InProgress" "Completed" "Paused" "PackageErrorCreation" Import state identifier
|
| isDeleted | boolean Indicates if the import is deleted |
| deletionDate | string <date-time> Indicates the date of deletion if if the import is deleted |
required | object (ImportSchedulingOnceInfos) Represents the scheduling informations of an import job |
object (ImportLog) Represents the result informations about the execution of an import |
{- "id": 0,
- "parameters": {
- "filename": "string",
- "startLine": 0,
- "columnNamesFirstLine": true,
- "textQualifier": "string",
- "columnDelimiter": "string",
- "rowDelimiter": "string",
- "codepage": 0,
- "sheetName": "string",
- "keyDbFieldName": "string",
- "keepFld7": true,
- "insertEnabled": true,
- "safeMode": true,
- "emailNotification": "string",
- "deleteFile": true,
- "columnMapping": [
- {
- "dbFieldName": "string",
- "idMappingMode": 0,
- "fileColumnName": "string",
- "fixedValue": "string",
- "format": "string"
}
]
}, - "creationDate": "2019-08-24T14:15:22Z",
- "importState": "Scheduled",
- "isDeleted": true,
- "deletionDate": "2019-08-24T14:15:22Z",
- "schedulingInfos": {
- "isRecurring": true,
- "recurringInfos": {
- "filenameTemplate": "string",
- "frequencyUnits": "Day",
- "frequency": 0,
- "monthDay": 0,
- "monthDay2": "string",
- "weekDays": "string",
- "time": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z"
}, - "scheduledDate": "2019-08-24T14:15:22Z"
}, - "lastImportLog": {
- "id": 0,
- "filename": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "errorMessage": "string",
- "totalRows": 0,
- "totalDuplicateKeys": 0,
- "nbValidations": 0,
- "nbErrorRows": 0,
- "nbBadFormattedRows": 0,
- "badFormattedRowNumbers": "string",
- "totalUpdates": 0,
- "nbUpdates": 0,
- "totalInserts": 0,
- "nbInserts": 0,
- "nbForbiddenInserts": 0
}
}{- "success": true,
- "data": {
- "id": 0,
- "parameters": {
- "filename": "string",
- "startLine": 0,
- "columnNamesFirstLine": true,
- "textQualifier": "string",
- "columnDelimiter": "string",
- "rowDelimiter": "string",
- "codepage": 0,
- "sheetName": "string",
- "keyDbFieldName": "string",
- "keepFld7": true,
- "insertEnabled": true,
- "safeMode": true,
- "emailNotification": "string",
- "deleteFile": true,
- "columnMapping": [
- {
- "dbFieldName": "string",
- "idMappingMode": 0,
- "fileColumnName": "string",
- "fixedValue": "string",
- "format": "string"
}
]
}, - "creationDate": "2019-08-24T14:15:22Z",
- "importState": "Scheduled",
- "isDeleted": true,
- "deletionDate": "2019-08-24T14:15:22Z",
- "schedulingInfos": {
- "isRecurring": true,
- "recurringInfos": {
- "filenameTemplate": "string",
- "frequencyUnits": "Day",
- "frequency": 0,
- "monthDay": 0,
- "monthDay2": "string",
- "weekDays": "string",
- "time": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z"
}, - "scheduledDate": "2019-08-24T14:15:22Z"
}, - "lastImportLog": {
- "id": 0,
- "filename": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "errorMessage": "string",
- "totalRows": 0,
- "totalDuplicateKeys": 0,
- "nbValidations": 0,
- "nbErrorRows": 0,
- "nbBadFormattedRows": 0,
- "badFormattedRowNumbers": "string",
- "totalUpdates": 0,
- "nbUpdates": 0,
- "totalInserts": 0,
- "nbInserts": 0,
- "nbForbiddenInserts": 0
}
}, - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
| filter.sortBy required | string Enum: "ID" "IdImportState" "ImportState" "Author" Field on which to sort the results |
| filter.order required | string Enum: "ASC" "DESC" Sort direction |
| filter.start | integer <int32> Starting line number for pagination (starts at 0) |
| filter.limit | integer <int32> Number of lines to retrieve (50 by default) |
{- "success": true,
- "data": {
- "totalCount": 0,
- "count": 0,
- "items": [
- {
- "id": 0,
- "filename": "string",
- "author": "string",
- "scheduledDate": "2019-08-24T14:15:22Z",
- "idImportState": 0,
- "importState": "string",
- "progression": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "totalRows": 0,
- "totalDuplicateKeys": 0,
- "nbValidations": 0,
- "nbErrorRows": 0,
- "nbBadFormattedRows": 0,
- "totalUpdates": 0,
- "nbUpdates": 0,
- "totalInserts": 0,
- "nbInserts": 0,
- "nbForbiddenInserts": 0
}
], - "start": 0
}, - "error": "string",
- "typeName": "string"
}Service managing subscribers in the main Mindbaz subscriber table.
📝If you want to add new fields to this table, you must use the fields api.
💡 If you need to add or modify a large volume of subscribers, it is recommended to use our file import service.
💡 It is recommended to first read the subscribers API doc here
For example,
| idsite required | string database identifier |
| filter.by required | string Enum: "Unspecified" "IdSubscriber" "IdClient" "Email" Indicates what value is passed in "Values" |
| filter.idFields required | Array of integers <int32> [ items <int32 > ] List of field IDs you wish to retrieve or leave null if all fields are to be retrieved. |
| filter.emailEncoding required | string Enum: "None" "MD5" "SHA1" "SHA2_256" "SHA2_512" Use MD5 here as a parameter if the e-mail address is encrypted in MD5(optional, emailEncoding defaults = NONE). Do not put 0x in the encrypted e-mail address.e.g. 89D1DEEA9F6C6637964083C98E986B30 |
| filter.values required | Array of strings Subscriber identifiers to fetch (email, idSubscriber ou idClient depending on the parameter "By") |
{- "success": true,
- "data": [
- {
- "id": 0,
- "fields": [
- {
- "idField": 0,
- "value": { }
}
]
}
], - "error": "string",
- "typeName": "string"
}The method returns an array of the updated subscribers. If the subscriber was not found, a null object is retured in the array.
Here is an example of a body schema to update 2 fields (field[7] and field[4]) to unsubscribe 2 users with field[0] in (1234,1235):
[
{
"id" : 1234,
"fields" : [ { "idField": 7, "value":1 },
{ "idField": 4, "value": "2023/10/04 17:39"} ]
},
{
"id" : 1235,
"fields" : [ { "idField": 7, "value":1 },
{ "idField": 4, "value": "2023/10/04 18:39" }]
}
]
| idsite required | string database identifier |
Array of subscribers to update!. ⚠️ 5000 subscribers max
| id required | integer <int32> Subscriber identifier (also field[0]) |
required | Array of objects (SubscriberFieldData) Fields containing suscriber data you want to update. |
[- {
- "id": 0,
- "fields": [
- {
- "idField": 0,
- "value": { }
}
]
}
]{- "success": true,
- "data": [
- {
- "id": 0,
- "fields": [
- {
- "idField": 0,
- "value": { }
}
]
}
], - "error": "string",
- "typeName": "string"
}The method returns an array of the inserted subscribers.
[
{
"fields" : [ { "idField": 1, "value":"test@mindbaz.com" } ]
}
]
The POST method will return a Subscriber Array Object like this (with the new generated Subscriber Ids) :
[
{
"id" : 4060006,
"fields" : [ { "idField": 0, "value":4060006 },
{ "idField": 1, "value":"test@mindbaz.com" },
{ "idField": 2, "value":"2023-10-09T10:32:06.0585536+02:00" },
{ "idField": 3, "value":"2023-10-09T10:32:06.0585536+02:00" },
{ "idField": 37, "value":"mindbaz.com" }
]
}
]
📝 The email is the only mandatory field for a subscriber creation. If you don't provide the email, you will get this error "Error, email to insert not found".Here is a example of a body schema to insert a new email subscriber and 2 updates (including a non-existent id):
[
{
"fields" : [ { "idField": 1, "value":"test2@mindbaz.com" } ]
},
{
"id" : 4060007, /* non existent id */
"fields" : [ { "idField": 14, "value":"my Last Name"},
{ "idField": 15, "value":"my First Name" } ]
},
{
"id" : 4060006,
"fields" : [ { "idField": 14, "value":"my Last Name2"},
{ "idField": 15, "value":"my First Name2" } ]
}
]
The POST method will return :
[
{
"id" : 4060017,
"fields" : [ { "idField": 0, "value":4060017 },
{ "idField": 1, "value":"test2@mindbaz.com" },
{ "idField": 2, "value":"2023-10-09T11:33:06.0585536+02:00" },
{ "idField": 3, "value":"2023-10-09T11:33:06.0585536+02:00" },
{ "idField": 37, "value":"mindbaz.com" }
]
},
null,
{
"id" : 4060006,
"fields" : [ { "idField": 0, "value":4060006 },
{ "idField": 14, "value":"my Last Name2" },
{ "idField": 15, "value":"my First Name2" }
]
}
]
| idsite required | string database identifier |
Subscribers to create
| id required | integer <int32> Subscriber identifier (also field[0]) |
required | Array of objects (SubscriberFieldData) Fields containing suscriber data you want to update. |
[- {
- "id": 0,
- "fields": [
- {
- "idField": 0,
- "value": { }
}
]
}
]{- "success": true,
- "data": [
- {
- "id": 0,
- "fields": [
- {
- "idField": 0,
- "value": { }
}
]
}
], - "error": "string",
- "typeName": "string"
}This method will remove subscribers from the database and returns the deleted IDs. If the identifier is not found, it will not be present in the result Array.
⚠️ Do not use this method to delete all your subscribers! It won't be effective! If you want to delete millions of rows, you can ask customer service.
| idsite required | string database identifier |
| idSubscribers required | Array of integers <int32> [ items <int32 > ] Subscribers identifiers to delete ⚠️ 5000 subscriber ids max |
{- "success": true,
- "data": [
- 0
], - "error": "string",
- "typeName": "string"
}Service managing archived subscribers.
Mindbaz automatically archives unsubscribers older than 2 years in an archive table. The objective of this process is to reduce the number of rows in the table containing the subscribers and thus have better performance.
You can use this method to query if an email belongs to the archive table.
The operation is the same as Subscribers Get Method.
| idsite required | string database identifier |
| filter.by required | string Enum: "Unspecified" "IdSubscriber" "IdClient" "Email" Indicates what value is passed in "Values" |
| filter.idFields required | Array of integers <int32> [ items <int32 > ] List of field IDs you wish to retrieve or leave null if all fields are to be retrieved. |
| filter.emailEncoding required | string Enum: "None" "MD5" "SHA1" "SHA2_256" "SHA2_512" Use MD5 here as a parameter if the e-mail address is encrypted in MD5(optional, emailEncoding defaults = NONE). Do not put 0x in the encrypted e-mail address.e.g. 89D1DEEA9F6C6637964083C98E986B30 |
| filter.values required | Array of strings Subscriber identifiers to fetch (email, idSubscriber ou idClient depending on the parameter "By") |
{- "success": true,
- "data": [
- {
- "id": 0,
- "fields": [
- {
- "idField": 0,
- "value": { }
}
]
}
], - "error": "string",
- "typeName": "string"
}This method is useful to unsubscribe your subscribers.
📝 You can unsubscribe in 3 ways:
💡 This method should be use to manage your unsubscriptions because it updates the unsubscription statistics of your campaigns. To do this, you must enter the IdSent parameter which you can retrieve using the config tag [[CONF.7]]
| idsite required | string database identifier |
Subscribers to unsubscribe:
| idSubscriber required | integer <int32> Subscriber identifier |
| from | string Enum: "Newsletter" "PartnerOffers" "SpecificNewsletter" Unsubscription target. |
| idSubscriptionField | integer <int32> Optional, field identifier of the LIST field managing subscription to a newsletter (0:NO;1:YES) in case of specific unsubscription (From="SpecificNewsletter") |
| idUnsubDateField | integer <int32> Optional, field identifier of the DATE field storing the unsubscription date in case of specific unsubscription (From="SpecificNewsletter") |
| idSent | integer <int32> Optional: sent identifier that generated the unsubscribe action. |
| unsubOnlySubscribers | boolean Optional: only allows subscribed e-mail addresses to unsubscribe (defaults to false). The method will return false if the e-mail address is not subscribed |
[- {
- "idSubscriber": 0,
- "from": "Newsletter",
- "idSubscriptionField": 0,
- "idUnsubDateField": 0,
- "idSent": 0,
- "unsubOnlySubscribers": true
}
]{- "success": true,
- "data": [
- true
], - "error": "string",
- "typeName": "string"
}This method is useful for subscribing or resubscribing an email that has already been subscribed to in the past. Thus the origin of the collect (stored in the date of first subscription and first origin fields) is not overwritten.
📝 This method updates the following fields :
The method returns a boolean array indicating if update has been done for each subscriber id.
| idsite required | string database identifier |
Subscriptions to update:
| idSubscriber required | integer <int32> Subscriber identifier |
| lastOrigin required | string Last provenance (stored in the field[6]) |
| date | string <date-time> Last subscription date (stored in the field[3]) |
| subscribeToPartnersOffers | boolean Indicates if the subscriber has subscribed to partners offers (stored in the field[8]) |
[- {
- "idSubscriber": 0,
- "lastOrigin": "string",
- "date": "2019-08-24T14:15:22Z",
- "subscribeToPartnersOffers": true
}
]{- "success": true,
- "data": [
- true
], - "error": "string",
- "typeName": "string"
}This method is useful to subscribe a new inserted email addresses with its origin information (stored in the date of first subscription and first origin fields) .
📝 This method updates the following fields :
The method returns a boolean array indicating if update has been done for each subscriber id.
| idsite required | string database identifier |
New subscriptions to set:
| idSubscriber required | integer <int32> Subscriber identifier |
| firstOrigin required | string First provenance (stored in the field[5] and field[6]) |
| date | string <date-time> Subscription date (stored in the field[2] and field[3]) |
| collectMode | string Enum: "ACHAT" "ECHANGE" "NATUREL" "AUTRE" (Optional) First origin collect mode (stored in the field[21]) |
| collectType | string Enum: "SITE" "JEU" "COREGISTRATION" "VIRAL" "FORM_EXT" "AUTRE" (Optional) First origin collect type (stored in the field[22]) |
| subscribeToPartnersOffers | boolean Indicates if the subscriber has subscribed to partners offers (stored in the field[8]) |
[- {
- "idSubscriber": 0,
- "firstOrigin": "string",
- "date": "2019-08-24T14:15:22Z",
- "collectMode": "ACHAT",
- "collectType": "SITE",
- "subscribeToPartnersOffers": true
}
]{- "success": true,
- "data": [
- true
], - "error": "string",
- "typeName": "string"
}| idAdvertisement required | integer <int32> Advertisement identifier |
| idsite required | string database identifier |
{- "success": true,
- "data": {
- "id": 0,
- "name": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "updateDate": "2019-08-24T14:15:22Z",
- "html": "string",
- "isArchive": true,
- "idUser": 0,
- "idAdvertiser": 0,
- "idAffiliation": 0,
- "idsThematic": [
- 0
]
}, - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
{- "success": true,
- "data": [
- {
- "id": 0,
- "name": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "updateDate": "2019-08-24T14:15:22Z",
- "html": "string",
- "isArchive": true,
- "idUser": 0,
- "idAdvertiser": 0,
- "idAffiliation": 0,
- "idsThematic": [
- 0
]
}
], - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
Advertisement to update.
| id | integer <int32> Advertisement identifier. |
| name required | string Advertisement name. |
| creationDate | string <date-time> Creation date of the advertisement. |
| updateDate | string <date-time> Last update date of the advertisement. |
| html required | string HTML content of the advertisement. |
| isArchive | boolean Indicates if the advertisement has been archived. |
| idUser | integer <int32> Identifier of the user who created the ad. |
| idAdvertiser | integer <int32> Identifier of the common adviser associated with the ad. |
| idAffiliation | integer <int32> Identifier of the common affiliation platform associated with the ad. |
| idsThematic | Array of integers <int32> [ items <int32 > ] Thematic identifier associated with the ad. |
{- "id": 0,
- "name": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "updateDate": "2019-08-24T14:15:22Z",
- "html": "string",
- "isArchive": true,
- "idUser": 0,
- "idAdvertiser": 0,
- "idAffiliation": 0,
- "idsThematic": [
- 0
]
}{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
Advertisement to create.
| id | integer <int32> Advertisement identifier. |
| name required | string Advertisement name. |
| creationDate | string <date-time> Creation date of the advertisement. |
| updateDate | string <date-time> Last update date of the advertisement. |
| html required | string HTML content of the advertisement. |
| isArchive | boolean Indicates if the advertisement has been archived. |
| idUser | integer <int32> Identifier of the user who created the ad. |
| idAdvertiser | integer <int32> Identifier of the common adviser associated with the ad. |
| idAffiliation | integer <int32> Identifier of the common affiliation platform associated with the ad. |
| idsThematic | Array of integers <int32> [ items <int32 > ] Thematic identifier associated with the ad. |
{- "id": 0,
- "name": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "updateDate": "2019-08-24T14:15:22Z",
- "html": "string",
- "isArchive": true,
- "idUser": 0,
- "idAdvertiser": 0,
- "idAffiliation": 0,
- "idsThematic": [
- 0
]
}{- "success": true,
- "data": {
- "id": 0,
- "name": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "updateDate": "2019-08-24T14:15:22Z",
- "html": "string",
- "isArchive": true,
- "idUser": 0,
- "idAdvertiser": 0,
- "idAffiliation": 0,
- "idsThematic": [
- 0
]
}, - "error": "string",
- "typeName": "string"
}| idAdvertiser required | integer <int32> Advertiser identifier |
| idsite required | string database identifier |
{- "success": true,
- "data": {
- "id": 0,
- "name": "string",
- "sector": "NoSector"
}, - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
Advertiser to update.
| id | integer <int32> Advertiser identifier. |
| name required | string Advertiser name. |
| sector | string Enum: "NoSector" "HighTechAndTelecoms" "Male" "Household" "Administrative" "BeautyHealthWelness" "Food" "Children" "Travel" "Other" "Fashion" Associated sector. |
{- "id": 0,
- "name": "string",
- "sector": "NoSector"
}{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
Advertiser to create.
| id | integer <int32> Advertiser identifier. |
| name required | string Advertiser name. |
| sector | string Enum: "NoSector" "HighTechAndTelecoms" "Male" "Household" "Administrative" "BeautyHealthWelness" "Food" "Children" "Travel" "Other" "Fashion" Associated sector. |
{- "id": 0,
- "name": "string",
- "sector": "NoSector"
}{- "success": true,
- "data": {
- "id": 0,
- "name": "string",
- "sector": "NoSector"
}, - "error": "string",
- "typeName": "string"
}| idAffiliation required | integer <int32> Affiliation identifier |
| idsite required | string database identifier |
{- "success": true,
- "data": {
- "id": 0,
- "name": "string",
- "webSite": "string"
}, - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
Affiliation to update.
| id | integer <int32> Segment identifier. |
| name required | string Platform name. |
| webSite required | string Website url. |
{- "id": 0,
- "name": "string",
- "webSite": "string"
}{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
Affiliation to create.
| id | integer <int32> Segment identifier. |
| name required | string Platform name. |
| webSite required | string Website url. |
{- "id": 0,
- "name": "string",
- "webSite": "string"
}{- "success": true,
- "data": {
- "id": 0,
- "name": "string",
- "webSite": "string"
}, - "error": "string",
- "typeName": "string"
}| idPicture required | integer <int32> Picture id |
| idsite required | string database identifier |
New picture name
"string"{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
| idCampaign required | integer <int32> Campaign id |
{- "success": true,
- "data": {
- "idPicture": 0,
- "name": "string",
- "author": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "lastUpdateDate": "2019-08-24T14:15:22Z",
- "fileSize": 0,
- "pictureDim": "string",
- "fileName": "string",
- "filePath": "string",
- "url": "string"
}, - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
Directory to create.
| id | integer <int32> Directory identifier |
| name | string Directory name |
{- "id": 0,
- "name": "string"
}{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
Directory to create.
| name | string Directory name |
| isSystem | boolean Indicates if the directory is a system directory |
| idParent | integer <int32> Identifier of the parent directory |
| dirType | string Enum: "Unknown" "Campaign" "Filter" "Pub" "Image" "URL" "Config" "Link" Type of the directory |
{- "name": "string",
- "isSystem": true,
- "idParent": 0,
- "dirType": "Unknown"
}{- "success": true,
- "data": 0,
- "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
| filter.location | string Enum: "All" "MyFavorites" "MyCreated" "Archives" Place to search configurations |
| filter.name | string Name to search |
| filter.fileName | string File name to search |
| filter.sortBy required | string Enum: "Name" "Id" "LastUpdate" "Author" "RandomMode" "PictureSize" "FileName" Field on which to sort the results |
| filter.order required | string Enum: "ASC" "DESC" Sort direction |
| filter.start | integer <int32> Starting line number for pagination (starts at 0) |
| filter.limit | integer <int32> Number of lines to retrieve (50 by default) |
{- "success": true,
- "data": {
- "totalCount": 0,
- "count": 0,
- "items": [
- {
- "idPicture": 0,
- "name": "string",
- "author": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "lastUpdateDate": "2019-08-24T14:15:22Z",
- "fileSize": 0,
- "pictureDim": "string",
- "fileName": "string",
- "filePath": "string",
- "url": "string"
}
], - "start": 0
}, - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
Picture to add
| name required | string File name without extension |
| fileName required | string File name with extension |
| base64Content required | string Base64 encoded binary content of the file |
| idDirectory | integer <int32> Identifiant du répertoire dans lequel se trouve le fichier |
{- "name": "string",
- "fileName": "string",
- "base64Content": "string",
- "idDirectory": 0
}{- "success": true,
- "data": {
- "idPicture": 0,
- "name": "string",
- "author": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "lastUpdateDate": "2019-08-24T14:15:22Z",
- "fileSize": 0,
- "pictureDim": "string",
- "fileName": "string",
- "filePath": "string",
- "url": "string"
}, - "error": "string",
- "typeName": "string"
}Service managing sending configurations.
📝 Note:
Sending configurations are classifications used to store sending parameters common to several campaigns (such as sender email address & alias or reply-to address & alias). They also store the HTML headers and footers used in your campaigns.
| idsite required | string database identifier |
| filter.location | string Enum: "All" "MyFavorites" "MyCreated" "Archives" Place to search configurations |
| filter.name | string Name to search |
| filter.idConfig | integer <int32> Config identifier for a single retrieval |
| filter.deleteEmailsAfter | integer <int32> Delete email after X days (min:15 or null) |
| filter.sortBy required | string Enum: "Name" "Id" "LastUpdate" "Author" Field on which to sort the results |
| filter.order required | string Enum: "ASC" "DESC" Sort direction |
| filter.start | integer <int32> Starting line number for pagination (starts at 0) |
| filter.limit | integer <int32> Number of lines to retrieve (50 by default) |
{- "success": true,
- "data": {
- "totalCount": 0,
- "count": 0,
- "items": [
- {
- "config": {
- "id": 0,
- "idUser": 0,
- "name": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "lastModifiedDate": "2019-08-24T14:15:22Z",
- "senderEMail": "string",
- "senderAlias": "string",
- "recipientAlias": "string",
- "responseEMail": "string",
- "responseAlias": "string",
- "headerHtml": "string",
- "headerTxt": "string",
- "footerHtml": "string",
- "footerTxt": "string",
- "unsubHtml": "string",
- "unsubTxt": "string",
- "objectPrefixBAT": "string",
- "senderAliasPrefixBAT": "string",
- "deleteEmailsAfter": 0,
- "isArchive": true
}, - "author": "string",
- "isFavourite": true
}
], - "start": 0
}, - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
Configuration to update.
| id | integer <int32> Configuration identifier |
| idUser | integer <int32> Identifier of the user who created the configuration |
| name required | string Configuration name |
| creationDate | string <date-time> Creation date |
| lastModifiedDate | string <date-time> Last update date |
| senderEMail required | string Mail of sender |
| senderAlias | string Sender alias |
| recipientAlias | string Alias of recipient |
| responseEMail required | string Answer email |
| responseAlias | string Answer name |
| headerHtml | string Html of header |
| headerTxt | string Header text content |
| footerHtml | string Html of footer |
| footerTxt | string Footer text content |
| unsubHtml | string Html content of unsubscription link |
| unsubTxt | string Text content of unsubscription area |
| objectPrefixBAT | string Prefix added to BAT objects (50 carac max), e.g. "[BAT]", allows BAT mailings to be easily identified |
| senderAliasPrefixBAT | string Prefix added to BAT sender alias (50 carac max), e.g. "[BAT]", allows BAT mailings to be easily identified |
| deleteEmailsAfter | integer <int32> Delete email after X days (min:15 or null) |
| isArchive | boolean Indicates if the configuration is archived |
{- "id": 0,
- "idUser": 0,
- "name": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "lastModifiedDate": "2019-08-24T14:15:22Z",
- "senderEMail": "string",
- "senderAlias": "string",
- "recipientAlias": "string",
- "responseEMail": "string",
- "responseAlias": "string",
- "headerHtml": "string",
- "headerTxt": "string",
- "footerHtml": "string",
- "footerTxt": "string",
- "unsubHtml": "string",
- "unsubTxt": "string",
- "objectPrefixBAT": "string",
- "senderAliasPrefixBAT": "string",
- "deleteEmailsAfter": 0,
- "isArchive": true
}{- "success": true,
- "data": {
- "id": 0,
- "idUser": 0,
- "name": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "lastModifiedDate": "2019-08-24T14:15:22Z",
- "senderEMail": "string",
- "senderAlias": "string",
- "recipientAlias": "string",
- "responseEMail": "string",
- "responseAlias": "string",
- "headerHtml": "string",
- "headerTxt": "string",
- "footerHtml": "string",
- "footerTxt": "string",
- "unsubHtml": "string",
- "unsubTxt": "string",
- "objectPrefixBAT": "string",
- "senderAliasPrefixBAT": "string",
- "deleteEmailsAfter": 0,
- "isArchive": true
}, - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
Configuration to create.
| id | integer <int32> Configuration identifier |
| idUser | integer <int32> Identifier of the user who created the configuration |
| name required | string Configuration name |
| creationDate | string <date-time> Creation date |
| lastModifiedDate | string <date-time> Last update date |
| senderEMail required | string Mail of sender |
| senderAlias | string Sender alias |
| recipientAlias | string Alias of recipient |
| responseEMail required | string Answer email |
| responseAlias | string Answer name |
| headerHtml | string Html of header |
| headerTxt | string Header text content |
| footerHtml | string Html of footer |
| footerTxt | string Footer text content |
| unsubHtml | string Html content of unsubscription link |
| unsubTxt | string Text content of unsubscription area |
| objectPrefixBAT | string Prefix added to BAT objects (50 carac max), e.g. "[BAT]", allows BAT mailings to be easily identified |
| senderAliasPrefixBAT | string Prefix added to BAT sender alias (50 carac max), e.g. "[BAT]", allows BAT mailings to be easily identified |
| deleteEmailsAfter | integer <int32> Delete email after X days (min:15 or null) |
| isArchive | boolean Indicates if the configuration is archived |
{- "id": 0,
- "idUser": 0,
- "name": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "lastModifiedDate": "2019-08-24T14:15:22Z",
- "senderEMail": "string",
- "senderAlias": "string",
- "recipientAlias": "string",
- "responseEMail": "string",
- "responseAlias": "string",
- "headerHtml": "string",
- "headerTxt": "string",
- "footerHtml": "string",
- "footerTxt": "string",
- "unsubHtml": "string",
- "unsubTxt": "string",
- "objectPrefixBAT": "string",
- "senderAliasPrefixBAT": "string",
- "deleteEmailsAfter": 0,
- "isArchive": true
}{- "success": true,
- "data": {
- "id": 0,
- "idUser": 0,
- "name": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "lastModifiedDate": "2019-08-24T14:15:22Z",
- "senderEMail": "string",
- "senderAlias": "string",
- "recipientAlias": "string",
- "responseEMail": "string",
- "responseAlias": "string",
- "headerHtml": "string",
- "headerTxt": "string",
- "footerHtml": "string",
- "footerTxt": "string",
- "unsubHtml": "string",
- "unsubTxt": "string",
- "objectPrefixBAT": "string",
- "senderAliasPrefixBAT": "string",
- "deleteEmailsAfter": 0,
- "isArchive": true
}, - "error": "string",
- "typeName": "string"
}| idConfig required | integer <int32> Configuration identifier to duplicate. |
| idsite required | string database identifier |
{- "success": true,
- "data": {
- "id": 0,
- "idUser": 0,
- "name": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "lastModifiedDate": "2019-08-24T14:15:22Z",
- "senderEMail": "string",
- "senderAlias": "string",
- "recipientAlias": "string",
- "responseEMail": "string",
- "responseAlias": "string",
- "headerHtml": "string",
- "headerTxt": "string",
- "footerHtml": "string",
- "footerTxt": "string",
- "unsubHtml": "string",
- "unsubTxt": "string",
- "objectPrefixBAT": "string",
- "senderAliasPrefixBAT": "string",
- "deleteEmailsAfter": 0,
- "isArchive": true
}, - "error": "string",
- "typeName": "string"
}Service managing Tags.
📝 Note:
Tags allow you to categorize items created in Mindbaz by applying "labels" to them, which you can then use in filters.
You can use tags to categorize:
| idDirectory required | integer <int32> Directory identifier |
| idsite required | string database identifier |
{- "success": true,
- "data": {
- "id": 0,
- "name": "string",
- "isSystem": true,
- "idParent": 0,
- "dirType": "Unknown"
}, - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
| name required | string Directory name |
{- "success": true,
- "data": {
- "id": 0,
- "name": "string",
- "isSystem": true,
- "idParent": 0,
- "dirType": "Unknown"
}, - "error": "string",
- "typeName": "string"
}| idType required | string Default: "Unknown" Enum: "Unknown" "Campaign" "Filter" "Pub" "Image" "URL" "Config" "Link" Directory type |
| idsite required | string database identifier |
{- "success": true,
- "data": [
- {
- "id": 0,
- "name": "string",
- "isSystem": true,
- "idParent": 0,
- "dirType": "Unknown"
}
], - "error": "string",
- "typeName": "string"
}| idThematic required | integer <int32> Thematic identifier |
| idsite required | string database identifier |
{- "success": true,
- "data": {
- "idThematic": 0,
- "idParentThematic": 0,
- "name": "string",
- "description": "string",
- "isEnabled": true
}, - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
Thematic to update.
| idThematic | integer <int32> Thematic identifier. |
| idParentThematic | integer <int32> Parent thematic identifier. |
| name required | string Thematic name. |
| description | string Thematic description. |
| isEnabled | boolean Indicates if the thematic is enabled. |
{- "idThematic": 0,
- "idParentThematic": 0,
- "name": "string",
- "description": "string",
- "isEnabled": true
}{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
Thematic to create.
| idThematic | integer <int32> Thematic identifier. |
| idParentThematic | integer <int32> Parent thematic identifier. |
| name required | string Thematic name. |
| description | string Thematic description. |
| isEnabled | boolean Indicates if the thematic is enabled. |
{- "idThematic": 0,
- "idParentThematic": 0,
- "name": "string",
- "description": "string",
- "isEnabled": true
}{- "success": true,
- "data": {
- "idThematic": 0,
- "idParentThematic": 0,
- "name": "string",
- "description": "string",
- "isEnabled": true
}, - "error": "string",
- "typeName": "string"
}Service managing emailing targets.
An emailing target allows you to select subscribers from your MINDBAZ database according to several criteria (called filters):
You can retrieve your target's main parameters and see what type of filters it has.
💡 If you want a brief description of the filter contents, you can use this GET method
| idTarget required | integer <int32> Target identifier |
| idsite required | string database identifier |
{- "success": true,
- "data": {
- "id": 0,
- "parameters": {
- "name": "string",
- "isTestTarget": true,
- "pctSelect": 0,
- "maxSelect": 0,
- "isRandomMode": true,
- "excludedTargets": [
- 0
]
}, - "creationDate": "2019-08-24T14:15:22Z",
- "lastUpdateDate": "2019-08-24T14:15:22Z",
- "targetType": "Unknown",
- "hasFieldFilter": true,
- "hasGeolocFilter": true,
- "hasSqlFilter": true,
- "hasEmailPressureFilter": true,
- "hasBehaviourFilter": true,
- "hasReactivityFilter": true,
- "hasSendingFilter": true,
- "hasFileFilter": true,
- "hasThematicFilter": true,
- "isSafe": true,
- "isArchived": true
}, - "error": "string",
- "typeName": "string"
}You can modify the main parameters of a target with this method. If you want to modify target filters, you must use the PUT method of the corresponding filter.
| idTarget required | integer <int32> Target identifier to update |
| idsite required | string database identifier |
⚠️ Attention, it is not a PATCH method! So you need to provide every parameter values, otherwise default values will be applied to your target!!
Main target parameters to update:
| name required | string Name of target (255 charac max) |
| isTestTarget | boolean true if the target will be used exclusively to test your email campaigns |
| pctSelect | integer <int32> Percentage of subscribers to select (defaults to 100). |
| maxSelect | integer <int32> Max number of subscribers to select (if defined, maxSelect should replace pctSelect). |
| isRandomMode | boolean True to activate random mode (useful where percentage is lower than 100). |
| excludedTargets | Array of integers <int32> [ items <int32 > ] List of target IDs to be excluded from the current target. |
{- "name": "string",
- "isTestTarget": true,
- "pctSelect": 0,
- "maxSelect": 0,
- "isRandomMode": true,
- "excludedTargets": [
- 0
]
}{- "success": true,
- "data": {
- "id": 0,
- "parameters": {
- "name": "string",
- "isTestTarget": true,
- "pctSelect": 0,
- "maxSelect": 0,
- "isRandomMode": true,
- "excludedTargets": [
- 0
]
}, - "creationDate": "2019-08-24T14:15:22Z",
- "lastUpdateDate": "2019-08-24T14:15:22Z",
- "targetType": "Unknown",
- "hasFieldFilter": true,
- "hasGeolocFilter": true,
- "hasSqlFilter": true,
- "hasEmailPressureFilter": true,
- "hasBehaviourFilter": true,
- "hasReactivityFilter": true,
- "hasSendingFilter": true,
- "hasFileFilter": true,
- "hasThematicFilter": true,
- "isSafe": true,
- "isArchived": true
}, - "error": "string",
- "typeName": "string"
}⚠️ Be careful: target deletion can be dangerous if it is used in campaign segments.
💡 If you are in doubt, it is recommended to archive the target instead of deleting it. Unlike deletion, archiving is not irreversible
| idTarget required | integer <int32> Target identifier to delete |
| idsite required | string database identifier |
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}This method returns all targets that are not archived.
💡 If you have a lot of targets, it's best to use the paginated version of this method here
| idsite required | string database identifier |
| isAutomation | boolean Default: false (obsolete) True if you want to retrieve only automation targets |
{- "success": true,
- "data": {
- "totalCount": 0,
- "count": 0,
- "items": [
- {
- "idTarget": 0,
- "name": "string",
- "author": "string",
- "lastUpdateDate": "2019-08-24T14:15:22Z",
- "targetType": "Unknown",
- "isEditable": true,
- "isTestTarget": true,
- "isAutomation": true,
- "isSafe": true,
- "pctSelect": 0,
- "maxSelect": 0,
- "isRandomMode": true,
- "directories": "string"
}
], - "start": 0
}, - "error": "string",
- "typeName": "string"
}The method returns an array of subscriberIds (integer)
If the targetId doesn't exist, a "Target not found" Exception is thrown.
| idTarget required | integer <int32> Target Identifier to execute |
| idsite required | string database identifier |
{- "success": true,
- "data": [
- 0
], - "error": "string",
- "typeName": "string"
}| idTarget required | integer <int32> |
| idsite required | string database identifier |
| property required | string |
| direction required | string |
| start required | integer <int32> |
| page required | integer <int32> |
| limit required | integer <int32> |
{- "success": true,
- "data": [
- {
- "id": 0,
- "fields": [
- {
- "idField": 0,
- "value": { }
}
]
}
], - "error": "string",
- "typeName": "string"
}This method can be used if you want a brief description of a target content (in french with html tags).
e.g.
SELECTION BY FIELDS:
Subscriber Status = optin
SELECTION BY FILE:
Tous les inscrits présents dans le fichier filterfile\md5.txt en mappant sur le champ md5_fld1
SELECTION BY FIELDS:
Subscriber Status = optin
SELECTION BY BEHAVIOUR:
Tous les inscrits qui ont ouvert depuis 5 jours, avec entre 2 et 4 actions
CIBLE THÉMATIQUE:
Tous les inscrits qui ont cliqué
depuis 730 jours, avec entre 3 et 4 actions
sur les thematiques d'id (en union): 23
| idTarget required | integer <int32> Target identifier |
| idsite required | string database identifier |
{- "success": true,
- "data": "string",
- "error": "string",
- "typeName": "string"
}A target is considered safe if it targets subscribers. To do this, you need to include a filter by field 'subscriber status' = 'subscribed' (fld7=0).
A target that is not safe cannot be used in an email campaign.
| idTarget required | integer <int32> Target identifier |
| idsite required | string database identifier |
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}This method duplicates a target and returns the new Target Object with its target identifier.
| idsite required | string database identifier |
Target identifier to duplicate.
0{- "success": true,
- "data": {
- "id": 0,
- "parameters": {
- "name": "string",
- "isTestTarget": true,
- "pctSelect": 0,
- "maxSelect": 0,
- "isRandomMode": true,
- "excludedTargets": [
- 0
]
}, - "creationDate": "2019-08-24T14:15:22Z",
- "lastUpdateDate": "2019-08-24T14:15:22Z",
- "targetType": "Unknown",
- "hasFieldFilter": true,
- "hasGeolocFilter": true,
- "hasSqlFilter": true,
- "hasEmailPressureFilter": true,
- "hasBehaviourFilter": true,
- "hasReactivityFilter": true,
- "hasSendingFilter": true,
- "hasFileFilter": true,
- "hasThematicFilter": true,
- "isSafe": true,
- "isArchived": true
}, - "error": "string",
- "typeName": "string"
}This method executes the target query and gives the number of users in the result.
⚠️ Please note, depending on the complexity of the target, the counting may take longer or shorter.
| idTarget required | integer <int32> Target identifier to count |
| idsite required | string database identifier |
{- "success": true,
- "data": 0,
- "error": "string",
- "typeName": "string"
}Archiving a target allows you to no longer make it visible in the target manager interface. However, API calls with an archived target id will still work.
📝 An archived target can be unarchived with this method
💡 An email campaign will not fail if it uses a target archived in its segments
| idTarget required | integer <int32> Target identifier to archive |
| idsite required | string database identifier |
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}Unarchiving a target allows you to make it visible again in the target manager interface.
| idTarget required | integer <int32> Target identifier to unarchive |
| idsite required | string database identifier |
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}This method is useful for searching for a target by name or for listing all targets with a tag
The result of the method is windowed. You can chose the right page with "Start" and "Limit" filter parameters.
| idsite required | string database identifier |
| filter.location required | string Enum: "All" "MyFavorites" "MyCreated" "Archives" "MyTests" Place to search targets:
💡 You can also pass a tag (diretory) ID in this parameter. You will get the targets marked with this tag. |
| filter.name | string Name of target to search |
| filter.sortBy required | string Enum: "Name" "IdTarget" "LastUpdateDate" "Author" "IsTestTarget" "IsRandomMode" "Directories" Field on which to sort the results |
| filter.order required | string Enum: "ASC" "DESC" Sort direction |
| filter.start | integer <int32> Starting line number for pagination (starts at 0) |
| filter.limit | integer <int32> Number of lines to retrieve (50 by default) |
{- "success": true,
- "data": {
- "totalCount": 0,
- "count": 0,
- "items": [
- {
- "idTarget": 0,
- "name": "string",
- "author": "string",
- "lastUpdateDate": "2019-08-24T14:15:22Z",
- "targetType": "Unknown",
- "isEditable": true,
- "isTestTarget": true,
- "isAutomation": true,
- "isSafe": true,
- "pctSelect": 0,
- "maxSelect": 0,
- "isRandomMode": true,
- "directories": "string"
}
], - "start": 0
}, - "error": "string",
- "typeName": "string"
}This POST method allow you to create the main object for you target and get a Target Identifier.
After that, depending on your targeting criteria, you need to create the right filter objects to assign to your Target ID
| idsite required | string database identifier |
Target parameters to create
| name required | string Name of target (255 charac max) |
| isTestTarget | boolean true if the target will be used exclusively to test your email campaigns |
| pctSelect | integer <int32> Percentage of subscribers to select (defaults to 100). |
| maxSelect | integer <int32> Max number of subscribers to select (if defined, maxSelect should replace pctSelect). |
| isRandomMode | boolean True to activate random mode (useful where percentage is lower than 100). |
| excludedTargets | Array of integers <int32> [ items <int32 > ] List of target IDs to be excluded from the current target. |
{- "name": "string",
- "isTestTarget": true,
- "pctSelect": 0,
- "maxSelect": 0,
- "isRandomMode": true,
- "excludedTargets": [
- 0
]
}{- "success": true,
- "data": {
- "id": 0,
- "parameters": {
- "name": "string",
- "isTestTarget": true,
- "pctSelect": 0,
- "maxSelect": 0,
- "isRandomMode": true,
- "excludedTargets": [
- 0
]
}, - "creationDate": "2019-08-24T14:15:22Z",
- "lastUpdateDate": "2019-08-24T14:15:22Z",
- "targetType": "Unknown",
- "hasFieldFilter": true,
- "hasGeolocFilter": true,
- "hasSqlFilter": true,
- "hasEmailPressureFilter": true,
- "hasBehaviourFilter": true,
- "hasReactivityFilter": true,
- "hasSendingFilter": true,
- "hasFileFilter": true,
- "hasThematicFilter": true,
- "isSafe": true,
- "isArchived": true
}, - "error": "string",
- "typeName": "string"
}Service managing a filter by field inside your target.
📝 Note:
A filter by field allows you to target your subscribers who have their fields that meet very specific criteria.
E.g.
Returns a TargetFieldFilter object describing subscriber field operations.
If the target has no filter by field, the returned object will have its filter param to null
| idTarget required | integer <int32> Target identifier |
| idsite required | string database identifier |
{- "success": true,
- "data": {
- "idTarget": 0,
- "isEnabled": true,
- "filters": [
- {
- "idField": 0,
- "operator": "HasValue",
- "value": "string"
}
]
}, - "error": "string",
- "typeName": "string"
}If the target already has a filter by field, the old one will be automatically replaced.
| idsite required | string database identifier |
Filter by field
| idTarget required | integer <int32> Target identifier |
| isEnabled | boolean Indicates if the filter is active |
Array of objects (FieldFilter) List of filters by field. |
{- "idTarget": 0,
- "isEnabled": true,
- "filters": [
- {
- "idField": 0,
- "operator": "HasValue",
- "value": "string"
}
]
}{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}Service managing a behaviour filter inside your target.
📝 Note:
A filter by behaviour allows you to select subscribers who have (or have not) performed an action (opening or clicking) for X days
| idTarget required | integer <int32> Target identifier |
| idsite required | string database identifier |
{- "success": true,
- "data": {
- "idTarget": 0,
- "isEnabled": true,
- "didAnAction": true,
- "action": "Click",
- "behaviourType": "NbDays",
- "nbDaysAgo": 0,
- "nbTime": "string",
- "nbTimeAndDayOperator": "AtLeast",
- "idSentList": "string",
- "idSentNames": "string",
- "combinaisonMode": "Union",
- "idCampaign": "string",
- "filterMpp": true
}, - "error": "string",
- "typeName": "string"
}If the target already has a filter by behaviour, the old one will be automatically replaced.
| idsite required | string database identifier |
Filter by behaviour
| idTarget required | integer <int32> Target identifier |
| isEnabled | boolean Indicates if the filter is active |
| didAnAction | boolean Indicates if the subscriber did the specified action (true) or not (false) |
| action | string Enum: "Click" "Open" Action did by the subscriber: |
| behaviourType | string Enum: "NbDays" "Sent" "Campaign" Type of behaviour |
| nbDaysAgo | integer <int32> Specify a number of days between 0 and 180 days for the behaviour type "NbDays" |
| nbTime | string Specifies the number of times for the behavior (action performed xx times). |
| nbTimeAndDayOperator | string Enum: "AtLeast" "Exactly" "AtMost" "Between" Specify a number of days between 0 and 180 days for the behaviour type "NbDays" |
| idSentList | string IdSent List (=Identifiers of a sent campaign segment) (separated by ;) to select in filter for the behaviour type "Sent". |
| idSentNames | string (Read only) Descriptions of mailings selected in idSentList (behaviourType = "Sent"). |
| combinaisonMode | string Enum: "Union" "Intersection" Mailings combination mode in IdSentList if more than one mailing is specified (behaviourType = "Sent"): |
| idCampaign | string Campaign identifiers (separated by ;) to use if BehaviourType="Campaign". |
| filterMpp | boolean Exclude Apple MPP opens |
{- "idTarget": 0,
- "isEnabled": true,
- "didAnAction": true,
- "action": "Click",
- "behaviourType": "NbDays",
- "nbDaysAgo": 0,
- "nbTime": "string",
- "nbTimeAndDayOperator": "AtLeast",
- "idSentList": "string",
- "idSentNames": "string",
- "combinaisonMode": "Union",
- "idCampaign": "string",
- "filterMpp": true
}{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}Service managing a filter by theme inside your target.
📝 Note:
You can manage your thematics with the thematic api here
And you can assign a theme during the campaign creation process (e.g. Campaign POST method or Tracked Link POST method)
Thus, if you use themes in your campaigns, you can target subscribers who open campaigns of a particular theme
| idTarget required | integer <int32> Target identifier |
| idsite required | string database identifier |
{- "success": true,
- "data": {
- "idTarget": 0,
- "isFilterEnabled": true,
- "fromNbDays": 0,
- "nbTime": "string",
- "nbTimeAndDayOperator": "AtLeast",
- "didAnAction": true,
- "action": "Click",
- "combinaison": "Union",
- "idsThematics": [
- 0
], - "filterMpp": true
}, - "error": "string",
- "typeName": "string"
}If the target already has a filter by thematic, the old one will be automatically replaced.
| idsite required | string database identifier |
Filter by thematic
| idTarget required | integer <int32> Target identifier |
| isFilterEnabled | boolean Indicates if the filter is activated |
| fromNbDays required | integer <int32> Number of days since the event |
| nbTime | string Specifies the number of times for the thematic (action performed xx times). |
| nbTimeAndDayOperator | string Enum: "AtLeast" "Exactly" "AtMost" "Between" Type of operation |
| didAnAction | boolean Indicates if the subscriber did the specified action (true) or not (false) |
| action | string Enum: "Click" "Open" Action did by the subscriber on the thematics: |
| combinaison | string Enum: "Union" "Intersection" Combination mode to apply if more than one campaign/link with the thematics selected was found. |
| idsThematics | Array of integers <int32> [ items <int32 > ] Array of Thematics Identifiers to use in the filter |
| filterMpp | boolean Exclude Apple MPP opens |
{- "idTarget": 0,
- "isFilterEnabled": true,
- "fromNbDays": 0,
- "nbTime": "string",
- "nbTimeAndDayOperator": "AtLeast",
- "didAnAction": true,
- "action": "Click",
- "combinaison": "Union",
- "idsThematics": [
- 0
], - "filterMpp": true
}{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}Service managing a filter by sending inside your target.
📝 Note:
A filter by behaviour allows you to select subscribers who have (or have not) received your emailing campaign.
| idTarget required | integer <int32> Target identifier |
| idsite required | string database identifier |
{- "success": true,
- "data": {
- "combinaisonMode": "Union",
- "idTarget": 0,
- "isFilterEnabled": true,
- "hasReceived": true,
- "idSentList": "string",
- "idSentNames": "string",
- "idsCampaigns": "string"
}, - "error": "string",
- "typeName": "string"
}If the target already has a filter by sending, the old one will be automatically replaced.
| idsite required | string database identifier |
Filter by mailing
| combinaisonMode | string Enum: "Union" "Intersection" Mode of mailing combinations within idSentList if multiple mailings. |
| idTarget required | integer <int32> Target identifier |
| isFilterEnabled required | boolean Indicates if the filter is activated |
| hasReceived required | boolean Has / has not received field |
| idSentList | string IdSent List (=Identifiers of a sent campaign segment) (separated by ;) to select in filter, or empty if using campaigns (see IdsCampaigns) |
| idSentNames | string (readonly) List of descriptions of sendings selected in idSentList (2000 carac max) |
| idsCampaigns | string Campaigns identifiers separated by ; for using campaigns mailings (from the last 60 days), or empty if using IdSentList |
{- "combinaisonMode": "Union",
- "idTarget": 0,
- "isFilterEnabled": true,
- "hasReceived": true,
- "idSentList": "string",
- "idSentNames": "string",
- "idsCampaigns": "string"
}{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}Service managing an email pressure filter inside your target.
📝 Note:
An email pressure filter lets you target subscribers in your database based on the number of campaigns received during a given period.
You can choose between 4 types of period:
| idTarget required | integer <int32> Target identifier |
| idsite required | string database identifier |
{- "success": true,
- "data": {
- "idTarget": 0,
- "isFilterEnabled": true,
- "campaignType": "string",
- "operatorRequest": "GREATER",
- "nbRequest": 0,
- "thisWeek": true,
- "lastWeek": true,
- "twoWeeksAgo": true,
- "threeWeeksAgo": true,
- "fourWeeksAgo": true,
- "type": "Today",
- "today": true,
- "betweenStartDate": "2019-08-24T14:15:22Z",
- "betweenEndDate": "2019-08-24T14:15:22Z",
- "fromTime": 0,
- "timeType": 0
}, - "error": "string",
- "typeName": "string"
}If the target already has a filter by emailing pressure, the old one will be automatically replaced.
| idsite required | string database identifier |
Filter by pressure
| idTarget required | integer <int32> Target identifier |
| isFilterEnabled | boolean |
| campaignType | string CampaignType filter (optional): |
| operatorRequest | string Enum: "GREATER" "GREATER_EQUAL" "EQUAL" "LOWER_EQUAL" "LOWER" Pressure operator (to apply on NbRequest parameter) :
|
| nbRequest | integer <int32> Number of actions to respect in emailing pressure (used with OperatorRequest) |
| thisWeek | boolean Apply emailing pressure to the current week (which starts on Monday) |
| lastWeek | boolean Apply emailing pressure to the last week (which starts on last Monday) |
| twoWeeksAgo | boolean Apply email pressure to the week starting on Monday 2 weeks ago |
| threeWeeksAgo | boolean Apply email pressure to the week starting on Monday 3 weeks ago |
| fourWeeksAgo | boolean Apply email pressure to the week starting on Monday 4 weeks ago |
| type | string Enum: "Today" "Since" "Between" "ByWeek" Pressure Type :
|
| today | boolean Apply email pressure to today (true/false) |
| betweenStartDate | string <date-time> Apply email pressure from "BetweenStartDate" to "BetweenEndDate" |
| betweenEndDate | string <date-time> Apply email pressure from "BetweenStartDate" to "BetweenEndDate" |
| fromTime | integer <int32> Apply email pressure Since X hours/days |
| timeType | integer <int32> Apply email pressure Since X hours/days |
{- "idTarget": 0,
- "isFilterEnabled": true,
- "campaignType": "string",
- "operatorRequest": "GREATER",
- "nbRequest": 0,
- "thisWeek": true,
- "lastWeek": true,
- "twoWeeksAgo": true,
- "threeWeeksAgo": true,
- "fourWeeksAgo": true,
- "type": "Today",
- "today": true,
- "betweenStartDate": "2019-08-24T14:15:22Z",
- "betweenEndDate": "2019-08-24T14:15:22Z",
- "fromTime": 0,
- "timeType": 0
}{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}| idTarget required | integer <int32> Target identifier |
| idsite required | string database identifier |
{- "success": true,
- "data": {
- "idTarget": 0,
- "isFilterEnabled": true,
- "country": "FRANCE",
- "postcode": "string",
- "radius": 0.1,
- "excludePostCodes": "string",
- "departmentIds": "string"
}, - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
Filter by geoloc
| idTarget required | integer <int32> Target identifier |
| isFilterEnabled | boolean |
| country | string Enum: "FRANCE" "UNITED_KINGDOM" "BELGIQUE" "_NBCountry" Country to geolocate in :
|
| postcode | string Postal codes separated by ; |
| radius | number <double> radius (in km) to be applied around postal codes ⚠️ Parameter used only with "Postcode" parameter |
| excludePostCodes | string List of postcodes (separated by ;) to be excluded from geolocation |
| departmentIds | string List of department ids (separated by ;) to use in geolocation
|
{- "idTarget": 0,
- "isFilterEnabled": true,
- "country": "FRANCE",
- "postcode": "string",
- "radius": 0.1,
- "excludePostCodes": "string",
- "departmentIds": "string"
}{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}| idTarget required | integer <int32> Target identifier |
| idsite required | string database identifier |
{- "success": true,
- "data": {
- "idTarget": 0,
- "isEnabled": true,
- "sql": "string"
}, - "error": "string",
- "typeName": "string"
}If the target already has a SQL filter, the old one will be automatically replaced.
| idsite required | string database identifier |
SQL filter
| idTarget required | integer <int32> Target identifier |
| isEnabled | boolean Indicates if the filter is active |
| sql | string Sql where clause (8000 carac max) without WHERE clause Attention: some keywords are not accepted (DELETE, INSERT, UPDATE...). Eg: find women subscribers = "fld13 IN (1,2) AND fld7 = 0 AND fld8 = 1" |
{- "idTarget": 0,
- "isEnabled": true,
- "sql": "string"
}{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}| idTarget required | integer <int32> Target identifier |
| idsite required | string database identifier |
{- "success": true,
- "data": {
- "idTarget": 0,
- "isEnabled": true,
- "filename": "string",
- "dbFieldName": "string",
- "fileAutomaticDeletionDate": "2019-08-24T14:15:22Z"
}, - "error": "string",
- "typeName": "string"
}If the target already has a filter by file, the old one will be automatically replaced.
| idsite required | string database identifier |
Filter by file
| idTarget required | integer <int32> Target identifier |
| isEnabled | boolean Indicates if the filter is active. |
| filename | string Name of the file (may contain a sub-directory, eg: "my-sub-dir\my-file.csv" |
| dbFieldName | string Database field name on which the data in the file will be mapped. Works as follows : "fld" + field identifier Example:
|
| fileAutomaticDeletionDate | string <date-time> (Mandatory)Date of automatic deletion of the file on ftp. |
{- "idTarget": 0,
- "isEnabled": true,
- "filename": "string",
- "dbFieldName": "string",
- "fileAutomaticDeletionDate": "2019-08-24T14:15:22Z"
}{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}| idCampaign required | integer <int32> Campaign identifier |
| idsite required | string database identifier |
{- "success": true,
- "data": {
- "id": 0,
- "parameters": {
- "idCommonAffiliatePlatform": 0,
- "idCommonAdvertiser": 0,
- "hasTextMessage": true,
- "idConfiguration": 0,
- "idTestTarget": 0,
- "idThematic": 0,
- "isAbTest": true,
- "isOneshot": true,
- "isArchive": true,
- "mode": "Unknown",
- "name": "string",
- "notifyHighDelivrability": true,
- "responseAlias": "string",
- "senderAlias": "string",
- "sendingSpeed": 0,
- "subject": "string",
- "type": "Unknown",
- "useListUnsubscribeHeader": true,
- "abTestType": "string",
- "nbTests": 0
}, - "htmlContent": "string",
- "textContent": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "lastUpdateDate": "2019-08-24T14:15:22Z",
- "schedulingInfos": {
- "calendarDates": "string",
- "type": "Calendar",
- "state": "Programmed"
}, - "authorId": 0,
- "authorName": "string",
- "idCampDynamic": 0,
- "autoHostPictures": true,
- "autoHostPicturesIdDirectory": 0,
- "idDirectory": 0,
- "autoHostPicturesResult": { },
- "isTracked": true,
- "notSafeTargetIds": "string"
}, - "error": "string",
- "typeName": "string"
}| idCampaign required | integer <int32> |
| idsite required | string database identifier |
{- "success": true,
- "data": {
- "idCampaign": 0,
- "isCampaignReady": true,
- "hasConfig": true,
- "hasSubject": true,
- "isTracked": true,
- "hasHtml": true,
- "hasUnsub": true,
- "hasSpamscore": true,
- "hasSendingFilter": true,
- "hasSegmentNotExcluded": true,
- "hasSendingsPubs": true,
- "isTargetSafe": true,
- "notSafeTargetIds": "string"
}, - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
| filter.creationEndDate | string <date-time> End of date range to filter for creation date |
| filter.creationStartDate | string <date-time> Start of date range to filter for creation date |
| filter.isABTest | boolean Indicates whether to fetch only Ab testing campaigns |
| filter.isAutomation | boolean Indicates whether to fetch only Automation campaigns |
| filter.location | string Location, possibles values: "" : All campaigns "myCreatedLocation" : Only the campaigns created by the current user "1234" : Directory identifier |
| filter.mode | string Enum: "Unknown" "Simple" "Dynamic" "External" "TestAb" Mode to filter |
| filter.name | string Name to search |
| filter.type | string Enum: "Unknown" "Newsletter" "Dedicated" "Other" "ExternalGame" "InternalGame" "Topic" "Rent" "Transac" Type to filter |
| filter.sortBy required | string Enum: "Name" "Id" "LastUpdateDate" "CreationDate" "Author" "Type" "Mode" "LastNbAddressesCount" "Directories" Field on which to sort the results |
| filter.order required | string Enum: "ASC" "DESC" Sort direction |
| filter.start | integer <int32> Starting line number for pagination (starts at 0) |
| filter.limit | integer <int32> Number of lines to retrieve (50 by default) |
{- "success": true,
- "data": {
- "totalCount": 0,
- "count": 0,
- "items": [
- {
- "id": 0,
- "parameters": {
- "idCommonAffiliatePlatform": 0,
- "idCommonAdvertiser": 0,
- "hasTextMessage": true,
- "idConfiguration": 0,
- "idTestTarget": 0,
- "idThematic": 0,
- "isAbTest": true,
- "isOneshot": true,
- "isArchive": true,
- "mode": "Unknown",
- "name": "string",
- "notifyHighDelivrability": true,
- "responseAlias": "string",
- "senderAlias": "string",
- "sendingSpeed": 0,
- "subject": "string",
- "type": "Unknown",
- "useListUnsubscribeHeader": true,
- "abTestType": "string",
- "nbTests": 0
}, - "htmlContent": "string",
- "textContent": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "lastUpdateDate": "2019-08-24T14:15:22Z",
- "schedulingInfos": {
- "calendarDates": "string",
- "type": "Calendar",
- "state": "Programmed"
}, - "authorId": 0,
- "authorName": "string",
- "idCampDynamic": 0,
- "autoHostPictures": true,
- "autoHostPicturesIdDirectory": 0,
- "idDirectory": 0,
- "autoHostPicturesResult": { },
- "isTracked": true,
- "notSafeTargetIds": "string"
}
], - "start": 0
}, - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
| updateMode | boolean Default: false Sets the update mode. If updateMode = true, you just have to set the value(s) to update |
| returnInformations | boolean Default: false Defines whether complete information is returned. If returnInformations = false, you will get a boolean back |
| trackAllLinks | boolean Default: false Tracks all campaign links |
Campaign to update.
| id | integer <int32> Campaign identifier. |
required | object (CampaignParameters) Represents the parameters of a campaign. |
| htmlContent | string Html content of the message. |
| textContent | string Text content of the message. |
| creationDate | string <date-time> Date of creation of the campaign. |
| lastUpdateDate | string <date-time> Date of the last update of the campaign. |
object (CampaignSchedulingInfos) Represents the scheduling informations of a campaign. | |
| authorId | integer <int32> Author Id |
| idCampDynamic | integer <int32> Dynamic campaign id |
| autoHostPictures | boolean Allow automatic pictures hosting |
| autoHostPicturesIdDirectory | integer <int32> Allow automatic pictures hosting directory |
| idDirectory | integer <int32> idDirectory for the pictures hosting |
| autoHostPicturesResult | object currentUrl : (string) The original URL of the image as defined in the HTML content before upload. newUrl : (string) The new URL of the image after successful upload to the server. status : (string) The status of the upload operation for this image, possible values include : ‘uploaded": Indicates that the image has been uploaded successfully. ‘uploadError": Indicates an error during upload. An exception message string, if a specific error was raised during the process. |
| isTracked | boolean Has the campaign been tracked |
| notSafeTargetIds | string Target Ids (sep by comma) used by the campaign segments wich are not safe. |
{- "id": 0,
- "parameters": {
- "idCommonAffiliatePlatform": 0,
- "idCommonAdvertiser": 0,
- "hasTextMessage": true,
- "idConfiguration": 0,
- "idTestTarget": 0,
- "idThematic": 0,
- "isAbTest": true,
- "isOneshot": true,
- "isArchive": true,
- "mode": "Unknown",
- "name": "string",
- "notifyHighDelivrability": true,
- "responseAlias": "string",
- "senderAlias": "string",
- "sendingSpeed": 0,
- "subject": "string",
- "type": "Unknown",
- "useListUnsubscribeHeader": true,
- "abTestType": "string",
- "nbTests": 0
}, - "htmlContent": "string",
- "textContent": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "lastUpdateDate": "2019-08-24T14:15:22Z",
- "schedulingInfos": {
- "calendarDates": "string",
- "type": "Calendar",
- "state": "Programmed"
}, - "authorId": 0,
- "idCampDynamic": 0,
- "autoHostPictures": true,
- "autoHostPicturesIdDirectory": 0,
- "idDirectory": 0,
- "autoHostPicturesResult": { },
- "isTracked": true,
- "notSafeTargetIds": "string"
}{- "success": true,
- "data": { },
- "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
| trackAllLinks | boolean Default: false Tracks all campaign links |
Campaign to create.
| id | integer <int32> Campaign identifier. |
required | object (CampaignParameters) Represents the parameters of a campaign. |
| htmlContent | string Html content of the message. |
| textContent | string Text content of the message. |
| creationDate | string <date-time> Date of creation of the campaign. |
| lastUpdateDate | string <date-time> Date of the last update of the campaign. |
object (CampaignSchedulingInfos) Represents the scheduling informations of a campaign. | |
| authorId | integer <int32> Author Id |
| idCampDynamic | integer <int32> Dynamic campaign id |
| autoHostPictures | boolean Allow automatic pictures hosting |
| autoHostPicturesIdDirectory | integer <int32> Allow automatic pictures hosting directory |
| idDirectory | integer <int32> idDirectory for the pictures hosting |
| autoHostPicturesResult | object currentUrl : (string) The original URL of the image as defined in the HTML content before upload. newUrl : (string) The new URL of the image after successful upload to the server. status : (string) The status of the upload operation for this image, possible values include : ‘uploaded": Indicates that the image has been uploaded successfully. ‘uploadError": Indicates an error during upload. An exception message string, if a specific error was raised during the process. |
| isTracked | boolean Has the campaign been tracked |
| notSafeTargetIds | string Target Ids (sep by comma) used by the campaign segments wich are not safe. |
{- "id": 0,
- "parameters": {
- "idCommonAffiliatePlatform": 0,
- "idCommonAdvertiser": 0,
- "hasTextMessage": true,
- "idConfiguration": 0,
- "idTestTarget": 0,
- "idThematic": 0,
- "isAbTest": true,
- "isOneshot": true,
- "isArchive": true,
- "mode": "Unknown",
- "name": "string",
- "notifyHighDelivrability": true,
- "responseAlias": "string",
- "senderAlias": "string",
- "sendingSpeed": 0,
- "subject": "string",
- "type": "Unknown",
- "useListUnsubscribeHeader": true,
- "abTestType": "string",
- "nbTests": 0
}, - "htmlContent": "string",
- "textContent": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "lastUpdateDate": "2019-08-24T14:15:22Z",
- "schedulingInfos": {
- "calendarDates": "string",
- "type": "Calendar",
- "state": "Programmed"
}, - "authorId": 0,
- "idCampDynamic": 0,
- "autoHostPictures": true,
- "autoHostPicturesIdDirectory": 0,
- "idDirectory": 0,
- "autoHostPicturesResult": { },
- "isTracked": true,
- "notSafeTargetIds": "string"
}{- "success": true,
- "data": {
- "id": 0,
- "parameters": {
- "idCommonAffiliatePlatform": 0,
- "idCommonAdvertiser": 0,
- "hasTextMessage": true,
- "idConfiguration": 0,
- "idTestTarget": 0,
- "idThematic": 0,
- "isAbTest": true,
- "isOneshot": true,
- "isArchive": true,
- "mode": "Unknown",
- "name": "string",
- "notifyHighDelivrability": true,
- "responseAlias": "string",
- "senderAlias": "string",
- "sendingSpeed": 0,
- "subject": "string",
- "type": "Unknown",
- "useListUnsubscribeHeader": true,
- "abTestType": "string",
- "nbTests": 0
}, - "htmlContent": "string",
- "textContent": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "lastUpdateDate": "2019-08-24T14:15:22Z",
- "schedulingInfos": {
- "calendarDates": "string",
- "type": "Calendar",
- "state": "Programmed"
}, - "authorId": 0,
- "authorName": "string",
- "idCampDynamic": 0,
- "autoHostPictures": true,
- "autoHostPicturesIdDirectory": 0,
- "idDirectory": 0,
- "autoHostPicturesResult": { },
- "isTracked": true,
- "notSafeTargetIds": "string"
}, - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
fields to update from (name/value) parmis "id_campaign;name;creationDate;majDate;msgHtml;msgTxt;mailObject;isArchive;id_user;id_config;id_campType;hasTxtMsg;genSpeed;isDynamic;id_campDynamic;id_planning;id_testFilter;id_prog;isTracked;nbPubInsert;id_campMode;useListUnsubscribe;nhdActive;nhdLinkActive;id_site_brand;expAlias;responseAlias;preheader;isTestAB;numTest;isOneshot;isAutomation;id_common_advertiser;id_common_affiliate;id_thematic"
| idCampaign | integer <int32> |
object |
{- "idCampaign": 0,
- "fields": {
- "property1": "string",
- "property2": "string"
}
}{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
Informations about the sending. The subscriber can be found from his hash (using the subscriberMD5 field), his identifier (SubscriberId) or his client identifier (ClientId)(
Array of objects (Attachment) (Optionnal) Allows to add attachments | |
| campaignId required | integer <int32> Campaign identifier (simple or dynamic) |
| clientId | integer <int64> (Optionnal) Client identifier |
| customClicTracker | string (Optionnal) Allows to add other clic tracker |
| customPixelTrackers | Array of strings (Optionnal) Allows to add other pixel trackers urls |
| fromAlias | string (Optionnal) Alias of the sender, or leave blank to use the campaign alias |
| idFields | Array of integers <int32> [ items <int32 > ] (Optionnal) Allows to override the fields used ( 0, 1, 7, 8, 43 by default) in case of message or suject overriding |
| messageHTML | string (Optionnal) Html message, or leave blank to use the HTML of the campaign |
| messageTXT | string (Optionnal) Text version of the message if the campaign is configured for a text version. Leave blank to retrieve the saved campaign html |
| subject | string (Optionnal) Message subject, or leave blank to use the campaign subject |
| subscriberId required | integer <int32> (Optionnal) Subscriber identifier |
| subscriberMD5 | string (Optionnal) MD5 hash of the recipent's email address |
| subscriberSHA256 | string (Optionnal) SHA256 hash of the recipent's email address |
| emailData | string (Optionnal) Todo |
{- "attachments": [
- {
- "fileContent": "string",
- "fileName": "string"
}
], - "campaignId": 0,
- "clientId": 0,
- "customClicTracker": "string",
- "customPixelTrackers": [
- "string"
], - "fromAlias": "string",
- "idFields": [
- 0
], - "messageHTML": "string",
- "messageTXT": "string",
- "subject": "string",
- "subscriberId": 0,
- "subscriberMD5": "string",
- "subscriberSHA256": "string",
- "emailData": "string"
}{- "success": true,
- "data": "string",
- "error": "string",
- "typeName": "string"
}| idCampaign required | integer <int32> Campaign identifier. |
| idsite required | string database identifier |
{- "success": true,
- "data": [
- {
- "id": 0,
- "position": 0,
- "parameters": {
- "name": "string",
- "idTarget": 0,
- "isExcluded": true,
- "isRandom": true,
- "percent": 0,
- "mailObject": "string",
- "fixedValues": 0
}, - "advertisements": [
- {
- "position": 0,
- "idAdvertisement": 0,
- "name": "string",
- "html": "string"
}
], - "lastCount": 0,
- "lastSpamScore": 0.1,
- "lastVRSpamScore": 0.1,
- "isSpamScoreValid": true,
- "isSafe": true
}
], - "error": "string",
- "typeName": "string"
}| idCampaign required | integer <int32> Campaign identifier. |
| idsite required | string database identifier |
New segment to add.
| name required | string Segment Name. |
| idTarget required | integer <int32> Target identifier to define the segment population. Attention: A dedup is automatically done where there are subscribers common to a number of segments. The dedup order is the same as segment order. |
| isExcluded | boolean Indicates if the segment is excluded from the campaign. |
| isRandom | boolean Indicates whether the population should be randomly chosen (if Percent property is lower than 100). Otherwise it is sorted in order of subscriber identifier |
| percent required | integer <int32> Percentage of target population to use in the segment. |
| mailObject | string Object of the message adapted for the segment. It replaces the one defined in the campaign settings. |
| fixedValues required | integer <int32> Values of target population to use in the segment. |
{- "name": "string",
- "idTarget": 0,
- "isExcluded": true,
- "isRandom": true,
- "percent": 0,
- "mailObject": "string",
- "fixedValues": 0
}{- "success": true,
- "data": 0,
- "error": "string",
- "typeName": "string"
}| idCampaign required | integer <int32> Campaign identifier. |
| segmentPosition required | integer <int32> Segment position. |
| idsite required | string database identifier |
{- "success": true,
- "data": {
- "id": 0,
- "position": 0,
- "parameters": {
- "name": "string",
- "idTarget": 0,
- "isExcluded": true,
- "isRandom": true,
- "percent": 0,
- "mailObject": "string",
- "fixedValues": 0
}, - "advertisements": [
- {
- "position": 0,
- "idAdvertisement": 0,
- "name": "string",
- "html": "string"
}
], - "lastCount": 0,
- "lastSpamScore": 0.1,
- "lastVRSpamScore": 0.1,
- "isSpamScoreValid": true,
- "isSafe": true
}, - "error": "string",
- "typeName": "string"
}| idCampaign required | integer <int32> Campaign identifier. |
| segmentPosition required | integer <int32> Position of the segment to update. |
| idsite required | string database identifier |
Segment informations.
| name required | string Segment Name. |
| idTarget required | integer <int32> Target identifier to define the segment population. Attention: A dedup is automatically done where there are subscribers common to a number of segments. The dedup order is the same as segment order. |
| isExcluded | boolean Indicates if the segment is excluded from the campaign. |
| isRandom | boolean Indicates whether the population should be randomly chosen (if Percent property is lower than 100). Otherwise it is sorted in order of subscriber identifier |
| percent required | integer <int32> Percentage of target population to use in the segment. |
| mailObject | string Object of the message adapted for the segment. It replaces the one defined in the campaign settings. |
| fixedValues required | integer <int32> Values of target population to use in the segment. |
{- "name": "string",
- "idTarget": 0,
- "isExcluded": true,
- "isRandom": true,
- "percent": 0,
- "mailObject": "string",
- "fixedValues": 0
}{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}| idCampaign required | integer <int32> Campaign identifier. |
| segmentPosition required | integer <int32> Position of the segment to delete. |
| idsite required | string database identifier |
{- "success": true,
- "data": [
- 0
], - "error": "string",
- "typeName": "string"
}| idCampaign required | integer <int32> Campaign identifier. |
| idsite required | string database identifier |
Segments identifiers in the new order.
[- 0
]{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}| idCampaign required | integer <int32> Campaign identifier. |
| segmentPosition required | integer <int32> Segments position, or use 0 to update all segments. |
| idsite required | string database identifier |
Advertisement to assign, contains the number of the placeholder (0 to change all) and the advertisement identifier (or -1 to delete it).
| position required | integer <int32> Advert insert number. Eg: [[ENCART.3]] has insert number 3 |
| idAdvertisement required | integer <int32> Identifier of the ad, will be inserted in the HTML code where appears the tag [[ENCART.X]] |
| name | string Name of the Ad |
| html | string Html of the Ad |
{- "position": 0,
- "idAdvertisement": 0,
- "name": "string",
- "html": "string"
}{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}| idCampaign required | integer <int32> Campaign identifier. |
| segmentPosition required | integer <int32> Number of the segment to be counted. |
| idsite required | string database identifier |
{- "success": true,
- "data": [
- {
- "idSegment": 0,
- "position": 0,
- "percent": 0,
- "fixedValues": 0,
- "targetCount": 0,
- "deDuplicatedCount": 0,
- "segmentCount": 0
}
], - "error": "string",
- "typeName": "string"
}| idCampaign required | integer <int32> Campaign identifier. |
| idsite required | string database identifier |
{- "success": true,
- "data": [
- {
- "idSegment": 0,
- "position": 0,
- "percent": 0,
- "fixedValues": 0,
- "targetCount": 0,
- "deDuplicatedCount": 0,
- "segmentCount": 0
}
], - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
Campaign identifier
0{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}| idCampaign required | integer <int32> Campaign identifier |
| idsite required | string database identifier |
Number of the segment to test
0{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}| idCampaign required | integer <int32> Campaign identifier |
| idsite required | string database identifier |
List of calendar dates This list can be empty or contain several dates. The dates and times used in the parameters correspond to the Paris time zone: CET (UTC+1) / CEST (UTC+2).
[- "2019-08-24T14:15:22Z"
]{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}| idCampaign required | integer <int32> Campaign identifier |
| idsite required | string database identifier |
Start date, end date, sending time and frequency. The dates and times used in the parameters correspond to the Paris time zone: CET (UTC+1) / CEST (UTC+2).
| startDate | string <date-time> Starting Date (dd/mm/yyyy, ex: 17/02/2021) |
| endDate | string <date-time> End Date (dd/mm/yyyy, ex: 20/02/2021) |
| sendingTime | string Sending time (hh:mm:ss) |
| frequency | integer <int32> Frequency (every x days) |
{- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "sendingTime": "string",
- "frequency": 0
}{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
Campaign identifier
0{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
Campaign identifier
0{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
Campaign identifier
0{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}| idCampaign required | integer <int32> Campaign identifier. |
| idsite required | string database identifier |
{- "success": true,
- "data": [
- {
- "idSent": 0,
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "nbOpenings": 0,
- "nbUnsubs": 0,
- "nbAddressSent": 0,
- "idSending": 0,
- "nbAddressToSend": 0,
- "isTest": true,
- "msgHtml": "string",
- "msgTxt": "string",
- "filterName": "string",
- "idJob": 0,
- "informations": "string",
- "nbOpeners": 0,
- "nbHardBounces": 0,
- "nbSoftBounces": 0,
- "nbAutoResponders": 0,
- "nbDnsErrors": 0,
- "nbSpam": 0
}
], - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
| idCampaign required | integer <int32> Campaign identifier. |
| idJob required | integer <int32> Job identifier. |
| includeContent | boolean Default: false Include full content. |
{- "success": true,
- "data": [
- {
- "campaignName": "string",
- "sent": {
- "idSent": 0,
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "nbOpenings": 0,
- "nbUnsubs": 0,
- "nbAddressSent": 0,
- "idSending": 0,
- "nbAddressToSend": 0,
- "isTest": true,
- "msgHtml": "string",
- "msgTxt": "string",
- "filterName": "string",
- "idJob": 0,
- "informations": "string",
- "nbOpeners": 0,
- "nbHardBounces": 0,
- "nbSoftBounces": 0,
- "nbAutoResponders": 0,
- "nbDnsErrors": 0,
- "nbSpam": 0
}, - "segment": {
- "id": 0,
- "position": 0,
- "parameters": {
- "name": "string",
- "idTarget": 0,
- "isExcluded": true,
- "isRandom": true,
- "percent": 0,
- "mailObject": "string",
- "fixedValues": 0
}, - "advertisements": [
- {
- "position": 0,
- "idAdvertisement": 0,
- "name": "string",
- "html": "string"
}
], - "lastCount": 0,
- "lastSpamScore": 0.1,
- "lastVRSpamScore": 0.1,
- "isSpamScoreValid": true,
- "isSafe": true
}
}
], - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
| idCampaign required | integer <int32> Campaign identifier. |
| idJob required | integer <int32> Job identifier. |
{- "success": true,
- "data": [
- {
- "campaignName": "string",
- "sent": {
- "idSent": 0,
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "idSending": 0,
- "isTest": true,
- "filterName": "string",
- "idJob": 0
}, - "segment": {
- "id": 0,
- "parameters": {
- "name": "string",
- "idTarget": 0
}
}
}
], - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
Informations needed to compute the spam score
| idCampaign required | integer <int32> Campaign identifier to evaluates. |
| segmentPosition required | integer <int32> Segment position to evaluates. |
| idSubscriber | integer <int32> Subscriber identifier to simulate. |
{- "idCampaign": 0,
- "segmentPosition": 0,
- "idSubscriber": 0
}{- "success": true,
- "data": {
- "score": "string",
- "details": "string",
- "vadeRetroSpamScore": "string",
- "vadeRetroSpamState": "string",
- "vadeRetroSpamCause": [
- "string"
]
}, - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
Informations needed to compute the spam score
| idCampaign required | integer <int32> Campaign identifier to evaluates. |
| segmentPosition required | integer <int32> Segment position to evaluates. |
| idSubscriber | integer <int32> Subscriber identifier to simulate. |
{- "idCampaign": 0,
- "segmentPosition": 0,
- "idSubscriber": 0
}{- "success": true,
- "data": [
- {
- "score": "string",
- "details": "string",
- "vadeRetroSpamScore": "string",
- "vadeRetroSpamState": "string",
- "vadeRetroSpamCause": [
- "string"
]
}
], - "error": "string",
- "typeName": "string"
}Service managing tracked links.
📝 Note:
Tracked links allow you to consult URLs present in your Mindbaz email campaigns.
| idCampaign required | integer <int32> Campaign identifier |
| idsite required | string database identifier |
{- "success": true,
- "data": [
- {
- "url": "string",
- "parsedUrl": "string",
- "origin": "string",
- "idAdvertisementInSegment": 0,
- "idSegment": 0,
- "idAdvertisement": 0,
- "isTracked": true,
- "id": 0,
- "parameters": {
- "description": "string",
- "isUnsubscriptionUrl": true,
- "isMirrorUrl": true,
- "idDirectory": 0,
- "type": "NotRemunerated",
- "sector": "NoSector",
- "incentive": "NoPrizeOrReward",
- "idThematic": 0
}
}
], - "error": "string",
- "typeName": "string"
}| idCampaign required | integer <int32> Campaign identifier |
| idsite required | string database identifier |
{- "success": true,
- "data": [
- {
- "url": "string",
- "parsedUrl": "string",
- "origin": "string",
- "idAdvertisementInSegment": 0,
- "idSegment": 0,
- "idAdvertisement": 0,
- "isTracked": true,
- "id": 0,
- "parameters": {
- "description": "string",
- "isUnsubscriptionUrl": true,
- "isMirrorUrl": true,
- "idDirectory": 0,
- "type": "NotRemunerated",
- "sector": "NoSector",
- "incentive": "NoPrizeOrReward",
- "idThematic": 0
}
}
], - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
Campaign identifier
0{- "success": true,
- "data": [
- {
- "url": "string",
- "parsedUrl": "string",
- "origin": "string",
- "idAdvertisementInSegment": 0,
- "idSegment": 0,
- "idAdvertisement": 0,
- "isTracked": true,
- "id": 0,
- "parameters": {
- "description": "string",
- "isUnsubscriptionUrl": true,
- "isMirrorUrl": true,
- "idDirectory": 0,
- "type": "NotRemunerated",
- "sector": "NoSector",
- "incentive": "NoPrizeOrReward",
- "idThematic": 0
}
}
], - "error": "string",
- "typeName": "string"
}| idCampaign required | integer <int32> Campaign identifier |
| idsite required | string database identifier |
Tracked Url informations
| url | string Url found within the HTML message source (campaign, configuration or advert html). |
| parsedUrl | string Url parsed without tags [[ ]]. |
| origin | string Indicates in which Html code the link was detected (Html of the campaign, the configuration or in the advertisement of a segment). |
| idAdvertisementInSegment | integer <int32> Identification of the advertisement / segment link if the link was detected in a segment advertisement. |
| idSegment | integer <int32> Segment identifier if the link was detected in a segment advertisement. |
| idAdvertisement | integer <int32> Advertisement identifier if the link was detected in a segment advertisement. |
| isTracked | boolean Indicates if the link is tracked. |
| id | integer <int64> Link identifier. |
object (TrackingParameter) Represents the tracking parameters of a hyperlink. |
{- "url": "string",
- "parsedUrl": "string",
- "origin": "string",
- "idAdvertisementInSegment": 0,
- "idSegment": 0,
- "idAdvertisement": 0,
- "isTracked": true,
- "id": 0,
- "parameters": {
- "description": "string",
- "isUnsubscriptionUrl": true,
- "isMirrorUrl": true,
- "idDirectory": 0,
- "type": "NotRemunerated",
- "sector": "NoSector",
- "incentive": "NoPrizeOrReward",
- "idThematic": 0
}
}{- "success": true,
- "data": {
- "url": "string",
- "parsedUrl": "string",
- "origin": "string",
- "idAdvertisementInSegment": 0,
- "idSegment": 0,
- "idAdvertisement": 0,
- "isTracked": true,
- "id": 0,
- "parameters": {
- "description": "string",
- "isUnsubscriptionUrl": true,
- "isMirrorUrl": true,
- "idDirectory": 0,
- "type": "NotRemunerated",
- "sector": "NoSector",
- "incentive": "NoPrizeOrReward",
- "idThematic": 0
}
}, - "error": "string",
- "typeName": "string"
}| idCampaign required | integer <int32> Campaign identifier. |
| idTrackedUrl required | integer <int64> Identifier of the tracked url retrieved using function /all. |
| idsite required | string database identifier |
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
| idCampaign required | integer <int32> Campaign identifier |
{- "success": true,
- "data": {
- "groupName": "string",
- "jobErrorInfo": "string",
- "nbAd": 0,
- "nbAdClickers": 0,
- "nbAdClicks": 0,
- "nbAddressSent": 0,
- "nbAddressToSend": 0,
- "nbAutoRespondersBounces": 0,
- "nbClickers": 0,
- "nbClicks": 0,
- "nbDnsErrorsBounces": 0,
- "nbEditoClickers": 0,
- "nbEditoClicks": 0,
- "nbGodsons": 0,
- "nbHardBounces": 0,
- "nbHumanOpeners": 0,
- "nbHumanOpenings": 0,
- "nbjob": 0,
- "nbLinks": 0,
- "nbMirrorClickers": 0,
- "nbMirrorClicks": 0,
- "nbOpeners": 0,
- "nbOpenings": 0,
- "nbSents": 0,
- "nbSoftBounces": 0,
- "nbSpamBounces": 0,
- "nbSpamComplaints": 0,
- "nbTotalBounces": 0,
- "nbUnsubClickers": 0,
- "nbUnsubClicks": 0,
- "nbUnsubs": 0,
- "nbViralClicks": 0,
- "senderDomain": "string"
}, - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
| idJob required | integer <int32> Job id |
| idSent required | integer <int32> Sent id |
{- "success": true,
- "data": [
- {
- "dsn": "string",
- "dsnCount": 0,
- "groupName": "string",
- "idFai": 0,
- "isp": "string",
- "nbAdClickers": 0,
- "nbAdClicks": 0,
- "nbAddressSent": 0,
- "nbAddressToSend": 0,
- "nbAutoRespondersBounces": 0,
- "nbBounces": 0,
- "nbClickers": 0,
- "nbClicks": 0,
- "nbContentClickers": 0,
- "nbDelivered": 0,
- "nbDnsErrorsBounces": 0,
- "nbEditoClickers": 0,
- "nbEditoClicks": 0,
- "nbHardBounces": 0,
- "nbHumanOpeners": 0,
- "nbHumanOpenings": 0,
- "nbMirrorClickers": 0,
- "nbMirrorClicks": 0,
- "nbOpeners": 0,
- "nbOpenings": 0,
- "nbSoftBounces": 0,
- "nbSpamBounces": 0,
- "nbSpamComplaints": 0,
- "nbUnsubClickers": 0,
- "nbUnsubClicks": 0,
- "nbUnsubs": 0,
- "nbViralClickers": 0,
- "nbViralClicks": 0
}
], - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
| idSent required | integer <int32> Mailing Identifier |
| mode | string Default: "3" Enum: "Mobile" "Desktop" "DesktopAndMobile" Reading mode filter |
{- "success": true,
- "data": [
- {
- "campaignName": "string",
- "endDate": "2019-08-24T14:15:22Z",
- "idSent": 0,
- "mailObject": "string",
- "nbAddressSent": 0,
- "nbClickers": 0,
- "nbClickersEdito": 0,
- "nbClickersMirror": 0,
- "nbClickersPub": 0,
- "nbClickersUnsub": 0,
- "nbClicks": 0,
- "nbClicksEdito": 0,
- "nbClicksMirror": 0,
- "nbClicksPub": 0,
- "nbClicksUnsub": 0,
- "nbGodsons": 0,
- "nbHardBounces": 0,
- "nbNetworkBounces": 0,
- "nbOpeners": 0,
- "nbOpenings": 0,
- "nbResponseBounces": 0,
- "nbSoftBounces": 0,
- "nbSpamBounces": 0,
- "nbSpamComplaints": 0,
- "nbUnsubs": 0,
- "reac": 0.1,
- "reacEdito": 0.1,
- "reacMirror": 0.1,
- "reacPub": 0.1,
- "reacUnsub": 0.1,
- "sendingName": "string",
- "startDate": "2019-08-24T14:15:22Z"
}
], - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
| nbDays required | integer <int32> nbDays max = 60. |
| mode | string Default: "3" Enum: "Mobile" "Desktop" "DesktopAndMobile" Reading mode filter. |
{- "success": true,
- "data": [
- {
- "campaignName": "string",
- "endDate": "2019-08-24T14:15:22Z",
- "idSent": 0,
- "mailObject": "string",
- "nbAddressSent": 0,
- "nbClickers": 0,
- "nbClickersEdito": 0,
- "nbClickersMirror": 0,
- "nbClickersPub": 0,
- "nbClickersUnsub": 0,
- "nbClicks": 0,
- "nbClicksEdito": 0,
- "nbClicksMirror": 0,
- "nbClicksPub": 0,
- "nbClicksUnsub": 0,
- "nbGodsons": 0,
- "nbHardBounces": 0,
- "nbNetworkBounces": 0,
- "nbOpeners": 0,
- "nbOpenings": 0,
- "nbResponseBounces": 0,
- "nbSoftBounces": 0,
- "nbSpamBounces": 0,
- "nbSpamComplaints": 0,
- "nbUnsubs": 0,
- "reac": 0.1,
- "reacEdito": 0.1,
- "reacMirror": 0.1,
- "reacPub": 0.1,
- "reacUnsub": 0.1,
- "sendingName": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "idJob": 0,
- "idCampaign": 0,
- "campType": "unknown",
- "campMode": "unknown",
- "nbPubsInsert": 0,
- "genSpeed": 0,
- "hasTxtMsg": true,
- "idSending": 0,
- "sendingPosition": 0,
- "isRandom": true,
- "pctAddressChoosen": 0,
- "idConfig": 0,
- "configName": "string",
- "expMail": "string",
- "expName": "string",
- "responseMail": "string",
- "responseName": "string",
- "idFilter": 0,
- "filterName": "string",
- "nbAddressToSend": 0,
- "nbClicksViral": 0,
- "nbClickersViral": 0,
- "reacViral": 0.1
}
], - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
| idCampaign required | integer <int32> Campaign identifier |
| nbDays required | integer <int32> nbDays max = 60. |
| mode | string Default: "3" Enum: "Mobile" "Desktop" "DesktopAndMobile" Reading mode filter. |
{- "success": true,
- "data": [
- {
- "campaignName": "string",
- "endDate": "2019-08-24T14:15:22Z",
- "idSent": 0,
- "mailObject": "string",
- "nbAddressSent": 0,
- "nbClickers": 0,
- "nbClickersEdito": 0,
- "nbClickersMirror": 0,
- "nbClickersPub": 0,
- "nbClickersUnsub": 0,
- "nbClicks": 0,
- "nbClicksEdito": 0,
- "nbClicksMirror": 0,
- "nbClicksPub": 0,
- "nbClicksUnsub": 0,
- "nbGodsons": 0,
- "nbHardBounces": 0,
- "nbNetworkBounces": 0,
- "nbOpeners": 0,
- "nbOpenings": 0,
- "nbResponseBounces": 0,
- "nbSoftBounces": 0,
- "nbSpamBounces": 0,
- "nbSpamComplaints": 0,
- "nbUnsubs": 0,
- "reac": 0.1,
- "reacEdito": 0.1,
- "reacMirror": 0.1,
- "reacPub": 0.1,
- "reacUnsub": 0.1,
- "sendingName": "string",
- "startDate": "2019-08-24T14:15:22Z",
- "idJob": 0,
- "idCampaign": 0,
- "campType": "unknown",
- "campMode": "unknown",
- "nbPubsInsert": 0,
- "genSpeed": 0,
- "hasTxtMsg": true,
- "idSending": 0,
- "sendingPosition": 0,
- "isRandom": true,
- "pctAddressChoosen": 0,
- "idConfig": 0,
- "configName": "string",
- "expMail": "string",
- "expName": "string",
- "responseMail": "string",
- "responseName": "string",
- "idFilter": 0,
- "filterName": "string",
- "nbAddressToSend": 0,
- "nbClicksViral": 0,
- "nbClickersViral": 0,
- "reacViral": 0.1
}
], - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
| filters.startDate | string <date-time> Start date, DATETIME = NULL--default is 30 days ago, Default NULL |
| filters.endDate | string <date-time> End date, NULL --now by default (max 6 months between startDate and endDate), Default NULL |
| filters.search | string Allow you to search on the camp name field, Default NULL |
| filters.idCampType | string Enum: "INCONNU" "NEWSLETTER" "DEDIE" "AUTRE" "JEU" "JEU_INTERNE" "DOSSIER" "LOCATION" "TRANSACTIONNEL" Campaign type identifier, default NULL |
| filters.tagList | string One or more tags, separator ';' default NULL |
| filters.author | string Search for campaign author, default NULL |
| filters.sortField | string Sorting column, 'id_job' by default, otherwise among the fields "id_job", "startDate", "endDate", "jobStateName", "id_campaign", "campaignName", "isTest", "mailObject", "senderDomain", "groupName", "author", "nbSegments", "nbPubInsert", "nbLinks", "nbAddressToSend", "nbAddressSent", "nbClicks", "nbClickers", "nbAdClicks", "nbAdClickers", "nbEditoClicks", "nbEditoClickers", "nbMirrorClicks", "nbMirrorClickers", "nbUnsubClicks", "nbUnsubClickers", "nbOpenings", "nbOpeners", "nbHumanOpenings", "nbHumanOpeners", "nbUnsubs", "nbTotalBounces", "nbHardBounces", "nbSoftBounces", "nbAutoRespondersBounces", "nbDnsErrorsBounces", "nbSpamBounces", "nbSpamComplaints", "jobErrorInfo" |
| filters.sortDesc | boolean Sort in descending order |
| filters.hideTest | boolean whether or not to display tests |
| filters.paginationLines | integer <int32> Number of lines to retrieve, INT = 20 --max 200 lines |
| filters.paginationOffset | integer <int32> Number of elements from which to retrieve data from 0 |
{- "success": true,
- "data": [
- {
- "idJob": 0,
- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "jobStateName": "string",
- "idCampaign": 0,
- "campaignName": "string",
- "isTest": true,
- "mailObject": "string",
- "senderDomain": "string",
- "groupName": "string",
- "author": "string",
- "nbSegments": 0,
- "nbPubInsert": 0,
- "nbLinks": 0,
- "nbAddressToSend": 0,
- "nbAddressSent": 0,
- "nbClicks": 0,
- "nbClickers": 0,
- "nbAdClicks": 0,
- "nbAdClickers": 0,
- "nbEditoClicks": 0,
- "nbEditoClickers": 0,
- "nbMirrorClicks": 0,
- "nbMirrorClickers": 0,
- "nbUnsubClicks": 0,
- "nbUnsubClickers": 0,
- "nbOpenings": 0,
- "nbOpeners": 0,
- "nbHumanOpenings": 0,
- "nbHumanOpeners": 0,
- "nbUnsubs": 0,
- "nbTotalBounces": 0,
- "nbHardBounces": 0,
- "nbSoftBounces": 0,
- "nbAutoRespondersBounces": 0,
- "nbDnsErrorsBounces": 0,
- "nbSpamBounces": 0,
- "nbSpamComplaints": 0,
- "jobErrorInfo": "string"
}
], - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
| idJob required | integer <int32> Job id |
| idSent required | integer <int32> Sent id |
| mpp required | boolean Is mpp |
{- "success": true,
- "data": "00000000-0000-0000-0000-000000000000",
- "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
| idJob required | integer <int32> job id |
| idCampaign required | integer <int32> campaign id |
| idSent required | integer <int32> sent id |
| idLink required | integer <int32> link id |
| idPub required | integer <int32> pub id |
| statType required | integer <int32> statistics type. Available types are: |
| mpp | boolean Default: false |
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
| contentKey required | string Content identifiers to retrieve |
{- "success": true,
- "data": {
- "contentKey": "string",
- "contentValue": "string"
}, - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
Content to update
| contentKey | string Content key |
| contentValue | string Content value |
{- "contentKey": "string",
- "contentValue": "string"
}{- "success": true,
- "data": {
- "contentKey": "string",
- "contentValue": "string"
}, - "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
Data to create
| key required | string clef de content en version tag => 'auto_[[CONF.5]]-[[FIELD.0]]' |
| dataFilePath required | string chemin du fichier en absolue |
| dataFieldTerminator | string sep de colonne ex '§§'. Ce carac ne doit pas se trouve dans les donnees |
| dataRowTerminator | string par defaut '\r\n' |
{- "key": "string",
- "dataFilePath": "string",
- "dataFieldTerminator": "string",
- "dataRowTerminator": "string"
}{- "success": true,
- "data": "string",
- "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
{- "success": true,
- "data": [
- {
- "id": 0,
- "companyId": 0,
- "companyName": "string",
- "month": "2019-08-24T14:15:22Z",
- "name": "string",
- "issueDate": "2019-08-24T14:15:22Z",
- "dueDate": "2019-08-24T14:15:22Z",
- "isPaid": true
}
], - "error": "string",
- "typeName": "string"
}| idSent required | integer <int32> Sent identifier |
| idsite required | string database identifier |
Html content to transform
"string"{- "success": true,
- "data": "string",
- "error": "string",
- "typeName": "string"
}| idsite required | string database identifier |
| idCampaign required | integer <int32> Campaign identifier |
| idSent required | integer <int32> Sent identifier |
| idJob required | integer <int32> Job identifier |
{- "success": true,
- "data": "string",
- "error": "string",
- "typeName": "string"
}Service managing snpri alerts.
📝 Note:
Snpri is a Mindbaz preblocking system for orange, laposte and sfr isp.
| id required | string identifiant de l'alerte |
| idsite required | string database identifier |
{- "success": true,
- "data": {
- "idSendingGroupRemoval": 0,
- "groupName": "string",
- "faiName": "string",
- "nbComplaints": 0,
- "complaintRate": 0,
- "siteName": "string",
- "alertDate": "2019-08-24T14:15:22Z",
- "engagementDate": "2019-08-24T14:15:22Z",
- "engagementEmail": "string",
- "scheduledActivationDate": "2019-08-24T14:15:22Z"
}, - "error": "string",
- "typeName": "string"
}| id required | string identifiant de l'alerte |
| idsite required | string database identifier |
{- "success": true,
- "data": {
- "idSendingGroupRemoval": 0,
- "groupName": "string",
- "faiName": "string",
- "nbComplaints": 0,
- "complaintRate": 0,
- "siteName": "string",
- "alertDate": "2019-08-24T14:15:22Z",
- "engagementDate": "2019-08-24T14:15:22Z",
- "engagementEmail": "string",
- "scheduledActivationDate": "2019-08-24T14:15:22Z"
}, - "error": "string",
- "typeName": "string"
}