YourTrend / API
REST API
API reference
One key, one base URL. Authenticate with a Bearer API key and add the X-Test-Mode: true header to try calls without sending anything or spending quota.
Base URL
https://yourtrend.online/api/v1Auth
Authorization: Bearer …Test mode
X-Test-Mode: trueQuickstart
curl -X POST https://yourtrend.online/api/v1/messages \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"from":"you@yourdomain.com","to":"user@dest.com",
"subject":"Hi","html":"<p>Hello</p>"}'require 'yourtrend.php';
$yt = new YourTrend('YOUR_API_KEY');
$res = $yt->sendEmail(
'noreply@yourdomain.com',
'user@example.com',
'Hello from YourTrend',
'<h1>Hi!</h1>'
);
echo $res['status']; // 202const YourTrend = require('./yourtrend');
const yt = new YourTrend('YOUR_API_KEY');
const res = await yt.sendEmail(
'noreply@yourdomain.com',
'user@example.com',
'Hello from YourTrend',
'<h1>Hi!</h1>'
);
console.log(res.status); // 202from yourtrend import YourTrend
yt = YourTrend("YOUR_API_KEY")
res = yt.send_email(
"noreply@yourdomain.com",
"user@example.com",
"Hello from YourTrend",
"<h1>Hi!</h1>",
)
print(res["status"]) # 202package main
import "yourtrend"
func main() {
c := yourtrend.New("YOUR_API_KEY")
c.SendEmail(
"noreply@yourdomain.com",
"user@example.com",
"Hello from YourTrend",
"<h1>Hi!</h1>",
)
}SDKs
Single-file clients, zero dependencies.
Endpoints
-
POST
/messagesSend a transactional email -
POST
/messages/batchSend a batch of emails -
GET
/messagesList sent messages
SMS & channels
-
POST
/smsSend an SMS -
POST
/channels/{whatsapp|telegram|viber|rcs|voice}Send on a messaging channel
Web push
-
GET
/push/vapidGet the VAPID public key -
POST
/push/subscribeStore a browser subscription -
POST
/pushBroadcast a notification
Deliverability
-
POST
/deliverability/validateValidate an email address -
POST
/deliverability/spam-scoreScore an email before sending -
POST
/deliverability/blocklistCheck an IP or domain against blocklists -
POST
/deliverability/dmarcIngest a DMARC aggregate report
Contacts & campaigns
-
POST
/contactsCreate a contact -
POST
/contacts/importBulk import contacts -
POST
/campaignsCreate a campaign -
POST
/campaigns/{id}/scheduleSchedule a campaign in the recipient timezone -
POST
/journeysCreate a multi-step journey -
POST
/formsCreate a signup form with double opt-in
AI
-
POST
/ai/subjectGenerate subject lines -
POST
/ai/composeGenerate an email -
POST
/ai/translateTranslate content between EN, UK and RU
Inbound
-
POST
/inbound/parseParse a raw inbound email into JSON
API console
Try it
Runs against the live API from your browser. Use a test key — X-Test-Mode is sent for you.
This page was found by searching for
Real search queries that bring people here — the highlighted ones open the matching page.
- email affiliate programme
- api key authentication
- what is DMARC
- smtp connection settings
- newsletter platform pricing
- email platform features
- node js sdk
- email spam test
- email terms glossary
- openapi specification
- what is SPF
- email api documentation
- curl request examples
- Mailchimp alternative