Email API

Send transactional emails and one-time codes (OTP) from your own app or website: sign-up codes, password resets, receipts, order updates. Your brand name as the sender, replies to your address.

API keys

Monthly packages

Pay once for 30 days from your balance. No daily limit while a package runs. Indonesia tops up by bank transfer, other countries with USDT.

Send your first email

curl https://lyxvo.ai/api/email/v1/send \
  -H "Authorization: Bearer lx_mail_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"to":"customer@example.com","from_name":"My Shop","reply_to":"help@myshop.com",
       "subject":"Your order #1042","html":"<h1>Thanks!</h1><p>Your order is on its way.</p>"}'

One-time codes (OTP)

Lyxvo makes the code, emails it and checks it. The code is never returned to you; codes work once, expire (10 minutes by default) and stop after 5 wrong tries.

# 1) send a code
curl https://lyxvo.ai/api/email/v1/otp/send -H "Authorization: Bearer lx_mail_YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"to":"customer@example.com","brand":"My Shop","length":6,"ttl":600,"lang":"en"}'
# → { "sent": true, "expires_in": 600 }

# 2) check what the customer typed
curl https://lyxvo.ai/api/email/v1/otp/verify -H "Authorization: Bearer lx_mail_YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"to":"customer@example.com","code":"482913"}'
# → { "valid": true }   or   { "valid": false, "reason": "wrong_code", "tries_left": 3 }

Email templates

Ready-made designs that look good in Gmail, Outlook and phone mail apps. Send one with template and params; set your brand, colour and logo, in English or Indonesian.

Subject Welcome to Kopi Senja

curl https://lyxvo.ai/api/email/v1/send -H "Authorization: Bearer lx_mail_YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"to":"customer@example.com","template":"welcome","params":{"brand":"Kopi Senja","color":"#0f766e","name":"Rina","button_url":"https://kopisenja.com/app","button_text":"Open the app"}}'

Last sends

Mail is sent from Lyxvo's sending address under your brand name; addresses that bounce are not mailed again by your account. Sending from your own domain is coming later.