Skip to main content

Get Your API Token

Before you can start sending SMS messages, you need to obtain your API token from the Lamah dashboard.
1

Create an Account

go to https://geteshaar.com and create an account.
2

Visit the Dashboard

Go to https://sms.lamah.com and log into your account.
3

Navigate to Projects

In your dashboard, navigate to the Projects section.
4

Create or Select a Project

Create a new project or select an existing one.
5

Copy Your API Token

Locate and copy the API token provided in the project details.
6

Add Your Ip to whitelist

in project tab navigate to ip whitelist and add your ip address.

Send Your First SMS

Now let’s send your first SMS message using the Lamah API.
curl --request POST \
  "https://sms.lamah.com/api/sms/messages" \
  --header "Authorization: Bearer YOUR_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
    "message": "تم استلام استفسارك عن الشقة في حي الأندلس – سنعاودك خلال 15 دقيقة",
    "sender": "RealEstate",
    "payment_type": "wallet",
    "receiver": "00218911234567"
  }'

Understanding the Response

A successful SMS send will return a response like this:
{
  "message_id": "msg_123456789",
  "cost": 0.05,
}

Next Steps

Now that you’ve sent your first SMS, explore more features:

Need Help?