Aller au contenu principal

Mindbaz API (V1)

Download OpenAPI specification:Download

Exports

Service managing exports

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.
Yo can get the id of a target with this endpoint

idsFields
required
Array of strings

Indicates the fields identifiers you want to export.
Click here to learn more about idFields.
💡 You can use the value "all" to export all the fields
💡 You can use the value "100000" to export MD5 encoded email and "200000" to export SHA2_256 encoded email.

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.
It is usefull to add a hash in your file. For ex, if you pass the idsEncodeFields = {1,14,15}, you will create a hash wich is the result of md5 applied on the concatenation of the email, lastname and firstname values.

filename
string

Indicates the file name to export.
💡 You can add a subfolder in your filename. For ex, "EXPORT\\myfilename.csv". Or you can use the ExportSubFolder parameter to add a subfolder too.
⚠️ A timestamp suffix is added to your filename (with format yyyyMMddHHmmss).For ex: "test_export.csv" will give "test_export_20231004173211.csv"

quantity
integer <int32>

Indicates the lines count to export, 0=all.

typeList
required
string
Enum: "ID" "VALUE"

Indicates how to export list type fields.
For ex, the field id 13 (gender) is a list type field with "0:M;1:Mrs;2:Miss"
If you pass TypeList = VALUE, "M" "Mrs" and "Miss" will be exported for this field
But if you pass TypeList = ID, "0","1" and "2" will be exported instead.

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

Content type
{
  • "idTarget": 0,
  • "idsFields": [
    ],
  • "idsEncodeFields": [
    ],
  • "filename": "string",
  • "quantity": 0,
  • "typeList": "ID",
  • "compress": "GZip",
  • "encoding": "None",
  • "exportSubFolder": "string",
  • "idRepository": 0,
  • "codePage": 0,
  • "columnSeparator": "string",
  • "idNewLineCharacter": 0
}

Response samples

