Email API
Insight
If a customer can’t find their email, you need detailed insight into when it was accepted by the mail server and opened by the recipient. If the email address bounced or the inbox was full, you’ll know.
Send with email API straightaway
Our customer libraries enable you to integrate with our email API quickly. Browse libraries for every popular language like, PHP, Node.js, .Net, Ruby, Java, and more.
Less complex applications can utilize our trustworthy API service to benefit from INBOXNotify’s remarkable email delivery right away.
Curl
curl -X POST \ https://useapi.useinbox.com/notify/v1/send \ -H 'Authorization: Bearer YOUR_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "from": { "name": "Example", "email": "[email protected]" }, "to": [ {"email":"[email protected]"} ], "subject": "Welcome", "htmlContent": "Welcome to INBOXNotify" }'
Ruby
require 'uri' require 'net/http' ​ url = URI("https://useapi.useinbox.com/notify/v1/send") ​ http = Net::HTTP.new(url.host, url.port) ​ request = Net::HTTP::Post.new(url) request["Content-Type"] = 'application/json' request.body = "{\"from\": {\"name\": \"Example\",\"email\": \"[email protected]\"},\"to\": [{\"email\":\"[email protected]\"}],\"subject\": \"Welcome\",\"htmlContent\": \"Welcome to INBOXNotify\"}\n" ​ response = http.request(request) puts response.read_body
Python
import requests ​ url = "https://useapi.useinbox.com/notify/v1/send" ​ payload = "{\"from\": {\"name\": \"Example\",\"email\": \"[email protected]\"},\"to\": [{\"email\":\"[email protected]\"}],\"subject\": \"Welcome\",\"htmlContent\": \"Welcome to INBOXNotify\"}\n" headers = { 'Content-Type': "application/json", } ​ response = requests.request("POST", url, data=payload, headers=headers) ​ print(response.text)
PHP
setUrl('https://useapi.useinbox.com/notify/v1/send'); $request->setMethod(HTTP_METH_POST); ​ $request->setHeaders(array( 'Content-Type' => 'application/json' )); ​ $request->setBody('{"from": {"name": "Example","email": "[email protected]"},"to": [{"email":"[email protected]"}],"subject": "Welcome","htmlContent": "Welcome to INBOXNotify"} '); ​ try { $response = $request->send(); ​ echo $response->getBody(); } catch (HttpException $ex) { echo $ex; }
Java
OkHttpClient client = new OkHttpClient(); ​ MediaType mediaType = MediaType.parse("application/json"); RequestBody body = RequestBody.create(mediaType, "{\"from\": {\"name\": \"Example\",\"email\": \"[email protected]\"},\"to\": [{\"email\":\"[email protected]\"}],\"subject\": \"Welcome\",\"htmlContent\": \"Welcome to INBOXNotify\"}\n"); Request request = new Request.Builder() .url("https://useapi.useinbox.com/notify/v1/send") .post(body) .addHeader("Content-Type", "application/json") .build(); ​ Response response = client.newCall(request).execute(); Collapse
C#
var client = new RestClient("https://useapi.useinbox.com/notify/v1/send"); var request = new RestRequest(Method.POST); request.AddHeader("Content-Type", "application/json"); request.AddParameter("undefined", "{\"from\": {\"name\": \"Example\",\"email\": \"[email protected]\"},\"to\": [{\"email\":\"[email protected]\"}],\"subject\": \"Welcome\",\"htmlContent\": \"Welcome to INBOXNotify\"}\n", ParameterType.RequestBody); IRestResponse response = client.Execute(request)

To deal with sendings for different apps or environments, employ INBOXNotify’s servers
Unlock the full potential of your application-driven emails with our clear API documentation. Use the API Explorer to test drive API calls against your account and get responses with real data.