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/v1/emails/send
Send a single email
POST/v1/emails/batch
Send multiple emails in batch
GET/v1/emails/{id}
Get email delivery status
GET/v1/analytics/summary
Get delivery analytics
POST/v1/webhooks
Configure webhook endpoints

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 Soon

SDKs & Libraries

Official SDKs for popular programming languages and frameworks.

In Development

Webhooks

Real-time notifications for email events and delivery status.

Available

Ready to get started?

Join thousands of developers who trust SendLib for reliable email delivery.