Content type
{
  • "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

Content type
{
  • "success": true,
  • "data": [
    ],
  • "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

Content type
{
  • "success": true,
  • "data": {
    },
  • "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

Content type
{
  • "success": true,
  • "data": {
    },
  • "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

Content type
{
  • "success": true,
  • "data": {
    },
  • "error": "string",
  • "typeName": "string"
}

Fields

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

Content type
{
  • "success": true,
  • "data": [
    ],
  • "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

Content type
{
  • "success": true,
  • "data": {
    },
  • "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

Content type
{
  • "success": true,
  • "data": [
    ],
  • "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
For ex, the field id 13 (gender) is a list type field with [0,1,2] for the keys and ["M","Mrs","Miss"] for the values

fieldType
required
string
Enum: "Unspecified" "Text" "Integer" "Date" "List" "Boolean"

Field type

  • "Text"=1
  • "Integer"=2
  • "Date"=3
  • "List"=4
  • "Boolean"=5 (⚠️ not yet implemented)

description
string

Field description (Max 500 characters)

isSystem
boolean

Value indicating whether the field is a system field (true) or a custom field (false).
A system field is a field that is created with the same id on every databases.
⚠️ Readonly field! You can't modify this parameter and all other parameters of a system field!

isVisible
boolean

Value indicating whether the field is visible on the Mindbaz interface
⚠️ Readonly field! This field can only be edited by the customer service. If you want to hide a field, you can use the IsHiddenByCustomer parameter.

isEditable
boolean

Value indicating whether the field is editable
⚠️ Readonly field! This field can only be edited by the customer service.

isHiddenByCustomer
boolean

Value indicating whether the field is hidden by the customer on the Mindbaz "field management" page

Responses

Request samples

Content type
{
  • "id": 0,
  • "name": "string",
  • "length": 0,
  • "list": [
    ],
  • "fieldType": "Unspecified",
  • "description": "string",
  • "isSystem": true,
  • "isVisible": true,
  • "isEditable": true,
  • "isHiddenByCustomer": true
}

Response samples

Content type
{
  • "success": true,
  • "data": {
    },
  • "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
For ex, the field id 13 (gender) is a list type field with [0,1,2] for the keys and ["M","Mrs","Miss"] for the values

fieldType
required
string
Enum: "Unspecified" "Text" "Integer" "Date" "List" "Boolean"

Field type

  • "Text"=1
  • "Integer"=2
  • "Date"=3
  • "List"=4
  • "Boolean"=5 (⚠️ not yet implemented)

description
string

Field description (Max 500 characters)

isSystem
boolean

Value indicating whether the field is a system field (true) or a custom field (false).
A system field is a field that is created with the same id on every databases.
⚠️ Readonly field! You can't modify this parameter and all other parameters of a system field!

isVisible
boolean

Value indicating whether the field is visible on the Mindbaz interface
⚠️ Readonly field! This field can only be edited by the customer service. If you want to hide a field, you can use the IsHiddenByCustomer parameter.

isEditable
boolean

Value indicating whether the field is editable
⚠️ Readonly field! This field can only be edited by the customer service.

isHiddenByCustomer
boolean

Value indicating whether the field is hidden by the customer on the Mindbaz "field management" page

Responses

Request samples

Content type
{
  • "id": 0,
  • "name": "string",
  • "length": 0,
  • "list": [
    ],
  • "fieldType": "Unspecified",
  • "description": "string",
  • "isSystem": true,
  • "isVisible": true,
  • "isEditable": true,
  • "isHiddenByCustomer": true
}

Response samples

Content type
{
  • "success": true,
  • "data": {
    },
  • "error": "string",
  • "typeName": "string"
}

Imports

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

Content type
{
  • "success": true,
  • "data": {
    },
  • "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

  • 1 Scheduled
  • 2 InProgress
  • 3 Completed
  • 4 Paused
  • 5 PackageErrorCreation

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

Content type
{
  • "id": 0,
  • "parameters": {
    },
  • "creationDate": "2019-08-24T14:15:22Z",
  • "importState": "Scheduled",
  • "isDeleted": true,
  • "deletionDate": "2019-08-24T14:15:22Z",
  • "schedulingInfos": {
    },
  • "lastImportLog": {
    }
}

Response samples

Content type
{
  • "success": true,
  • "data": {
    },
  • "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

  • 1 Scheduled
  • 2 InProgress
  • 3 Completed
  • 4 Paused
  • 5 PackageErrorCreation

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

Content type
{
  • "id": 0,
  • "parameters": {
    },
  • "creationDate": "2019-08-24T14:15:22Z",
  • "importState": "Scheduled",
  • "isDeleted": true,
  • "deletionDate": "2019-08-24T14:15:22Z",
  • "schedulingInfos": {
    },
  • "lastImportLog": {
    }
}

Response samples

Content type
{
  • "success": true,
  • "data": {
    },
  • "error": "string",
  • "typeName": "string"
}

Stops an import in progress or cancels a scheduled import.

path Parameters
idImport
required
integer <int32>

import ID

idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": true,
  • "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

Content type
{
  • "success": true,
  • "data": {
    },
  • "error": "string",
  • "typeName": "string"
}

Subscribers

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

Subscribers count

Counts the number of subscribers in the database

path Parameters
idsite
required
string

database identifier

query Parameters
clause
Array of any

Responses

Response samples

Content type
{
  • "success": true,
  • "data": 0,
  • "error": "string",
  • "typeName": "string"
}

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
The method returns an array of Subscriber object. If the subscriber is not found, a null object is returned.

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.
⚠️ Attention, IdSubscriber (fld0 - field id = 0) is always returned

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

Content type
{
  • "success": true,
  • "data": [
    ],
  • "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

Array
id
required
integer <int32>

Subscriber identifier (also field[0])
Mandatory only for a PUT
Leave null for a POST (a new Id will be set automatically)

required
Array of objects (SubscriberFieldData)

Fields containing suscriber data you want to update.
📝 For a PUT, you do not have to repeat the idSubscriber (field[0]) in this array.
⚠️ For a POST, the email (field[1]) is mandatory!

Responses

Request samples

Content type
[
  • {
    }
]

Response samples

Content type
{
  • "success": true,
  • "data": [
    ],
  • "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):

[
    {
"fields" : [ { "idField": 1, "value":"test2@mindbaz.com" } ] }, {
"id" : 4060007, /* non existent id */ "fields" : [ { "idField": 14, "value":"my Last Name"}, { "idField": 15, "value":"my First Name" } ] }, {
"id" : 4060006, "fields" : [ { "idField": 14, "value":"my Last Name2"}, { "idField": 15, "value":"my First Name2" } ]
} ]

The POST method will return :

[
     {    
    "id" : 4060017,
    "fields" : [  { "idField": 0, "value":4060017 },
                    { "idField": 1, "value":"test2@mindbaz.com" },
                    { "idField": 2, "value":"2023-10-09T11:33:06.0585536+02:00" },
                    { "idField": 3, "value":"2023-10-09T11:33:06.0585536+02:00" },
                    { "idField": 37, "value":"mindbaz.com" }
                ]
    },
    null,
    {    
    "id" : 4060006,
    "fields" : [  { "idField": 0, "value":4060006 },
                    { "idField": 14, "value":"my Last Name2" },
                    { "idField": 15, "value":"my First Name2" }                    
                ]
    }
]

path Parameters
idsite
required
string

database identifier

Request Body schema:

Subscribers to create

Array
id
required
integer <int32>

Subscriber identifier (also field[0])
Mandatory only for a PUT
Leave null for a POST (a new Id will be set automatically)

required
Array of objects (SubscriberFieldData)

Fields containing suscriber data you want to update.
📝 For a PUT, you do not have to repeat the idSubscriber (field[0]) in this array.
⚠️ For a POST, the email (field[1]) is mandatory!

Responses

Request samples

Content type
[
  • {
    }
]

Response samples

Content type
{
  • "success": true,
  • "data": [
    ],
  • "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

Content type
{
  • "success": true,
  • "data": [
    ],
  • "error": "string",
  • "typeName": "string"
}

SubscribersArchive

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 un-archive a subscriber.

path Parameters
idSubscriber
required
integer <int32>

Subscriber identifier to un-archive.

idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": 0,
  • "error": "string",
  • "typeName": "string"
}

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.
⚠️ Attention, IdSubscriber (fld0 - field id = 0) is always returned

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

Content type
{
  • "success": true,
  • "data": [
    ],
  • "error": "string",
  • "typeName": "string"
}

Subscriptions

Service managing subscriptions in the mindbaz main subscriber table.

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:

Array
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])
Set this parameter to true to subscribe to partners (field[8]=1) and to update automatically the optin partner subscription date (field[10]) with the "Date" parameter.
Leave null if you don't use optin partners.

Responses

Request samples

Content type
[
  • {
    }
]

Response samples

Content type
{
  • "success": true,
  • "data": [
    ],
  • "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:

Array
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])
Set this parameter to true to subscribe to partners (field[8]=1) and to update automatically the optin partner subscription date (field[10]) with the "Date" parameter.
(Optional) Leave null if you don't use optin partners.

Responses

Request samples

Content type
[
  • {
    }
]

Response samples

Content type
{
  • "success": true,
  • "data": [
    ],
  • "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)
  • from partner offers:
    • Partner offers opt-in = Yes (field[8]=1)
    • Partner offers opt-in date = Now (field[10]=Now)
  • from a specific newsletter
    • field[IdSubscriptionField] = 1
    • field[IdUnsubDateField] = Now

💡 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:

Array
idSubscriber
required
integer <int32>

Subscriber identifier

from
string
Enum: "Newsletter" "PartnerOffers" "SpecificNewsletter"

Unsubscription target.
You can unsubscribe from global newsletters (field[7]), partner offers (field[8]) or a specific newsletter (your own field)

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.
📝 This parameter is important for unsubscription statistics of your emailing campaigns!
💡 Use this Config Tag [[CONF.7]] in your url parameters to get this idSent easily!

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

Content type
[
  • {
    }
]

Response samples

Content type
{
  • "success": true,
  • "data": [
    ],
  • "error": "string",
  • "typeName": "string"
}

Advertisements

Service managing advertisements

Method to retrieve an advertisement from its identifier

path Parameters
idAdvertisement
required
integer <int32>

Advertisement identifier

idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": {
    },
  • "error": "string",
  • "typeName": "string"
}

Method to delete an advertisement

path Parameters
idAdvertisement
required
integer <int32>

Advertisement identifier

idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": true,
  • "error": "string",
  • "typeName": "string"
}

Method to retrieve all advertisements

path Parameters
idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": [
    ],
  • "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

Content type
{
  • "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": [
    ]
}

Response samples

Content type
{
  • "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

Content type
{
  • "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": [
    ]
}

Response samples

Content type
{
  • "success": true,
  • "data": {
    },
  • "error": "string",
  • "typeName": "string"
}

Method to duplicate an advertisement.

path Parameters
idAdvertisement
required
integer <int32>

Advertisement to duplicate.

idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": 0,
  • "error": "string",
  • "typeName": "string"
}

Advertiser

Service managing advertisers

Method for retrieving the Common Advertisers list.

path Parameters
idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": [
    ],
  • "error": "string",
  • "typeName": "string"
}

Method for create a Common Advertiser.

path Parameters
idsite
required
string

database identifier

query Parameters
name
required
string

Advertiser name

Responses

Response samples

Content type
{
  • "success": true,
  • "data": 0,
  • "error": "string",
  • "typeName": "string"
}

Method for retrieving the Common Advertiser.

path Parameters
name
required
string

Advertiser name

idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": [
    ],
  • "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

Content type
{
  • "success": true,
  • "data": {
    },
  • "error": "string",
  • "typeName": "string"
}

Method to delete an advertiser Deprecated

path Parameters
idAdvertiser
required
integer <int32>

Advertiser identifier

idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": true,
  • "error": "string",
  • "typeName": "string"
}

Method to retrieve all advertisers Deprecated

path Parameters
idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": [
    ],
  • "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

Content type
{
  • "id": 0,
  • "name": "string",
  • "sector": "NoSector"
}

Response samples

Content type
{
  • "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

Content type
{
  • "id": 0,
  • "name": "string",
  • "sector": "NoSector"
}

Response samples

Content type
{
  • "success": true,
  • "data": {
    },
  • "error": "string",
  • "typeName": "string"
}

Affiliation

Service managing affiliations

Method for retrieving the Common Affiliate Platform list.

path Parameters
idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": [
    ],
  • "error": "string",
  • "typeName": "string"
}

