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.
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/customerAudiences
Create, update and delete audiences, import or append contacts from CSV, and unsubscribe a contact.
POST /audiences/importList cleaning
Clean a whole list or a single contact, then check the cleaning history and download the results.
PUT /audiences/clean-list/:idCampaigns and scheduling
Create, update, start, pause and delete campaigns. Schedule a send in UTC or repeat it on chosen weekdays.
PUT /campaign/:id/startTemplates
Create, read, update and delete the reusable templates your campaigns use.
POST /templateSenders
Add, update and remove the sender identities your campaigns send from.
POST /sender-detailsSuppressions
Import suppression lists, append to them, change their scope and keep them in sync with your systems.
POST /suppression/importReporting
Pull a campaign's sends, deliveries, opens, clicks, spam reports and unsubscribes by recipient domain into your own dashboards.
POST /campaign/domain-statsSegments
Read your segments and query segment filters and summaries from your own code.
PUT /segment/customer/filterNeed something you can do in the dashboard but not yet through the API? Tell us, and the team will work to expose it.
Three steps to your first request
Create a key, add one header and call the API from the language you already use.
- 1
Use an Enterprise account
The tinyEmail API is available on Enterprise accounts. On another plan? Talk to our team about upgrading.
- 2
Create an API key
In app.tinyemail.com, go to My Account › API Keys and create a key.
- 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.
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.
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 SaaSPublishers
Create, schedule and start newsletters from your publishing stack, and pull results by recipient domain.
Email marketing for publishersEcommerce
Keep contacts, tags and suppressions in sync with your store or data warehouse, then send campaigns on your schedule.
Ecommerce email marketingMore ways to build with tinyEmail
Send app emails, embed marketing in your product or work through an AI assistant.
Password resets and receipts? Use tinyRelay
The tinyEmail API is for marketing email. App emails go through tinyRelay, over SMTP or a REST API on the same infrastructure.
Email marketing inside your product
How SaaS teams sync users, run campaigns and show results in their own dashboards.
Prefer an AI assistant to code?
Connect Claude or ChatGPT to your account and run campaigns and audiences in plain language.
Email marketing API questions
Can't find your answer? Our team is here 24/7.
Who can use the tinyEmail API?
The tinyEmail API is available on Enterprise accounts. If you're on another plan, talk to our team about upgrading to Enterprise.
What is the API rate limit?
Each API key can make 60 requests a minute. If you need a higher limit, contact our support team.
Is there an SDK?
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.
Can I automate campaigns through the API?
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.
Can I remove contacts through the API?
You can unsubscribe a contact, add contacts to your suppression lists and delete whole audiences. For anything else, talk to our team.
Can I send transactional email with the tinyEmail API?
The tinyEmail API is for marketing email. For password resets, receipts and other app emails, use tinyRelay, our SMTP relay and transactional email service.
What if an endpoint I need is missing?
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.