Skip to main content

API v3.1 overview

The MessageGears Web Services are RESTful in style. Making an API call is as simple as submitting a URL with specific name or value pairs. Once a request has been submitted, the service will respond with an XML document. The results will conform to an XML Schema Definition (XSD) which can be used to auto-generate source code.

XSD Location​

XSD

Base URL​

https://api.messagegears.net/3.1/WebService

Web Services​

You should always use the HTTP POST method when calling the APIs from your application. For demonstration purposes, the examples shown for each API call use the HTTP GET method which has a very small size limit (approx. 2KB). The POST methods for our services will accept requests of up to 2MB.

Web ServiceDescription
TransactionalJobSubmitSend individual, personalized email messages. This API sends a single email per invocation.
BulkJobSubmitSend email messages to a list of recipients. There is no hard limit on the size of the list and millions of emails can be sent from a single invocation of this API.
BulkJobSummaryCheck the status of a bulk job. It returns the total deliveries, clicks, opens, bounces, unsubscribes, and spam complaints.
AccountActivityRetrieve your detailed account activity for a given day (deliveries, clicks, opens, bounces, etc.)
AccountSummaryRetrieve summary information for your account for a given day (deliveries, clicks, opens, bounces, etc.)
RealTimeAccountActivityRetrieve all your detailed account activity in "real time" (deliveries, clicks, opens, bounces, etc.) using Amazon Simple Queue Service (SQS).
MessagePreviewTest the rendering of an email template. Many parts of each email message sent using the Bulk and Transactional APIs can be personalized using a template language. This API is very useful for those who are building email marketing tools and need a way to allow content authors to test dynamic email content as they develop it.
TransactionalCampaignSubmitSend individual, personalized email messages using a template stored in our content manager.
BulkCampaignSubmitSend email messages to a list of email addresses using a template stored in our content manager.
CreateAccountCreates a new child account.
UpdateAccountUpdates a new child account.
ThumbnailCreates a Thumbnail Image (.jpg) from html or text content. The image is intended to be used to create a thumbnail representation of a Template.
TransactionalContentRetrievalUsed to render a delivered transactional job or campaign.
ForwardToAFriendUsed to send a single email to a single email address, including a copy of a message previously sent through the MessageGears platform. (REST only)

Common Response Values (returned by all APIs)

ParameterData TypeDescription
RequestIdStringThe unique id for this API call.
ResultStringResult will always be REQUEST_SUCCESSFUL or REQUEST_FAILED. If REQUEST_FAILED is returned, you will also receive a list of one or more errors which occurred in attempting to process the API request.

Example Success Response

<TransactionalJobSubmitResponse>  
<RequestId>t23110-a9e77b7c-c980-4ff5-8ede-546fbe0bad66</RequestId>
<Result>REQUEST_SUCCESSFUL</Result>
</TransactionalJobSubmitResponse>

Example Failure Response

<TransactionalJobSubmitResponse>  
<RequestId>t13912-991142c3-00de-48ca-9ba9-7881631248e7</RequestId>
<Result>REQUEST_FAILED</Result>
<RequestErrors>
<RequestError>
<ErrorCode>AuthenticationException</ErrorCode>
<ErrorMessage>The accountId and/or password are invalid.</ErrorMessage>
</RequestError>
</RequestErrors>
</TransactionalJobSubmitResponse>