Skip to main content
The turboSMTP REST API works with any language or tool that can make HTTP requests. Each example below sends a POST request to the global send endpoint with consumerKey and consumerSecret headers and a JSON body containing the standard message fields. Swap in your own credentials and addresses, then run the code to send your first email.
Replace YOUR_CONSUMER_KEY and YOUR_CONSUMER_SECRET with the keys from your dashboard at Settings → Integrations → API Keys. Your Consumer Secret is shown only once at creation time, so store it securely.

Before you run the examples

Use credentials with HTTP API Sending enabled and a sender domain configured for your account. Python uses the requests package (python -m pip install requests); the Node.js example uses axios (npm install axios). PHP requires its cURL extension, and the Java example requires Java 11 or later. The C# example uses top-level statements in a modern .NET console project. To send through turboSMTP’s European infrastructure, replace api.turbo-smtp.com with api.eu.turbo-smtp.com. turboSMTP is an Italian company with European servers; see hosts and data residency.

SDKs

turboSMTP publishes official source repositories with API clients and examples. See Official SDKs for their status and requirements.

C# SDK

C# source and examples. The SDK project currently targets .NET Framework 4.8.

PHP SDK

PHP source and examples. Check runtime requirements in the repository.