Mindbaz API (V1)
Download OpenAPI specification:Download
Method to export subscribers to a file on SFTP
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..."
💡 You can call this endpoint to get the execution status of your export you just created.
path Parameters
idsite required | string database identifier |
Request Body schema:
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) |
Responses
Request samples
- Payload
{- "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
}
Response samples
- 200
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}
Method to get your repositories (sftp accounts)
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.
path Parameters
idsite required | string database identifier |
Responses
Response samples
- 200
{- "success": true,
- "data": [
- {
- "idRepository": 0,
- "port": 0,
- "host": "string",
- "subfolder": "string"
}
], - "error": "string",
- "typeName": "string"
}
Method to get complete subscriber export informations
path Parameters
idExport required | integer <int32> |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "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"
}
Method to get the execution state of the last created subscriber export
path Parameters
idsite required | string database identifier |
Responses
Response samples
- 200
{- "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"
}
Method to get the execution state of a subscriber export
path Parameters
idsite required | string database identifier |
query Parameters
idExport required | integer <int32> id of the export job. If the job does not exist, the result will be a null object. |
Responses
Response samples
- 200
{- "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
Method for retrieving the subscriber field list
the result is the same as the field management page. It is an array of Field object.
path Parameters
idsite required | string database identifier |
query Parameters
type | string Default: "Unspecified" Enum: "Unspecified" "Text" "Integer" "Date" "List" "Boolean" Optional, field type to retrieve |
Responses
Response samples
- 200
{- "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"
}
Method for retrieving the number of custom fields created
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
path Parameters
idsite required | string database identifier |
Responses
Response samples
- 200
{- "success": true,
- "data": {
- "quota": 0,
- "nbSpecificFields": 0,
- "nbRemainingFields": 0
}, - "error": "string",
- "typeName": "string"
}
Method for retrieving specific subscriber field list
path Parameters
idsite required | string database identifier |
query Parameters
idFields required | Array of integers <int32> [ items <int32 > ] |
Responses
Response samples
- 200
{- "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"
}
Method to modify a field in the main subscriber table
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.
path Parameters
idsite required | string database identifier |
Request Body schema:
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 |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string",
- "length": 0,
- "list": [
- {
- "key": 0,
- "value": "string"
}
], - "fieldType": "Unspecified",
- "description": "string",
- "isSystem": true,
- "isVisible": true,
- "isEditable": true,
- "isHiddenByCustomer": true
}
Response samples
- 200
{- "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"
}
Creates a new field in the main subscriber table
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.
path Parameters
idsite required | string database identifier |
Request Body schema:
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 |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string",
- "length": 0,
- "list": [
- {
- "key": 0,
- "value": "string"
}
], - "fieldType": "Unspecified",
- "description": "string",
- "isSystem": true,
- "isVisible": true,
- "isEditable": true,
- "isHiddenByCustomer": true
}
Response samples
- 200
{- "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
Retrieves an import by its identifier
path Parameters
idImport required | integer <int32> Import identifier |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "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"
}
Create and schedules an import in Current time + 2 minutes.
path Parameters
idsite required | string database identifier |
Request Body schema:
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 |
Responses
Request samples
- Payload
{- "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
}
}
Response samples
- 200
{- "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"
}
Create and schedules an import for an exact date.
path Parameters
idsite required | string database identifier |
Request Body schema:
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 (ImportSchedulingInfos) Represents the scheduling informations of an import job |
object (ImportLog) Represents the result informations about the execution of an import |
Responses
Request samples
- Payload
{- "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
}
}
Response samples
- 200
{- "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"
}
Lists all imports scheduled or terminated during the last 15 days
path Parameters
idsite required | string database identifier |
query Parameters
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) |
Responses
Response samples
- 200
{- "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
Method to retrieve subscribers based on the provided filter
For example,
- To get subscribers with idSub=[1,2,3,25,47], the query parameters will be: filter.by=IdSubscriber&filter.values[0]=1&filter.values[1]=2&filter.values[2]=3&filter.values[3]=25&filter.values[4]=47
- To search for a subscriber MD5 and return fields [0,1,7,14,15], the query parameters will be: filter.by=Email&filter.idFields[0]=1&filter.idFields[1]=7&filter.idFields[2]=14&filter.idFields[3]=15&filter.emailEncoding=MD5&filter.values[0]=B9F77479156D2E90AFB3C43151ACA814
path Parameters
idsite required | string database identifier |
query Parameters
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") |
Responses
Response samples
- 200
{- "success": true,
- "data": [
- {
- "id": 0,
- "fields": [
- {
- "idField": 0,
- "value": { }
}
]
}
], - "error": "string",
- "typeName": "string"
}
Method to modify subscribers
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" }] } ]
path Parameters
idsite required | string database identifier |
Request Body schema:
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. |
Responses
Request samples
- Payload
[- {
- "id": 0,
- "fields": [
- {
- "idField": 0,
- "value": { }
}
]
}
]
Response samples
- 200
{- "success": true,
- "data": [
- {
- "id": 0,
- "fields": [
- {
- "idField": 0,
- "value": { }
}
]
}
], - "error": "string",
- "typeName": "string"
}
Method to create subscribers
The method returns an array of the inserted subscribers.
- If you do not provide an Id, the method is doing an INSERT. You can't insert a duplicate email. The inserted subscriber is retured in the result array.
- If you provide an Id, the method will try to do an UPDATE.
- If the Id does not exist, the update does nothing. A null subscriber object is returned in the array.
- If the Id exist, its fields are updated and are returned in the result array.
Here is a simple example of a body schema to insert a new email subscriber (field[1]):
[ { "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".
📝 You'll notice that the dates of the first and last subscriptions (fieldIds 2 and 3) are automatically set to Now Datetime. And a new inserted email is always created with a subscribed state (field[7]=0)
⚠️ Attention, if you try to repost this email a 2nd time, you will get an error: "An error occurred: Cannot insert a duplicate subscriber because his email already exists in the database.".
⚠️ And If an error occurs in the middle of the array, processing is interrupted and subsequent emails are not processed.
Here is a example of a body schema to insert a new email subscriber and 2 updates (including a non-existent id):
[ {The POST method will return :
"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" } ]
} ]
[ { "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" } ] } ]
path Parameters
idsite required | string database identifier |
Request Body schema:
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. |
Responses
Request samples
- Payload
[- {
- "id": 0,
- "fields": [
- {
- "idField": 0,
- "value": { }
}
]
}
]
Response samples
- 200
{- "success": true,
- "data": [
- {
- "id": 0,
- "fields": [
- {
- "idField": 0,
- "value": { }
}
]
}
], - "error": "string",
- "typeName": "string"
}
Method to delete subscribers
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.
path Parameters
idsite required | string database identifier |
query Parameters
idSubscribers required | Array of integers <int32> [ items <int32 > ] Subscribers identifiers to delete ⚠️ 5000 subscriber ids max |
Responses
Response samples
- 200
{- "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.
Method to retrieve archived subscribers based on the provided filter.
You can use this method to query if an email belongs to the archive table.
The operation is the same as Subscribers Get Method.
path Parameters
idsite required | string database identifier |
query Parameters
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") |
Responses
Response samples
- 200
{- "success": true,
- "data": [
- {
- "id": 0,
- "fields": [
- {
- "idField": 0,
- "value": { }
}
]
}
], - "error": "string",
- "typeName": "string"
}
Method to subscribe existing e-mail addresses to newsletter
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 :
- field[7]=0 (subscriber_status=optin)
- field[3]=Date (last subscription date)
- field[6]=LastOrigin (last provenance)
- if SubscribeToPartnersOffers=True, field[8]=1 (Partner offers opt-in = Yes)
- if SubscribeToPartnersOffers=True, field[10]=Date (partners offers optin date)
The method returns a boolean array indicating if update has been done for each subscriber id.
path Parameters
idsite required | string database identifier |
Request Body schema:
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]) |
Responses
Request samples
- Payload
[- {
- "idSubscriber": 0,
- "lastOrigin": "string",
- "date": "2019-08-24T14:15:22Z",
- "subscribeToPartnersOffers": true
}
]
Response samples
- 200
{- "success": true,
- "data": [
- true
], - "error": "string",
- "typeName": "string"
}
Method to subscribe new e-mail addresses to newsletter
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 :
- field[7]=0 (subscriber_status=optin)
- field[2]=field[3]=Date (first & last subscription dates)
- field[5]=field[6]=FirstOrigin (first and last provenance)
- field[21]=collectMode
- field[22]= collectType
- if SubscribeToPartnersOffers = True, field[8]=1 (Partner offers opt-in = Yes)
- if SubscribeToPartnersOffers = True, field[10]=Date (partners offers optin date)
The method returns a boolean array indicating if update has been done for each subscriber id.
path Parameters
idsite required | string database identifier |
Request Body schema:
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]) |
Responses
Request samples
- Payload
[- {
- "idSubscriber": 0,
- "firstOrigin": "string",
- "date": "2019-08-24T14:15:22Z",
- "collectMode": "ACHAT",
- "collectType": "SITE",
- "subscribeToPartnersOffers": true
}
]
Response samples
- 200
{- "success": true,
- "data": [
- true
], - "error": "string",
- "typeName": "string"
}
Method to unsubscribe e-mail addresses from newsletters
This method is useful to unsubscribe your subscribers.
📝 You can unsubscribe in 3 ways:
- from the global newsletter :
- subscriber_status = optin (field[7]=1)
- unsubscription_date = Now (field[4]=Now)
- subscriber_status = optin (field[7]=1)
- from partner offers:
- Partner offers opt-in = Yes (field[8]=1)
- Partner offers opt-in date = Now (field[10]=Now)
- Partner offers opt-in = Yes (field[8]=1)
- from a specific newsletter
- field[IdSubscriptionField] = 1
- field[IdUnsubDateField] = Now
- field[IdSubscriptionField] = 1
💡 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]]
path Parameters
idsite required | string database identifier |
Request Body schema:
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 |
Responses
Request samples
- Payload
[- {
- "idSubscriber": 0,
- "from": "Newsletter",
- "idSubscriptionField": 0,
- "idUnsubDateField": 0,
- "idSent": 0,
- "unsubOnlySubscribers": true
}
]
Response samples
- 200
{- "success": true,
- "data": [
- true
], - "error": "string",
- "typeName": "string"
}
Method to retrieve an advertisement from its identifier
path Parameters
idAdvertisement required | integer <int32> Advertisement identifier |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "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"
}
Method to retrieve all advertisements
path Parameters
idsite required | string database identifier |
Responses
Response samples
- 200
{- "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"
}
Method to modify an advertisement.
path Parameters
idsite required | string database identifier |
Request Body schema:
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. |
Responses
Request samples
- Payload
{- "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
]
}
Response samples
- 200
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}
Method to create an advertisement.
path Parameters
idsite required | string database identifier |
Request Body schema:
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. |
Responses
Request samples
- Payload
{- "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
]
}
Response samples
- 200
{- "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"
}
Method to retrieve an advertiser from its identifier Deprecated
path Parameters
idAdvertiser required | integer <int32> Advertiser identifier |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "success": true,
- "data": {
- "id": 0,
- "name": "string",
- "sector": "NoSector"
}, - "error": "string",
- "typeName": "string"
}
Method to modify a advertiser. Deprecated
path Parameters
idsite required | string database identifier |
Request Body schema:
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. |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string",
- "sector": "NoSector"
}
Response samples
- 200
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}
Method to create an advertiser. Deprecated
path Parameters
idsite required | string database identifier |
Request Body schema:
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. |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string",
- "sector": "NoSector"
}
Response samples
- 200
{- "success": true,
- "data": {
- "id": 0,
- "name": "string",
- "sector": "NoSector"
}, - "error": "string",
- "typeName": "string"
}
Method to retrieve an affiliation from its identifier Deprecated
path Parameters
idAffiliation required | integer <int32> Affiliation identifier |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "success": true,
- "data": {
- "id": 0,
- "name": "string",
- "webSite": "string"
}, - "error": "string",
- "typeName": "string"
}
Method to modify an affiliation. Deprecated
path Parameters
idsite required | string database identifier |
Request Body schema:
Affiliation to update.
id | integer <int32> Segment identifier. |
name required | string Platform name. |
webSite required | string Website url. |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string",
- "webSite": "string"
}
Response samples
- 200
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}
Method to create an affiliation. Deprecated
path Parameters
idsite required | string database identifier |
Request Body schema:
Affiliation to create.
id | integer <int32> Segment identifier. |
name required | string Platform name. |
webSite required | string Website url. |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string",
- "webSite": "string"
}
Response samples
- 200
{- "success": true,
- "data": {
- "id": 0,
- "name": "string",
- "webSite": "string"
}, - "error": "string",
- "typeName": "string"
}
Rename a picture.
path Parameters
idPicture required | integer <int32> Picture id |
idsite required | string database identifier |
Request Body schema:
New picture name
Responses
Request samples
- Payload
"string"
Response samples
- 200
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}
Add a picture from the html builder.
path Parameters
idsite required | string database identifier |
query Parameters
idCampaign required | integer <int32> Campaign id |
Responses
Response samples
- 200
{- "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"
}
Method used to update a picture directory
path Parameters
idsite required | string database identifier |
Request Body schema:
Directory to create.
id | integer <int32> Directory identifier |
name | string Directory name |
Responses
Request samples
- Payload
{- "id": 0,
- "name": "string"
}
Response samples
- 200
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}
Method used to create a picture directory or sub-directory
path Parameters
idsite required | string database identifier |
Request Body schema:
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 |
Responses
Request samples
- Payload
{- "name": "string",
- "isSystem": true,
- "idParent": 0,
- "dirType": "Unknown"
}
Response samples
- 200
{- "success": true,
- "data": 0,
- "error": "string",
- "typeName": "string"
}
Retrieve a list of pictures by filter
path Parameters
idsite required | string database identifier |
query Parameters
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) |
Responses
Response samples
- 200
{- "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"
}
Upload a picture with the specified informations.
path Parameters
idsite required | string database identifier |
Request Body schema:
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 |
Responses
Request samples
- Payload
{- "name": "string",
- "fileName": "string",
- "base64Content": "string",
- "idDirectory": 0
}
Response samples
- 200
{- "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.
Method to retrieve mailing configurations by filter
path Parameters
idsite required | string database identifier |
query Parameters
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) |
Responses
Response samples
- 200
{- "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"
}
Method to modify a mailing configuration.
path Parameters
idsite required | string database identifier |
Request Body schema:
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 |
Responses
Request samples
- Payload
{- "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
}
Response samples
- 200
{- "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"
}
Method to create a mailing configuration.
path Parameters
idsite required | string database identifier |
Request Body schema:
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 |
Responses
Request samples
- Payload
{- "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
}
Response samples
- 200
{- "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"
}
Method to duplicate a mailing configuration.
path Parameters
idConfig required | integer <int32> Configuration identifier to duplicate. |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "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:
- campaigns(in preparation or scheduled)
- segments
- sending configurations
- Ads
- URLs
Method to retrieve a directory from its identifier
path Parameters
idDirectory required | integer <int32> Directory identifier |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "success": true,
- "data": {
- "id": 0,
- "name": "string",
- "isSystem": true,
- "idParent": 0,
- "dirType": "Unknown"
}, - "error": "string",
- "typeName": "string"
}
Method to retrieve a directory from its identifier
path Parameters
idsite required | string database identifier |
query Parameters
name required | string Directory name |
Responses
Response samples
- 200
{- "success": true,
- "data": {
- "id": 0,
- "name": "string",
- "isSystem": true,
- "idParent": 0,
- "dirType": "Unknown"
}, - "error": "string",
- "typeName": "string"
}
Method to retrieve directories of a specified type Deprecated
path Parameters
idType required | string Default: "Unknown" Enum: "Unknown" "Campaign" "Filter" "Pub" "Image" "URL" "Config" "Link" Directory type |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "success": true,
- "data": [
- {
- "id": 0,
- "name": "string",
- "isSystem": true,
- "idParent": 0,
- "dirType": "Unknown"
}
], - "error": "string",
- "typeName": "string"
}
Method to retrieve a thematic from its identifier
path Parameters
idThematic required | integer <int32> Thematic identifier |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "success": true,
- "data": {
- "idThematic": 0,
- "idParentThematic": 0,
- "name": "string",
- "description": "string",
- "isEnabled": true
}, - "error": "string",
- "typeName": "string"
}
Method to modify a thematic.
path Parameters
idsite required | string database identifier |
Request Body schema:
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. |
Responses
Request samples
- Payload
{- "idThematic": 0,
- "idParentThematic": 0,
- "name": "string",
- "description": "string",
- "isEnabled": true
}
Response samples
- 200
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}
Method to create a thematic.
path Parameters
idsite required | string database identifier |
Request Body schema:
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. |
Responses
Request samples
- Payload
{- "idThematic": 0,
- "idParentThematic": 0,
- "name": "string",
- "description": "string",
- "isEnabled": true
}
Response samples
- 200
{- "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):
- Field filter (e.g. webmail, gender, age, is optin, etc.)
- Behaviour filter (e.g. clicked 2 times in the last 30 days)
- Thematic filter (e.g. opened at least 3 times in the last 20 days a campaign with the theme Travel)
- Sending filter (e.g. has received one or several sendings)
- Email pressure filter (e.g. Has been targeted at least 2 times during this week)
- Geoloc filter (e.g. live in France under 10km from postal code 59000)
- SQL filter (you can write your own Sql query)
- File filter (e.g. target subscribers whose email address is present in a file)
📝 A target can be used to :
- select the subscribers who will receive your email campaign. More information here
- choose the subscribers to include inside an export. More information here
Then, depending on your targeting criteria, you need to create the right filter objects to assign to your Target ID.
💡 It is recommended to first read the API documentation here. You will find an example of target creation.
Retrieves a target by its identifier
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
path Parameters
idTarget required | integer <int32> Target identifier |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "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
}, - "error": "string",
- "typeName": "string"
}
Method to update a target
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.
path Parameters
idTarget required | integer <int32> Target identifier to update |
idsite required | string database identifier |
Request Body schema:
⚠️ 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. |
Responses
Request samples
- Payload
{- "name": "string",
- "isTestTarget": true,
- "pctSelect": 0,
- "maxSelect": 0,
- "isRandomMode": true,
- "excludedTargets": [
- 0
]
}
Response samples
- 200
{- "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
}, - "error": "string",
- "typeName": "string"
}
Method to delete a target
⚠️ 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
path Parameters
idTarget required | integer <int32> Target identifier to delete |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}
Retrieves all targets
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
path Parameters
idsite required | string database identifier |
query Parameters
isAutomation required | boolean (obsolete) True if you want to retrieve only automation targets |
Responses
Response samples
- 200
{- "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,
- "pctSelect": 0,
- "maxSelect": 0,
- "isRandomMode": true,
- "directories": "string"
}
], - "start": 0
}, - "error": "string",
- "typeName": "string"
}
Method to get subscriberIds selected by a target
The method returns an array of subscriberIds (integer)
If the targetId doesn't exist, a "Target not found" Exception is thrown.
path Parameters
idTarget required | integer <int32> Target Identifier to execute |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "success": true,
- "data": [
- 0
], - "error": "string",
- "typeName": "string"
}
Retrieves a target description by its identifier
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
path Parameters
idTarget required | integer <int32> Target identifier |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "success": true,
- "data": "string",
- "error": "string",
- "typeName": "string"
}
Method to duplicate a target
This method duplicates a target and returns the new Target Object with its target identifier.
path Parameters
idsite required | string database identifier |
Request Body schema:
Target identifier to duplicate.
Responses
Request samples
- Payload
0
Response samples
- 200
{- "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
}, - "error": "string",
- "typeName": "string"
}
Method to count the result of a target
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.
path Parameters
idTarget required | integer <int32> Target identifier to count |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "success": true,
- "data": 0,
- "error": "string",
- "typeName": "string"
}
Method to archive a target
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
path Parameters
idTarget required | integer <int32> Target identifier to archive |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}
Method to unarchive a target
Unarchiving a target allows you to make it visible again in the target manager interface.
path Parameters
idTarget required | integer <int32> Target identifier to unarchive |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}
Method to retrieve targets by filter
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.
path Parameters
idsite required | string database identifier |
query Parameters
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) |
Responses
Response samples
- 200
{- "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,
- "pctSelect": 0,
- "maxSelect": 0,
- "isRandomMode": true,
- "directories": "string"
}
], - "start": 0
}, - "error": "string",
- "typeName": "string"
}
Method to create a new target
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
path Parameters
idsite required | string database identifier |
Request Body schema:
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. |
Responses
Request samples
- Payload
{- "name": "string",
- "isTestTarget": true,
- "pctSelect": 0,
- "maxSelect": 0,
- "isRandomMode": true,
- "excludedTargets": [
- 0
]
}
Response samples
- 200
{- "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
}, - "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.
- Email is equal to "news@mycompany.com;bat@mycompany.com"
- Webmail is equal to "hotmail.*"
- Gender is equal to "1;2"
- Birthdate is today
Retrieves the filter by field of a target by its identifier
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
path Parameters
idTarget required | integer <int32> Target identifier |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "success": true,
- "data": {
- "idTarget": 0,
- "isEnabled": true,
- "filters": [
- {
- "idField": 0,
- "operator": "HasValue",
- "value": "string"
}
]
}, - "error": "string",
- "typeName": "string"
}
Sets a filter by field to a specified target
If the target already has a filter by field, the old one will be automatically replaced.
path Parameters
idsite required | string database identifier |
Request Body schema:
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. |
Responses
Request samples
- Payload
{- "idTarget": 0,
- "isEnabled": true,
- "filters": [
- {
- "idField": 0,
- "operator": "HasValue",
- "value": "string"
}
]
}
Response samples
- 200
{- "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
Retrieves the filter by behaviour of a target by its identifier
path Parameters
idTarget required | integer <int32> Target identifier |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "success": true,
- "data": {
- "idTarget": 0,
- "isEnabled": true,
- "didAnAction": true,
- "action": "Click",
- "behaviourType": "NbDays",
- "nbDaysAgo": 0,
- "idSentList": "string",
- "idSentNames": "string",
- "combinaisonMode": "Union",
- "idCampaign": "string",
- "filterMpp": true
}, - "error": "string",
- "typeName": "string"
}
Sets a filter by behaviour to a specified target
If the target already has a filter by behaviour, the old one will be automatically replaced.
path Parameters
idsite required | string database identifier |
Request Body schema:
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" |
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 |
Responses
Request samples
- Payload
{- "idTarget": 0,
- "isEnabled": true,
- "didAnAction": true,
- "action": "Click",
- "behaviourType": "NbDays",
- "nbDaysAgo": 0,
- "idSentList": "string",
- "idSentNames": "string",
- "combinaisonMode": "Union",
- "idCampaign": "string",
- "filterMpp": true
}
Response samples
- 200
{- "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
Retrieves the filter by thematic of a target by its identifier
path Parameters
idTarget required | integer <int32> Target identifier |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "success": true,
- "data": {
- "idTarget": 0,
- "isFilterEnabled": true,
- "fromNbDays": 0,
- "action": "Click",
- "combinaison": "Union",
- "idsThematics": [
- 0
], - "filterMpp": true
}, - "error": "string",
- "typeName": "string"
}
Sets a filter by thematic to a specified target.
If the target already has a filter by thematic, the old one will be automatically replaced.
path Parameters
idsite required | string database identifier |
Request Body schema:
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 |
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 |
Responses
Request samples
- Payload
{- "idTarget": 0,
- "isFilterEnabled": true,
- "fromNbDays": 0,
- "action": "Click",
- "combinaison": "Union",
- "idsThematics": [
- 0
], - "filterMpp": true
}
Response samples
- 200
{- "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.
Retrieves the filter by mailing of a target by its identifier
path Parameters
idTarget required | integer <int32> Target identifier |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "success": true,
- "data": {
- "combinaisonMode": "Union",
- "idTarget": 0,
- "isFilterEnabled": true,
- "hasReceived": true,
- "idSentList": "string",
- "idSentNames": "string",
- "idsCampaigns": "string"
}, - "error": "string",
- "typeName": "string"
}
Sets a filter by sending to a specified target.
If the target already has a filter by sending, the old one will be automatically replaced.
path Parameters
idsite required | string database identifier |
Request Body schema:
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 |
Responses
Request samples
- Payload
{- "combinaisonMode": "Union",
- "idTarget": 0,
- "isFilterEnabled": true,
- "hasReceived": true,
- "idSentList": "string",
- "idSentNames": "string",
- "idsCampaigns": "string"
}
Response samples
- 200
{- "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:
- Today
- Since X hours/Days
- Between two dates
- By Week
⚠️ You can filter email pressure up to a maximum of 180 days!
Retrieves the filter by emailing pressure of a target by its identifier
path Parameters
idTarget required | integer <int32> Target identifier |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "success": true,
- "data": {
- "idTarget": 0,
- "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"
}
Sets a filter by emailing pressure to a specified target
If the target already has a filter by emailing pressure, the old one will be automatically replaced.
path Parameters
idsite required | string database identifier |
Request Body schema:
Filter by pressure
idTarget required | integer <int32> Target identifier |
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 |
Responses
Request samples
- Payload
{- "idTarget": 0,
- "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
}
Response samples
- 200
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}
Retrieves the filter by geoloc of a target by its identifier
path Parameters
idTarget required | integer <int32> Target identifier |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "success": true,
- "data": {
- "idTarget": 0,
- "isFilterEnabled": true,
- "country": "FRANCE",
- "postcode": "string",
- "radius": 0,
- "departmentIds": "string",
- "excludePostCodes": "string"
}, - "error": "string",
- "typeName": "string"
}
Sets a filter by geoloc to a specified target.
path Parameters
idsite required | string database identifier |
Request Body schema:
Filter by geoloc
idTarget required | integer <int32> Target identifier |
isFilterEnabled | boolean |
country | string Enum: "FRANCE" "UNITED_KINGDOM" "_NBCountry" |
postcode | string |
radius | number <double> |
departmentIds | string |
excludePostCodes | string |
Responses
Request samples
- Payload
{- "idTarget": 0,
- "isFilterEnabled": true,
- "country": "FRANCE",
- "postcode": "string",
- "radius": 0,
- "departmentIds": "string",
- "excludePostCodes": "string"
}
Response samples
- 200
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}
Retrieves the SQL filter of a target by its identifier
path Parameters
idTarget required | integer <int32> Target identifier |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "success": true,
- "data": {
- "idTarget": 0,
- "isEnabled": true,
- "sql": "string"
}, - "error": "string",
- "typeName": "string"
}
Sets a SQL filter to a specified target.
If the target already has a SQL filter, the old one will be automatically replaced.
path Parameters
idsite required | string database identifier |
Request Body schema:
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" |
Responses
Request samples
- Payload
{- "idTarget": 0,
- "isEnabled": true,
- "sql": "string"
}
Response samples
- 200
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}
Retrieves the filter by file of a target by its identifier
path Parameters
idTarget required | integer <int32> Target identifier |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "success": true,
- "data": {
- "idTarget": 0,
- "isEnabled": true,
- "filename": "string",
- "dbFieldName": "string",
- "fileAutomaticDeletionDate": "2019-08-24T14:15:22Z"
}, - "error": "string",
- "typeName": "string"
}
Sets a filter by file to a specified target.
If the target already has a filter by file, the old one will be automatically replaced.
path Parameters
idsite required | string database identifier |
Request Body schema:
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. |
Responses
Request samples
- Payload
{- "idTarget": 0,
- "isEnabled": true,
- "filename": "string",
- "dbFieldName": "string",
- "fileAutomaticDeletionDate": "2019-08-24T14:15:22Z"
}
Response samples
- 200
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}
Method to retrieve a campaign from its identifier
path Parameters
idCampaign required | integer <int32> Campaign identifier |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "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
}, - "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,
- "idDirectory": 0,
- "autoHostPicturesResult": { }
}, - "error": "string",
- "typeName": "string"
}
Method to retrieve campaigns by filter
path Parameters
idsite required | string database identifier |
query Parameters
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" 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) |
Responses
Response samples
- 200
{- "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
}, - "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,
- "idDirectory": 0,
- "autoHostPicturesResult": { }
}
], - "start": 0
}, - "error": "string",
- "typeName": "string"
}
Method to modify a mailing campaign.
path Parameters
idsite required | string database identifier |
query Parameters
updateMode | boolean Default: false Sets the update mode. If updateMode = true, you just have to set the value(s) to update |
Request Body schema:
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 |
idDirectory | integer <int32> idDirectory for the pictures hosting |
autoHostPicturesResult | object |
Responses
Request samples
- Payload
{- "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
}, - "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,
- "idDirectory": 0,
- "autoHostPicturesResult": { }
}
Response samples
- 200
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}
Method to create a campaign.
path Parameters
idsite required | string database identifier |
Request Body schema:
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 |
idDirectory | integer <int32> idDirectory for the pictures hosting |
autoHostPicturesResult | object |
Responses
Request samples
- Payload
{- "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
}, - "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,
- "idDirectory": 0,
- "autoHostPicturesResult": { }
}
Response samples
- 200
{- "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
}, - "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,
- "idDirectory": 0,
- "autoHostPicturesResult": { }
}, - "error": "string",
- "typeName": "string"
}
Method for sending a campaign email to a single subscriber.
path Parameters
idsite required | string database identifier |
Request Body schema:
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, 13, 14, 15, 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 |
Responses
Request samples
- Payload
{- "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"
}
Response samples
- 200
{- "success": true,
- "data": "string",
- "error": "string",
- "typeName": "string"
}
Retrieves all the segments of a campaign.
path Parameters
idCampaign required | integer <int32> Campaign identifier. |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "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
}
], - "lastCount": 0,
- "lastSpamScore": 0
}
], - "error": "string",
- "typeName": "string"
}
Method to create a new campaign segment.
path Parameters
idCampaign required | integer <int32> Campaign identifier. |
idsite required | string database identifier |
Request Body schema:
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. |
Responses
Request samples
- Payload
{- "name": "string",
- "idTarget": 0,
- "isExcluded": true,
- "isRandom": true,
- "percent": 0,
- "mailObject": "string",
- "fixedValues": 0
}
Response samples
- 200
{- "success": true,
- "data": 0,
- "error": "string",
- "typeName": "string"
}
Retrieves a segment of a campaign.
path Parameters
idCampaign required | integer <int32> Campaign identifier. |
segmentPosition required | integer <int32> Segment position. |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "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
}
], - "lastCount": 0,
- "lastSpamScore": 0
}, - "error": "string",
- "typeName": "string"
}
Method to update a segment.
path Parameters
idCampaign required | integer <int32> Campaign identifier. |
segmentPosition required | integer <int32> Position of the segment to update. |
idsite required | string database identifier |
Request Body schema:
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. |
Responses
Request samples
- Payload
{- "name": "string",
- "idTarget": 0,
- "isExcluded": true,
- "isRandom": true,
- "percent": 0,
- "mailObject": "string",
- "fixedValues": 0
}
Response samples
- 200
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}
Method to delete a segment based on its position (beginning at 1).
path Parameters
idCampaign required | integer <int32> Campaign identifier. |
segmentPosition required | integer <int32> Position of the segment to delete. |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "success": true,
- "data": [
- 0
], - "error": "string",
- "typeName": "string"
}
Segments_ReorganizeSegmentPositions
path Parameters
idCampaign required | integer <int32> Campaign identifier. |
idsite required | string database identifier |
Request Body schema:
Segments identifiers in the new order.
Responses
Request samples
- Payload
[- 0
]
Response samples
- 200
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}
Method to assign an advertisement to a placeholder within a segment.
path Parameters
idCampaign required | integer <int32> Campaign identifier. |
segmentPosition required | integer <int32> Segments position, or use 0 to update all segments. |
idsite required | string database identifier |
Request Body schema:
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]] |
Responses
Request samples
- Payload
{- "position": 0,
- "idAdvertisement": 0
}
Response samples
- 200
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}
Counts the number of subscribers in a campaign segment.
path Parameters
idCampaign required | integer <int32> Campaign identifier. |
segmentPosition required | integer <int32> Number of the segment to be counted. |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "success": true,
- "data": [
- {
- "idSegment": 0,
- "position": 0,
- "percent": 0,
- "fixedValues": 0,
- "targetCount": 0,
- "deDuplicatedCount": 0,
- "segmentCount": 0
}
], - "error": "string",
- "typeName": "string"
}
Counts the number of subscribers of all segments in a campaign.
path Parameters
idCampaign required | integer <int32> Campaign identifier. |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "success": true,
- "data": [
- {
- "idSegment": 0,
- "position": 0,
- "percent": 0,
- "fixedValues": 0,
- "targetCount": 0,
- "deDuplicatedCount": 0,
- "segmentCount": 0
}
], - "error": "string",
- "typeName": "string"
}
Sends a BAT test on all the segments of a campaign
path Parameters
idsite required | string database identifier |
Request Body schema:
Campaign identifier
Responses
Request samples
- Payload
0
Response samples
- 200
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}
Sends a BAT on one segment of a campaign
path Parameters
idCampaign required | integer <int32> Campaign identifier |
idsite required | string database identifier |
Request Body schema:
Number of the segment to test
Responses
Request samples
- Payload
0
Response samples
- 200
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}
Schedules a campaign for a number of different dates CET (UTC+1) / CEST (UTC+2)
path Parameters
idCampaign required | integer <int32> Campaign identifier |
idsite required | string database identifier |
Request Body schema:
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).
Responses
Request samples
- Payload
[- "2019-08-24T14:15:22Z"
]
Response samples
- 200
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}
Daily Schedules of a campaign. CET (UTC+1) / CEST (UTC+2).
path Parameters
idCampaign required | integer <int32> Campaign identifier |
idsite required | string database identifier |
Request Body schema:
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) |
Responses
Request samples
- Payload
{- "startDate": "2019-08-24T14:15:22Z",
- "endDate": "2019-08-24T14:15:22Z",
- "sendingTime": "string",
- "frequency": 0
}
Response samples
- 200
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}
Mail a campaign now (within 30+s) or resume a paused campaign
path Parameters
idsite required | string database identifier |
Request Body schema:
Campaign identifier
Responses
Request samples
- Payload
0
Response samples
- 200
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}
Pause a schedule or a sending campaign.
path Parameters
idsite required | string database identifier |
Request Body schema:
Campaign identifier
Responses
Request samples
- Payload
0
Response samples
- 200
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}
Stops a schedule or a sending campaign.
path Parameters
idsite required | string database identifier |
Request Body schema:
Campaign identifier
Responses
Request samples
- Payload
0
Response samples
- 200
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}
Retrieves all the sents of a campaign.
path Parameters
idCampaign required | integer <int32> Campaign identifier. |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "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"
}
Retrieves all the sents of a campaign.
path Parameters
idsite required | string database identifier |
query Parameters
idCampaign required | integer <int32> Campaign identifier. |
idJob required | integer <int32> Job identifier. |
includeContent | boolean Default: false Include full content. |
Responses
Response samples
- 200
{- "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
}
], - "lastCount": 0,
- "lastSpamScore": 0
}
}
], - "error": "string",
- "typeName": "string"
}
Retrieves all the sents of a campaign.
path Parameters
idsite required | string database identifier |
query Parameters
idCampaign required | integer <int32> Campaign identifier. |
idJob required | integer <int32> Job identifier. |
Responses
Response samples
- 200
{- "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"
}
Computes the spam score of a segment
path Parameters
idsite required | string database identifier |
Request Body schema:
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. |
Responses
Request samples
- Payload
{- "idCampaign": 0,
- "segmentPosition": 0,
- "idSubscriber": 0
}
Response samples
- 200
{- "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.
Retrieves the urls of a campaign and creates tracked urls by default.
path Parameters
idCampaign required | integer <int32> Campaign identifier |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "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"
}
Retrieves all tracked links of a campaign (terminated or in preparation).
path Parameters
idCampaign required | integer <int32> Campaign identifier |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "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"
}
This function allows all urls in a campaign to be tracked.
path Parameters
idsite required | string database identifier |
Request Body schema:
Campaign identifier
Responses
Request samples
- Payload
0
Response samples
- 200
{- "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"
}
This function allows a url in a campaign to be tracked.
path Parameters
idCampaign required | integer <int32> Campaign identifier |
idsite required | string database identifier |
Request Body schema:
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. |
Responses
Request samples
- Payload
{- "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
}
}
Response samples
- 200
{- "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"
}
De-activates a single url tracking.
path Parameters
idCampaign required | integer <int32> Campaign identifier. |
idTrackedUrl required | integer <int64> Identifier of the tracked url retrieved using function /all. |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}
Retrieves mailing stats from a campaign.
path Parameters
idsite required | string database identifier |
query Parameters
idCampaign required | integer <int32> Campaign identifier |
Responses
Response samples
- 200
{- "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"
}
Returns statistics, based on a campaign, job or sent identifier.
path Parameters
idsite required | string database identifier |
query Parameters
idJob required | integer <int32> Job id |
idSent required | integer <int32> Sent id |
Responses
Response samples
- 200
{- "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"
}
Retrieves mailing stats from a mailing within the last nbDays.
path Parameters
idsite required | string database identifier |
query Parameters
idSent required | integer <int32> Mailing Identifier |
mode required | string Enum: "Mobile" "Desktop" "DesktopAndMobile" Reading mode filter |
Responses
Response samples
- 200
{- "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,
- "reacEdito": 0,
- "reacMirror": 0,
- "reacPub": 0,
- "reacUnsub": 0,
- "sendingName": "string",
- "startDate": "2019-08-24T14:15:22Z"
}
], - "error": "string",
- "typeName": "string"
}
Retrieves mailing stats within the last nbDays.
path Parameters
idsite required | string database identifier |
query Parameters
mode required | string Enum: "Mobile" "Desktop" "DesktopAndMobile" Reading mode filter. |
nbDays required | integer <int32> nbDays max = 60. |
Responses
Response samples
- 200
{- "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,
- "reacEdito": 0,
- "reacMirror": 0,
- "reacPub": 0,
- "reacUnsub": 0,
- "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
}
], - "error": "string",
- "typeName": "string"
}
Retrieves mailing stats from a campaign within the last nbDays.
path Parameters
idsite required | string database identifier |
query Parameters
idCampaign required | integer <int32> Campaign identifier |
mode required | string Enum: "Mobile" "Desktop" "DesktopAndMobile" Reading mode filter. |
nbDays required | integer <int32> nbDays max = 60. |
Responses
Response samples
- 200
{- "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,
- "reacEdito": 0,
- "reacMirror": 0,
- "reacPub": 0,
- "reacUnsub": 0,
- "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
}
], - "error": "string",
- "typeName": "string"
}
Generate a campaign report
path Parameters
idsite required | string database identifier |
query Parameters
idJob required | integer <int32> Job id |
idSent required | integer <int32> Sent id |
mpp required | boolean Is mpp |
Responses
Response samples
- 200
{- "success": true,
- "data": "00000000-0000-0000-0000-000000000000",
- "error": "string",
- "typeName": "string"
}
Generate a export request (CSV). The file can be found in your mindbaz sftp account.
path Parameters
idsite required | string database identifier |
query Parameters
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 |
Responses
Response samples
- 200
{- "success": true,
- "data": true,
- "error": "string",
- "typeName": "string"
}
Method for retrieving a content bloc.
path Parameters
idsite required | string database identifier |
query Parameters
contentKey required | string Content identifiers to retrieve |
Responses
Response samples
- 200
{- "success": true,
- "data": {
- "contentKey": "string",
- "contentValue": "string"
}, - "error": "string",
- "typeName": "string"
}
Method to update a content bloc.
path Parameters
idsite required | string database identifier |
Request Body schema:
Content to update
contentKey | string Content key |
contentValue | string Content value |
Responses
Request samples
- Payload
{- "contentKey": "string",
- "contentValue": "string"
}
Response samples
- 200
{- "success": true,
- "data": {
- "contentKey": "string",
- "contentValue": "string"
}, - "error": "string",
- "typeName": "string"
}
Create a contentData
path Parameters
idsite required | string database identifier |
Request Body schema:
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' |
Responses
Request samples
- Payload
{- "key": "string",
- "dataFilePath": "string",
- "dataFieldTerminator": "string",
- "dataRowTerminator": "string"
}
Response samples
- 200
{- "success": true,
- "data": "string",
- "error": "string",
- "typeName": "string"
}
Retrieve the list of the invoives (only for admin members)
path Parameters
idsite required | string database identifier |
Responses
Response samples
- 200
{- "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"
}
Method for pre-generating a HTML content.
path Parameters
idSent required | integer <int32> Sent identifier |
idsite required | string database identifier |
Request Body schema:
Html content to transform
Responses
Request samples
- Payload
"string"
Response samples
- 200
{- "success": true,
- "data": "string",
- "error": "string",
- "typeName": "string"
}
Method for pre-generating a HTML content.
path Parameters
idsite required | string database identifier |
query Parameters
idCampaign required | integer <int32> Campaign identifier |
idSent required | integer <int32> Sent identifier |
idJob required | integer <int32> Job identifier |
Responses
Response samples
- 200
{- "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.
Method for confirming level 3 unlocking
path Parameters
id required | string identifiant de l'alerte |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "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"
}
Method for obtaining information from an SNPRI alert
path Parameters
id required | string identifiant de l'alerte |
idsite required | string database identifier |
Responses
Response samples
- 200
{- "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"
}