Method for create a Common affiliate platform.

path Parameters
idsite
required
string

database identifier

query Parameters
name
required
string

platform name

Responses

Response samples

Content type
{
  • "success": true,
  • "data": 0,
  • "error": "string",
  • "typeName": "string"
}

Method for retrieving the Common Affiliate Platform .

path Parameters
name
required
string

platform name

idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": [
    ],
  • "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

Content type
{
  • "success": true,
  • "data": {
    },
  • "error": "string",
  • "typeName": "string"
}

Method to delete an affiliation Deprecated

path Parameters
idAffiliation
required
integer <int32>

Affiliation identifier

idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": true,
  • "error": "string",
  • "typeName": "string"
}

Method to retrieve all affiliations Deprecated

path Parameters
idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": [
    ],
  • "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

Content type
{
  • "id": 0,
  • "name": "string",
  • "webSite": "string"
}

Response samples

Content type
{
  • "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

Content type
{
  • "id": 0,
  • "name": "string",
  • "webSite": "string"
}

Response samples

Content type
{
  • "success": true,
  • "data": {
    },
  • "error": "string",
  • "typeName": "string"
}

Pictures

Service managing picture

Rename a picture.

path Parameters
idPicture
required
integer <int32>

Picture id

idsite
required
string

database identifier

Request Body schema:

New picture name

string

Responses

Request samples

Content type
"string"

Response samples

Content type
{
  • "success": true,
  • "data": true,
  • "error": "string",
  • "typeName": "string"
}

Add a picture from the html builder.

path Parameters
idPicture
required
integer <int32>

Picture id

idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "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

Content type
{
  • "success": true,
  • "data": {
    },
  • "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

Content type
{
  • "id": 0,
  • "name": "string"
}

Response samples

Content type
{
  • "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

Content type
{
  • "name": "string",
  • "isSystem": true,
  • "idParent": 0,
  • "dirType": "Unknown"
}

Response samples

Content type
{
  • "success": true,
  • "data": 0,
  • "error": "string",
  • "typeName": "string"
}

Method used to delete a picture directory

path Parameters
id
required
integer <int32>

Picture directory id.

idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": true,
  • "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

Content type
{
  • "success": true,
  • "data": {
    },
  • "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

Content type
{
  • "name": "string",
  • "fileName": "string",
  • "base64Content": "string",
  • "idDirectory": 0
}

Response samples

Content type
{
  • "success": true,
  • "data": {
    },
  • "error": "string",
  • "typeName": "string"
}

Sending Configuration

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

Content type
{
  • "success": true,
  • "data": {
    },
  • "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

Content type
{
  • "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

Content type
{
  • "success": true,
  • "data": {
    },
  • "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

Content type
{
  • "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

Content type
{
  • "success": true,
  • "data": {
    },
  • "error": "string",
  • "typeName": "string"
}

Returns the list of authorized sender domains.

path Parameters
idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": [
    ],
  • "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

Content type
{
  • "success": true,
  • "data": {
    },
  • "error": "string",
  • "typeName": "string"
}

Archives a mailing configuration.

path Parameters
idConfig
required
integer <int32>

Configuration to archive.

idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": true,
  • "error": "string",
  • "typeName": "string"
}

Remove a mailing configuration from archives.

path Parameters
idConfig
required
integer <int32>

Configuration to unarchive.

idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": true,
  • "error": "string",
  • "typeName": "string"
}

Method to delete a configuration.

path Parameters
idConfig
required
integer <int32>

Configuration identifiers to delete.

idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": true,
  • "error": "string",
  • "typeName": "string"
}

Tags

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

Content type
{
  • "success": true,
  • "data": {
    },
  • "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

Content type
{
  • "success": true,
  • "data": {
    },
  • "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

Content type
{
  • "success": true,
  • "data": [
    ],
  • "error": "string",
  • "typeName": "string"
}

Method to retrieve directories

path Parameters
idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": [
    ],
  • "error": "string",
  • "typeName": "string"
}

Thematics

Service managing thematics

Method to retrieve a thematic from its identifier

path Parameters
idThematic
required
integer <int32>

Thematic identifier

idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": {
    },
  • "error": "string",
  • "typeName": "string"
}

Method to delete a thematic

path Parameters
idThematic
required
integer <int32>

Thematic identifier

idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": true,
  • "error": "string",
  • "typeName": "string"
}

Method to retrieve all thematics

path Parameters
idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": [
    ],
  • "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

