eSMSAfrica
Libya flag Developer API

SMS API in Libya

Add SMS to your application in Libya in minutes. The eSMS Africa SMS API delivers to Libyana & Almadar over direct routes, with delivery webhooks, OTP, sender IDs and a free sandbox to test before you go live.

Direct routes to 2 networks Delivery reports LYD 2.0965 per SMS
Networks in Libya
LibyanaAlmadar
Country code
+218
Status
Production
At a glance

SMS API in Libya: the short answer

eSMS Africa delivers SMS sent through its API in Libya to Libyana & Almadar over direct network routes. Volume prices start from LYD 2.0965 per SMS and are shown live on this page. You pay as you go from USD 20 with no setup fee, and every message returns a delivery report.

Networks
Libyana & Almadar
Country code
+218, numbers like +218912345678
Price from
LYD 2.0965 per SMS
Integration
REST API, SMPP 3.4 or the web dashboard
Why eSMS Africa

SMS API in Libya, done properly

REST API + SMPP

Send with a simple HTTPS request or bind over SMPP for high throughput. Either way your Libya traffic runs on the same direct routes to Libyana, Almadar.

Delivery webhooks (DLR)

Get a real-time callback for every message status - sent, delivered, failed - so your app always knows what happened to each SMS in Libya.

Sandbox + SDKs

Test free in the sandbox, then go live with official Node, Python, PHP and Go SDKs. Example numbers for Libya use the +218 country code.

Sender IDs & OTP

Register a branded sender ID for Libya and send OTPs through the same API, with a delivery report for each code.

Step by step

How to send an SMS to Libya with the API

  1. 1
    Get your API key. Create an account and copy your API key from the dashboard.
  2. 2
    Format the number. Use international format for Libya numbers - they start with +218 (e.g. 218912345678).
  3. 3
    Call the send endpoint. POST to https://api.esmsafrica.io/v1/sms/send with to, from and message.
  4. 4
    Receive delivery reports. Set a webhook URL and eSMS Africa calls it with each message status in real time.
  5. 5
    Go live. Test in the sandbox with a test key, then switch to your live key.
Integrate in minutes

Send your first SMS to Libya

curl -X POST https://sms.esmsafrica.io/api/messages/send \
  -H "Authorization: Bearer $ESMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "+218912345678",
    "text": "Hello from MyBrand. Your order has shipped.",
    "sender_id": "MyBrand"
  }'

Full REST reference, SMPP details and SDKs for Node, Python, PHP and Go in the API documentation.

Local pricing

SMS API pricing in Libya

Basic
LYD2.4464
per SMS
Business
LYD2.2714
per SMS
Enterprise
LYD2.0965
per SMS

Prices reflect live rates for Libya. See the full pricing page or contact sales for volume rates.

FAQ

SMS API in Libya: common questions

How do I send an SMS to Libya from my app?

POST to the eSMS Africa /sms/send endpoint with the recipient in international format (+218...) and your message. See the code samples on this page for curl, Node, Python and PHP.

Do you support delivery reports over the API?

Yes. Set a webhook URL and eSMS Africa calls it with the delivery status of every message to Libya in real time.

REST or SMPP for Libya?

Use REST for most applications; use SMPP when you need very high, sustained throughput. Both reach Libyana & Almadar on direct routes.

Is there a sandbox?

Yes - a free sandbox and test API keys let you integrate and test SMS to Libya without spending credit.

Which SDKs are available?

Official SDKs for Node.js, Python, PHP and Go, plus a documented REST API you can call from any language.

Get started

SMS API in Libya, done right.

Direct routes to Libyana & Almadar, delivery reports and local support. Create a free account and start today.