Email marketing API · Enterprise

The tinyEmail REST API

A complete email marketing platform with a powerful REST API. Manage campaigns, audiences, senders, templates and reporting from your own code, without needing to use the interface.

Any HTTP languageAPI key authEnterprise accounts
What you can do

Everything you run in the dashboard, from your own code

The tinyEmail REST API lets Enterprise accounts run email marketing from their own code. Requests use an API key in the X-API-KEY header and work from any language that can make HTTP requests.

Contacts

Add or update contacts with their attributes and tags, and look up any contact by email.

PUT /account/customer

Audiences

Create, update and delete audiences, import or append contacts from CSV, and unsubscribe a contact.

POST /audiences/import

List cleaning

Clean a whole list or a single contact, then check the cleaning history and download the results.

PUT /audiences/clean-list/:id

Campaigns and scheduling

Create, update, start, pause and delete campaigns. Schedule a send in UTC or repeat it on chosen weekdays.

PUT /campaign/:id/start

Templates

Create, read, update and delete the reusable templates your campaigns use.

POST /template

Senders

Add, update and remove the sender identities your campaigns send from.

POST /sender-details

Suppressions

Import suppression lists, append to them, change their scope and keep them in sync with your systems.

POST /suppression/import

Reporting

Pull a campaign's sends, deliveries, opens, clicks, spam reports and unsubscribes by recipient domain into your own dashboards.

POST /campaign/domain-stats

Segments

Read your segments and query segment filters and summaries from your own code.

PUT /segment/customer/filter

Need something you can do in the dashboard but not yet through the API? Tell us, and the team will work to expose it.

Get started

Three steps to your first request

Create a key, add one header and call the API from the language you already use.

  1. 1

    Use an Enterprise account

    The tinyEmail API is available on Enterprise accounts. On another plan? Talk to our team about upgrading.

  2. 2

    Create an API key

    In app.tinyemail.com, go to My Account › API Keys and create a key.

  3. 3

    Send requests

    Put the key in the X-API-KEY header. Each key can make 60 requests a minute; ask support if you need more.

Add or update a contact
cURL
curl -X PUT "$TINYEMAIL_API_BASE/account/customer" \
  -H "X-API-KEY: $TINYEMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"updateMembers":[{"email":"ava@example.com","firstName":"Ava"}]}'

The same request works from Node.js, Python, PHP, Ruby, Go or any language that can make HTTP requests, with no SDK to install. See the API docs for every endpoint and field.

Who it's for

Built for teams that want full control

Marketers, developers and enterprises that want to run their email operations from their own systems.

SaaS platforms

Run email marketing inside your own product: sync users as contacts, build audiences and launch campaigns from your app.

Email marketing for SaaS

Publishers

Create, schedule and start newsletters from your publishing stack, and pull results by recipient domain.

Email marketing for publishers

Ecommerce

Keep contacts, tags and suppressions in sync with your store or data warehouse, then send campaigns on your schedule.

Ecommerce email marketing
FAQ

Email marketing API questions 

Can't find your answer? Our team is here 24/7.

The tinyEmail API is available on Enterprise accounts. If you're on another plan, talk to our team about upgrading to Enterprise.

Each API key can make 60 requests a minute. If you need a higher limit, contact our support team.

No SDK is needed. It's a REST API, so you call it with the HTTP client in any language, including Node.js, Python, PHP, Ruby and Go.

Yes, from your own code. You can schedule a campaign for a date and time, repeat it on chosen weekdays, and start or pause it through the API. Visual workflows are built in the tinyEmail app.

You can unsubscribe a contact, add contacts to your suppression lists and delete whole audiences. For anything else, talk to our team.

The tinyEmail API is for marketing email. For password resets, receipts and other app emails, use tinyRelay, our SMTP relay and transactional email service.

Tell us. If a feature is in the tinyEmail dashboard but not yet in the public API, the team will work to expose it.

Build email marketing into your own stack

Manage campaigns, audiences, senders, templates and reporting through the tinyEmail REST API. Available on Enterprise accounts.