By providing a fully documented API reference, we want to enable everyone to maximize the usage of the Marigold Engage Marketing Platform for automating & exchange data.
The Marigold Engage V1 API's use the basic authentication protocol, through key/secter key authentication with the X-ApiKey
Header, and value {key}:{secret}
.
If you have a Marigold Engage account with admin configuration rights, then you can create a Service Account under Admin Configuration --> Access Management --> Service Accounts.
Make sure to select type custom
for credentials for this api.
that will generate these credentials.
Once this service account is generated, your Key
and Secret
will be made available. You can rotate this pair at any time.
You can further specify an expiry date for your keys.
under "endpoints" you can specify which actions on the API can be performed by this service account.
If the service account does an action it is not configured for, a 401 unauthorized will be returned by the API.
Engage uses the conventional HTTP response codes to indicate successful or failed API requests.
Codes in the 2xx
range indicate success.
Codes in the 4xx
range indicate an input related error or validation restrictions.
Codes in the 5xx
range indicate an error with Marigold Engage servers.
HTTP Status Codes | Description |
---|---|
200 - OK | We found the request resource |
201 - Created | The resource is successfully created |
204 - No Content | The requested resources is empty |
400 - Bad Request | There was an error with the request. The body of the response will have more info. |
401 - Unauthorized | The access key was incorrect |
404 - Not found | The resources cannot be found |
405 - Method Not Allowed | The method is not allowed |
408 - Request Timeout | The request is taking too long to respond |
422 - Unprocessable Entity | The resource couldn't be created |
429 - Too Many Requests | Too many requests hit the API too quickly |
5xx - Server errors | Something went wrong on our end. Please try again |
We provide the API specification in the format of OpenApi files which can be found in the openapi/ directory:
The older Swagger/OpenAPI 2.0 can currently still be accessed from the Api explorer in engage. We will not support it explicitly here.
To get you up and running and provide a hands on experience, we provide an up-to-date Postman collection of the SMC API V2.
Import the Postman collection through any of the methods specified below.
This collection takes advantage of Postman variables and environments to store/access your Marigold Engage API key and base URL.
These variables can be found by navigating to "Admin Config" > "Access Management" > "Service Accounts" on the left-hand side of the administration section. Make sure your Marigold Engage Environment is active, and your variable definitions match those listed above.
Returns information on the requested Content.
api_name required | string Example: email_1 API name of the content. |
organization required | string Example: marigold_1 Name of the organization to work in. |
name | string Name of the message. |
description | string Description of the message. |
api_name | string API name of the message. |
tags | Array of strings (tags) Default: [] Labels of the object. |
type | string Enum: "Unknown" "Email" "Page" "MobilePush" "Sms" Channel type of the Content. |
{- "name": "Email Message",
- "description": "Description for the message.",
- "api_name": "message_1",
- "tags": [
- "addresses",
- "footer",
- "email",
- "holiday"
], - "type": "Email"
}
api_name required | string Example: email_1 API name of the content. |
organization required | string Example: marigold_1 Name of the organization to work in. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "result_code": "Succeeded",
- "message": "The content has been deleted successfully"
}
returns the lock state (being edited by someone) of the requested Content.
api_name required | string Example: email_1 API name of the content. |
organization required | string Example: marigold_1 Name of the organization to work in. |
lockstate | string Enum: "locked" "unlocked" State of the lock. |
{- "lockstate": "locked"
}
Forces an unlock for the requested Content.
api_name required | string Example: email_1 API name of the content. |
organization required | string Example: marigold_1 Name of the organization to work in. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "result_code": "Succeeded",
- "message": "The content has been unlocked successfully",
- "errors": [ ]
}
API to create simple (only html) single language message of email.
organization required | string Example: marigold_1 Name of the organization to work in. |
publish | boolean Default: false Indicate if the content should be published. |
required | object (Content_Property) | ||||||||||||||||||||||
| |||||||||||||||||||||||
required | object | ||||||||||||||||||||||
| |||||||||||||||||||||||
required | object (Email_Content-2) | ||||||||||||||||||||||
|
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "properties": {
- "name": "Email Message",
- "description": "Description for the message.",
- "api_name": "message_1",
- "tags": [
- "addresses",
- "footer",
- "email",
- "holiday"
], - "languages": [
- "EN_US",
- "FR"
], - "default_language": "EN",
- "empty_language": "FR",
- "audience_api_name": "audience_1",
- "folder": "106"
}, - "headers": {
- "language1": [
- {
- "from_domain": "meetmarigold.com",
- "from_alias": "Marigold",
- "reply_email": "help@meetmarigold.com",
- "reply_alias": "Marigold Help",
- "to_alias": "John Doe",
- "preheader": "Your preheader text",
- "subject": "Your subjectline",
- "from_address": "info@meetmarigold.com",
- "deliverygroup_api_name": "delivery_group_1"
}
], - "language2": [
- {
- "from_domain": "meetmarigold.com",
- "from_alias": "Marigold",
- "reply_email": "help@meetmarigold.com",
- "reply_alias": "Marigold Help",
- "to_alias": "John Doe",
- "preheader": "Your preheader text",
- "subject": "Your subjectline",
- "from_address": "info@meetmarigold.com",
- "deliverygroup_api_name": "delivery_group_1"
}
]
}, - "content": {
- "text": "Hello World!",
- "html": "<html> <head> <style> h1 color: red; p color: blue; </style> </head> <body> <h1>Hello World!</h1> <p>This is Rahul</p> </body> </html>"
}
}
{- "result_code": "Succeeded",
- "message": "The Email message has been created successfully.",
- "errors": [ ]
}
Create an MMS template.
organization required | string Example: marigold_1 Name of the organization to work in. |
publish | boolean Default: false Indicate if the content should be published. |
required | object (Content_Property) | ||||||||||||||||||
| |||||||||||||||||||
required | object (Mms_Content-2) | ||||||||||||||||||
|
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "properties": {
- "name": "Email Message",
- "description": "Description for the message.",
- "api_name": "message_1",
- "tags": [
- "addresses",
- "footer",
- "email",
- "holiday"
], - "languages": [
- "EN_US",
- "FR"
], - "default_language": "EN",
- "empty_language": "FR",
- "audience_api_name": "audience_1",
- "folder": "106"
}, - "content": {
- "my_language_code": {
- "text": "Hello world!",
- "media_type": "IMAGE",
- "media_url": "URL to the media"
}
}
}
{- "result_code": "Succeeded",
- "message": "The MMS message has been created successfully.",
- "errors": [ ]
}
API to create a Mobile push message.
organization required | string Example: marigold_1 Name of the organization to work in. |
publish | boolean Default: false Indicate if the content should be published. |
required | object (Content_Mobile_Property) | ||||||||||||||||||||
| |||||||||||||||||||||
required | object (Mobile_Property-2) | ||||||||||||||||||||
| |||||||||||||||||||||
required | object | ||||||||||||||||||||
|
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "properties": {
- "name": "Email Message",
- "description": "Description for the message.",
- "api_name": "message_1",
- "tags": [
- "addresses",
- "footer",
- "email",
- "holiday"
], - "languages": [
- "EN_US",
- "FR"
], - "default_language": "EN",
- "empty_language": "FR",
- "audience_api_name": "audience_1",
- "folder": "106",
- "mobile_app_api_name": "mobile_device_list_1"
}, - "mobile_properties": {
- "distribution_type": "MobilePush",
- "custom_in_app_content": true,
- "in_app_content_type": "Image",
- "rich_push_content_enabled": true,
- "rich_push_content_type": "Image",
- "expiration_date": "2025-01-01"
}, - "content": {
- "language1": [
- {
- "mobile_push": {
- "title": "Check this out!",
- "content": "Isn't this great as a body text?"
}, - "in_app": {
- "title": "We have news!",
- "in_app_buttons": {
- "label": "buy_1",
}
}, - "rich_push": {
}, - "banner_buttons": [
],
}
], - "language2": [
- {
- "mobile_push": {
- "title": "Check this out!",
- "content": "Isn't this great as a body text?"
}, - "in_app": {
- "title": "We have news!",
- "in_app_buttons": {
- "label": "buy_1",
}
}, - "rich_push": {
}, - "banner_buttons": [
],
}
]
}
}
{- "result_code": "Succeeded",
- "message": "The Mobile message has been created successfully.",
- "errors": [ ]
}
API to create single language page content.
organization required | string Example: marigold_1 Name of the organization to work in. |
publish | boolean Default: false Indicate if the content should be published. |
required | object (Content_Property) | ||||||||||||||||||
| |||||||||||||||||||
required | object (Page_Content-2) | ||||||||||||||||||
|
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "properties": {
- "name": "Email Message",
- "description": "Description for the message.",
- "api_name": "message_1",
- "tags": [
- "addresses",
- "footer",
- "email",
- "holiday"
], - "languages": [
- "EN_US",
- "FR"
], - "default_language": "EN",
- "empty_language": "FR",
- "audience_api_name": "audience_1",
- "folder": "106"
}, - "content": {
- "html": "<html> <head> <style> h1 color: red; p color: blue; </style> </head> <body> <h1>Hello World!</h1> <p>This is Rahul</p> </body> </html>"
}
}
{- "result_code": "Succeeded",
- "message": "The Page content has been created successfully.",
- "errors": [ ]
}
Create a single language RCS.
organization required | string Example: marigold_1 Name of the organization to work in. |
publish | boolean Default: false Indicate if the content should be published. |
required | object (Content_Property) | ||||||||||||||||||
| |||||||||||||||||||
required | object (Rcs_Content-2) | ||||||||||||||||||
|
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "properties": {
- "name": "Email Message",
- "description": "Description for the message.",
- "api_name": "message_1",
- "tags": [
- "addresses",
- "footer",
- "email",
- "holiday"
], - "languages": [
- "EN_US",
- "FR"
], - "default_language": "EN",
- "empty_language": "FR",
- "audience_api_name": "audience_1",
- "folder": "106"
}, - "content": {
- "my_language_code": {
- "text": "Hello world!"
}
}
}
{- "result_code": "Succeeded",
- "message": "The RCS message has been created successfully.",
- "errors": [ ]
}
Create a single language SMS.
organization required | string Example: marigold_1 Name of the organization to work in. |
publish | boolean Default: false Indicate if the content should be published. |
required | object (Content_Property) | ||||||||||||||||||
| |||||||||||||||||||
required | object (Sms_Content-2) | ||||||||||||||||||
|
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "properties": {
- "name": "Email Message",
- "description": "Description for the message.",
- "api_name": "message_1",
- "tags": [
- "addresses",
- "footer",
- "email",
- "holiday"
], - "languages": [
- "EN_US",
- "FR"
], - "default_language": "EN",
- "empty_language": "FR",
- "audience_api_name": "audience_1",
- "folder": "106"
}, - "content": {
- "text": "Hello world!"
}
}
{- "result_code": "Succeeded",
- "message": "The SMS message has been created successfully.",
- "errors": [ ]
}
List dictionaries matching the given criteria.
organization required | string Example: marigold_1 Name of the organization to work in. |
search | string Example: search=marigold_1 Search with a specific name, api_name, description or tag(s). |
skip | integer <int32> Default: 0 Example: skip=100 The index to start from, skipping all the previous results. |
take | integer <int32> Default: 0 Example: take=50 The maximum amount of items to return. |
Array of objects (Dictionary_Base) Collection of dictionaries. | |||
Array
|
{- "dictionaries": [
- {
- "api_name": "dictionary_1"
}
]
}
Create a dictionary.
organization required | string Example: marigold_1 Name of the organization to work in. |
api_name required | string API name of the dictionary. |
name required | string Name of the dictionary. |
description | string Default: null Description of the dictionary. |
tags | Array of strings Default: null Labels of the object. |
organizations | Array of strings Default: null List of organizations linked to the object. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "api_name": "dictionary_1",
- "name": "Email Message",
- "description": null,
- "tags": null,
- "organizations": null
}
{- "result_code": "Succeeded",
- "message": "Dictionary created successfully.",
- "errors": [ ]
}
Use this endpoint to get details of the dictionary with the given API name.
api_name required | string Example: dictionary_1 API name of the dictionary. |
organization required | string Example: marigold_1 Name of the organization to work in. |
api_name | string API name of the dictionary. |
name | string Name of the dictionary. |
description | string Description of the dictionary. |
tags | Array of strings (tags) Default: [] Labels of the object. |
organizations | Array of strings (organizations) List of organizations linked to the object. |
not_accessible_organizations_count | integer <int32> (not_accessible_organizations_count) Number of organizations associated with the object, That cannot be access via the API. |
{- "api_name": "dictionary_1",
- "name": "Email Message",
- "description": "Description for the dictionary.",
- "tags": [
- "addresses",
- "footer",
- "email",
- "holiday"
], - "organizations": [
- "Organization_1",
- "Organization_2"
], - "not_accessible_organizations_count": 1
}
Use this endpoint to update an existing dictionary.
api_name required | string Example: dictionary_1 API name of the dictionary. |
organization required | string Example: marigold_1 Name of the organization to work in. |
api_name required | string API name of the dictionary. |
description | string Description of the dictionary. |
tags | Array of strings (tags) Default: [] Labels of the object. |
organizations | Array of strings (organizations) List of organizations linked to the object. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "api_name": "dictionary_1",
- "description": "Description for the dictionary.",
- "tags": [
- "addresses",
- "footer",
- "email",
- "holiday"
], - "organizations": [
- "Organization_1",
- "Organization_2"
]
}
{- "result_code": "Succeeded",
- "message": "Dictionary updated successfully.",
- "errors": [ ]
}
Use this endpoint to delete an existing dictionary.
api_name required | string Example: dictionary_1 API name of the dictionary. |
organization required | string Example: marigold_1 Name of the organization to work in. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "result_code": "Succeeded",
- "message": "Dictionary deleted successfully.",
- "errors": [ ]
}
List labels for a particular dictionary.
api_name required | string Example: data_export_1 API name of the data import. |
organization required | string Example: marigold_1 Name of the organization to work in. |
search | string Example: search=marigold_1 Search with a specific name, api_name, description or tag(s). |
skip | integer <int32> Default: 0 Example: skip=100 The index to start from, skipping all the previous results. |
take | integer <int32> Default: 0 Example: take=50 The maximum amount of items to return. |
Array of objects (Label) Collection of labels. | |||||
Array
|
{- "labels": [
- {
- "label": "label_1",
- "translations": {
- "EN": "Label1_English",
- "DE": "Label1_Dutch"
}
}
]
}
Use this endpoint to create a label in a dictionary.
api_name required | string Example: dictionary_1 API name of the dictionary. |
organization required | string Example: marigold_1 Name of the organization to work in. |
sync | boolean Default: false Example: sync=false Weither or now we should sync the labels with their translations. |
label required | string Name of the label. | ||
required | object A set of translations consisting of key value pairs where key is a language code and value is translation for that language code. | ||
|
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "label": "label_1",
- "translations": {
- "EN": "Label1_English",
- "DE": "Label1_Dutch"
}
}
{- "result_code": "Succeeded",
- "message": "Label created successfully.",
- "errors": [ ]
}
Use this endpoint to update an existing label in a dictionary.
api_name required | string Example: data_export_1 API name of the data import. |
label required | string Identifier of the label. |
organization required | string Example: marigold_1 Name of the organization to work in. |
sync | boolean Default: false Example: sync=false Weither or now we should sync the labels with their translations. |
The model object consists of label details that is used to update an existing label in a dictionary.
required | object A set of translations consisting of key value pairs where key is a language code and value is translation for that language code. | ||
|
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "label": "label_1",
- "translations": {
- "EN": "Label1_English",
- "DE": "Label1_Dutch"
}
}
{- "result_code": "Succeeded",
- "message": "Label updated successfully.",
- "errors": [ ]
}
Use this endpoint to delete a label in a dictionary.
api_name required | string Example: dictionary_1 API name of the dictionary. |
label required | string Identifier of the label. |
organization required | string Example: marigold_1 Name of the organization to work in. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "result_code": "Succeeded",
- "message": "Label deleted successfully.",
- "errors": [ ]
}
Retrieve the last 1000 created journeys.
organization required | string Example: marigold_1 Name of the organization to work in. |
Array of objects (Journey_Base) A collection of journeys. | |||||
Array
|
{- "journeys": [
- {
- "api_name": "journey_1",
- "type": "singlebatch"
}
]
}
Use this endpoint to retrieve all journeys on the given organization of type Single Batch.
organization required | string Example: marigold_1 Name of the organization to work in. |
Array of objects (Journey_Base) | |||||
Array
|
{- "journeys": [
- {
- "api_name": "api_name_1",
- "type": "singlebatch"
}, - {
- "api_name": "api_name_2",
- "type": "singlebatch"
}
]
}
Use this endpoint to create a new Single-Batch journey.
organization required | string Example: marigold_1 Name of the organization to work in. |
required | object (Single_Batch) | ||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
required | object (Message) | ||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
folder required | string <int64> (folder_id) Folder ID. The root folder has ID |
object (Single_Batch) | |||||||||||||||||||||
| |||||||||||||||||||||
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||||||||||||||||||
Array of objects (Errors) List of errors. | |||||||||||||||||||||
Array
|
{- "journey": {
- "api_name": "journey_1",
- "name": "Christmas Campaign 1",
- "campaign_analytics_tag": "christmas_2424",
- "message_analytics_tag": "batch_2",
- "deduplication": {
- "fields": [
- "MASTER.NAME",
- "MASTER.EMAIL"
], - "sort_field": "MASTER.ID",
- "sort_descending": true
}, - "send_in_waves": {
- "type": "Waves",
- "interval_in_minutes": 60,
- "number_of_waves": 5,
- "items_per_wave": 50000
}, - "sending_limit": {
- "percentage": 15,
- "type": "Absolute",
- "sort_selection": "Sorted",
- "sort_field": "MASTER.ID",
- "sort_descending": true
}, - "disable_flags": true,
- "disable_tracking": true,
- "launch_state": "launch",
- "scheduling": {
- "launch_date": "2023-12-15T10:11:17.9968156Z"
}, - "segment_api_name": "segment_1",
- "audience_filter": "endswith([MASTER.MAIL], '@my_company.com')"
}, - "message": {
- "api_name": "message_1"
}, - "folder": "106"
}
{- "journey": {
- "api_name": "journey_1",
- "type": "singlebatch",
- "name": "Christmas Campaign 1",
- "campaign_analytics_tag": "christmas_2424",
- "message_analytics_tag": "batch_2",
- "deduplication": {
- "fields": [
- "MASTER.NAME",
- "MASTER.EMAIL"
], - "sort_field": "MASTER.ID",
- "sort_descending": true
}, - "send_in_waves": {
- "type": "Waves",
- "interval_in_minutes": 60,
- "number_of_waves": 5,
- "items_per_wave": 50000
}, - "sending_limit": {
- "percentage": 15,
- "type": "Absolute",
- "sort_selection": "Sorted",
- "sort_field": "MASTER.ID",
- "sort_descending": true
}, - "disable_flags": true,
- "disable_tracking": true,
- "launch_state": "launch",
- "scheduling": {
- "launch_date": "2023-12-15T10:11:17.9968156Z"
}
}, - "result_code": "PartiallySucceeded",
- "errors": [
- {
- "error_code": "Failed",
- "description": "Message with api name 'message_1' doesn't exists"
}
]
}
Use this endpoint to retrieve information on the Single Batch journey with the given api name.
api_name required | string Example: newsletter_1 API name of the journey. |
organization required | string Example: marigold_1 Name of the organization to work in. |
object (Single_Batch) | |||||||||||||||||||||
|
{- "journey": {
- "api_name": "journey_1",
- "type": "singlebatch",
- "name": "Christmas Campaign 1",
- "campaign_analytics_tag": "christmas_2424",
- "message_analytics_tag": "batch_2",
- "deduplication": {
- "fields": [
- "MASTER.NAME",
- "MASTER.EMAIL"
], - "sort_field": "MASTER.ID",
- "sort_descending": true
}, - "send_in_waves": {
- "type": "Waves",
- "interval_in_minutes": 60,
- "number_of_waves": 5,
- "items_per_wave": 50000
}, - "sending_limit": {
- "percentage": 15,
- "type": "Absolute",
- "sort_selection": "Sorted",
- "sort_field": "MASTER.ID",
- "sort_descending": true
}, - "disable_flags": true,
- "disable_tracking": true,
- "launch_state": "launch",
- "scheduling": {
- "launch_date": "2023-12-15T10:11:17.9968156Z"
}
}
}
Use this endpoint to delete existing single batch journey.
api_name required | string Example: newsletter_1 API name of the journey. |
organization required | string Example: marigold_1 Name of the organization to work in. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "result_code": "Succeeded",
- "message": "The journey has been deleted successfully"
}
Cancel the execution or scheduled execution of a Single Batch journey.
api_name required | string Example: newsletter_1 API name of the journey. |
organization required | string Example: marigold_1 Name of the organization to work in. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "result_code": "Succeeded",
- "message": "The journey has been cancelled successfully."
}
Launch a specific Single Batch journey given the schedule.
api_name required | string Example: newsletter_1 API name of the journey. |
organization required | string Example: marigold_1 Name of the organization to work in. |
launch_state | string (launch_state) The state of the journey.
| ||
required | object (Scheduling_Required) | ||
|
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "launch_state": "scheduled",
- "scheduling": {
- "launch_date": "2023-12-15T10:11:17.9968156Z"
}
}
{- "result_code": "Succeeded",
- "message": "The journey has been launched successfully."
}
Use this endpoint to trigger a Single-Batch journey execution.
api_name required | string Example: newsletter_1 API name of the journey. |
organization required | string Example: marigold_1 Name of the organization to work in. |
any | |||||||||||||||||||||||
|
object (Single_Batch) | |||||||||||||||||||||
| |||||||||||||||||||||
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||||||||||||||||||
Array of objects (Errors) List of errors. | |||||||||||||||||||||
Array
|
{- "journey": {
- "api_name": "journey_1",
- "name": "Christmas Campaign 1",
- "campaign_analytics_tag": "christmas_2424",
- "message_analytics_tag": "batch_2",
- "deduplication": {
- "fields": [
- "MASTER.NAME",
- "MASTER.EMAIL"
], - "sort_field": "MASTER.ID",
- "sort_descending": true
}, - "send_in_waves": {
- "type": "Waves",
- "interval_in_minutes": 60,
- "number_of_waves": 5,
- "items_per_wave": 50000
}, - "sending_limit": {
- "percentage": 15,
- "type": "Absolute",
- "sort_selection": "Sorted",
- "sort_field": "MASTER.ID",
- "sort_descending": true
}, - "disable_flags": true,
- "disable_tracking": true,
- "launch_state": "launch",
- "scheduling": {
- "launch_date": "2023-12-15T10:11:17.9968156Z"
}
}
}
{- "journey": {
- "api_name": "journey_1",
- "type": "singlebatch",
- "name": "Christmas Campaign 1",
- "campaign_analytics_tag": "christmas_2424",
- "message_analytics_tag": "batch_2",
- "deduplication": {
- "fields": [
- "MASTER.NAME",
- "MASTER.EMAIL"
], - "sort_field": "MASTER.ID",
- "sort_descending": true
}, - "send_in_waves": {
- "type": "Waves",
- "interval_in_minutes": 60,
- "number_of_waves": 5,
- "items_per_wave": 50000
}, - "sending_limit": {
- "percentage": 15,
- "type": "Absolute",
- "sort_selection": "Sorted",
- "sort_field": "MASTER.ID",
- "sort_descending": true
}, - "disable_flags": true,
- "disable_tracking": true,
- "launch_state": "launch",
- "scheduling": {
- "launch_date": "2023-12-15T10:11:17.9968156Z"
}
}, - "result_code": "PartiallySucceeded",
- "errors": [
- {
- "error_code": "Failed",
- "description": "Message with api name 'message_1' doesn't exists"
}
]
}
Use this end point to send single batch with an email message.
organization required | string Example: marigold_1 Name of the organization to work in. |
object (Single_Batch) | |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
object (Email-2) | |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
folder required | string <int64> (folder_id) Folder ID. The root folder has ID |
object (Single_Batch) | |||||||||||||||||||||
| |||||||||||||||||||||
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||||||||||||||||||
Array of objects (Errors) List of errors. | |||||||||||||||||||||
Array
|
{- "journey_model": {
- "api_name": "journey_1",
- "name": "Christmas Campaign 1",
- "campaign_analytics_tag": "christmas_2424",
- "message_analytics_tag": "batch_2",
- "deduplication": {
- "fields": [
- "MASTER.NAME",
- "MASTER.EMAIL"
], - "sort_field": "MASTER.ID",
- "sort_descending": true
}, - "send_in_waves": {
- "type": "Waves",
- "interval_in_minutes": 60,
- "number_of_waves": 5,
- "items_per_wave": 50000
}, - "sending_limit": {
- "percentage": 15,
- "type": "Absolute",
- "sort_selection": "Sorted",
- "sort_field": "MASTER.ID",
- "sort_descending": true
}, - "disable_flags": true,
- "disable_tracking": true,
- "launch_state": "launch",
- "scheduling": {
- "launch_date": "2023-12-15T10:11:17.9968156Z"
}, - "segment_api_name": "segment_1",
- "audience_filter": "endswith([MASTER.MAIL], '@my_company.com')"
}, - "message_model": {
- "properties": {
- "name": "Email Message",
- "description": "Description for the message.",
- "api_name": "message_1",
- "tags": [
- "addresses",
- "footer",
- "email",
- "holiday"
], - "languages": [
- "EN_US",
- "FR"
], - "default_language": "EN",
- "empty_language": "FR",
- "audience_api_name": "audience_1",
- "folder": "106"
}, - "headers": {
- "language1": [
- {
- "from_domain": "meetmarigold.com",
- "from_alias": "Marigold",
- "reply_email": "help@meetmarigold.com",
- "reply_alias": "Marigold Help",
- "to_alias": "John Doe",
- "preheader": "Your preheader text",
- "subject": "Your subjectline",
- "from_address": "info@meetmarigold.com",
- "deliverygroup_api_name": "delivery_group_1"
}
], - "language2": [
- {
- "from_domain": "meetmarigold.com",
- "from_alias": "Marigold",
- "reply_email": "help@meetmarigold.com",
- "reply_alias": "Marigold Help",
- "to_alias": "John Doe",
- "preheader": "Your preheader text",
- "subject": "Your subjectline",
- "from_address": "info@meetmarigold.com",
- "deliverygroup_api_name": "delivery_group_1"
}
]
}, - "content": {
- "text": "Hello World!",
- "html": "<html> <head> <style> h1 color: red; p color: blue; </style> </head> <body> <h1>Hello World!</h1> <p>This is Rahul</p> </body> </html>"
}
}, - "folder": "106"
}
{- "journey": {
- "api_name": "journey_1",
- "type": "singlebatch",
- "name": "Christmas Campaign 1",
- "campaign_analytics_tag": "christmas_2424",
- "message_analytics_tag": "batch_2",
- "deduplication": {
- "fields": [
- "MASTER.NAME",
- "MASTER.EMAIL"
], - "sort_field": "MASTER.ID",
- "sort_descending": true
}, - "send_in_waves": {
- "type": "Waves",
- "interval_in_minutes": 60,
- "number_of_waves": 5,
- "items_per_wave": 50000
}, - "sending_limit": {
- "percentage": 15,
- "type": "Absolute",
- "sort_selection": "Sorted",
- "sort_field": "MASTER.ID",
- "sort_descending": true
}, - "disable_flags": true,
- "disable_tracking": true,
- "launch_state": "launch",
- "scheduling": {
- "launch_date": "2023-12-15T10:11:17.9968156Z"
}
}, - "result_code": "PartiallySucceeded",
- "errors": [
- {
- "error_code": "Failed",
- "description": "Message with api name 'message_1' doesn't exists"
}
]
}
Use this end point to send single batch with a mobile push message.
organization required | string Example: marigold_1 Name of the organization to work in. |
object (Single_Batch) | |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
object (Mobile-2) | |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
folder required | string <int64> (folder_id) Folder ID. The root folder has ID |
object (Single_Batch) | |||||||||||||||||||||
| |||||||||||||||||||||
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||||||||||||||||||
Array of objects (Errors) List of errors. | |||||||||||||||||||||
Array
|
{- "journey_model": {
- "api_name": "journey_1",
- "name": "Christmas Campaign 1",
- "campaign_analytics_tag": "christmas_2424",
- "message_analytics_tag": "batch_2",
- "deduplication": {
- "fields": [
- "MASTER.NAME",
- "MASTER.EMAIL"
], - "sort_field": "MASTER.ID",
- "sort_descending": true
}, - "send_in_waves": {
- "type": "Waves",
- "interval_in_minutes": 60,
- "number_of_waves": 5,
- "items_per_wave": 50000
}, - "sending_limit": {
- "percentage": 15,
- "type": "Absolute",
- "sort_selection": "Sorted",
- "sort_field": "MASTER.ID",
- "sort_descending": true
}, - "disable_flags": true,
- "disable_tracking": true,
- "launch_state": "launch",
- "scheduling": {
- "launch_date": "2023-12-15T10:11:17.9968156Z"
}, - "segment_api_name": "segment_1",
- "audience_filter": "endswith([MASTER.MAIL], '@my_company.com')"
}, - "mobile_message_model": {
- "properties": {
- "name": "Email Message",
- "description": "Description for the message.",
- "api_name": "message_1",
- "tags": [
- "addresses",
- "footer",
- "email",
- "holiday"
], - "languages": [
- "EN_US",
- "FR"
], - "default_language": "EN",
- "empty_language": "FR",
- "audience_api_name": "audience_1",
- "folder": "106",
- "mobile_app_api_name": "mobile_device_list_1"
}, - "mobile_properties": {
- "distribution_type": "MobilePush",
- "custom_in_app_content": true,
- "in_app_content_type": "Image",
- "rich_push_content_enabled": true,
- "rich_push_content_type": "Image",
- "expiration_date": "2025-01-01"
}, - "content": {
- "language1": [
- {
- "mobile_push": {
- "title": "Check this out!",
- "content": "Isn't this great as a body text?"
}, - "in_app": {
- "title": "We have news!",
- "in_app_buttons": {
- "label": "buy_1",
}
}, - "rich_push": {
}, - "banner_buttons": [
],
}
], - "language2": [
- {
- "mobile_push": {
- "title": "Check this out!",
- "content": "Isn't this great as a body text?"
}, - "in_app": {
- "title": "We have news!",
- "in_app_buttons": {
- "label": "buy_1",
}
}, - "rich_push": {
}, - "banner_buttons": [
],
}
]
}
}, - "folder": "106"
}
{- "journey": {
- "api_name": "journey_1",
- "type": "singlebatch",
- "name": "Christmas Campaign 1",
- "campaign_analytics_tag": "christmas_2424",
- "message_analytics_tag": "batch_2",
- "deduplication": {
- "fields": [
- "MASTER.NAME",
- "MASTER.EMAIL"
], - "sort_field": "MASTER.ID",
- "sort_descending": true
}, - "send_in_waves": {
- "type": "Waves",
- "interval_in_minutes": 60,
- "number_of_waves": 5,
- "items_per_wave": 50000
}, - "sending_limit": {
- "percentage": 15,
- "type": "Absolute",
- "sort_selection": "Sorted",
- "sort_field": "MASTER.ID",
- "sort_descending": true
}, - "disable_flags": true,
- "disable_tracking": true,
- "launch_state": "launch",
- "scheduling": {
- "launch_date": "2023-12-15T10:11:17.9968156Z"
}
}, - "result_code": "PartiallySucceeded",
- "errors": [
- {
- "error_code": "Failed",
- "description": "Message with api name 'message_1' doesn't exists"
}
]
}
Use this end point to send single batch with an SMS.
organization required | string Example: marigold_1 Name of the organization to work in. |
object (Single_Batch) | |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
object (Sms-2) | |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
folder required | string <int64> (folder_id) Folder ID. The root folder has ID |
object (Single_Batch) | |||||||||||||||||||||
| |||||||||||||||||||||
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||||||||||||||||||
Array of objects (Errors) List of errors. | |||||||||||||||||||||
Array
|
{- "journey_model": {
- "api_name": "journey_1",
- "name": "Christmas Campaign 1",
- "campaign_analytics_tag": "christmas_2424",
- "message_analytics_tag": "batch_2",
- "deduplication": {
- "fields": [
- "MASTER.NAME",
- "MASTER.EMAIL"
], - "sort_field": "MASTER.ID",
- "sort_descending": true
}, - "send_in_waves": {
- "type": "Waves",
- "interval_in_minutes": 60,
- "number_of_waves": 5,
- "items_per_wave": 50000
}, - "sending_limit": {
- "percentage": 15,
- "type": "Absolute",
- "sort_selection": "Sorted",
- "sort_field": "MASTER.ID",
- "sort_descending": true
}, - "disable_flags": true,
- "disable_tracking": true,
- "launch_state": "launch",
- "scheduling": {
- "launch_date": "2023-12-15T10:11:17.9968156Z"
}, - "segment_api_name": "segment_1",
- "audience_filter": "endswith([MASTER.MAIL], '@my_company.com')"
}, - "sms_model": {
- "properties": {
- "name": "Email Message",
- "description": "Description for the message.",
- "api_name": "message_1",
- "tags": [
- "addresses",
- "footer",
- "email",
- "holiday"
], - "languages": [
- "EN_US",
- "FR"
], - "default_language": "EN",
- "empty_language": "FR",
- "audience_api_name": "audience_1",
- "folder": "106"
}, - "content": {
- "text": "Hello world!"
}
}, - "folder": "106"
}
{- "journey": {
- "api_name": "journey_1",
- "type": "singlebatch",
- "name": "Christmas Campaign 1",
- "campaign_analytics_tag": "christmas_2424",
- "message_analytics_tag": "batch_2",
- "deduplication": {
- "fields": [
- "MASTER.NAME",
- "MASTER.EMAIL"
], - "sort_field": "MASTER.ID",
- "sort_descending": true
}, - "send_in_waves": {
- "type": "Waves",
- "interval_in_minutes": 60,
- "number_of_waves": 5,
- "items_per_wave": 50000
}, - "sending_limit": {
- "percentage": 15,
- "type": "Absolute",
- "sort_selection": "Sorted",
- "sort_field": "MASTER.ID",
- "sort_descending": true
}, - "disable_flags": true,
- "disable_tracking": true,
- "launch_state": "launch",
- "scheduling": {
- "launch_date": "2023-12-15T10:11:17.9968156Z"
}
}, - "result_code": "PartiallySucceeded",
- "errors": [
- {
- "error_code": "Failed",
- "description": "Message with api name 'message_1' doesn't exists"
}
]
}
Use this endpoint to check whether AB journey already exists.
api_name required | string Example: newsletter_1 API name of the journey. |
organization required | string Example: marigold_1 Name of the organization to work in. |
api_name | string the api name for the journey. |
type | string (JourneyType) Enum: "unknown" "singlebatch" "transactional" "ab" "recurring" "custom" the type of the journey. |
name | string Name of the journey. |
description | string Description of the journey. |
{- "api_name": "journey_1",
- "type": "ab",
- "name": "journey_1",
- "description": "this is the description."
}
Use this endpoint to delete existing AB journey.
api_name required | string Example: newsletter_1 API name of the journey. |
organization required | string Example: marigold_1 Name of the organization to work in. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "result_code": "Succeeded",
- "message": "The journey has been deleted successfully",
- "errors": [ ]
}
retrieve information about the specified recurring journey, if it exists.
api_name required | string Example: newsletter_1 API name of the journey. |
organization required | string Example: marigold_1 Name of the organization to work in. |
api_name | string the api name for the journey. |
type | string (JourneyType) Enum: "unknown" "singlebatch" "transactional" "ab" "recurring" "custom" the type of the journey. |
name | string Name of the journey. |
description | string Description of the journey. |
{- "api_name": "journey_1",
- "type": "recurring",
- "name": "journey_1",
- "description": "this is the description."
}
Delete an existing recurring journey.
api_name required | string Example: newsletter_1 API name of the journey. |
organization required | string Example: marigold_1 Name of the organization to work in. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "result_code": "Succeeded",
- "message": "The journey has been deleted successfully",
- "errors": [ ]
}
Use this endpoint to retrieve all journeys on the given organization of type Transactional.
organization required | string Example: marigold_1 Name of the organization to work in. |
Array of objects (Journey_Base) | |||||
Array
|
{- "journeys": [
- {
- "api_name": "api_name_1",
- "type": "transactional"
}, - {
- "api_name": "api_name_2",
- "type": "transactional"
}
]
}
Use this endpoint to retrieve information on the transactional journey with the given api name.
api_name required | string Example: newsletter_1 API name of the journey. |
organization required | string Example: marigold_1 Name of the organization to work in. |
api_name | string the api name for the journey. |
type | string (JourneyType) Enum: "unknown" "singlebatch" "transactional" "ab" "recurring" "custom" the type of the journey. |
launch_state | string (launch_state) Enum: "none" "launch" "schedule" The state of the journey.
|
name | string Name of the journey. |
campaign_analytics_tag | string Analytics tag for this journey. |
message_analytics_tag | string Analytics tag for this message. Omitted if empty. |
{- "api_name": "journey_1",
- "type": "transactional",
- "launch_state": "none",
- "name": "Christmas Campaign 1",
- "campaign_analytics_tag": "christmas_campaign",
- "message_analytics_tag": "christmas_campaign_message"
}
Use this endpoint to delete existing transactional journey.
api_name required | string Example: newsletter_1 API name of the journey. |
organization required | string Example: marigold_1 Name of the organization to work in. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "result_code": "Succeeded",
- "message": "The journey has been deleted successfully.",
- "errors": [ ]
}
Use this endpoint to send (multiple) transactional messages (email mobile push sms).
api_name required | string Example: newsletter_1 API name of the journey. |
organization required | string Example: marigold_1 Name of the organization to work in. |
object | |||||||||||||||
|
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||||||||||||||
Array of objects (Errors) List of errors. | |||||||||||||||||
Array
| |||||||||||||||||
Array of objects List of provided initial data. | |||||||||||||||||
Array
| |||||||||||||||||
Array of objects | |||||||||||||||||
Array
|
{- "items": {
- "email": "john.doe@doe.com",
- "recipient": "john.doe@doe.com",
- "language": "en-US",
- "data": {
- "required_string_1": "John",
- "optional_integer_1": 1,
- "required_integer_1": 5
}, - "dtsdata": [
- {
- "data_selection": "Data_selection_1",
- "content": [
- {
- "id": "1"
}, - {
- "id": "2"
}
]
}
], - "lookup": {
- "scope": "MASTER",
- "field": "MAIL"
}, - "sg_external_id": "c1379533-b642-48ee-968a-b952c042ed94"
}
}
{- "result_code": "PartiallySucceeded",
- "errors": [
- {
- "error_code": "Failed",
- "description": "Message with api name 'message_1' doesn't exists"
}
], - "response_data": [
- {
- "email": "john.doe@doe.com",
- "recipient": "john.doe@doe.com",
- "language": "en-US",
- "data": {
- "required_string_1": "John",
- "optional_integer_1": 1,
- "required_integer_1": 5
}, - "dtsdata": [
- {
- "data_selection": "Data_selection_1",
- "content": [
- {
- "id": "1"
}, - {
- "id": "2"
}
]
}
], - "lookup": {
- "scope": "MASTER",
- "field": "MAIL"
}, - "sg_external_id": "c1379533-b642-48ee-968a-b952c042ed94",
- "errors": [
- {
- "error_code": "Failed",
- "description": "Message with api name 'message_1' doesn't exists"
}
]
}
], - "messages": [
- {
- "id": "e82d48e6-f083-4a88-a842-524b3d8992de"
}
]
}
Use this endpoint to update the user profile with given data and then send (multiple) transactional messages (email mobile push sms).
api_name required | string Example: newsletter_1 API name of the journey. |
organization required | string Example: marigold_1 Name of the organization to work in. |
object (Transactional_Update_Send) | |||||||||||||||||
|
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||||||||||||||
Array of objects (Errors) List of errors. | |||||||||||||||||
Array
| |||||||||||||||||
Array of objects List of provided initial data. | |||||||||||||||||
Array
| |||||||||||||||||
Array of objects | |||||||||||||||||
Array
|
{- "items": {
- "email": "john.doe@doe.com",
- "recipient": "john.doe@doe.com",
- "language": "en-US",
- "data": {
- "required_string_1": "John",
- "optional_integer_1": 1,
- "required_integer_1": 5
}, - "dtsdata": [
- {
- "data_selection": "Data_selection_1",
- "content": [
- {
- "id": "1"
}, - {
- "id": "2"
}
]
}
], - "lookup": {
- "scope": "MASTER",
- "field": "MAIL"
}, - "sg_external_id": "c1379533-b642-48ee-968a-b952c042ed94",
- "profile": [
- {
- "scope": "MASTER",
- "fields": {
- "NAME": "John",
- "PREFERENCE": "Food"
}
}
]
}
}
{- "result_code": "PartiallySucceeded",
- "errors": [
- {
- "error_code": "Failed",
- "description": "Message with api name 'message_1' doesn't exists"
}
], - "response_data": [
- {
- "email": "john.doe@doe.com",
- "recipient": "john.doe@doe.com",
- "language": "en-US",
- "data": {
- "required_string_1": "John",
- "optional_integer_1": 1,
- "required_integer_1": 5
}, - "dtsdata": [
- {
- "data_selection": "Data_selection_1",
- "content": [
- {
- "id": "1"
}, - {
- "id": "2"
}
]
}
], - "lookup": {
- "scope": "MASTER",
- "field": "MAIL"
}, - "sg_external_id": "c1379533-b642-48ee-968a-b952c042ed94",
- "errors": [
- {
- "error_code": "Failed",
- "description": "Message with api name 'message_1' doesn't exists"
}
]
}
], - "messages": [
- {
- "id": "e82d48e6-f083-4a88-a842-524b3d8992de"
}
]
}
Use this endpoint to get the status of multiple transactional messages.
organization required | string Example: marigold_1 Name of the organization to work in. |
ids | Array of strings <uuid> [ items <uuid > ] List of message IDs to look for. These are system-generated and returned by the Send and UpdateProfileAndSend calls. |
sg_external_ids | Array of strings <uuid> [ items <uuid > ] List of External IDs to look for. This is useful if you supplied those in the Send or UpdateProfileAndSend call. |
id | string <uuid> ID of the message. |
sg_external_id | string <uuid> (sg_external_id) A uuid you can use to trace this message. This is an accepted input for the Transactional_GetStatus call. |
status | integer <int32> status code of the message. |
status_message | string Readable version of the message status. |
{- "ids": [
- "055979c7-d2ec-4d83-abb4-fde70cc1aac5",
- "754c4ea5-621c-4a9d-9932-53ef68542945"
], - "sg_external_ids": [
- "c1379533-b642-48ee-968a-b952c042ed94",
- "7efd3f07-3eb4-4bce-b26c-672603ea7f20"
]
}
[- {
- "id": "7aba31fe-490c-46f0-bd5e-82a0bc5648fc",
- "sg_external_id": "c1379533-b642-48ee-968a-b952c042ed94",
- "status": 30,
- "status_message": "Mail was sent"
}
]
Use this endpoint to get the status of a transactional message with a given id.
id required | string <uuid> Example: 973592c1-7198-4b10-aab1-db0da381cd13 ID of the message. This is found in the return model of the Send or UpdateProfileAndSend call. |
organization required | string Example: marigold_1 Name of the organization to work in. |
id | string <uuid> ID of the message. |
sg_external_id | string <uuid> (sg_external_id) A uuid you can use to trace this message. This is an accepted input for the Transactional_GetStatus call. |
status | integer <int32> status code of the message. |
status_message | string Readable version of the message status. |
{- "id": "7aba31fe-490c-46f0-bd5e-82a0bc5648fc",
- "sg_external_id": "c1379533-b642-48ee-968a-b952c042ed94",
- "status": 30,
- "status_message": "Mail was sent"
}
Use this method to trigger a bulk journey in a transactional way
api_name required | string Example: newsletter_1 API name of the journey. |
organization required | string Example: marigold_1 Name of the organization to work in. |
Array of objects (Errors) List of errors. | |||||
Array
| |||||
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. |
{- "result_code": "PartiallySucceeded",
- "errors": [
- {
- "error_code": "Failed",
- "description": "an error has occurred"
}
]
}
Use this endpoint to check whether custom journey already exists.
api_name required | string Example: newsletter_1 API name of the journey. |
organization required | string Example: marigold_1 Name of the organization to work in. |
api_name | string the api name for the journey. |
type | string (JourneyType) Enum: "unknown" "singlebatch" "transactional" "ab" "recurring" "custom" the type of the journey. |
name | string Name of the journey. |
description | string Description of the journey. |
{- "api_name": "journey_1",
- "type": "custom",
- "name": "journey_1",
- "description": "this is the description."
}
Use this endpoint to delete existing custom journey.
api_name required | string Example: newsletter_1 API name of the journey. |
organization required | string Example: marigold_1 Name of the organization to work in. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "result_code": "Succeeded",
- "message": "The journey has been deleted successfully"
}
Lists all entry point components in the custom journey usable via api.
api_name required | string Example: newsletter_1 API name of the journey. |
organization required | string Example: marigold_1 Name of the organization to work in. |
Array of objects (Entrypoint) A collection of entrypoints. | |||||
Array
|
[- {
- "info": null,
- "model": {
- "entry_point_type": "Input",
- "name": "My name of the entry point",
- "api_name": "entrypoint_api_name"
}
}, - {
- "info": "this entry point can not be used to trigger the journey as it is not yet published",
- "model": {
- "entry_point_type": "Input",
- "name": null,
- "api_name": null
}
}
]
Gets detailed information about the entry point component.
api_name required | string Example: newsletter_1 API name of the journey. |
entrypoint_api_name required | string Example: entrypoint_api_name_custom_journey the api name of the entry point defined in the custom journey. |
organization required | string Example: marigold_1 Name of the organization to work in. |
info | string Can contain some important system information. | ||||||
object | |||||||
| |||||||
Array of objects Parameters defined for this entrypoint. | |||||||
Array
|
{- "system_info": "some optional system information about the entry point.",
- "model": {
- "entry_point_type": "Input",
- "name": "My name of the entry point",
- "api_name": "entrypoint_api_name",
- "parameters": [
- {
- "name": "PARAM1",
- "required": true
}, - {
- "name": "PARAM2",
- "required": false
}
]
}
}
This will trigger a specific start component in the custom journey
api_name required | string Example: newsletter_1 API name of the journey. |
entrypoint_api_name required | string Example: entrypoint_api_name_custom_journey the api name of the entry point defined in the custom journey. |
organization required | string Example: marigold_1 Name of the organization to work in. |
user_id | integer <int64> The id of the user on the current context (eg. default 0 same as Anonymous) | ||
object The parameter and the value of that parameter that needs to be processed. | |||
|
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. |
result_type | string Enum: "None" "Content" "Redirect" "Validation" "Error" Resulting body type from the entry call. |
body | string The returned data from the entrypoint. |
{- "user_id": 1,
- "parameter_values": {
- "USERNAME": "Bob",
- "OPTIN": true
}
}
{- "result_code": "PartiallySucceeded",
- "result_type": "Content",
- "body": "<html></html>"
}
Get Lists defined for an organization.
organization required | string Example: marigold_1 Name of the organization to work in. |
filter | string Enum: "Unknown" "Userlist" "Datalist" "DataSelectionList" "Optionlist" "Devicelist" Example: filter=UserList, Datalist Filter by list typ(s). Multiple types can be provided comma separated. |
search | string Example: search=marigold_1 Search with a specific name, api_name, description or tag(s). |
skip | integer <int32> Default: 0 Example: skip=100 The index to start from, skipping all the previous results. |
take | integer <int32> Default: -1 Example: take=1 The maximum amount of items to return. |
Array of objects Collection of lists. | |||||||||
Array
|
{- "list": [
- {
- "api_name": "list_1",
- "name": "List 1",
- "id": 1,
- "type": "Userlist"
}
]
}
Create a new list in the given organization.
organization required | string Example: marigold_1 Name of the organization to work in. |
api_name required | string API name for a list. |
name required | string Name of the list. |
tags | Array of strings (tags) Default: [] Labels of the object. |
description | string Default: "" A description of what this list is about. |
enforce_segment_selection | boolean Default: false Enforce segment selection for user lists (Only applicable for user lists) |
folder | string Default: "0" Folder id to store the list in. |
optionlist_codetype | string Default: "Text" Enum: "Unknown" "Text" "Numeric" Option list code type for option lists (Only applicable for option lists) |
type required | string Enum: "Unknown" "Userlist" "Datalist" "DataSelectionList" "Optionlist" "Devicelist" Type of the list. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "api_name": "list_1",
- "name": "List 1",
- "tags": [
- "addresses",
- "footer",
- "email",
- "holiday"
], - "description": "This is my first userlist",
- "enforce_segment_selection": true,
- "folder": "folder_1",
- "optionlist_codetype": "Text",
- "type": "string"
}
{- "result_code": "Succeeded",
- "message": "List created successfully."
}
Get a list of details for the list with the given API name.
api_name required | string Example: list_1 API name of the list. |
organization required | string Example: marigold_1 Name of the organization to work in. |
api_name | string API name for a list. | ||||||||||||||||
name | string Name of the list. | ||||||||||||||||
tags | Array of strings (tags) Default: [] Labels of the object. | ||||||||||||||||
enforce_segment_selection | boolean Default: false Enforce segment selection for user lists (Only applicable for user lists) | ||||||||||||||||
organizations | Array of strings List of organizations linked to the object. | ||||||||||||||||
not_accessible_organizations_count | integer <int32> Number of organizations associated with the object, That cannot be access via the API. | ||||||||||||||||
object (List_Email_Quality) | |||||||||||||||||
| |||||||||||||||||
taglist_api_name | string API name of Tag list. | ||||||||||||||||
type | string (type-2) Enum: "Unknown" "Userlist" "Datalist" "DataSelectionList" "Optionlist" "Devicelist" Type of the list. |
{- "api_name": "list_1",
- "name": "List 1",
- "tags": [
- "addresses",
- "footer",
- "email",
- "holiday"
], - "enforce_segment_selection": true,
- "organizations": [ ],
- "not_accessible_organizations_count": 1,
- "email_quality_configuration": {
- "email_quality_type": "Normal",
- "invalid_email_syntax": 1,
- "non_existing_domain": 1,
- "hard_bounce": 1,
- "soft_bounce": 3,
- "bounce_scope": "MASTER",
- "email_quality_actions": [
- {
- "field_name": "OPTOUT",
- "field_value": 10
}
], - "bounce_stored_procedures": [
- "SP_HANDLE_EMAIL_QUALITY_CONTROL"
]
}, - "taglist_api_name": "tag_list_1",
- "type": "Userlist"
}
Use this endpoint to update a list.
api_name required | string Example: list_1 API name of the list. |
organization required | string Example: marigold_1 Name of the organization to work in. |
api_name | string API name for a list. | ||||||||
name | string Name of the list. | ||||||||
tags | Array of strings (tags) Default: [] Labels of the object. | ||||||||
description | string Default: "" A description of what this list is about. | ||||||||
enforce_segment_selection | boolean Default: false Enforce segment selection for user lists (Only applicable for user lists) | ||||||||
taglist_api_name | string API name of Tag list. | ||||||||
object (List_Email_Quality) | |||||||||
| |||||||||
type | string Enum: "Unknown" "Userlist" "Datalist" "DataSelectionList" "Optionlist" "Devicelist" Type of the list. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "api_name": "list_1",
- "name": "List 1",
- "tags": [
- "addresses",
- "footer",
- "email",
- "holiday"
], - "description": "This is my first userlist",
- "enforce_segment_selection": true,
- "taglist_api_name": "tag_list_1",
- "email_quality_configuration": {
- "email_quality_type": "Normal",
- "bounce_scope": "MASTER",
- "email_quality_actions": [
- {
- "field_name": "OPTOUT",
- "field_value": 10
}
], - "bounce_stored_procedures": [
- "SP_HANDLE_EMAIL_QUALITY_CONTROL"
]
}, - "type": "string"
}
{- "result_code": "Succeeded",
- "message": "List updated successfully."
}
Delete a list by its API name in the given organization.
api_name required | string Example: list_1 API name of the list. |
organization required | string Example: marigold_1 Name of the organization to work in. |
dropTable | boolean Default: false Example: dropTable=false Specify if the associated table is to be deleted. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "result_code": "Succeeded",
- "message": "The list has been deleted successfully"
}
Use this endpoint to get custom events
api_name required | string Example: list_1 API name of the list. |
organization required | string Example: marigold_1 Name of the organization to work in. |
filter | string Enum: "Streaming" "Scheduled" Example: filter=Streaming,Scheduled Filter by event type. |
search | string Example: search=marigold_1 Search with a specific name, api_name, description or tag(s). |
skip | integer <int32> Default: 0 Example: skip=100 The index to start from, skipping all the previous results. |
take | integer <int32> Default: 0 Example: take=50 The maximum amount of items to return. |
Array of objects (List_Custom_Event_Base) the custom events matching the criteria on the specified list. | |||
Array
|
{- "custom_events": [
- {
- "name": "Custom event 1"
}, - {
- "name": "Custom event 2"
}, - {
- "name": "Custom event 3"
}
]
}
Use this endpoint to create a new custom event.
api_name required | string Example: list_1 API name of the list. |
organization required | string Example: marigold_1 Name of the organization to work in. |
name required | string Name of the custom event. |
tags | Array of strings Default: [] Labels of the object. |
description | string Default: "" A description of what this custom event is about. |
type required | string (type-3) Enum: "Streaming" "Scheduled" Type of the custom event. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "name": "Custom event 1",
- "tags": [ ],
- "description": "This is my first custom event",
- "type": "Streaming"
}
{- "result_code": "Succeeded",
- "message": "The custom event has been saved successfully."
}
Use this endpoint to get custom event details based on list API name and custom event name.
api_name required | string Example: list_1 API name of the list. |
custom_event_name required | string Example: custom_event_1 Name of the custom event. |
organization required | string Example: marigold_1 Name of the organization to work in. |
object (List_Custom_Event) | |||||||||
|
{- "custom_event": {
- "name": "Custom event 1",
- "description": "This is my first custom event",
- "type": "Streaming",
- "transaction_field": "USER_ID"
}
}
Use this endpoint to update a custom event.
api_name required | string Example: list_1 API name of the list. |
custom_event_name required | string Example: custom_event_1 Name of the custom event. |
organization required | string Example: marigold_1 Name of the organization to work in. |
name | string Name of the custom event. |
tags | Array of strings Default: [] Labels of the object. |
description | string Default: "" A description of what this custom event is about. |
transaction_field | string field on the Linked list to connect the custom event to |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "name": "Custom event 1",
- "tags": [ ],
- "description": "This is my first custom event",
- "transaction_field": "USER_ID"
}
{- "result_code": "Succeeded",
- "message": "The custom event has been updated successfully."
}
Use this endpoint to delete a custom event by its name in the given organization.
api_name required | string Example: list_1 API name of the list. |
custom_event_name required | string Example: custom_event_1 Name of the custom event. |
organization required | string Example: marigold_1 Name of the organization to work in. |
dropTable | boolean Default: false Example: dropTable=false Specify if the associated table is to be deleted. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "result_code": "Succeeded",
- "message": "The custom event has been deleted successfully"
}
Use this endpoint to trigger the system, to process all incoming data on the custom event.
api_name required | string Example: list_1 API name of the list. |
custom_event_name required | string Example: custom_event_1 Name of the custom event. |
organization required | string Example: marigold_1 Name of the organization to work in. |
{- "result_code": "Succeeded",
- "message": "trigger custom event request accepted and waiting to be processed."
}
Use this endpoint to get custom event fields based on list API name and custom event name.
api_name required | string Example: list_1 API name of the list. |
custom_event_name required | string Example: custom_event_1 Name of the custom event. |
organization required | string Example: marigold_1 Name of the organization to work in. |
Array of (Simple field (object) or Computed field (object) or Lookup field (object)) or List_Custom_Event_Field_Json (object) List of fields to create on the custom event. | |||||||||||||
Array One of One of
|
{- "fields": [
- {
- "name": "field_1",
- "length": 50,
- "data_type": "Text",
- "description": "This is a field of type text.",
- "allow_null": false,
- "content": "Free"
}, - {
- "name": "field_2",
- "data_type": "Numeric",
- "description": "This is a field of type numeric.",
- "allow_null": false,
- "content": "Free"
}, - {
- "name": "field_3",
- "length": 50,
- "data_type": "Text",
- "description": "This is a field of type text with text optionlist association.",
- "allow_null": true,
- "content": "Multi",
- "optionlist": "Optionlist_Text_ApiName"
}, - {
- "name": "field_4",
- "data_type": "Numeric",
- "description": "This is a field of type numeric with numeric optionlist association.",
- "allow_null": false,
- "content": "Single",
- "optionlist": "Optionlist_Numeric_ApiName"
}, - {
- "name": "field_5",
- "data_type": "Boolean",
- "description": "This is a field of type boolean.",
- "allow_null": false,
- "content": "Free"
}, - {
- "name": "field_6",
- "length": 50,
- "data_type": "Text",
- "description": "This is a field of type text.",
- "allow_null": true,
- "content": "ComputedPersisted",
- "value_definition": "[%[MASTER.ID]%]"
}, - {
- "name": "field_7",
- "data_type": "Json",
- "description": "This is a field of type json.",
- "allow_null": true,
- "content": "Free",
- "json_schema": [
- {
- "name": "TextElement",
- "input_type": "Text",
- "required": true
}, - {
- "name": "DateElement",
- "input_type": "Date",
- "required": true
}, - {
- "name": "ArrayElement",
- "input_type": "Array",
- "required": true,
- "child_data": [
- {
- "name": "SubProperty1",
- "input_type": "Text",
- "required": true
}, - {
- "name": "SubProperty2",
- "input_type": "Boolean",
- "required": true
}
]
}
]
}
]
}
Use this endpoint to create a custom event fields.
api_name required | string Example: list_1 API name of the list. |
custom_event_name required | string Example: custom_event_1 Name of the custom event. |
organization required | string Example: marigold_1 Name of the organization to work in. |
required | Array of (Simple field (object) or Computed field (object) or Lookup field (object)) or List_Custom_Event_Field_Json (object) List of fields to create on the custom event. | ||||||||||||
Array One of One of
|
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "fields": [
- {
- "name": "field_1",
- "length": 50,
- "data_type": "Text",
- "description": "This is a field of type text.",
- "allow_null": false,
- "content": "Free"
}, - {
- "name": "field_2",
- "data_type": "Numeric",
- "description": "This is a field of type numeric.",
- "allow_null": false,
- "content": "Free"
}, - {
- "name": "field_3",
- "length": 50,
- "data_type": "Text",
- "description": "This is a field of type text with text optionlist association.",
- "allow_null": true,
- "content": "Multi",
- "optionlist": "Optionlist_Text_ApiName"
}, - {
- "name": "field_4",
- "data_type": "Numeric",
- "description": "This is a field of type numeric with numeric optionlist association.",
- "allow_null": false,
- "content": "Single",
- "optionlist": "Optionlist_Numeric_ApiName"
}, - {
- "name": "field_5",
- "data_type": "Boolean",
- "description": "This is a field of type boolean.",
- "allow_null": false,
- "content": "Free"
}, - {
- "name": "field_6",
- "length": 50,
- "data_type": "Text",
- "description": "This is a field of type text.",
- "allow_null": true,
- "content": "ComputedPersisted",
- "value_definition": "[%[MASTER.ID]%]"
}, - {
- "name": "field_7",
- "data_type": "Json",
- "description": "This is a field of type json.",
- "allow_null": true,
- "content": "Free",
- "json_schema": [
- {
- "name": "TextElement",
- "input_type": "Text",
- "required": true
}, - {
- "name": "DateElement",
- "input_type": "Date",
- "required": true
}, - {
- "name": "ArrayElement",
- "input_type": "Array",
- "required": true,
- "child_data": [
- {
- "name": "SubProperty1",
- "input_type": "Text",
- "required": true
}, - {
- "name": "SubProperty2",
- "input_type": "Boolean",
- "required": true
}
]
}
]
}
]
}
{- "result_code": "Succeeded",
- "message": "Fields created successfully."
}
Use this endpoint to delete a custom event field based on list's API name, custom event name and name of the field.
api_name required | string Example: list_1 API name of the list. |
custom_event_name required | string Example: custom_event_1 Name of the custom event. |
name required | string Example: storedprocedure_1 Name of the field. |
organization required | string Example: marigold_1 Name of the organization to work in. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "result_code": "Succeeded",
- "message": "The custom event field has been deleted successfully"
}
Use this endpoint to update a custom event field.
api_name required | string Example: list_1 API name of the list. |
custom_event_name required | string Example: custom_event_1 Name of the custom event. |
field_name required | string Example: field_1 Name of the field. |
organization required | string Example: marigold_1 Name of the organization to work in. |
name | string Name of the field. |
description | string Description about the field. |
content | string Enum: "Unknown" "Free" "Single" "Multi" "ComputedNonPersisted" "ComputedPersisted" "Lookup" The type of field stored. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "name": "FIELD",
- "description": "This is FIELD with text optionlist association.",
- "content": "Free",
- "optionlist": "option_list_api_name",
- "json_schema": [
- {
- "name": "TextElement",
- "input_type": "Text",
- "required": true
}, - {
- "name": "DateElement",
- "input_type": "Date",
- "required": true
}, - {
- "name": "ArrayElement",
- "input_type": "Array",
- "required": true,
- "child_data": [
- {
- "name": "SubProperty1",
- "input_type": "Text",
- "required": true
}, - {
- "name": "SubProperty2",
- "input_type": "Boolean",
- "required": true
}
]
}
]
}
{- "result_code": "Succeeded",
- "message": "The custom event field has been updated successfully."
}
Use this endpoint to create or update a single record with data on a 1:1 relation.
api_name required | string Example: list_1 API name of the list. |
organization required | string Example: marigold_1 Name of the organization to work in. |
keyFields required | string Example: keyFields=key1,key2,key3 A comma-separated list of the key fields that need to be used. |
scope* additional property | any The value for the specific field. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "id": "1",
- "mail": "john.doe@gmail.com",
- "master.name": "Doe",
- "scope1.field": "someValue",
- "scope2.field": "someOtherValue"
}
{- "result_code": "Succeeded",
- "message": "Record ID 13 inserted on List DataApiOneToOne_A."
}
Use this endpoint to delete data from a specific table.
api_name required | string Example: list_1 API name of the list. |
organization required | string Example: marigold_1 Name of the organization to work in. |
keyFields required | string Example: keyFields=key1,key2,key3 A comma-separated list of the key fields that need to be used. |
fields | string Example: fields=field1,field2 A comma-separated list of the fields that are in the provided data records. Make sure that this list contains ALL fields (including the key fields) in the correct order. If this parameter is not provided, the first row of the provided data records will be used to determine the fields. |
mode | string Default: "Sync" Enum: "Sync" "Stream" The mode of data transfer. |
errorHandling | string Default: "StopOnError" Enum: "StopOnError" "ContinueOnError" Example: errorHandling=StopOnError Parameter indicates error handling options whether to stop on error or continue on error. (None, StopOnError or ContinueOnError) |
Array of objects (error) In case deleting the data fails, this property contains the list of validation errors. | |||||||||
Array
| |||||||||
result_code | string Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Indicates the resultCode for the request. | ||||||||
number_of_duplicate_records | integer <int64> When the data deletion succeeded, this property contains the number of duplicate records | ||||||||
number_of_failed_records | integer <int64> When the data deletion partially succeeded, this property contains the number of failed records | ||||||||
number_of_records_not_found | integer <int64> | ||||||||
Array of objects or null (Data_Load_Invalid) When the data deletion partially succeeded, this property contains information about the invalid records | |||||||||
Array
| |||||||||
number_of_deleted_records | integer <int64> When the data deletion succeeded, this property contains the number of deleted records |
{- "errors": [
- {
- "error_code": "Failed",
- "description": "Message with api name 'message_1' doesn't exists"
}
], - "result_code": "PartiallySucceeded",
- "number_of_duplicate_records": 0,
- "number_of_failed_records": 2,
- "number_of_records_not_found": 0,
- "invalid_records": [
- {
- "record_index": 17,
- "field_name": "EMAIL",
- "message": "Record contains incorrect number of fields",
- "validation_code": "InvalidFieldCount"
}
], - "number_of_deleted_records": 48
}
Use this endpoint to load data into a specific table.
api_name required | string Example: list_1 API name of the list. |
organization required | string Example: marigold_1 Name of the organization to work in. |
keyFields required | string Example: keyFields=key1,key2,key3 A comma-separated list of the key fields that need to be used. |
fields | string Example: fields=field1,field2 A comma-separated list of the fields that are in the provided data records. Make sure that this list contains ALL fields (including the key fields) in the correct order. If this parameter is not provided, the first row of the provided data records will be used to determine the fields. |
mode | string Default: "Sync" Enum: "Sync" "Stream" The mode of data transfer. |
deduplication | string Default: "ImportLastMatch" Enum: "None" "ImportLastMatch" "ImportFirstMatch" Example: deduplication=ImportLastMatch The de-duplication option to use. |
data_import_option | string Default: "InsertAndUpdate" Enum: "InsertAndUpdate" "OnlyInsert" "OnlyUpdate" Example: data_import_option=InsertAndUpdate Indicates the data import option during an import data. |
create_segment_name | string Default: null Example: create_segment_name=Segment name Indicates the name of segment at the time of segment creation. |
create_segment_api_name | string Default: null Example: create_segment_api_name=segment_api_name Indicates the api name of segment at the time of segment creation. |
errorHandling | string Enum: "StopOnError" "ContinueOnError" Example: errorHandling=StopOnError Parameter indicates error handling options: whether to stop on error or continue on error. |
Array of objects (error) In case deleting the data fails, this property contains the list of validation errors. | |||||||||
Array
| |||||||||
result_code | string Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Indicates the resultCode for the request. | ||||||||
number_of_duplicate_records | integer <int64> When the data deletion succeeded, this property contains the number of duplicate records | ||||||||
number_of_failed_records | integer <int64> When the data deletion partially succeeded, this property contains the number of failed records | ||||||||
number_of_records_not_found | integer <int64> | ||||||||
Array of objects or null (Data_Load_Invalid) When the data deletion partially succeeded, this property contains information about the invalid records | |||||||||
Array
| |||||||||
number_of_inserted_records | integer <int64> When the data load succeeded, this property contains the number of inserted records |
{- "result_code": "PartiallySucceeded",
- "number_of_inserted_records": 50,
- "number_of_failed_records": 2,
- "number_of_updated_records": 48,
- "number_of_duplicate_records": 0,
- "number_of_records_not_found": 0,
- "invalid_records": [
- {
- "record_index": 10,
- "field_name": "SOMESTRING",
- "message": "Length of string (53) exceeds maximum field length (50)",
- "validation_code": "MaxStringLengthExceeded"
}, - {
- "record_index": 17,
- "message": "Record contains incorrect number of fields",
- "validation_code": "InvalidFieldCount"
}
]
}
Use this endpoint to search for data records in a specific table. Searching data can be done synchronous or streamed. The data in the response will be in a Json format.
api_name required | string Example: list_1 API name of the list. |
organization required | string Example: marigold_1 Name of the organization to work in. |
mode | string Default: "Sync" Enum: "Sync" "Stream" The mode of data transfer. |
fields required | Array of strings An array of fields to be returned for a record. | ||||||
Array of objects (List_Data_Search_Filter) Default: [] filters to apply for the search. Works as an AND. | |||||||
Array
| |||||||
skip | integer <int32> Default: 0 The index to start from, skipping all the previous results. | ||||||
take | integer <int32> Default: null The maximum amount of items to return. By Default all items are returned. | ||||||
order_by | string Default: "MASTER.ID" Field to order the results on. | ||||||
order_by_direction | string Default: "ASC" Enum: "ASC" "DESC" Order direction of the results. |
fields | Array of strings An array of fields to be returned for a record. | ||||
Array of objects (error) In case deleting the data fails, this property contains the list of validation errors. | |||||
Array
| |||||
data | Array of strings[ items ] List of records | ||||
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. |
{- "fields": [
- "MASTER.FIELD_1",
- "MASTER.EMAIL",
- "SCOPE_1.FIELD_1",
- "SYSTEM.SELLIGENTID"
], - "filters": [ ],
- "skip": 1,
- "take": 1,
- "order_by": "MASTER.NAME",
- "order_by_direction": "ASC"
}
{- "fields": [
- "FIELD1",
- "MASTER.ID"
], - "data": [
- [
- "RECORD1_FIELD1_VALUE",
- 1
], - [
- "RECORD2_FIELD1_VALUE",
- 2
], - [
- "RECORD3_FIELD1_VALUE",
- 3
]
], - "result_code": "Succeeded",
- "errors": [ ]
}
This endpoint will return the engagement list structure for specified channel type for a user list.
api_name required | string Example: list_1 API name of the list. |
channel required | string Enum: "Email" "Sms" "Mobile" "Web" "Mms" Example: Email Channel type. |
organization required | string Example: marigold_1 Name of the organization to work in. |
Array of objects (List_Engagement_Structure) Structure of the list fields. | |||||||||
Array
|
{- "fields": [
- {
- "name": "ID",
- "data_type": "Numeric",
- "allow_null": false,
- "length": null
}, - {
- "name": "USERID",
- "data_type": "Numeric",
- "allow_null": true,
- "length": null
}, - {
- "name": "DELIVERED",
- "data_type": "Numeric",
- "allow_null": true,
- "length": null
}, - {
- "name": "CLICKED",
- "data_type": "Numeric",
- "allow_null": true,
- "length": null
}, - {
- "name": "VIEWED",
- "data_type": "Numeric",
- "allow_null": true,
- "length": null
}, - {
- "name": "DELIVERED_LASTDT",
- "data_type": "DateTime",
- "allow_null": true
}, - {
- "name": "VIEWED_LASTDT",
- "data_type": "DateTime",
- "allow_null": true
}, - {
- "name": "CLICKED_LASTDT",
- "data_type": "DateTime",
- "allow_null": true
}, - {
- "name": "DELIVERY_RATE",
- "data_type": "Float",
- "allow_null": true
}, - {
- "name": "VIEW_RATE",
- "data_type": "Float",
- "allow_null": true
}, - {
- "name": "CLICK_RATE_CTR",
- "data_type": "Float",
- "allow_null": true
}, - {
- "name": "DESKTOP_ENGAGEMENTS",
- "data_type": "Numeric",
- "allow_null": true,
- "length": null
}, - {
- "name": "MOBILE_ENGAGEMENTS",
- "data_type": "Numeric",
- "allow_null": true,
- "length": null
}, - {
- "name": "TABLET_ENGAGEMENTS",
- "data_type": "Numeric",
- "allow_null": true,
- "length": null
}, - {
- "name": "MOBILE_USAGE_RATE",
- "data_type": "Float",
- "allow_null": true
}, - {
- "name": "TABLET_USAGE_RATE",
- "data_type": "Float",
- "allow_null": true
}
]
}
Get engagement list record data for specified channel type and master list record.
api_name required | string Example: list_1 API name of the list. |
channel required | string Enum: "Email" "Sms" "Mobile" "Web" "Mms" Example: Email Channel type. |
record_id required | integer <int32> Example: 1 Parameter for record id associated with a list. |
organization required | string Example: marigold_1 Name of the organization to work in. |
object Record data. | |||||||||||||||||||||||
|
{- "record": {
- "ID": 1,
- "USERID": 1,
- "DELIVERED": 100,
- "VIEWED": 0,
- "CLICKED": 0,
- "DELIVERED_LASTDT": "2023-09-11T10:01:03.01",
- "VIEWED_LASTDT": "2023-09-12T11:10:03.02",
- "CLICKED_LASTDT": "2023-09-13T14:25:04.03",
- "DELIVERY_RATE": 95,
- "VIEW_RATE": 90,
- "CLICK_RATE_CTR": 85
}
}
Use this endpoint to get list fields based on API name of list.
api_name required | string Example: list_1 API name of the list. |
organization required | string Example: marigold_1 Name of the organization to work in. |
Array of any (List_Field) List of fields to create on the custom event. | |||||||||||||
Array
|
{- "fields": [
- {
- "name": "field_1",
- "length": 50,
- "data_type": "Text",
- "description": "This is a field of type text.",
- "allow_null": false,
- "content": "Free"
}
]
}
Use this endpoint to create list fields.
api_name required | string Example: list_1 API name of the list. |
organization required | string Example: marigold_1 Name of the organization to work in. |
required | Array of any (List_Field) List of fields to create on the custom event. | ||||||||||||
Array
|
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "fields": [
- {
- "allow_null": false,
- "data_type": "Text",
- "description": "Some text field",
- "length": 50,
- "name": "TextField"
}, - {
- "allow_null": true,
- "data_type": "Boolean",
- "description": "Some boolean field",
- "name": "BooleanField"
}, - {
- "allow_null": true,
- "data_type": "Date",
- "description": "Some date field",
- "name": "DateField"
}, - {
- "allow_null": true,
- "data_type": "DateTime",
- "description": "Some date time field",
- "name": "DateTimeField"
}, - {
- "allow_null": true,
- "data_type": "Float",
- "description": "Some float field",
- "name": "FloatField"
}, - {
- "allow_null": true,
- "data_type": "Long",
- "description": "Some long field",
- "name": "LongField"
}, - {
- "allow_null": true,
- "data_type": "LongText",
- "description": "Some long text field",
- "name": "LongTextField"
}, - {
- "allow_null": true,
- "data_type": "Numeric",
- "description": "Some numeric field",
- "name": "NumericField"
}, - {
- "allow_null": false,
- "data_type": "Numeric",
- "description": "Some numeric field",
- "name": "NumericFieldWithNumericOptionList",
- "content": "Single",
- "optionlist": "Optionlist_Numeric_ApiName"
}, - {
- "allow_null": true,
- "data_type": "Text",
- "length": 50,
- "description": "Some text field",
- "name": "TextFieldWithTextOptionList",
- "content": "Multi",
- "optionlist": "Optionlist_Text_ApiName"
}, - {
- "allow_null": true,
- "data_type": "Boolean",
- "description": "Some boolean field",
- "name": "BooleanFieldWithContentFree",
- "content": "Free"
}, - {
- "allow_null": true,
- "data_type": "Text",
- "description": "Some field",
- "name": "ComputedNonPersistedField",
- "content": "ComputedNonPersisted",
- "value_definition": "[%[MASTER.NAME]%]"
}, - {
- "allow_null": true,
- "data_type": "Text",
- "description": "Some field",
- "name": "ComputedPersistedField",
- "content": "ComputedPersisted",
- "value_definition": "[%lower( [MASTER.NAME] )%]"
}, - {
- "allow_null": true,
- "data_type": "Text",
- "length": 50,
- "name": "TextFieldWithIdentifiers",
- "description": "The type Lookup is used for a 'Data Selection Identifiers Set' field",
- "content": "Lookup"
}
]
}
{- "result_code": "Succeeded",
- "message": "Fields created successfully."
}
Use this endpoint to update an existing field of list.
api_name required | string Example: list_1 API name of the list. |
name required | string Example: storedprocedure_1 Name of the field. |
organization required | string Example: marigold_1 Name of the organization to work in. |
Parameter for details containing the new field information.
name | string Name of the field. |
description | string Description about the field. |
content | string The type of field stored. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "name": "field 1",
- "description": "This is a text field.",
- "content": "Other"
}
{- "result_code": "Succeeded",
- "message": "The field has been updated successfully."
}
Use this endpoint to delete a list field based on list's API name and name of the field
api_name required | string Example: list_1 API name of the list. |
name required | string Example: storedprocedure_1 Name of the field. |
organization required | string Example: marigold_1 Name of the organization to work in. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "result_code": "Succeeded",
- "message": "List field deleted successfully."
}
This endpoint will return the interest list structure for specified channel type for an user list.
api_name required | string Example: list_1 API name of the list. |
channel required | string Enum: "Email" "Sms" "Mobile" "Web" "Mms" Example: Email Channel type. |
organization required | string Example: marigold_1 Name of the organization to work in. |
Array of objects (List_Interest_Structure) Structure of the list fields. | |||||||||
Array
|
{- "fields": [
- {
- "name": "ID",
- "data_type": "Numeric",
- "allow_null": false
}, - {
- "name": "USERID",
- "data_type": "Numeric",
- "allow_null": true
}, - {
- "name": "TOP_TAG_1",
- "data_type": "Text",
- "length": 255,
- "allow_null": true
}, - {
- "name": "TOP_TAG_2",
- "data_type": "Text",
- "length": 255,
- "allow_null": true
}, - {
- "name": "TOP_TAG_3",
- "data_type": "Text",
- "length": 255,
- "allow_null": true
}, - {
- "name": "TOP_TAG_4",
- "data_type": "Text",
- "length": 255,
- "allow_null": true
}, - {
- "name": "TOP_TAG_5",
- "data_type": "Text",
- "length": 255,
- "allow_null": true
}, - {
- "name": "TAG_CLICK_TOTAL",
- "data_type": "Numeric",
- "allow_null": true
}
]
}
Use this endpoint to retrieve interest list record data for specified channel type and master list record.
api_name required | string Example: list_1 API name of the list. |
channel required | string Enum: "Email" "Sms" "Mobile" "Web" "Mms" Example: Email Channel type. |
record_id required | integer <int32> Example: 1 Parameter for record id associated with a list. |
organization required | string Example: marigold_1 Name of the organization to work in. |
object Record data. | |||||||||
|
{- "record": {
- "ID": 1,
- "USERID": 1,
- "TOP_TAG_1": "Tag 1",
- "TOP_TAG_2": "Tag 2",
- "TOP_TAG_3": "Tag 3",
- "TOP_TAG_4": "Tag 4",
- "TOP_TAG_5": "Tag 5",
- "TAG_CLICK_TOTAL": 10
}
}
Use this endpoint to get records count by API name of list.
api_name required | string Example: list_1 API name of the list. |
organization required | string Example: marigold_1 Name of the organization to work in. |
count | integer <int32> the count of records in the list. |
{- "count": 4761
}
Use this endpoint to delete single record by its record Id.
api_name required | string Example: list_1 API name of the list. |
record_id required | integer <int64> Example: 4761 Required Parameter to specify if the associated record is to be deleted. |
organization required | string Example: marigold_1 Name of the organization to work in. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "result_code": "Succeeded"
}
Use this endpoint to get all relations associated with a list.
api_name required | string Example: list_1 API name of the list. |
organization required | string Example: marigold_1 Name of the organization to work in. |
filter | string Enum: "OneToOne" "OneToMany" "ManyToOne" Example: filter=OneToOne, OneToMany Filter relations by relation type. |
Array of objects (List_Relation_Base) list of relations connected to this list. | |||||||||
Array
|
{- "relations": [
- {
- "type": "ManyToOne",
- "scope": "SCOPE_1",
- "source_list_api_name": "source_list_api_name",
- "destination_list_api_name": "destination_list_1_api_name"
}, - {
- "type": "OneToMany",
- "scope": "SCOPE_2",
- "source_list_api_name": "source_list_api_name",
- "destination_list_api_name": "destination_list_2_api_name"
}
]
}
Use this endpoint to create relations between 2 lists.
api_name required | string Example: list_1 API name of the list. |
organization required | string Example: marigold_1 Name of the organization to work in. |
required | Array of objects | ||||||||||||
Array
|
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "relations": [
- {
- "type": "OneToMany",
- "scope": "SCOPE1",
- "masterlist_field_name": "masterlist_field_name",
- "slavelist_api_name": "slavelist_api_name",
- "slavelist_field_name": "slavelist_field_name",
- "constraints": [
- {
- "list1": "MASTER",
- "field1": "master_field",
- "operator": "EqualTo",
- "list2": "EXTENSION",
- "field2": "extension_field"
}, - {
- "list1": "MASTER",
- "field1": "master_field",
- "operator": "EqualTo",
- "value": "10"
}
]
}
]
}
{- "result_code": "Succeeded",
- "message": null,
- "errors": [ ]
}
Use this endpoint to get relation details based on API name of the list and name of the relation.
api_name required | string Example: list_1 API name of the list. |
scope required | string Example: RELATION_1 Scope name of the relation. |
organization required | string Example: marigold_1 Name of the organization to work in. |
scope_name | string Name of the relation. | ||||||||||||
relation_type | string Enum: "OneToOne" "OneToMany" "ManyToOne" Type of the relation. | ||||||||||||
master_list_api_name | string API name of master list. | ||||||||||||
master_list_field_name | string Field name of master list. | ||||||||||||
slave_list_api_name | string API name of extension list. | ||||||||||||
slave_list_field_name | string Field name of the extension list. | ||||||||||||
Array of objects (List_Relation_Constraint) Constraints of the relation. | |||||||||||||
Array
|
{- "scope_name": "RELATION",
- "relation_type": "OneToMany",
- "master_list_api_name": "master_list",
- "master_list_field_name": "master_field",
- "slave_list_api_name": "extension_list",
- "slave_list_field_name": "extension_field",
- "constraints": [
- {
- "source_list": "MASTER",
- "source_field": "master_field",
- "operator": "EqualTo",
- "destination_list": "EXTENSION",
- "destination_field": "extension_field",
- "field_value": null
}, - {
- "source_list": "MASTER",
- "source_field": "master_field",
- "operator": "EqualTo",
- "destination_list": null,
- "destination_field": null,
- "field_value": "10"
}
]
}
Use this endpoint to update an existing relation between the given list and a linked list.
api_name required | string Example: list_1 API name of the list. |
scope required | string Example: RELATION_1 Scope name of the relation. |
organization required | string Example: marigold_1 Name of the organization to work in. |
Object to specify updates to a relation. Partial updates are allowed; omit properties you do not wish to update.
scope | string or null Default: null Name of the relation. | ||||||||||||
type | string or null Default: null Enum: null "OneToOne" "OneToMany" "ManyToOne" Type of the relation. | ||||||||||||
masterlist_field_name | string or null Default: null Field name of master list. | ||||||||||||
slavelist_api_name | string or null Default: null API name of extension list. | ||||||||||||
slavelist_field_name | string or null Default: null Field name of the extension list. | ||||||||||||
Array of objects or null (List_Relation_Constraint_2) Default: null Constraints of the relation. You must either leave this empty to retain the original constraints, or specify all constraints you wish for the relation to contain. | |||||||||||||
Array
|
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "scope": "NEW_RELATION_NAME"
}
{- "result_code": "Succeeded",
- "message": "The relation was successfully updated.",
- "errors": [ ]
}
Use this endpoint to delete a relation between this list and another.
api_name required | string Example: list_1 API name of the list. |
scope required | string Example: RELATION_1 Scope name of the relation. |
organization required | string Example: marigold_1 Name of the organization to work in. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "result_code": "Succeeded",
- "message": "The relation has been deleted successfully",
- "errors": [ ]
}
Get an overview of the segments defined on the given list.
api_name required | string Example: list_1 API name of the list. |
organization required | string Example: marigold_1 Name of the organization to work in. |
filter | string Enum: "Static" "Dynamic" "External" "Unknown" Example: filter=Static,Dynamic Filter segment by type. |
take | integer <int32> Default: -1 Example: take=50 The maximum amount of items to return. |
search | string Example: search=marigold_1 Search with a specific name, api_name, description or tag(s). |
skip | integer <int32> Default: 0 Example: skip=100 The index to start from, skipping all the previous results. |
Array of objects Collection of segments under this list matching the Criteria. | |||||
Array
|
{- "segments": [
- {
- "segment_type": "Dynamic",
- "api_name": "segment_1"
}, - {
- "segment_type": "External",
- "api_name": "segment_2"
}
]
}
Use this endpoint to get segment details based on list API name and segment API name.
api_name required | string Example: list_1 API name of the list. |
segment_api_name required | string Example: api_name_segment API name of the segment. |
organization required | string Example: marigold_1 Name of the organization to work in. |
api_name | string Segment API name. |
type | string Enum: "Unknown" "Dynamic" "Static" "External" Type of the segment. |
name | string Name of the segment. |
description | string Description of the segment. |
expression | string or null The constraint syntax for this segment. Null if the segment is of type static. Check our guide for more information on the syntax for this field. |
{- "api_name": "segment_1",
- "type": "string",
- "name": "Segment 1",
- "description": "My first segment",
- "expression": "gt([MASTER.ID], toint('1'))"
}
Use this endpoint to delete a segment by its API name in the given organization.
api_name required | string Example: list_1 API name of the list. |
segment_api_name required | string Example: api_name_segment API name of the segment. |
organization required | string Example: marigold_1 Name of the organization to work in. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "result_code": "Succeeded",
- "message": "The segment has been deleted successfully"
}
Create dynamic segment for the given list API name.
api_name required | string Example: list_1 API name of the list. |
organization required | string Example: marigold_1 Name of the organization to work in. |
api_name required | string Segment API name. |
name required | string Name of the segment. |
description | string Description of the segment. |
folder | string Folder path to store the segment in. |
tags | Array of strings (tags) Default: [] Labels of the object. |
constraint required | string The constraint syntax for this Segment. Check our guide for more information on the syntax for this field. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "api_name": "segment_1",
- "name": "Segment 1",
- "description": "My first segment",
- "folder": "folder_1",
- "tags": [
- "addresses",
- "footer",
- "email",
- "holiday"
], - "constraint": "gt([MASTER.ID], toint('1'))"
}
{- "result_code": "Succeeded",
- "message": "The dynamic segment has been created successfully."
}
Update dynamic segment based on list API name and Segment API name
api_name required | string Example: list_1 API name of the list. |
organization required | string Example: marigold_1 Name of the organization to work in. |
segment_api_name required | string Example: api_name_segment API name of the segment. |
api_name | string Segment API name. |
name | string Name of the segment. |
description | string Description of the segment. |
folder | string Folder path to store the segment in. |
tags | Array of strings (tags) Default: [] Labels of the object. |
constraint | string The constraint syntax for this Segment. Check our guide for more information on the syntax for this field. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "api_name": "segment_1",
- "name": "Segment 1",
- "description": "My first segment",
- "folder": "folder_1",
- "tags": [
- "addresses",
- "footer",
- "email",
- "holiday"
], - "constraint": "gt([MASTER.ID], toint('1'))"
}
{- "result_code": "Succeeded",
- "message": "The dynamic segment has been created successfully."
}
Create static segment based on list API name and provided segment info parameters.
api_name required | string Example: list_1 API name of the list. |
organization required | string Example: marigold_1 Name of the organization to work in. |
api_name required | string Segment API name. |
name required | string Name of the segment. |
description | string Description of the segment. |
folder | string Folder path to store the segment in. |
tags | Array of strings (tags) Default: [] Labels of the object. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "api_name": "segment_1",
- "name": "Segment 1",
- "description": "My first segment",
- "folder": "folder_1",
- "tags": [
- "addresses",
- "footer",
- "email",
- "holiday"
]
}
{- "result_code": "Succeeded",
- "message": "The static segment has been created successfully."
}
Use this endpoint to delete data from a specific static segment.
api_name required | string Example: list_1 API name of the list. |
segment_api_name required | string Example: api_name_segment API name of the segment. |
organization required | string Example: marigold_1 Name of the organization to work in. |
keyFields required | string Example: keyFields=key1,key2,key3 A comma-separated list of the key fields that need to be used. |
fields | string Example: fields=field1,field2 A comma-separated list of the fields that are in the provided data records. Make sure that this list contains ALL fields (including the key fields) in the correct order. If this parameter is not provided, the first row of the provided data records will be used to determine the fields. |
mode | string Default: "Sync" Enum: "Sync" "Stream" The mode of data transfer. |
deduplication | string Default: "ImportLastMatch" Enum: "None" "ImportLastMatch" "ImportFirstMatch" Example: deduplication=ImportLastMatch The de-duplication option to use. |
errorHandling | string Default: "StopOnError" Enum: "None" "StopOnError" "ContinueOnError" Example: errorHandling=ContinueOnError Parameter indicates error handling options whether to stop on error or continue on error. |
Array of objects (error) In case deleting the data fails, this property contains the list of validation errors. | |||||||||
Array
| |||||||||
result_code | string Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Indicates the resultCode for the request. | ||||||||
number_of_duplicate_records | integer <int64> When the data deletion succeeded, this property contains the number of duplicate records | ||||||||
number_of_failed_records | integer <int64> When the data deletion partially succeeded, this property contains the number of failed records | ||||||||
number_of_records_not_found | integer <int64> | ||||||||
Array of objects or null (Data_Load_Invalid) When the data deletion partially succeeded, this property contains information about the invalid records | |||||||||
Array
| |||||||||
number_of_deleted_records | integer <int64> When the data deletion succeeded, this property contains the number of deleted records |
{- "result_code": "PartiallySucceeded",
- "number_of_deleted_records": 48,
- "number_of_duplicate_records": 0,
- "number_of_failed_records": 2,
- "number_of_records_not_found": 0,
- "invalid_records": [
- {
- "record_index": 17,
- "message": "Record contains incorrect number of fields",
- "validation_code": "InvalidFieldCount"
}
]
}
Use this endpoint to clear static segment data.
api_name required | string Example: list_1 API name of the list. |
segment_api_name required | string Example: api_name_segment API name of the segment. |
organization required | string Example: marigold_1 Name of the organization to work in. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "result_code": "Succeeded",
- "message": "The data has been cleared successfully."
}
Use this endpoint to load data into a specific static segment.
api_name required | string Example: list_1 API name of the list. |
segment_api_name required | string Example: api_name_segment API name of the segment. |
organization required | string Example: marigold_1 Name of the organization to work in. |
keyFields required | string Example: keyFields=key1,key2,key3 A comma-separated list of the key fields that need to be used. |
fields | string Example: fields=field1,field2 A comma-separated list of the fields that are in the provided data records. Make sure that this list contains ALL fields (including the key fields) in the correct order. If this parameter is not provided, the first row of the provided data records will be used to determine the fields. |
mode | string Default: "Sync" Enum: "Sync" "Stream" The mode of data transfer. |
deduplication | string Default: "ImportLastMatch" Enum: "None" "ImportLastMatch" "ImportFirstMatch" Example: deduplication=ImportLastMatch The de-duplication option to use. |
errorHandling | string Default: "StopOnError" Enum: "None" "StopOnError" "ContinueOnError" Example: errorHandling=ContinueOnError Parameter indicates error handling options whether to stop on error or continue on error. |
Array of objects (error) In case deleting the data fails, this property contains the list of validation errors. | |||||||||
Array
| |||||||||
result_code | string Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Indicates the resultCode for the request. | ||||||||
number_of_duplicate_records | integer <int64> When the data deletion succeeded, this property contains the number of duplicate records | ||||||||
number_of_failed_records | integer <int64> When the data deletion partially succeeded, this property contains the number of failed records | ||||||||
number_of_records_not_found | integer <int64> | ||||||||
Array of objects or null (Data_Load_Invalid) When the data deletion partially succeeded, this property contains information about the invalid records | |||||||||
Array
| |||||||||
number_of_inserted_records | integer <int64> When the data load succeeded, this property contains the number of inserted records |
{- "errors": [ ],
- "result_code": "PartiallySucceeded",
- "number_of_inserted_records": 50,
- "number_of_failed_records": 2,
- "number_of_updated_records": 48,
- "number_of_duplicate_records": 0,
- "number_of_records_not_found": 0,
- "invalid_records": [
- {
- "record_index": 10,
- "field_name": "SOMESTRING",
- "message": "Length of string (53) exceeds maximum field length (50)",
- "validation_code": "MaxStringLengthExceeded"
}, - {
- "record_index": 17,
- "message": "Record contains incorrect number of fields",
- "validation_code": "InvalidFieldCount"
}
], - "number_of_deleted_records": 0
}
Use this endpoint to search for data records within a segment of a specific table.\r\nSearching data can be done synchronous or streamed.\r\nThe data in the response will be in a Json format.
api_name required | string Example: list_1 API name of the list. |
segment_api_name required | string Example: api_name_segment API name of the segment. |
organization required | string Example: marigold_1 Name of the organization to work in. |
mode | string Default: "Sync" Enum: "Sync" "Stream" The mode of data transfer. |
fields required | Array of strings An array of fields to be returned for a record. | ||||||
Array of objects (Data_Search_Filter) filters to apply for the search. Works as an AND. | |||||||
Array
| |||||||
skip | integer <int32> The index to start from, skipping all the previous results. | ||||||
take | integer <int32> The maximum amount of items to return. | ||||||
order_by | string Field to order the results on. | ||||||
order_by_direction | string Enum: "ASC" "DESC" Irdening direction of the results. |
fields | Array of strings An array of fields to be returned for a record. | ||||
Array of objects (error) In case deleting the data fails, this property contains the list of validation errors. | |||||
Array
| |||||
data | Array of strings[ items ] List of records | ||||
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. |
{- "fields": [
- "MASTER.FIELD1",
- "FIELD2",
- "SCOPE.FIELD_X",
- "SYSTEM.SELLIGENTID"
], - "filters": [
- {
- "field_name": "MASTER.FIELD1",
- "operator": "EqualTo",
- "field_value": "VALUE"
}
], - "skip": 20,
- "take": 20,
- "order_by": "MASTER.FIELD2",
- "order_by_direction": "ASC"
}
{- "fields": [
- "MASTER.FIELD_1",
- "MASTER.EMAIL",
- "SCOPE_1.FIELD_1",
- "SYSTEM.SELLIGENTID"
], - "errors": [
- {
- "error_code": "Failed",
- "description": "Message with api name 'message_1' doesn't exists"
}
], - "data": [
- [
- [
- "RECORD1_FIELD1_VALUE",
- 1
]
]
], - "result_code": "PartiallySucceeded"
}
Use this endpoint to delete a data import.
api_name required | string Example: data_export_1 API name of the data import. |
organization required | string Example: marigold_1 Name of the organization to work in. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "result_code": "Succeeded",
- "message": "Data import has been deleted successfully.",
- "errors": [ ]
}
Use this endpoint to delete a data export.
api_name required | string Example: data_export_1 API name of the data export. |
organization required | string Example: marigold_1 Name of the organization to work in. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "result_code": "Succeeded",
- "message": "Data export has been deleted successfully.",
- "errors": [ ]
}
Create a request to collect customer(s) information in the specified list, based on the provided filters.
api_name required | string Example: user_list_1 API name of the user list. |
organization required | string Example: marigold_1 Name of the organization to work in. |
required | Array of objects (CIM_Filter) List of filters to apply. | ||||
Array
|
id | integer The ID of the request. |
{- "filters": [
- {
- "field": "email",
- "value": "user@gmail.xyz"
}
]
}
{- "id": 123
}
Create a request to optout customer(s) in the specified list, based on the provided filters.
api_name required | string Example: user_list_1 API name of the user list. |
organization required | string Example: marigold_1 Name of the organization to work in. |
required | Array of objects (CIM_Filter) List of filters to apply. | ||||
Array
|
id | integer The ID of the request. |
{- "filters": [
- {
- "field": "email",
- "value": "user@gmail.xyz"
}
]
}
{- "id": 123
}
Create a request to remove customer(s) information in the specified list, based on the provided filters.
api_name required | string Example: user_list_1 API name of the user list. |
organization required | string Example: marigold_1 Name of the organization to work in. |
required | Array of objects (CIM_Filter) List of filters to apply. | ||||
Array
|
id | integer The ID of the request. |
{- "filters": [
- {
- "field": "email",
- "value": "user@gmail.xyz"
}
]
}
{- "id": 123
}
requestId required | string Example: 1 Id of the Customer information Management request. |
organization required | string Example: marigold_1 Name of the organization to work in. |
id | integer The ID of the request. |
{- "id": 123
}
requestId required | string Example: 1 Id of the Customer information Management request. |
organization required | string Example: marigold_1 Name of the organization to work in. |
id | integer The ID of the request. |
{- "id": 123
}
requestId required | string Example: 1 Id of the Customer information Management request. |
organization required | string Example: marigold_1 Name of the organization to work in. |
state | string Enum: "New" "Failed" "NoMatch" "Finished" "Pending" State of the request. |
{- "state": "Finished"
}
Retrieve all the notification groups.
Array of objects (Notification_Group_Base) List of notification groups defined. | |||
Array
|
{- "notification_groups": [
- {
- "api_name": "notification_group_1"
}
]
}
Create a new notification group.
api_name | string API name of the notification group. |
name | string Name of the notification group. |
email_addresses | Array of strings list of recipients of the notification group. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "api_name": "notification_group_1",
- "name": "Notification Group 1",
- "email_addresses": [
- "john.doe@example.com",
- "john.doe1@example.com"
]
}
{- "result_code": "Succeeded",
- "message": "Notification group saved successfully."
}
Get the details of the notification group with given API name.
api_name required | string Example: notification_group_1 API name of the notification group. |
api_name | string API name of the notification group. |
name | string Name of the notification group. |
email_addresses | Array of strings list of recipients of the notification group. |
users | Array of strings list of users linked to this notification group. |
{- "api_name": "notification_group_1",
- "name": "Notification Group 1",
- "email_addresses": [
- "john.doe@example.com",
- "john.doe1@example.com"
], - "users": [
- "John Doe",
- "Johanna Doe"
]
}
Update the properties of the given notification group.
api_name required | string Example: notification_group_1 API name of the notification group. |
api_name | string API name of the notification group. |
name | string Name of the notification group. |
email_addresses | Array of strings list of recipients of the notification group. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "api_name": "notification_group_1",
- "name": "Notification Group 1",
- "email_addresses": [
- "john.doe@example.com",
- "john.doe1@example.com"
]
}
{- "result_code": "Succeeded",
- "message": "Notification group saved successfully."
}
Delete a notification group.
api_name required | string Example: notification_group_1 API name of the notification group. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "result_code": "Succeeded",
- "message": "Notification group deleted successfully."
}
List stored procedures satisfying the provided criteria, under the provided organization.
filter | string Enum: "General" "Bounce" Example: filter=General Filter stored procedures by type. |
search | string Example: search=marigold_1 Search with a specific name, api_name, description or tag(s). |
skip | integer <int32> Default: 0 Example: skip=100 The index to start from, skipping all the previous results. |
take | integer <int32> Default: 0 Example: take=50 The maximum amount of items to return. |
Array of objects (Stored_Procedure_Base) List of stored procedures defined matching the given criteria. | |||||
Array
|
{- "stored_procedures": [
- {
- "type": "Bounce",
- "name": "ST_1"
}
]
}
Create a new stored procedure in the organization.
type required | string Enum: "Unknown" "General" "Bounce" Type of the stored procedure. |
name required | string Name of the stored procedure. The name should start with the prefix 'ST_' and can contain only alphanumerical characters and _ (underscore). |
description | string A Description explaining this stored procedure. |
body required | string The to be executed code for this stored procedure. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "type": "Bounce",
- "name": "ST_1",
- "description": "General Stored Procedure",
- "body": "SELECT 'some result' as RESULT;"
}
{- "result_code": "Succeeded",
- "message": "Stored procedure created successfully.",
- "errors": [ ]
}
Get details of stored procedure by the specified name.
name required | string Example: storedprocedure_1 Name of the stored procedure. |
type | string Enum: "Unknown" "General" "Bounce" Type of the stored procedure. |
name | string Name of the stored procedure. The name should start with the prefix 'ST_' and can contain only alphanumerical characters and _ (underscore). |
description | string A Description explaining this stored procedure. |
body | string The to be executed code for this stored procedure. |
{- "type": "Bounce",
- "name": "ST_1",
- "description": "General Stored Procedure",
- "body": "SELECT 'some result' as RESULT;"
}
Update an existing stored procedure.
name required | string Example: storedprocedure_1 Name of the stored procedure. |
description | string A Description explaining this stored procedure. |
body | string The to be executed code for this stored procedure. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "description": "General Stored Procedure",
- "body": "SELECT 'some result' as RESULT;"
}
{- "result_code": "Succeeded",
- "message": "Stored procedure updated successfully.",
- "errors": [ ]
}
Delete a existing stored procedure.
name required | string Example: storedprocedure_1 Name of the stored procedure. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "result_code": "Succeeded",
- "message": "The stored procedure has been deleted successfully.",
- "errors": [ ]
}
Get list of tasks based on the provided criteria, in the provided organization.
organization required | string Example: marigold_1 Name of the organization to work in. |
filter | string Enum: "Sql" "Import" "Export" "Batch" Example: filter=Import,Export Filter by task type. Leave empty to return all available task types. |
search | string Default: null Example: search=marigold_1 Search with a specific name or description. Leave empty to return everything. |
skip | integer <int32> Default: 0 Example: skip=100 The index to start from, skipping all the previous results. |
take | integer <int32> Default: -1 Example: take=50 The maximum amount of items to return. Use a negative value to retrieve all available items. Used only if |
Array of objects (Task_Base) List of tasks matching the criteria. | |||||
Array
|
{- "tasks": [
- {
- "type": "Batch",
- "api_name": "task_1"
}
]
}
Get details of an existing task.
api_name required | string Example: task_1 API name of the task. |
organization required | string Example: marigold_1 Name of the organization to work in. |
type | string Enum: "Unknown" "Sql" "Export" "Import" "Batch" The type of the task. |
api_name | string The API name for a task. |
name | string Name of the task. |
description | string Description about the task. |
tags | Array of strings (tags) Default: [] Labels of the object. |
execution_status | string Enum: "Failed" "Success" "Running" "None" Status of last execution of task. |
last_execution | string <date-time> Last Execution Date of the task. |
next_execution | string <date-time> Next Execution Date of the task. |
{- "type": "Batch",
- "api_name": "task_1",
- "name": "Task 1",
- "description": "A very nice task.",
- "tags": [
- "addresses",
- "footer",
- "email",
- "holiday"
], - "execution_status": "Running",
- "last_execution": "2023-12-14T11:11:18.3086+01:00",
- "next_execution": "2023-12-16T11:11:18.3086+01:00",
- "schedule": { }
}
Delete task with the given api name, if it exists in the given organization.
api_name required | string Example: task_1 API name of the task. |
organization required | string Example: marigold_1 Name of the organization to work in. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "result_code": "Succeeded",
- "message": "The task has been deleted successfully",
- "errors": [ ]
}
Get actions of an existing task.
api_name required | string Example: task_1 API name of the task. |
organization required | string Example: marigold_1 Name of the organization to work in. |
taskaction | Array of strings Items Enum: "Run" "Enable" "Disable" The available actions for the task. |
{- "taskaction": [
- "Run",
- "Enable"
]
}
Disable an existing Task.
api_name required | string Example: task_1 API name of the task. |
organization required | string Example: marigold_1 Name of the organization to work in. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "result_code": "Succeeded",
- "message": "Task disabled successfully",
- "errors": [ ]
}
Enable an existing Task.
api_name required | string Example: task_1 API name of the task. |
organization required | string Example: marigold_1 Name of the organization to work in. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "result_code": "Succeeded",
- "message": "Task enabled successfully.",
- "errors": [ ]
}
Run an existing Task
api_name required | string Example: task_1 API name of the task. |
organization required | string Example: marigold_1 Name of the organization to work in. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "result_code": "Succeeded",
- "message": "Task has run successfully",
- "errors": [ ]
}
Create a new task of type batch.
organization required | string Example: marigold_1 Name of the organization to work in. |
enable_after_creation | boolean Default: false Example: enable_after_creation=true Define if the task should be enabled after its creation. |
api_name required | string The API name for a task. | ||||||||||
name required | string Name of the task. | ||||||||||
description | string Description about the task. | ||||||||||
tags | Array of strings (tags) Default: [] Labels of the object. | ||||||||||
scheduler | integer <int32> Default: 0 Id of the scheduler to use. | ||||||||||
any | |||||||||||
| |||||||||||
required | Array of objects (Task_Notification) Configure which execution statuses should result in a notification being sent. At most one entry may be given per | ||||||||||
Array
| |||||||||||
folder | string <int64> (folder_id) Folder ID. The root folder has ID | ||||||||||
required | Array of objects (Task_Batch) | ||||||||||
Array
|
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "api_name": "task_1",
- "name": "Task 1",
- "description": "A very nice task.",
- "tags": [
- "addresses",
- "footer",
- "email",
- "holiday"
], - "scheduler": 0,
- "schedule": { },
- "notifications": [
- {
- "type": "Complete",
- "groups": [
- "group_1",
- "group_2"
], - "emails": [
- "john.doe@meetmarigold.com",
- "john.deer@meetmarigold.com"
], - "include_process_details": false
}
], - "folder": "106",
- "tasks": [
- {
- "id": 1,
- "api_name": "task_1",
- "on_success": 2,
- "on_fail": 3,
- "type": "Export"
}
]
}
{- "result_code": "Succeeded",
- "message": "Task task_name created successfully.",
- "errors": [ ]
}
Create a new task of type export.
organization required | string Example: marigold_1 Name of the organization to work in. |
enable_after_creation | boolean Default: false Example: enable_after_creation=true Define if the task should be enabled after its creation. |
api_name required | string The API name for a task. | ||||||||||
name required | string Name of the task. | ||||||||||
description | string Description about the task. | ||||||||||
tags | Array of strings (tags) Default: [] Labels of the object. | ||||||||||
scheduler | integer <int32> Default: 0 Id of the scheduler to use. | ||||||||||
any | |||||||||||
| |||||||||||
required | Array of objects (Task_Notification) Configure which execution statuses should result in a notification being sent. At most one entry may be given per | ||||||||||
Array
| |||||||||||
folder | string <int64> (folder_id) Folder ID. The root folder has ID | ||||||||||
object (Task_Export_Data_Source) Data source for the export. | |||||||||||
| |||||||||||
required | object (Task_Export_Output) | ||||||||||
| |||||||||||
object (Task_Advanced_Options) | |||||||||||
| |||||||||||
object (Task_Export_Trigger_File) Default: null This configures exporting to a secondary file that could be used to inform external processes that your export has completed. If not specified, this secondary export will not be performed. | |||||||||||
| |||||||||||
object (Task_Export_Zip_Encrypt) Encryption or zip mode to use. | |||||||||||
| |||||||||||
destination required | string the API name of the medium to target for this export. | ||||||||||
subfolder | string the subfolder in the destination for the export. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "api_name": "task_1",
- "name": "Task 1",
- "description": "A very nice task.",
- "tags": [
- "addresses",
- "footer",
- "email",
- "holiday"
], - "scheduler": 0,
- "schedule": { },
- "notifications": [
- {
- "type": "Complete",
- "groups": [
- "group_1",
- "group_2"
], - "emails": [
- "john.doe@meetmarigold.com",
- "john.deer@meetmarigold.com"
], - "include_process_details": false
}
], - "folder": "106",
- "data_source": {
- "include_selligent_id_column": true,
- "selligent_id_column": "column_1",
- "sp_name": "ST_1.",
- "fail_constraint": {
- "operator": "EqualTo",
- "value": 5
}, - "parameter_values": [
- {
- "name": "PARAM1",
- "value": "VAL1"
}
]
}, - "output": {
- "file_name": "file_1",
- "file_options": {
- "encoding": "X_MAC_CE",
- "delimiter": ";",
- "use_text_quotes": true,
- "first_line_has_column_names": true,
- "max_file_size": 100,
- "line_break": "Windows",
- "skip_bom": false
}
}, - "options": {
- "include_sequence_number": true,
- "sequence_number": 5,
- "overwrite_existing_file": false,
- "no_data_handling": "Skip"
}, - "trigger_file": null,
- "zip_and_encrypt": {
- "mode": "Zip",
- "zip_archive": {
- "generate_file_name": false,
- "file_name": "file.zip"
}, - "pgp_encryption": {
- "recipient": "sec@meetmarigold.com"
}
}, - "destination": "medium_1",
- "subfolder": "exports"
}
{- "result_code": "Succeeded",
- "message": "Task task_name created successfully.",
- "errors": [ ]
}
Create a new task of type import.
organization required | string Example: marigold_1 Name of the organization to work in. |
enable_after_creation | boolean Default: false Example: enable_after_creation=true Define if the task should be enabled after its creation. |
api_name required | string The API name for a task. | ||||||||||||||||
name required | string Name of the task. | ||||||||||||||||
description | string Description about the task. | ||||||||||||||||
tags | Array of strings (tags) Default: [] Labels of the object. | ||||||||||||||||
scheduler | integer <int32> Default: 0 Id of the scheduler to use. | ||||||||||||||||
any | |||||||||||||||||
| |||||||||||||||||
required | Array of objects (Task_Notification) Configure which execution statuses should result in a notification being sent. At most one entry may be given per | ||||||||||||||||
Array
| |||||||||||||||||
folder | string <int64> (folder_id) Folder ID. The root folder has ID | ||||||||||||||||
trigger_journey_after_execution | string Default: null API name of a journey to trigger after this task completes successfully. Leave empty to not trigger any journey. | ||||||||||||||||
object Trigger a custom event after this task completes successfully. Leave empty to not trigger any custom event. | |||||||||||||||||
| |||||||||||||||||
required | Array of any Mapping information for the different columns. At least one mapping must be specified. | ||||||||||||||||
Array
| |||||||||||||||||
object (Task_import_Processing_Folders) the different folders to store info in based on the result. | |||||||||||||||||
| |||||||||||||||||
object (Task_Stored_Procedure) | |||||||||||||||||
| |||||||||||||||||
object (Task_Import_Reject_Management) Export rejected records. If not configured, these records will be ignored. | |||||||||||||||||
| |||||||||||||||||
object (Task_Import_Advanced_Options) | |||||||||||||||||
| |||||||||||||||||
object (Task_Import_Unzip_Decrypt) Decryption or unpackaging mode to use. | |||||||||||||||||
| |||||||||||||||||
required | object (Task_Import_Destination) | ||||||||||||||||
| |||||||||||||||||
subfolder | string the subfolder in the destination for the export. | ||||||||||||||||
source required | string the API name of the medium to use for this import. | ||||||||||||||||
file_type required | string File type to be imported. | ||||||||||||||||
object (Task_Import_File_Options) file options to use. | |||||||||||||||||
|
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "api_name": "task_1",
- "name": "Task 1",
- "description": "A very nice task.",
- "tags": [
- "addresses",
- "footer",
- "email",
- "holiday"
], - "scheduler": 0,
- "schedule": { },
- "notifications": [
- {
- "type": "Complete",
- "groups": [
- "group_1",
- "group_2"
], - "emails": [
- "john.doe@meetmarigold.com",
- "john.deer@meetmarigold.com"
], - "include_process_details": false
}
], - "folder": "106",
- "trigger_journey_after_execution": "journey_1",
- "trigger_custom_event_after_execution": {
- "list": "list_1",
- "custom_event": "custom_event_1"
}, - "column_mapping": [
- {
- "name": "column_1",
- "type": "Text"
}
], - "processing_folders": {
- "processing": "Processing Folder",
- "completed": "Completion Folder",
- "failed": "Failed Folder"
}, - "data_processing": {
- "sp_name": "ST_1.",
- "fail_constraint": {
- "operator": "EqualTo",
- "value": 5
}, - "parameter_values": [
- {
- "name": "PARAM1",
- "value": "VAL1"
}
]
}, - "reject_management": {
- "destination": "medium_1",
- "subfolder": "SUBFOLDER_1",
- "file_options": {
- "encoding": "X_MAC_CE",
- "delimiter": ";",
- "use_text_quotes": true,
- "first_line_has_column_names": true,
- "max_file_size": 100,
- "line_break": "Windows",
- "check_md5": false,
- "max_column_count": 10
}, - "create_when_no_records_rejected": false
}, - "options": {
- "file_filter": "*.dat",
- "trigger_file": "trg",
- "allow_multiple_imports": false,
- "fail_if_no_file": false,
- "fail_if_empty_file": false,
- "delete_after_processing": false,
- "process_files_one_by_one": false,
- "invalid_data_handling": "Stop"
}, - "unzip_and_decrypt": {
- "mode": "Unzip",
- "unzip_filter": "*.dat",
- "pgp_decryption": {
- "recipient": "sec@meetmarigold.com",
- "passphrase": "encryptionpassword"
}
}, - "destination": {
- "table_name": "DATA_IMPORT",
- "include_user_identified_column": false
}, - "subfolder": "exports",
- "source": "medium_1",
- "file_type": "Unknown",
- "file_options": {
- "encoding": "X_MAC_CE",
- "delimiter": ";",
- "use_text_quotes": true,
- "first_line_has_column_names": true,
- "max_file_size": 100,
- "line_break": "Windows",
- "check_md5": false,
- "max_column_count": 10
}
}
{- "result_code": "Succeeded",
- "message": "Task task_name created successfully.",
- "errors": [ ]
}
Create a new task of type SQL.
organization required | string Example: marigold_1 Name of the organization to work in. |
enable_after_creation | boolean Default: false Example: enable_after_creation=true Define if the task should be enabled after its creation. |
api_name required | string The API name for a task. | ||||||||||||
name required | string Name of the task. | ||||||||||||
description | string Description about the task. | ||||||||||||
tags | Array of strings (tags) Default: [] Labels of the object. | ||||||||||||
scheduler | integer <int32> Default: 0 Id of the scheduler to use. | ||||||||||||
object Default: null Configure a schedule for this task. If not specified, this task can only be manually triggered. | |||||||||||||
| |||||||||||||
required | Array of objects Configure which execution statuses should result in a notification being sent. At most one entry may be given per | ||||||||||||
Array
| |||||||||||||
folder | string <int64> Folder ID. The root folder has ID | ||||||||||||
trigger_journey_after_execution | string Default: null API name of a journey to trigger after this task completes successfully. Leave empty to not trigger any journey. | ||||||||||||
object Trigger a custom event after this task completes successfully. Leave empty to not trigger any custom event. | |||||||||||||
| |||||||||||||
required | Array of objects (Task_Sql_Procedure) list of procedures to run with this task. | ||||||||||||
Array
|
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "api_name": "task_1",
- "name": "Task 1",
- "description": "A very nice task.",
- "tags": [
- "addresses",
- "footer",
- "email",
- "holiday"
], - "scheduler": 1,
- "schedule": null,
- "notifications": [
- {
- "type": "Complete",
- "groups": [
- "group_1",
- "group_2"
], - "emails": [
- "john.doe@meetmarigold.com",
- "john.deer@meetmarigold.com"
], - "include_process_details": false
}
], - "folder": "main/tasks",
- "trigger_journey_after_execution": "journey_1",
- "trigger_custom_event_after_execution": {
- "list": "list_1",
- "custom_event": "custom_event_1"
}, - "procedures": [
- {
- "id": 1,
- "on_success": 2,
- "on_fail": -1,
- "sp_name": "ST_1.",
- "fail_constraint": {
- "operator": "EqualTo",
- "value": 5
}, - "parameter_values": [
- {
- "name": "PARAM1",
- "value": "VAL1"
}
]
}
]
}
{- "result_code": "Succeeded",
- "message": "Task task_name created successfully.",
- "errors": [ ]
}
Retrieve the details of this organization set up on your instance of Selligent Marketing Cloud.
organization required | string Example: marigold_1 Name of the organization to work in. |
name | string Name of the organization. | ||||||
image_reference | string or null The image reference. | ||||||
image_type | string or null The type of image. | ||||||
Array of objects These are the languages supported by the organization. | |||||||
Array
| |||||||
Array of objects These are the audiences of organization. | |||||||
Array
| |||||||
Array of objects These are the campaign data sources of organization. | |||||||
Array
| |||||||
default_languages | Array of strings These are the default languages of organization. | ||||||
default_maildomain | string The default maildomain of organization. | ||||||
sms_endpoint | string The default sms endpoint of organization. | ||||||
mms_endpoint | string The default mms endpoint of organization. | ||||||
mobile_push_endpoint | string The default mobile endpoint of organization. | ||||||
facebook_endpoint | string The default facebook endpoint of organization. | ||||||
google_customer_match_endpoint | string The default google customer match endpoint of organization. | ||||||
snapchat_endpoint | string The default snapchat endpoint of organization. | ||||||
twitter_endpoint | string The default twitter endpoint of organization. | ||||||
linkedin_endpoint | string or null The default Linked In endpoint of organization. | ||||||
whatsapp_template_endpoint | string or null The default WhatsApp Template endpoint of organization. | ||||||
Array of objects These are the tracker of organization. | |||||||
Array
| |||||||
Array of objects These are the connector instances of organization. | |||||||
Array
| |||||||
Array of objects These are the mediums of organization. | |||||||
Array
| |||||||
Array of objects These are the Tag lists of organization. | |||||||
Array
|
{- "name": "My First Organization",
- "image_reference": "ref_1",
- "image_type": "png",
- "languages": [
- {
- "name": "English",
- "code": "en",
- "locale": "en-US"
}, - {
- "name": "French",
- "code": "fr",
- "locale": "fr-FR"
}
], - "audiences": [
- {
- "api_name": "main_user_list"
}
], - "campaign_data_sources": [
- "DataSource list_1",
- "DataSource list_2"
], - "default_languages": [
- "English",
- "French"
], - "default_maildomain": "meetmarigold.com",
- "sms_endpoint": "SMS",
- "mms_endpoint": "MMS",
- "mobile_push_endpoint": "Mobile",
- "facebook_endpoint": "Facebook",
- "google_customer_match_endpoint": "Google",
- "snapchat_endpoint": "Snapchat",
- "twitter_endpoint": "Twitter",
- "linkedin_endpoint": "LinkedIn",
- "whatsapp_template_endpoint": "WhatsApp",
- "trackers": [
- {
- "name": "Shopping Tracker"
}, - {
- "name": "Basket Tracker"
}
], - "connector_instances": [
- {
- "name": "Connector Tracker 1"
}, - {
- "name": "Salesforce Connector"
}
], - "mediums": [
- {
- "api_name": "ftp_medium_1"
}, - {
- "api_name": "url_medium_2"
}
], - "taglists": [
- {
- "api_name": "Sports_Taglist"
}, - {
- "api_name": "Food_Taglist"
}
]
}
List defined medium configurations.
filter | string Enum: "Ftp" "Url" "AmazonS3" "AzureBlob" "GoogleCloud" "Repository" "PredefinedMedium" "SelligentCloud" Example: filter=AmazonS3 Filter mediums by medium type. |
search | string Example: search=marigold_1 Search with a specific name, api_name, description or tag(s). |
skip | integer <int32> Default: 0 Example: skip=100 The index to start from, skipping all the previous results. |
take | integer <int32> Default: 0 Example: take=50 The maximum amount of items to return. |
Array of objects Collection of mediums. | |||||
Array
|
{- "mediums": [
- {
- "type": "Ftp",
- "api_name": "medium_ftp"
}, - {
- "type": "Url",
- "api_name": "medium_url"
}, - {
- "type": "Repository",
- "api_name": "medium_repository"
}, - {
- "type": "AmazonS3",
- "api_name": "medium_amazonS3"
}, - {
- "type": "AzureBlob",
- "api_name": "medium_azureBlob"
}, - {
- "type": "GoogleCloud",
- "api_name": "medium_googleCloud"
}
]
}
Retrieve medium (Ftp/Url/Repository/AmazonS3) details.
api_name required | string Example: medium_1 API name of the medium. |
api_name | string (api_name) API Name of the medium. |
name | string Name of the medium. |
organizations | Array of strings (organizations) List of organizations linked to the object. |
description | string Description of the medium. |
not_accessible_organizations_count | integer <int32> (not_accessible_organizations_count) Number of organizations associated with the object, That cannot be access via the API. |
type | string Enum: "Ftp" "Repository" "Url" "AzureBlob" "AmazonS3" "GoogleCloud" "PredefinedMedium" "SelligentCloud" Type of the medium. |
subfolder | string SubFolder to access on the server. |
data_exchange_type | string Enum: "Selligent" "DataOut" "DataIn" Data exchange type. |
{- "api_name": "repository",
- "name": "Medium One",
- "organizations": [
- "Organization_1",
- "Organization_2"
], - "description": "A Repository storage medium.",
- "not_accessible_organizations_count": 1,
- "type": "Ftp",
- "subfolder": "sub_folder_1",
- "data_exchange_type": "Selligent"
}
Use this endpoint to delete a medium.
api_name required | string Example: medium_1 API name of the medium. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "result_code": "Succeeded",
- "message": "The medium has been deleted successfully"
}
Use this endpoint to create a AmazonS3 medium.
api_name required | string (api_name) API Name of the medium. | ||||||||
name required | string Name of the medium. | ||||||||
organizations required | Array of strings (organizations) List of organizations linked to the object. | ||||||||
description | string Default: null Description of the medium. | ||||||||
subfolder | string Default: null SubFolder to access on the server. | ||||||||
object | |||||||||
|
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "api_name": "medium_1",
- "name": "Medium One",
- "organizations": [
- "Organization_1",
- "Organization_2"
], - "description": null,
- "subfolder": null,
- "credentials": {
- "access_key_id": "12345678901234567890",
- "secret_access_key": "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
- "region_endpoint_code": "eu-central-1",
- "bucket_name": "my_bucket"
}
}
{- "result_code": "Succeeded",
- "message": "Medium created successfully."
}
Update a AmazonS3 medium.
api_name required | string Example: medium_1 API name of the medium. |
api_name | string (api_name) API Name of the medium. | ||||||||
name | string Name of the medium. | ||||||||
organizations | Array of strings (organizations) List of organizations linked to the object. | ||||||||
description | string Description of the medium. | ||||||||
subfolder | string (subfolder) SubFolder to access on the server. | ||||||||
object | |||||||||
|
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "api_name": "medium_1",
- "name": "Medium One",
- "organizations": [
- "Organization_1",
- "Organization_2"
], - "description": "An Amazon storage medium.",
- "subfolder": "sub_folder_1",
- "credentials": {
- "access_key_id": "12345678901234567890",
- "secret_access_key": "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
- "region_endpoint_code": "eu-central-1",
- "bucket_name": "my_bucket"
}
}
{- "result_code": "Succeeded",
- "message": "Medium updated successfully.",
- "errors": [ ]
}
Create an Azureblob medium.
api_name required | string (api_name) API Name of the medium. | ||||
name required | string Name of the medium. | ||||
organizations required | Array of strings (organizations) List of organizations linked to the object. | ||||
description | string Default: null Description of the medium. | ||||
subfolder required | string SubFolder to access the server. | ||||
object | |||||
|
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "api_name": "medium_1",
- "name": "Medium One",
- "organizations": [
- "Organization_1",
- "Organization_2"
], - "description": null,
- "subfolder": "sub_folder_1",
- "credentials": {
- "connection_string": "DefaultEndpointsProtocol=https;AccountName=teamstorage;AccountKey=the/account/key;EndpointSuffix=core.windows.net",
- "container_name": "my_container"
}
}
{- "result_code": "Succeeded",
- "message": "Medium created successfully.",
- "errors": [ ]
}
Update an Azureblob medium.
api_name required | string Example: medium_1 API name of the medium. |
api_name | string (api_name) API Name of the medium. | ||||
name | string Name of the medium. | ||||
organizations | Array of strings (organizations) List of organizations linked to the object. | ||||
description | string Description of the medium. | ||||
subfolder | string SubFolder to access the server. | ||||
object (Credentials_AzureBlob) | |||||
|
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "api_name": "medium_1",
- "name": "Medium One",
- "organizations": [
- "Organization_1",
- "Organization_2"
], - "description": "An Microsoft Azureblob storage medium.",
- "subfolder": "sub_folder_1",
- "credentials": {
- "connection_string": "DefaultEndpointsProtocol=https;AccountName=teamstorage;AccountKey=the/account/key;EndpointSuffix=core.windows.net",
- "container_name": "my_container"
}
}
{- "result_code": "Succeeded",
- "message": "Medium updated successfully.",
- "errors": [ ]
}
Create a FTP medium.
api_name required | string (api_name) API Name of the medium. |
name required | string Name of the medium. |
organizations required | Array of strings (organizations) List of organizations linked to the object. |
description | string Default: null Description of the medium. |
ftp_type required | string Enum: "Unknown" "Ftps" "FtpsImplicit" "Sftp" Type of ftp mediums (FTPS / FTPSIMPLICIT / SFTP / UNKNOWN) |
server required | string Address of the FTP server. |
login required | string Login for accessing FTP server. |
password required | string Password associated with the Login to access the FTP server. |
subfolder | string Default: "" Path of a subfolder on FTP server. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "api_name": "medium_1",
- "name": "Medium One",
- "organizations": [
- "Organization_1",
- "Organization_2"
], - "description": null,
- "ftp_type": "Ftps",
- "server": "An Ftp medium.",
- "login": "Admin",
- "password": "Password",
- "subfolder": ""
}
{- "result_code": "Succeeded",
- "message": "Medium created successfully.",
- "errors": [ ]
}
Update a FTP medium.
api_name required | string Example: medium_1 API name of the medium. |
api_name | string (api_name) API Name of the medium. |
name | string Name of the medium. |
organizations | Array of strings (organizations) List of organizations linked to the object. |
description | string Description of the medium. |
ftp_type | string Enum: "Unknown" "Ftps" "FtpsImplicit" "Sftp" Type of ftp mediums (FTPS / FTPSIMPLICIT / SFTP / UNKNOWN) |
server | string Address of the FTP server. |
login | string Login for accessing FTP server. |
password | string Password associated with the Login to access the FTP server. |
subfolder | string Path of a subfolder on FTP server. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "api_name": "medium_1",
- "name": "Medium One",
- "organizations": [
- "Organization_1",
- "Organization_2"
], - "description": "A storage medium.",
- "ftp_type": "Ftps",
- "server": "An Ftp medium.",
- "login": "Admin",
- "password": "Password",
- "subfolder": "sub_folder_1"
}
{- "result_code": "Succeeded",
- "message": "Medium updated successfully.",
- "errors": [ ]
}
Create a GOOGLECLOUD medium.
api_name required | string (api_name) API Name of the medium. | ||||||||||||||||||||||
name required | string Name of the medium. | ||||||||||||||||||||||
organizations required | Array of strings (organizations) List of organizations linked to the object. | ||||||||||||||||||||||
description | string Default: null Description of the medium. | ||||||||||||||||||||||
subfolder | string Default: null SubFolder to access on the server. | ||||||||||||||||||||||
object | |||||||||||||||||||||||
|
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "api_name": "medium_1",
- "name": "Medium One",
- "organizations": [
- "Organization_1",
- "Organization_2"
], - "description": null,
- "subfolder": null,
- "credentials": {
- "type": "service_account",
- "project_id": "my_project_id",
- "private_key_id": "1234567890123456789012345678901234567890",
- "private_key": "-----BEGIN PRIVATE KEY-----1234567890...1234567890-----END PRIVATE KEY-----",
- "client_email": "dev@example.iam.geserviceaccount.com",
- "client_id": "12345678901234567890",
- "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/dev%40example.iam.gserviceaccount.com",
- "bucket_name": "my_bucket"
}
}
{- "result_code": "Succeeded",
- "message": "Medium created successfully.",
- "errors": [ ]
}
Update a GOOGLECLOUD medium.
api_name required | string Example: medium_1 API name of the medium. |
api_name | string (api_name) API Name of the medium. | ||||||||||||||||||||||
name | string Name of the medium. | ||||||||||||||||||||||
organizations | Array of strings (organizations) List of organizations linked to the object. | ||||||||||||||||||||||
description | string Description of the medium. | ||||||||||||||||||||||
subfolder | string (subfolder) SubFolder to access on the server. | ||||||||||||||||||||||
object (Credentials_GoogleCloud) | |||||||||||||||||||||||
|
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "api_name": "medium_1",
- "name": "Medium One",
- "organizations": [
- "Organization_1",
- "Organization_2"
], - "description": "An google Cloud storage medium.",
- "subfolder": "sub_folder_1",
- "credentials": {
- "type": "service_account",
- "project_id": "my_project_id",
- "private_key_id": "1234567890123456789012345678901234567890",
- "private_key": "-----BEGIN PRIVATE KEY-----1234567890...1234567890-----END PRIVATE KEY-----",
- "client_email": "dev@example.iam.geserviceaccount.com",
- "client_id": "12345678901234567890",
- "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/dev%40example.iam.gserviceaccount.com",
- "bucket_name": "my_bucket"
}
}
{- "result_code": "Succeeded",
- "message": "Medium updated successfully.",
- "errors": [ ]
}
Create a Repository medium.
api_name required | string (api_name) API Name of the medium. |
name required | string Name of the medium. |
organizations required | Array of strings (organizations) List of organizations linked to the object. |
description | string Default: null Description of the medium. |
subfolder | string Default: null SubFolder to access on the server. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "api_name": "medium_1",
- "name": "Medium One",
- "organizations": [
- "Organization_1",
- "Organization_2"
], - "description": null,
- "subfolder": null
}
{- "result_code": "Succeeded",
- "message": "Medium created successfully.",
- "errors": [ ]
}
Update a Repository medium.
api_name required | string Example: medium_1 API name of the medium. |
api_name | string (api_name) API Name of the medium. |
name | string Name of the medium. |
organizations | Array of strings (organizations) List of organizations linked to the object. |
description | string Description of the medium. |
subfolder | string SubFolder to access on the server. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "api_name": "medium_1",
- "name": "Medium One",
- "organizations": [
- "Organization_1",
- "Organization_2"
], - "description": "A Repository storage medium.",
- "subfolder": "sub_folder_1"
}
{- "result_code": "Succeeded",
- "message": "Medium updated successfully.",
- "errors": [ ]
}
Create a URL medium
api_name required | string (api_name) API Name of the medium. |
name required | string Name of the medium. |
organizations required | Array of strings (organizations) List of organizations linked to the object. |
description | string Default: null Description of the medium. |
url required | string URL for accessing the server. |
login required | string Login for accessing the server. |
password required | string Password associated with the Login to access the server. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "api_name": "medium_1",
- "name": "Medium One",
- "organizations": [
- "Organization_1",
- "Organization_2"
], - "description": null,
- "login": "Admin",
- "password": "Password"
}
{- "result_code": "Succeeded",
- "message": "Medium created successfully.",
- "errors": [ ]
}
Update a URL medium.
api_name required | string Example: medium_1 API name of the medium. |
api_name | string (api_name) API Name of the medium. |
name | string Name of the medium. |
organizations | Array of strings (organizations) List of organizations linked to the object. |
description | string Description of the medium. |
url | string URL for accessing the server. |
login | string Login for accessing the server. |
password | string Password associated with the Login to access the server. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "api_name": "medium_1",
- "name": "Medium One",
- "organizations": [
- "Organization_1",
- "Organization_2"
], - "description": "A storage medium.",
- "login": "Admin",
- "password": "Password"
}
{- "result_code": "Succeeded",
- "message": "Medium updated successfully.",
- "errors": [ ]
}
Use this endpoint to get list of all mediums mapped to an organization.
organization required | string Example: marigold_1 Name of the organization to work in. |
filter | string Enum: "Ftp" "Url" "AmazonS3" "AzureBlob" "GoogleCloud" "Repository" "PredefinedMedium" "SelligentCloud" Example: filter=AmazonS3 Filter mediums by medium type. |
search | string Example: search=marigold_1 Search with a specific name, api_name, description or tag(s). |
skip | integer <int32> Default: 0 Example: skip=100 The index to start from, skipping all the previous results. |
take | integer <int32> Default: 0 Example: take=50 The maximum amount of items to return. |
Array of objects Collection of mediums. | |||||
Array
|
{- "mediums": [
- {
- "type": "Ftp",
- "api_name": "medium_ftp"
}, - {
- "type": "Url",
- "api_name": "medium_url"
}, - {
- "type": "Repository",
- "api_name": "medium_repository"
}, - {
- "type": "AmazonS3",
- "api_name": "medium_amazonS3"
}, - {
- "type": "AzureBlob",
- "api_name": "medium_azureBlob"
}, - {
- "type": "GoogleCloud",
- "api_name": "medium_googleCloud"
}
]
}
Returns Tag lists filtered on the given criteria.
search | string Example: search=marigold_1 Search with a specific name, api_name, description or tag(s). |
skip | integer <int32> Default: 0 Example: skip=100 The index to start from, skipping all the previous results. |
take | integer <int32> Default: 0 Example: take=50 The maximum amount of items to return. |
Array of objects (Tag_List_Base) List of tag lists matching the criteria. | |||
Array
|
{- "taglists": [
- {
- "api_name": "tag_list_1"
}
]
}
Create a new tag list.
api_name required | string API name of the Tag list. | ||||
name required | string Name of Tag list. | ||||
description | string Description of Tag list. | ||||
Array of objects (Tag) Tags associated with Tag list. | |||||
Array
| |||||
organizations | Array of strings (organizations) List of organizations linked to the object. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "api_name": "tag_list_1",
- "name": "Tag List 1",
- "description": "My first tag list",
- "tags": [
- {
- "tag": "TAG1",
- "description": "a_great_first_tag"
}, - {
- "tag": "TAG2",
- "description": "a_great_second_tag"
}
], - "organizations": [
- "Organization_1",
- "Organization_2"
]
}
{- "result_code": "Succeeded",
- "message": "Tag list created successfully.",
- "errors": [ ]
}
Use this endpoint to get details of Tag list with given API name.
api_name required | string Example: taglist_1 API name of the Tag list. |
api_name | string API name of the Tag list. | ||||
name | string Name of Tag list. | ||||
description | string Description of Tag list. | ||||
Array of objects (Tag) Tags associated with Tag list. | |||||
Array
| |||||
organizations | Array of strings (organizations) List of organizations linked to the object. | ||||
not_accessible_organizations_count | integer <int32> (not_accessible_organizations_count) Number of organizations associated with the object, That cannot be access via the API. | ||||
lists | Array of strings Represents api names of lists that the Tag list is associated to. |
{- "api_name": "tag_list_1",
- "name": "Tag List 1",
- "description": "My first tag list",
- "tags": [
- {
- "tag": "TAG1",
- "description": "a_great_first_tag"
}, - {
- "tag": "TAG2",
- "description": "a_great_second_tag"
}
], - "organizations": [
- "Organization_1",
- "Organization_2"
], - "not_accessible_organizations_count": 1,
- "lists": [
- "list_1",
- "list_2"
]
}
Update an existing Tag list.
api_name required | string Example: taglist_1 API name of the Tag list. |
api_name | string API name of the Tag list. | ||||
name | string Name of Tag list. | ||||
description | string Description of Tag list. | ||||
Array of objects (Tag) Tags associated with Tag list. (While updating the tag 1. If tags are not specified then existing tags would be retained. 2. If tags are specified as an empty array then all existing tags would be deleted. 3. If tags are specified then those would be added/updated.) | |||||
Array
| |||||
organizations | Array of strings List of organizations linked to the object. (While updating Organizations 1. If Oraganizations are not provided or provided as null, it remains unchanged. 2. If Organizations are provided as empty array, Tag list will be unlinked from all organizations.) |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "api_name": "tag_list_1",
- "name": "Tag List 1",
- "description": "My first tag list",
- "tags": [
- {
- "tag": "TAG1",
- "description": "a_great_first_tag"
}, - {
- "tag": "TAG2",
- "description": "a_great_second_tag"
}
], - "organizations": [
- "Organization_1",
- "Organization_2"
]
}
{- "result_code": "Succeeded",
- "message": "Tag list updated successfully.",
- "errors": [ ]
}
Delete an existing Tag list.
api_name required | string Example: taglist_1 API name of the Tag list. |
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||
message | string or null (message) Human readable information. | ||||
Array of objects (Errors) List of errors. | |||||
Array
|
{- "result_code": "Succeeded",
- "message": "The Tag list has been deleted successfully.",
- "errors": [ ]
}
List Tag lists associated to an organization.
organization required | string Example: marigold_1 Name of the organization to work in. |
search | string Example: search=marigold_1 Search with a specific name, api_name, description or tag(s). |
skip | integer <int32> Default: 0 Example: skip=100 The index to start from, skipping all the previous results. |
take | integer <int32> Default: 0 Example: take=50 The maximum amount of items to return. |
Array of objects (Tag_List_Base) List of tag lists matching the criteria within the organization. | |||
Array
|
{- "taglists": [
- {
- "api_name": "tag_list_1"
}
]
}
Use this endpoint to create a folder.
organization required | string Example: marigold_1 Name of the organization to work in. |
name required | string The name of the folder. |
parent_folder_id | integer <int64> Default: 0 ID of the parent folder, under which we will create this folder. 0 stands for the root folder. |
object (Folder) | |||||
|
{- "name": "folder_1",
- "parent_folder_id": 1
}
{- "folder": {
- "id": 1,
- "name": "folder_1"
}
}
Use this endpoint to retrieve the contents of a folder on the given organization.
organization required | string Example: marigold_1 Name of the organization to work in. |
id required | integer <int64> Example: 1 ID of the folder. ID 0 is the root folder. |
id | integer <int64> The id of the created folder. Folder id 0 is the root folder. | ||||||
name | string The name of the folder. | ||||||
result_code | string (result_code) Enum: "Failed" "Succeeded" "PartiallySucceeded" "ValidationFailed" "NotFound" "ServiceUnavailable" "InternalServerError" "ProtocolError" "RequestEntityTooLarge" "Conflict" Resulting code for this request. | ||||||
Array of any List of assets in this folder. This can be Content assets, Journey assets, list assets, other folders etc. | |||||||
Array
|
{- "result_code": "Succeeded",
- "id": 100,
- "name": "TestFolder",
- "children": [
- {
- "id": 10,
- "name": "folder_1",
- "type": "FOLDER"
}, - {
- "name": "TestTemplate",
- "api_name": "TestTemplate",
- "type": "TMP",
- "leaf_type": "Template"
}, - {
- "name": "TestEmail",
- "api_name": "TestEmail",
- "type": "TMP",
- "leaf_type": "Email"
}, - {
- "name": "TestMobilePush",
- "api_name": "TestMobilePush",
- "type": "TMP",
- "leaf_type": "MobilePush"
}, - {
- "name": "TestPage",
- "api_name": "TestPage",
- "type": "TMP",
- "leaf_type": "Page"
}, - {
- "name": "TestDataSync",
- "api_name": "TestDataSync",
- "type": "CRMDATASYNC",
- "leaf_type": "CRMDataSync"
}, - {
- "name": "TestImport",
- "api_name": "TestImport",
- "type": "IMPORT",
- "leaf_type": "ImportConfig"
}, - {
- "name": "TestTask",
- "api_name": "TestTask",
- "type": "TASK",
- "leaf_type": "Sql"
}, - {
- "name": "TestCustomComponent",
- "api_name": "TestCustomComponent",
- "type": "CUSTOMCOMPONENTS",
- "leaf_type": "CustomComponent"
}, - {
- "name": "TestList",
- "api_name": "TestList",
- "type": "LIST",
- "leaf_type": "Articlelist"
}, - {
- "name": "TestContentBlock",
- "api_name": "TestContentBlock",
- "type": "CONTENTBLOCK",
- "leaf_type": "ContentBlock"
}, - {
- "name": "TestSingleBatchJourney",
- "api_name": "TestSingleBatchJourney",
- "type": "EXEC",
- "leaf_type": "SingleBatch"
}
]
}