Introduction to the API
The API allows you to interact programmatically with an array of features and data sets. For example, add users, send campaigns, push and update content in realtime, and more.
The API is a REST-based service. You can get a kickstart with our language-specific Client Libraries and reference our full API endpoint documentation below. Some common uses for our API:
- Send individual email messages – For example, automated welcome emails, purchase confirmation emails, or other transactional messages. Use the Send and Template calls. See also: Transactional Emails.
- Send email campaigns – Schedule delivery to multiple recipients. For example, a daily or weekly newsletter. Use a Blast call. See also: Campaigns, Lists.
- Set user data or list subscriptions – Subscribe users to or unsubscribe users from your lists. Add or update data for any user. See the User call. See also: List Management.
- Perform data processing tasks – For example, imports of subscriber lists, bulk user data updates, and exports of user data. Use the Job call to start a job or check its status.
To Get Started
- Review the API Endpoints below.
- View the Client Library for your preferred language, or learn how to build your own calls with curl on the Technical Details page.
- If you want a quick way to test a call, you can submit it in My Sailthru on the API Test Page.
All times are in your timezone.
API Endpoints
Click an endpoint name to view its reference documentation. Note: For some endpoints, some equivalent functionality exists in the form of onsite JavaScript API calls–indicated in the table, below, where applicable. You may find these easier or faster to implement, or marketers may be able to incorporate these into a tag manager to avoid using internal technical resources. However, typically, direct server-to-server calls are preferable, as they avoid a reliance on the user’s browser and internet connection.Email Delivery and Subscription Management | |
---|---|
Schedule or check the status of a Regular Campaign (mass mail blast). See also: Campaigns | |
blast_repeat | Create or update a Recurring Campaign (mass mail blast). See also: Campaigns |
Create lists or update the subscription status of entire lists of users. See also: Creating Lists, Integrate Lists,Setting Variables | |
Send, check status or delete triggered transactional email. See also: Transactionals | |
Create or edit templates for your triggered mail. See also: Template Overview, Optimize Templates | |
Preview blasts and templates | |
Create / update / delete transactional trigger. See also: Create Template Triggers | |
Create “includes”; reusable HTML or text snippets for email templates, such as headers and footers. | |
Reporting and User Data Management | |
Covers several actions including importing / updating / exporting subscribers, getting stats from sent email campaigns, and querying your subscriber analytics in aggregate. | |
Add/change/merge identifying keys to user profiles and query by engagement. JavaScript Alternatives While not replicating all of the available functionality of the user endpoint, you may implement the following JavaScript calls on your site, which are enabled by the JavaScript tag:
All of this functionality and more is available via the user API endpoint, which is often the recommended approach. | |
Send realtime user behavior and associated data to the platform. When called, events can initiate specific Lifecycle Optimizer flows, Smart Strategies tactics, or Triggers. JavaScript Alternative You may implement the following JavaScript call on your site, which is enabled by the JavaScript tag:
This functionality with the addition of the ability to set a schedule_time is available via the event API endpoint, which is often the recommended approach. | |
Request summary stats about your subscribers, email campaigns, and transactional emails. | |
Content Library | |
Add or update content in your Content Library. See also: Personalization Engine in Email. | |
Site Recommendations | |
Create or update sections of your website for site personalization. Further enhancements are coming to this API. Please check with your Salithru representative before implementing. | |
Store templates (including Zephyr code and HTML) to configure section display. Further enhancements are coming to this API. Please check with your representative before implementing. | |
E-commerce Data | |
Various aspects of e-commerce from recording a shopping cart modification or checkout event to tracking and configuring reminders for abandoned shopping carts. JavaScript Alternatives You may implement the following JavaScript calls on your site, which are enabled by the JavaScript tag:
All of this functionality and more is available via the purchase API endpoint, which is often the recommended approach. | |
Advertising | |
Update or get information on an Ad Targeter plan | |
Settings | |
Display and change your settings |
Technical Information
- Learn how to build your own client calls and observe rate limits on the Technical Details page.
- Use API Postbacks to receive exception/error alerts and update information on your servers in response to user actions like opt-outs and hardbounces.
- View the API Error and Response Codes.
- Learn about Rate Limits for API requests.