API Documentation
sk_live_abcdefghijklmnopqrstuvwxyz123456
API Usage
// Example usage with CURL
curl -X POST https://api.smtpserver.com/send \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "user@example.com",
"subject": "Hello World",
"text": "This is a test email"
}'
// Example usage with Python
import requests
url = "https://api.smtpserver.com/send"
payload = {
"to": "user@example.com",
"subject": "Hello World",
"text": "This is a test email"
}
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
// Example usage with Node.js
const axios = require('axios');
const data = {
to: 'user@example.com',
subject: 'Hello World',
text: 'This is a test email'
};
axios.post('https://api.smtpserver.com/send', data, {
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
})
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});