The same API works for both Cloud and Self-Host. Only the base URL and authentication method differ.
https://chitthi-572964795629.asia-south1.run.apphttp://localhost:8080Two authentication approaches depending on your setup
Use your Chitthi API key (generated on the Dashboard). Chitthi resolves the provider and sender automatically.
Authorization: Bearer <chitthi_key>X-Chitthi-API-Key: <chitthi_key>"api_key": "<chitthi_key>" in bodySend an email via any configured provider
{
"from_email": "sender@example.com",
"from_name": "Sender Name",
"to_email": "recipient@example.com",
"to_name": "Recipient Name",
"subject": "Email Subject",
"html_content": "<h1>Hello World!</h1>"
}Cloud users: from_email is optional — resolved from your verified sender.
{
"status": true,
"message": "Email sent successfully",
"data": {
"sent_to": "recipient@example.com",
"sent_from": "sender@example.com",
"subject": "Email Subject",
"provider": "sendgrid"
}
}{
"status": false,
"message": "Failed to send email",
"error": "Invalid API key or no providers configured"
}Health check endpoint
{
"status": true,
"message": "Chitthi is running"
}