Quick start

API key → send. Three calls.

1. API key

Portal access, then create a key: sms:send, otp:send, whatsapp:send, email:send as needed.

2. SMS

Approved Sender ID + E.164 recipient.

1curl -X POST https://api-messages.seed.tg/v1/messages \
2  -H "X-API-Key: lks_live_xxx" -H "Content-Type: application/json" \
3  -d '{"to":"+22890000000","sender":"SEED","text":"Hello from SEED"}'

3. OTP

POST /v1/otp/send with to. Optional code. Auto WhatsApp → SMS. TTL 10 min.

1curl -X POST https://api-messages.seed.tg/v1/otp/send \
2  -H "X-API-Key: lks_live_xxx" -H "Content-Type: application/json" \
3  -d '{"to":"+22890000000","reference":"login-1","request_messaging_consent":false}'
1curl -X POST https://api-messages.seed.tg/v1/otp/send \
2  -H "X-API-Key: lks_live_xxx" -H "Content-Type: application/json" \
3  -d '{"to":"+22890000000","code":"482917","reference":"login-1","request_messaging_consent":false}'

4. Email

Verified domain as from.

1curl -X POST https://api-messages.seed.tg/v1/emails \
2  -H "X-API-Key: lks_live_xxx" -H "Content-Type: application/json" \
3  -d '{"to":["[email protected]"],"from_email":"[email protected]","subject":"Welcome","text":"Thanks"}'