Content type
{
  • "idThematic": 0,
  • "idParentThematic": 0,
  • "name": "string",
  • "description": "string",
  • "isEnabled": true
}

Response samples

Content type
{
  • "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

Content type
{
  • "idThematic": 0,
  • "idParentThematic": 0,
  • "name": "string",
  • "description": "string",
  • "isEnabled": true
}

Response samples

Content type
{
  • "success": true,
  • "data": {
    },
  • "error": "string",
  • "typeName": "string"
}

Targets

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
📝 To create a new target, you first need to create a Target Object with this POST method.
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

Content type
{
  • "success": true,
  • "data": {
    },
  • "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)
⚠️ The target name must be unique. So, if you choose name that already exists, a suffix "-COPY" and a timestamp is automatically added at the end of the name.

isTestTarget
boolean

true if the target will be used exclusively to test your email campaigns
📝 False by default
You need to define a test target in the e-mail campaign parameters when you create a new campaign here.
And this test target is used when you call this method

pctSelect
integer <int32>

Percentage of subscribers to select (defaults to 100).
📝 100 by default
💡 If pctSelect is below 100, we recommend to set IsRandomMode to true. ⚠️ Attention: used only for standard targets.

maxSelect
integer <int32>

Max number of subscribers to select (if defined, maxSelect should replace pctSelect).
📝 Int32.MinValue by default (-2147483648) ⚠️ Attention: used only for standard targets.

isRandomMode
boolean

True to activate random mode (useful where percentage is lower than 100).
📝 False by default
⚠️ Attention: used only for standard targets.
⚠️ Attention: It is not recommended to exclude a target in random mode since the excluded population will be different each time.

excludedTargets
Array of integers <int32> [ items <int32 > ]

List of target IDs to be excluded from the current target.
⚠️ Attention: used only for standard targets.

Responses

Request samples

Content type
{
  • "name": "string",
  • "isTestTarget": true,
  • "pctSelect": 0,
  • "maxSelect": 0,
  • "isRandomMode": true,
  • "excludedTargets": [
    ]
}

Response samples

Content type
{
  • "success": true,
  • "data": {
    },
  • "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

Content type
{
  • "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

Content type
{
  • "success": true,
  • "data": {
    },
  • "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

Content type
{
  • "success": true,
  • "data": [
    ],
  • "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

Content type
{
  • "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.

integer <int32>

Responses

Request samples

Content type
0
0

Response samples

Content type
{
  • "success": true,
  • "data": {
    },
  • "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

Content type
{
  • "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

Content type
{
  • "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

Content type
{
  • "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:

  • "All" : Search everywhere (except archived)
  • "MyFavorites" : Search in the current user's favourites
  • "MyCreated" : Search in targets created by the current user
  • "Archives" : Search in archived targets
  • "MyTests" : Search in test targets created by the current user

💡 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
💡 You do not have to provide the full name. Part of the name is enough.

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

Content type
{
  • "success": true,
  • "data": {
    },
  • "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)
⚠️ The target name must be unique. So, if you choose name that already exists, a suffix "-COPY" and a timestamp is automatically added at the end of the name.

isTestTarget
boolean

true if the target will be used exclusively to test your email campaigns
📝 False by default
You need to define a test target in the e-mail campaign parameters when you create a new campaign here.
And this test target is used when you call this method

pctSelect
integer <int32>

Percentage of subscribers to select (defaults to 100).
📝 100 by default
💡 If pctSelect is below 100, we recommend to set IsRandomMode to true. ⚠️ Attention: used only for standard targets.

maxSelect
integer <int32>

Max number of subscribers to select (if defined, maxSelect should replace pctSelect).
📝 Int32.MinValue by default (-2147483648) ⚠️ Attention: used only for standard targets.

isRandomMode
boolean

True to activate random mode (useful where percentage is lower than 100).
📝 False by default
⚠️ Attention: used only for standard targets.
⚠️ Attention: It is not recommended to exclude a target in random mode since the excluded population will be different each time.

excludedTargets
Array of integers <int32> [ items <int32 > ]

List of target IDs to be excluded from the current target.
⚠️ Attention: used only for standard targets.

Responses

Request samples

Content type
{
  • "name": "string",
  • "isTestTarget": true,
  • "pctSelect": 0,
  • "maxSelect": 0,
  • "isRandomMode": true,
  • "excludedTargets": [
    ]
}

Response samples

Content type
{
  • "success": true,
  • "data": {
    },
  • "error": "string",
  • "typeName": "string"
}

Field Filter

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.

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

Content type
{
  • "success": true,
  • "data": {
    },
  • "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.
⚠️ If you apply several operations on the same idField, the field must meet all the criteria at once! (a logical AND will be applied between the filters)

Responses

Request samples

Content type
{
  • "idTarget": 0,
  • "isEnabled": true,
  • "filters": [
    ]
}

Response samples

Content type
{
  • "success": true,
  • "data": true,
  • "error": "string",
  • "typeName": "string"
}

Behaviour Filter

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

Content type
{
  • "success": true,
  • "data": {
    },
  • "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:
- 0 = "Click" : Has clicked / not clicked
- 1 = "Open" : Has openned / hasn't opened

behaviourType
string
Enum: "NbDays" "Sent" "Campaign"

Type of behaviour
- 0 = "NbDays" : Action done since a number of days
- 1 = "Sent" : Action done on a list of IdSent (=Identifier of a sent campaign segment / A campaign can have 1 to 16 segments)
- 2 = "Campaign" : Action done on a list of IdCampaign

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".
⚠️ 255 charac max

idSentNames
string

(Read only) Descriptions of mailings selected in idSentList (behaviourType = "Sent").
⚠️ 2000 charac max

combinaisonMode
string
Enum: "Union" "Intersection"

Mailings combination mode in IdSentList if more than one mailing is specified (behaviourType = "Sent"):
- 0 = "Union" : Combine the result by taking all the users who did the action and deduplicating between them.
- 1 = "Intersection" : Combine the results by taking the users who did the action in every sendings or campaigns.

idCampaign
string

Campaign identifiers (separated by ;) to use if BehaviourType="Campaign".
Sendings since the last 60 days of a campaign will be used (up to a limit of 100 mailings).
⚠️ IdSentList must be empty and NbDaysAgo must be equal to -1 to use this mode.

filterMpp
boolean

Exclude Apple MPP opens
Exclude opens impacted by Apple Mail Privacy Protection.These opens are potentially "non-human".

Responses

Request samples

Content type
{
  • "idTarget": 0,
  • "isEnabled": true,
  • "didAnAction": true,
  • "action": "Click",
  • "behaviourType": "NbDays",
  • "nbDaysAgo": 0,
  • "idSentList": "string",
  • "idSentNames": "string",
  • "combinaisonMode": "Union",
  • "idCampaign": "string",
  • "filterMpp": true
}

Response samples

Content type
{
  • "success": true,
  • "data": true,
  • "error": "string",
  • "typeName": "string"
}

Thematic Filter

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

Content type
{
  • "success": true,
  • "data": {
    },
  • "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:
- 0 = "Click" : Has clicked / not clicked a link of the thematics
- 1 = "Open" : Has openned / hasn't opened a campaign of the thematics

combinaison
string
Enum: "Union" "Intersection"

Combination mode to apply if more than one campaign/link with the thematics selected was found.
- 0 = "Union" : Combine the result by taking all the users who did the action and deduplicating between them.
- 1 = "Intersection" : Combine the results by taking the users who did the action in every theme.

idsThematics
Array of integers <int32> [ items <int32 > ]

Array of Thematics Identifiers to use in the filter

filterMpp
boolean

Exclude Apple MPP opens
Exclude opens impacted by Apple Mail Privacy Protection.These opens are potentially "non-human".

Responses

Request samples

Content type
{
  • "idTarget": 0,
  • "isFilterEnabled": true,
  • "fromNbDays": 0,
  • "action": "Click",
  • "combinaison": "Union",
  • "idsThematics": [
    ],
  • "filterMpp": true
}

Response samples

Content type
{
  • "success": true,
  • "data": true,
  • "error": "string",
  • "typeName": "string"
}

Sending Filter

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

Content type
{
  • "success": true,
  • "data": {
    },
  • "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)
⚠️ 255 charac max

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

Content type
{
  • "combinaisonMode": "Union",
  • "idTarget": 0,
  • "isFilterEnabled": true,
  • "hasReceived": true,
  • "idSentList": "string",
  • "idSentNames": "string",
  • "idsCampaigns": "string"
}

Response samples

Content type
{
  • "success": true,
  • "data": true,
  • "error": "string",
  • "typeName": "string"
}

Email Pressure Filter

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

Content type
{
  • "success": true,
  • "data": {
    },
  • "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):
- "newsletter"
- "dedicated"
- "game"

operatorRequest
string
Enum: "GREATER" "GREATER_EQUAL" "EQUAL" "LOWER_EQUAL" "LOWER"

Pressure operator (to apply on NbRequest parameter) :

  • 0 = GREATER
  • 1 = GREATER_EQUAL
  • 2 = EQUAL
  • 3 = LOWER_EQUAL
  • 4 = LOWER

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)
⚠️ Parameter used only for the type "ByWeek"

lastWeek
boolean

Apply emailing pressure to the last week (which starts on last Monday)
⚠️ Parameter used only for the type "ByWeek"

twoWeeksAgo
boolean

Apply email pressure to the week starting on Monday 2 weeks ago
⚠️ Parameter used only for the type "ByWeek"

threeWeeksAgo
boolean

Apply email pressure to the week starting on Monday 3 weeks ago
⚠️ Parameter used only for the type "ByWeek"

fourWeeksAgo
boolean

Apply email pressure to the week starting on Monday 4 weeks ago
⚠️ Parameter used only for the type "ByWeek"

type
string
Enum: "Today" "Since" "Between" "ByWeek"

Pressure Type :

  • 1 = "Today" : Is this today
    ⚠️ You must use today parameter
  • 2 = "Since" : Since X hours/Days
    ⚠️ You must use FromTime and TimeType parameters
  • 3 = "Between" : Between BetweenStartDate and BetweenEndDate
  • 4 = "ByWeek" : Define by week (by default)
    ⚠️ You must use LastWeek, TwoWeeksAgo, ThreeWeeksAgo and FourWeeksAgo parameters

today
boolean

Apply email pressure to today (true/false)
⚠️ Parameter used only for the type "Today"

betweenStartDate
string <date-time>

Apply email pressure from "BetweenStartDate" to "BetweenEndDate"
⚠️ Parameter used only for the type "Between"

betweenEndDate
string <date-time>

Apply email pressure from "BetweenStartDate" to "BetweenEndDate"
⚠️ Parameter used only for the type "Between"

fromTime
integer <int32>

Apply email pressure Since X hours/days
You must specify the number of hours/days here
⚠️ Parameter used only for the type "Since"

timeType
integer <int32>

Apply email pressure Since X hours/days
You can choose with this parameter if the "FromTime" value is a number of hours or a number of days.
- TimeType = 1 for Hours
- TimeType = 2 for Days

⚠️ Parameter used only for the type "Since"

Responses

Request samples

Content type
{
  • "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

Content type
{
  • "success": true,
  • "data": true,
  • "error": "string",
  • "typeName": "string"
}

Geoloc Filter

Service managing a geoloc inside your target.

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

Content type
{
  • "success": true,
  • "data": {
    },
  • "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

Content type
{
  • "idTarget": 0,
  • "isFilterEnabled": true,
  • "country": "FRANCE",
  • "postcode": "string",
  • "radius": 0,
  • "departmentIds": "string",
  • "excludePostCodes": "string"
}

Response samples

Content type
{
  • "success": true,
  • "data": true,
  • "error": "string",
  • "typeName": "string"
}

SQL Filter

Service managing a SQL filter inside your target.

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

Content type
{
  • "success": true,
  • "data": {
    },
  • "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

Content type
{
  • "idTarget": 0,
  • "isEnabled": true,
  • "sql": "string"
}

Response samples

Content type
{
  • "success": true,
  • "data": true,
  • "error": "string",
  • "typeName": "string"
}

File Filter

Service managing a filter by file inside your target.

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

Content type
{
  • "success": true,
  • "data": {
    },
  • "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:

  • fld0 for subscriber ID
  • fld1 for e-mail address
  • fld18 for post codes
  • (exception) md5_fld1 for e-mail addresses encrypted in md5 (md5 must be activated by the MindBaz customer service on demand).
fileAutomaticDeletionDate
string <date-time>

(Mandatory)Date of automatic deletion of the file on ftp.

Responses

Request samples

Content type
{
  • "idTarget": 0,
  • "isEnabled": true,
  • "filename": "string",
  • "dbFieldName": "string",
  • "fileAutomaticDeletionDate": "2019-08-24T14:15:22Z"
}

Response samples

Content type
{
  • "success": true,
  • "data": true,
  • "error": "string",
  • "typeName": "string"
}

Campaign

Service managing mailing campaigns

Method to retrieve a campaign from its identifier

path Parameters
idCampaign
required
integer <int32>

Campaign identifier

idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": {
    },
  • "error": "string",
  • "typeName": "string"
}

Method to delete a campaign from its identifier

path Parameters
idCampaign
required
integer <int32>

Campaign identifier

idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": true,
  • "error": "string",
  • "typeName": "string"
}

Method to duplicate a campaign.

path Parameters
idCampaign
required
integer <int32>

Campaign identifier to duplicate.

idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": 0,
  • "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

Content type
{
  • "success": true,
  • "data": {
    },
  • "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

Content type
{
  • "id": 0,
  • "parameters": {
    },
  • "htmlContent": "string",
  • "textContent": "string",
  • "creationDate": "2019-08-24T14:15:22Z",
  • "lastUpdateDate": "2019-08-24T14:15:22Z",
  • "schedulingInfos": {
    },
  • "authorId": 0,
  • "idCampDynamic": 0,
  • "autoHostPictures": true,
  • "idDirectory": 0,
  • "autoHostPicturesResult": { }
}

Response samples

Content type
{
  • "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

Content type
{
  • "id": 0,
  • "parameters": {
    },
  • "htmlContent": "string",
  • "textContent": "string",
  • "creationDate": "2019-08-24T14:15:22Z",
  • "lastUpdateDate": "2019-08-24T14:15:22Z",
  • "schedulingInfos": {
    },
  • "authorId": 0,
  • "idCampDynamic": 0,
  • "autoHostPictures": true,
  • "idDirectory": 0,
  • "autoHostPicturesResult": { }
}

Response samples

Content type
{
  • "success": true,
  • "data": {
    },
  • "error": "string",
  • "typeName": "string"
}

OneShot

Service allowing unitary mailing

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

Content type
{
  • "attachments": [
    ],
  • "campaignId": 0,
  • "clientId": 0,
  • "customClicTracker": "string",
  • "customPixelTrackers": [
    ],
  • "fromAlias": "string",
  • "idFields": [
    ],
  • "messageHTML": "string",
  • "messageTXT": "string",
  • "subject": "string",
  • "subscriberId": 0,
  • "subscriberMD5": "string",
  • "subscriberSHA256": "string",
  • "emailData": "string"
}

Response samples

Content type
{
  • "success": true,
  • "data": "string",
  • "error": "string",
  • "typeName": "string"
}

Segments

Service managing campaigns configurations

Retrieves all the segments of a campaign.

path Parameters
idCampaign
required
integer <int32>

Campaign identifier.

idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": [
    ],
  • "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

Content type
{
  • "name": "string",
  • "idTarget": 0,
  • "isExcluded": true,
  • "isRandom": true,
  • "percent": 0,
  • "mailObject": "string",
  • "fixedValues": 0
}

Response samples

Content type
{
  • "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

Content type
{
  • "success": true,
  • "data": {
    },
  • "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

Content type
{
  • "name": "string",
  • "idTarget": 0,
  • "isExcluded": true,
  • "isRandom": true,
  • "percent": 0,
  • "mailObject": "string",
  • "fixedValues": 0
}

Response samples

Content type
{
  • "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

Content type
{
  • "success": true,
  • "data": [
    ],
  • "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.

Array
integer <int32>

Responses

Request samples

Content type
[
  • 0
]

Response samples

Content type
{
  • "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

Content type
{
  • "position": 0,
  • "idAdvertisement": 0
}

Response samples

Content type
{
  • "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

Content type
{
  • "success": true,
  • "data": [
    ],
  • "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

Content type
{
  • "success": true,
  • "data": [
    ],
  • "error": "string",
  • "typeName": "string"
}

Sending

Service managing sendings.

Sends a BAT test on all the segments of a campaign

path Parameters
idsite
required
string

database identifier

Request Body schema:

Campaign identifier

integer <int32>

Responses

Request samples

Content type
0
0

Response samples

Content type
{
  • "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

integer <int32>

Responses

Request samples

Content type
0
0

Response samples

Content type
{
  • "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).

Array
string <date-time>

Responses

Request samples

Content type
[
  • "2019-08-24T14:15:22Z"
]

Response samples

Content type
{
  • "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

Content type
{
  • "startDate": "2019-08-24T14:15:22Z",
  • "endDate": "2019-08-24T14:15:22Z",
  • "sendingTime": "string",
  • "frequency": 0
}

Response samples

Content type
{
  • "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

integer <int32>

Responses

Request samples

Content type
0
0

Response samples

Content type
{
  • "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

integer <int32>

Responses

Request samples

Content type
0
0

Response samples

Content type
{
  • "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

integer <int32>

Responses

Request samples

Content type
0
0

Response samples

Content type
{
  • "success": true,
  • "data": true,
  • "error": "string",
  • "typeName": "string"
}

Sents

Service managing sents

Retrieves all the sents of a campaign.

path Parameters
idCampaign
required
integer <int32>

Campaign identifier.

idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": [
    ],
  • "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

Content type
{
  • "success": true,
  • "data": [
    ],
  • "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

Content type
{
  • "success": true,
  • "data": [
    ],
  • "error": "string",
  • "typeName": "string"
}

SpamScore

Service managing spam core

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

Content type
{
  • "idCampaign": 0,
  • "segmentPosition": 0,
  • "idSubscriber": 0
}

Response samples

Content type
{
  • "success": true,
  • "data": {
    },
  • "error": "string",
  • "typeName": "string"
}

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

Content type
{
  • "success": true,
  • "data": [
    ],
  • "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

Content type
{
  • "success": true,
  • "data": [
    ],
  • "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

integer <int32>

Responses

Request samples

Content type
0
0

Response samples

Content type
{
  • "success": true,
  • "data": [
    ],
  • "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

Content type
{
  • "url": "string",
  • "parsedUrl": "string",
  • "origin": "string",
  • "idAdvertisementInSegment": 0,
  • "idSegment": 0,
  • "idAdvertisement": 0,
  • "isTracked": true,
  • "id": 0,
  • "parameters": {
    }
}

Response samples

Content type
{
  • "success": true,
  • "data": {
    },
  • "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

Content type
{
  • "success": true,
  • "data": true,
  • "error": "string",
  • "typeName": "string"
}

Aggregated Stats

Service managing aggregated statistics of a campaign.

Retrieves mailing stats from a campaign.

path Parameters
idsite
required
string

database identifier

query Parameters
idCampaign
required
integer <int32>

Campaign identifier

Responses

Response samples

Content type
{
  • "success": true,
  • "data": {
    },
  • "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

Content type
{
  • "success": true,
  • "data": [
    ],
  • "error": "string",
  • "typeName": "string"
}

Detailled Segment Stats

Service managing detailled statistics at segment level.

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

Content type
{
  • "success": true,
  • "data": [
    ],
  • "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

Content type
{
  • "success": true,
  • "data": [
    ],
  • "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

Content type
{
  • "success": true,
  • "data": [
    ],
  • "error": "string",
  • "typeName": "string"
}

Other Stats

Service managing other statistic features

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

Content type
{
  • "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:
- 0: openers (by default)
- 1: clickers
- 2: spam complaints
- 3: godsons
- 4: unsubs
- 5: bounces (NPAI)
- 6: clicks

mpp
boolean
Default: false

Responses

Response samples

Content type
{
  • "success": true,
  • "data": true,
  • "error": "string",
  • "typeName": "string"
}

Content

Service managing dynammic content blocs.

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

Content type
{
  • "success": true,
  • "data": {
    },
  • "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

Content type
{
  • "contentKey": "string",
  • "contentValue": "string"
}

Response samples

Content type
{
  • "success": true,
  • "data": {
    },
  • "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

Content type
{
  • "key": "string",
  • "dataFilePath": "string",
  • "dataFieldTerminator": "string",
  • "dataRowTerminator": "string"
}

Response samples

Content type
{
  • "success": true,
  • "data": "string",
  • "error": "string",
  • "typeName": "string"
}

Invoices

Service managing invoices (only for administators)

Retourne le fichier facture spécifié

path Parameters
id
required
integer <int32>

identifiant de facture

idsite
required
string

database identifier

Responses

Response samples

Content type
{
  • "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

Content type
{
  • "success": true,
  • "data": [
    ],
  • "error": "string",
  • "typeName": "string"
}

PreGeneration

Service managing HTML pre-generation

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

string

Responses

Request samples

Content type
"string"

Response samples

Content type
{
  • "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

Content type
{
  • "success": true,
  • "data": "string",
  • "error": "string",
  • "typeName": "string"
}

Snpri

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

Content type
{
  • "success": true,
  • "data": {
    },
  • "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

Content type
{
  • "success": true,
  • "data": {
    },
  • "error": "string",
  • "typeName": "string"
}