Overview

The Litmus API enables your application to create tests for any web page or email design, and receive screenshots of them across various platforms. You can offer both types of testing within your application or simply focus on one. Email providers, for example, are most likely to offer just email testing. Email testing also includes a full spam filter report for the email, along with the reasons it did not pass the filter, where appropriate.

 

For all types of tests the system follows the same basic process:

  1. you create a new test
  2. wait a few moments
  3. request the results of that test

 

When you request the results youʼll be provided with URLs to the screenshots (stored and hosted by us). Beyond that, you can be as creative as you like in integrating this process into your own application.

 

Sandbox

There is a sandbox mode that you can use to test every part of the API, without charging any tests to your account. The sandbox works identically to the live API, but will always return the same set of example screenshots. Details on how to run tests in the sandbox are included in the documentation.

 

Authentication

As an API user youʼll have an API key which, combined with your API passphrase, allows you to login to the Litmus API over basic HTTP authentication.

 

Billing

You can run tests that are charged on a per-test basis, or those that are part of an ʻunlimitedʼ subscription. To differentiate between these two types of tests for billing purposes, you either include or exclude a unique user identifier, or “user GUID”. If you do not include a user GUID, you will be charged for that individual test. If you do include a user GUID, that test will be counted as part of a subscription. 

 

At the end of each month we will collate the number of unique user GUIDs for your account, and that will serve as your number of active subscription users. 

 

To understand how to generate user GUIDs, and how to send that information to us when you create tests, see Generating User GUIDs.

 

Trial usage

You may wish to offer your users a sample test that they can try free of charge, to help promote the service. This is fully supported with the API. If you run a test using only the following testing applications they will not be charged.

 

Trial applications for web page tests

 

Testing application Application code
Explorer 10

ie10

 

 

 

 

 

Trial applications for email tests

 

Testing application Application code
Outlook 2003

ol2003

Gmail

gmailnew

 

 

 

 

 

 

System status

From time to time, certain testing applications may be unavailable. This happens rarely, but when it does we want you to be able to inform your users, should you wish to. We have three levels of status for each testing application:

 

 

You may want to build a status page with this information (as we do), or you may wish to temporarily disable your usersʼ ability to test on any applications with an ʻunavailableʼ status. Alternatively you may wish to keep this information private and use it purely for technical support purposes.