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"
}
]
}