You can use the Higher Logic Thrive Marketing Enterprise (Thrive Marketing Enterprise) REST API to query your account for recipient data, message content, and groups. The REST API gives users the ability to create and send messages, manage recipient details, and retrieve tracking metrics.
This guide provides a list of API calls, their definitions, and their required parameters. The order of the calls in this guide is typically the order in which you may generate calls to the REST API.
Prerequisites
- Before attempting to use the REST API, you should understand some of the general rules of Thrive Marketing Enterprise recipient data and how that data is used when designing, sending, and analyzing the results of Thrive Marketing Enterprise messages. Review the Authentication section below for an overview of some of the important concepts that will influence your understanding of the API.
- You should log in to the Thrive Marketing Enterprise system and read Higher Logic's Thrive Marketing Enterprise documentation to garner a basic understanding of the Thrive Marketing Enterprise platform.
- Higher Logic recommends that you create a new and dedicated user specifically for API calls. An account admin can complete this as instructed in Manage Users.
Authentication
Base URL
All REST calls will reference the following base URL:
https://dna.magnetmail.net/ApiAdapter/Rest/
The Thrive Marketing Enterprise REST API is served over HTTPS, so it is recommended that calls be supplied via HTTPS for security purposes.
Authenticate/
To authenticate, use the call:
https://dna.magnetmail.net/ApiAdapter/Rest/Authenticate/
HTTP requests to the REST API are protected with HTTP Basic authentication. You will use your Thrive Marketing Enterprise credentials for the Username and Password.
NOTE: If you don't have the API enabled, create a case.
The REST header will return:
"LoginID":"1234567",
"SessionID":"00000000-00000-0000-0000000000000",
"UserID":"SAMPLE"
}
Character limits
The Thrive Marketing Enterprise system supplies for the creation of Assets (Groups, Messages, etc.) and other user-created fields. The character limits on these fields is indicated below.
Field Type | Character Maximums |
---|---|
Recipient Level Fields | |
Email, Address 1, Address 2, All Custom Fields | 100 |
Enhanced Personalization Field | 250 |
First Name, Last Name, Phone, Fax, City, State, Zip | 50 |
Company | 200 |
Asset Fields | |
Group Name | 50 |
Message Library Name | 250 |
Message Name | 100 |
Message Fields | |
Add Recipients | 1000 |
Billing Code | 40 |
Billing Initial | 3 |
Message From | 100 |
Message Subject | 100 |
Preheader Text | 100 |
Reply-To Address | 100 |
Send To for Individual Message | 50 |
Source Codes (1 and 2) | 25 |
Header settings
- Learn more about header settings at Understanding REST Headers and Parameters.
Methods
NOTE: The links in the Endpoint column are to internal, call-specific articles. These articles will open in a new tab.
Endpoint | Method | Description |
---|---|---|
Authenticate/ (refer to Authentication above) |
POST | Retrieves the LoginID, SessionID, and UserID. |
AddRecipient/ | POST | Adds a new Recipient to Thrive Marketing Enterprise based on account Unique Identifier. See Unique Identifiers: Email Address and Custom ID to learn more. |
AddGroup/ | POST | Creates a new Group in Thrive Marketing Enterprise. |
CreateDynamicContentBlock/ | POST | Creates a Dynamic Content Block. |
CreateDynamicContentElement/ | POST | Creates a Dynamic Content Element. |
CreateMessage/ | POST | Creates a Thrive Marketing Enterprise Message. |
EditDynamicContentElement/ | POST | Edits an existing Dynamic Content Element. |
EditMessage/ | POST | Edits an existing Thrive Marketing Enterprise Message. |
EditRecipient/ | POST | Edits an existing Thrive Marketing Enterprise Recipient. |
EditRecipientGroups/ | POST | Edits an existing Thrive Marketing Enterprise Group, to either unsubscribe a recipient from a group or to add them. |
GetReports/ | POST | Retrieves data from custom queries built into the Thrive Marketing Enterprise REST service. |
GetDetailedTracking/ | POST | Retrieves tracking information for a message. |
GetDynamicContentBlocks/ | POST | Retrieves existing Dynamic Content Blocks. |
GetDynamicContentElementDetails/ | POST | Retrieves existing Dynamic Content Element details – this would include the recipient details the element is looking for. |
GetDynamicContentElements/ | POST | Retrieves existing Dynamic Content Elements. |
GetGroupCategories/ | POST | Retrieves Group Categories. |
GetGroupDetails/ | POST | Retrieves existing Group details, including total unsubscribed, suppressed and creation details. |
GetGroupRecipients/ | POST | Retrieves a paginated list of recipients from an existing group. |
GetGroups/ | POST | Retrieves a list of existing Groups. |
GetMessageCategory/ | POST | Retrieves a list of existing Message Categories. |
GetMessageDetails/ | POST | Retrieves existing Message details, including creation information. |
GetMessageLinkTracking/ | POST | Retrieves the link tracking for an already deployed Message. |
GetMessageList/ | POST | Retrieves a list of Messages deployed as well as the Groups they were sent to. |
GetRecipientFields/ | POST | Retrieves a list of Recipient fields, including the field name and content. |
GetRecipientGroups/ | POST | Retrieves a list of Groups a Recipient is currently in. |
GetRecipientHistory/ | POST | Retrieves a list of the Recipient’s Thrive Marketing Enterprise activity. |
GetReportMetadata/ | POST | Returns the required fields for a request to ExecuteReport/ method. |
GetReports/ | POST | Returns the different reporting options currently available. |
GetSubscribers/ | POST | Retrieves a list of subscribed recipients via an SMP or API calls (SubscribeRecipient/ UnsubscribeRecipient/) within a range of dates. |
GetSuppressedRecipients/ | POST | Retrieves a list of suppressed individuals by Group. |
GetUnsubscribes/ | POST | Retrieves a list of unsubscribed recipients within a range of dates. |
GetUploadStatus/ | POST | Retrieves the upload status of a group, if completed will return the number of accepted records. |
SearchRecipient/ | POST | Searches for a list of recipients using different criteria such as First Name, Email, etc. |
SendEmailToGroup/ | POST | Sends a message with both an HTML and text version to a group of recipients. |
SendEmailToGroupWithProfile/ | POST | Sends a message with both an HTML and text version from a specific Sending Profile to a group of recipients. |
SendEmailToIndividual/ | POST | Send a message to an individual recipient. |
SubscribeRecipient/ | POST | Subscribes a recipient to either a group or a category. |
UnsubscribeRecipient/ | POST | Unsubscribes a recipient to either a group or a category. |
UploadRecipients/ | POST | Uploads recipients to a group. |
UpsertRecipient/ | POST | Adds or edits a recipient with Enhanced Personalized Fields. |