Quick Start
Create an account, generate an API key from your dashboard, then send requests with key, number and msg.
- GSM: 160 characters = 1 credit, then 153 per segment.
- Unicode/Bangla: 70 characters = 1 credit, then 67 per segment.
- Keep your API key private and never expose it in client-side production code.
SMS Endpoint
GET / POSThttps://www.urontosms.hostgi.com/api/sms?key=YOUR_API_KEY&number=01700000000&msg=Hello
| Parameter | Required | Description |
|---|---|---|
| key | Yes | Your generated API key. |
| number | Yes | Recipient mobile number. |
| msg | Yes | SMS message text. |
Response
{
"status": "success",
"success": true,
"message": "SMS sent successfully",
"api_owner": "Uronto SMS"
}
{
"status": "failed",
"success": false,
"message": "SMS failed",
"api_owner": "Uronto SMS"
}
PHP / Laravel
<?php
$url = 'https://www.urontosms.hostgi.com/api/sms?key=YOUR_API_KEY&number=01700000000&msg=' . urlencode('Hello from PHP');
$response = json_decode(file_get_contents($url), true);
print_r($response);
Node.js
const url = new URL('https://www.urontosms.hostgi.com/api/sms');
url.searchParams.set('key', 'YOUR_API_KEY');
url.searchParams.set('number', '01700000000');
url.searchParams.set('msg', 'Hello from Node');
console.log(await (await fetch(url)).json());
Python
import requests
print(requests.get('https://www.urontosms.hostgi.com/api/sms', params={
'key': 'YOUR_API_KEY',
'number': '01700000000',
'msg': 'Hello from Python'
}).json())
