API Documentation
Everything you need to integrate SendLib's powerful email delivery API into your applications.
🚧 Documentation is currently under construction. Full docs coming soon!
Quick Start
Get up and running with SendLib in minutes
1
Get API Key
Sign up for SendLib and get your API key from the dashboard.
2
Install SDK
Use our official SDKs or make direct HTTP requests to our API.
3
Send Emails
Start sending emails with just a few lines of code.
API Endpoints
RESTful API endpoints for email delivery and management
POST
Send a single email/v1/emails/send
POST
Send multiple emails in batch/v1/emails/batch
GET
Get email delivery status/v1/emails/{id}
GET
Get delivery analytics/v1/analytics/summary
POST
Configure webhook endpoints/v1/webhooks
Code Examples
See how easy it is to send emails with SendLib
cURL
curl -X POST https://api.sendlib.com/v1/emails/send \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "user@example.com",
"subject": "Hello World",
"html": "<h1>Welcome!</h1>",
"from": "you@yourdomain.com"
}'
JavaScript
import SendLib from '@sendlib/node';
const sendlib = new SendLib('YOUR_API_KEY');
const email = await sendlib.emails.send({
to: 'user@example.com',
subject: 'Hello World',
html: '<h1>Welcome!</h1>',
from: 'you@yourdomain.com'
});
console.log('Email sent:', email.id);
Python
from sendlib import SendLib
client = SendLib('YOUR_API_KEY')
email = client.emails.send(
to='user@example.com',
subject='Hello World',
html='<h1>Welcome!</h1>',
from_email='you@yourdomain.com'
)
print(f'Email sent: {email.id}')
Developer Resources
Additional resources to help you succeed
Guides & Tutorials
Step-by-step guides for common use cases and best practices.
Coming SoonSDKs & Libraries
Official SDKs for popular programming languages and frameworks.
In DevelopmentWebhooks
Real-time notifications for email events and delivery status.
AvailableReady to get started?
Join thousands of developers who trust SendLib for reliable email delivery.