Welcome to the Lamah SMS API
The Lamah SMS API is a RESTful API that allows you to send SMS messages, manage OTP verification, and handle communication workflows programmatically. Our API is designed to be simple, reliable, and scalable. Base URL:https://sms.lamah.com
API Overview
The Lamah SMS API provides the following core functionalities:SMS Messaging
Send single messages, bulk SMS, and template-based messages
OTP Services
Generate and verify one-time passwords for authentication
Project Management
Manage projects, check balances, and track usage
Example Scenario
See real estate flows with Libyan numbers insnippets/real-estate-libya.mdx.
Authentication
All API endpoints require authentication using Bearer tokens. Include your API token in the Authorization header:- Navigating to the Projects section
- Creating or selecting a project
- Copying the API token from the project details
Request Format
All requests should be made using HTTPS and include the appropriate headers:Spec source: Postman collection at https://sms.lamah.com/docs/collection.json
Response Format
All API responses are returned in JSON format. Successful responses will include the requested data, while error responses will include error details and status codes.Success Response Example
Error Response Example
Rate Limits
The API has rate limits to ensure fair usage:- SMS Endpoints: 100 requests per minute
- OTP Endpoints: 10 requests per minute per phone number
- Other Endpoints: 1000 requests per minute
Error Codes
Common HTTP status codes used by the API:| Status Code | Description |
|---|---|
| 200 | Success |
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Invalid or missing API token |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Resource not found |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Internal Server Error |
Postman Collection
Download the latest Postman Collection that mirrors these endpoints:api-reference/openapi.json(Postman collection format)
+218912345678).