SMS API
The Loyalty.lt SMS API allows partners to send SMS messages programmatically with automatic billing, delivery tracking, and marketing consent management.SMS API is available only for approved partners. Contact [email protected] to request access.
Base URL
Features
Send SMS
Send single or scheduled SMS messages
Delivery Status
Track message delivery in real-time
Marketing Consent
GDPR-compliant consent management
Webhooks
Receive delivery receipts via webhook
Authentication
SMS API uses API Key + Secret authentication via headers:Your API key from the Partners Portal
Your API secret from the Partners Portal
Sender Names (Alphatags)
Before sending SMS, you must have at least one approved sender name. Sender names:- Must be alphanumeric (letters, numbers, spaces)
- Maximum 11 characters
- Require approval before use
Manage your sender names in the Partners Portal → SMS → Sender Names.
Pricing
SMS messages are billed per message part:| Region | Price per SMS |
|---|---|
| Lithuania | €0.0556 |
| Foreign numbers | €0.1295 |
Exact pricing is displayed in the Partners Portal. Prices may vary based on your contract.
Message Length Limits
| Encoding | Single SMS | Multi-part SMS (per part) |
|---|---|---|
| GSM-7 (Latin) | 160 chars | 153 chars |
| Unicode (Cyrillic, emoji, etc.) | 70 chars | 67 chars |
Rate Limits
| Limit Type | Default | Notes |
|---|---|---|
| Per minute | 60 messages | Can be increased on request |
| Per day | Unlimited | Subject to account balance |
Error Codes
| Code | HTTP Status | Description |
|---|---|---|
| 1001 | 401 | Invalid API credentials |
| 1002 | 402 | Insufficient balance |
| 1003 | 429 | Rate limit exceeded |
| 2001 | 422 | Sender name not approved |
| 2002 | 422 | Invalid phone number format |
Webhook Delivery Reports
When message status changes, we send a POST request to yourreceiptURL:
Status Values
| Status | Description |
|---|---|
SENT | Message sent to carrier |
DELIVERED | Confirmed delivered to handset |
FAILED | Delivery failed |
UNDELIVERABLE | Number invalid or unreachable |
See Webhooks documentation for complete webhook handling examples.
Quick Start
1
Get API Credentials
Log in to Partners Portal and generate API credentials.
2
Add Sender Name
Request approval for your sender name (alphatag) in the Partners Portal.
3
Send Your First SMS
Use the Send SMS endpoint to send a test message.
4
Set Up Webhooks
Configure your webhook URL to receive delivery reports.