Supports Token auth, sender ownership verification, and tiered billing (10 emails for ¥0.01)
Supports three credential passing methods (in descending order of priority):
?token=YOUR_API_TOKENtoken=YOUR_API_TOKENAuthorization: Bearer YOUR_API_TOKEN| Parameter | Type | Required | Description |
|---|---|---|---|
token | string | Yes | API Authentication Token |
from_name | string | Optional | Your Name |
from | string | Yes | Sender email alias (must be a valid alias owned by the current user) |
reply_to | string | Optional | Reply-To |
to | string | Yes | Recipient email address |
subject | string | Yes | Email subject |
body | string | Yes | Email body (supports HTML, e.g., Test ) |
{
"ret": 1,
"msg": "Sent successfully"
}
| HTTP Status | ret Value | Description |
|---|---|---|
| 200 | 1 | Sent successfully |
| 400 | 0 | Incomplete parameters, or insufficient balance (10 emails for ¥0.01 limit) |
| 401 | 0 | Missing API authentication Token or Token is invalid |
| 403 | 0 | Authentication failed: "from" address is not a valid alias owned by you |
| 500 | 0 | Internal server error or SMTP sending failure |
curl -i -X POST https://ocloude.com/user/api/v1/alias/send \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "token=YOUR_API_TOKEN" \
-d "[email protected]" \
-d "[email protected]" \
-d "subject=Hello" \
-d "body=<p>Test content</p>"
Supports Token auth, Outlook.ba domain verification, 2 quota units per email (¥0.01 per 10 units)
Supports three credential passing methods (in descending order of priority):
?token=YOUR_API_TOKENtoken=YOUR_API_TOKENAuthorization: Bearer YOUR_API_TOKEN| Parameter | Type | Required | Description |
|---|---|---|---|
token | string | Yes | API Authentication Token |
from_name | string | Optional | Your Name |
from | string | Yes | Sender Outlook.ba address (must end with @outlook.ba and be owned by the current user) |
reply_to | string | Optional | Reply-To |
to | string | Yes | Recipient email address |
subject | string | Yes | Email subject |
body | string | Yes | Email body (supports HTML, e.g., Test ) |
{
"ret": 1,
"msg": "Sent successfully"
}
| HTTP Status | ret Value | Description |
|---|---|---|
| 200 | 1 | Sent successfully |
| 400 | 0 | Incomplete parameters, incorrect email domain format, or insufficient balance |
| 401 | 0 | Missing API authentication Token or Token is invalid |
| 403 | 0 | Authentication failed: "from" address is not a valid account owned by you |
| 500 | 0 | Internal server error or SMTP sending failure |
curl -i -X POST https://ocloude.com/user/api/v1/ba/send \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "token=YOUR_API_TOKEN" \
-d "[email protected]" \
-d "[email protected]" \
-d "subject=Hello Outlook.ba" \
-d "body=<p>Test content from ba</p>"