logo Straight to Inbox

API

Integrate email into your product with a developer-friendly API.

Our RESTful API lets you manage subscribers, trigger campaigns, and pull analytics programmatically. Build email into your product workflow with clean endpoints, clear documentation, and predictable rate limits.

Built for Developers

A clean, RESTful API with consistent conventions, meaningful error messages, and comprehensive documentation. Authenticate with API tokens and start integrating in minutes, not days.

  • RESTful endpoints with JSON responses
  • Token-based authentication
  • Comprehensive API documentation with examples
  • Webhook support for real-time event notifications
Terminal 1 curl -X POST \ 2 https://api.straighttoinbox.com/v1/subscribers \ 3 -H "Authorization: Bearer sk_live_..." \ 4 -H "Content-Type: application/json" \ 5 -d '{ 6 "email" : "user@example.com" , 7 "name" : "Jane Doe" , 8 "tags" : [ "vip" , "newsletter" ] 9 }' > 201 Created > { > "id" : "sub_8x2kQ7..." , "status" : "active" > }

Automate Your Workflow

Sync subscribers from your app, trigger transactional emails on user actions, or pull campaign stats into your own dashboards. The API gives you full programmatic control over every feature in the platform.

  • Manage subscribers and lists programmatically
  • Send transactional emails with per-message tracking
  • Trigger campaign and automation sends from your code
  • Pull analytics data into custom dashboards
Open Rate 67.2% +5.3% Click Rate 23.8% +2.1% Revenue $4,280 +18% Engagement Over Time Opens Clicks 80% 60% 40% 20% Mon Tue Wed Thu Fri

Start using API today — it's free

No credit card required. Get started in minutes.