API Reference Introduction
SelfMailKit Email Service APIs
SelfMailKit email service APIs allow you to send transactional emails, manage domains, and handle audience and contacts programmatically.
The APIs for the managed and self-hosted versions are the same. The only difference is the base URL, which is where you use your own domain for the self-hosted version.
Getting Started
To start using the email service APIs:
- Create an API key from the dashboard
- Use your API key in the Authorization header for all requests:
Base URL
All API endpoints are prefixed with api.
subdomain:
The base URL is https://api.selfmailkit.com
The base URL is https://api.selfmailkit.com
The base URL is https://api.<your-domain>
API Versioning
The current version of the API is v1
. All endpoints are prefixed with /v1/
:
Error Handling
The API uses standard HTTP status codes and returns error messages in a consistent format:
Common status codes:
200
: Success201
: Created204
: No Content400
: Bad Request403
: Forbidden404
: Not Found429
: Too Many Requests
Support
Need help? We’re here for you:
- Email: support@selfmailkit.com
- Documentation: selfmailkit.com/docs
- Help: selfmailkit.com/help