Send Your First Email
Send a message through the Arawa Mail JSON API using cURL. If your framework has a supported integration, start with a library quickstart.
Requirements
Before sending mail, make sure your company workspace has:
- At least one registered domain.
- Outbound email enabled for that domain.
- A sending API key from the API keys screen.
API keys are shown once when created. Store the key securely; Arawa Mail only stores a hash.
Base URL
https://app.arawamail.com
Send the Request
curl -X POST "https://app.arawamail.com/emails" \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"from": "Acme <[email protected]>",
"to": ["[email protected]"],
"subject": "Hello from Arawa Mail",
"html": "<p>Your first message is on its way.</p>"
}'
Successful requests return the sent email id:
{
"id": "8f7f0e75-1a52-4f6b-9834-3aee2d4d4a89"
}
The message is dispatched through the domain's configured outbound provider and logged in the company database as a sent email.
Next Steps
- Review every supported field in Send Email.
- Learn how to retrieve the sent email.
- See Authentication for credential formats.