Sample Codes with Exclusive Documentation
Your API Key is : [YOUR_API_KEY]
For Generate / Re-Generate API Key goto to Dashboard/My Account
Authentication
POST Method : authorization: Bearer [YOUR_API_KEY] (in header)
GET Method : ?api_key=[https://obligr.io/api_v2/] (in QueryString url)
https://obligr.io/api_v2/dlt/config
19 Numeric Digits
Login to your DLT account to check
For Resellers only
19 Numeric Digits
Login to your DLT account to check
curl --location --request POST 'https://obligr.io/api_v2/dlt/config' \
--header 'Authorization: Bearer [API_KEY]' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: [COOKIES]' \
--data-urlencode 'principle_entity_id=1001412110524968835'
'https://obligr.io/api_v2/dlt/config',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => 'principle_entity_id=1001412110524968835',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer [API_KEY]',
'Content-Type: application/x-www-form-urlencoded',
'Cookie: [COOKIES]'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
https://obligr.io/api_v2/dlt/config?api_key=[API_KEY]&principle_entity_id=1001412110524968835
var client = new RestClient("[API_KEY]dlt/config");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer https://obligr.io/api_v2");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddHeader("Cookie", "[COOKIES]");
request.AddParameter("principle_entity_id", "1001412110524968835");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
conn = http.client.HTTPSConnection("obligr.io")
payload = 'principle_entity_id=1001412110524968835'
headers = {
'Authorization': 'Bearer [API_KEY],
'Content-Type': 'application/x-www-form-urlencoded',
'Cookie': '[COOKIES]'
}
conn.request("POST", "/api_v2/dlt/config", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "principle_entity_id=1001412110524968835");
Request request = new Request.Builder()
.url("https://obligr.io/api_v2/dlt/config")
.method("POST", body)
.addHeader("Authorization", "Bearer [API_KEY]")
.addHeader("Content-Type", "application/x-www-form-urlencoded")
.addHeader("Cookie", "[COOKIES]")
.build();
Response response = client.newCall(request).execute();
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
'principle_entity_id': '1001412110524968835'
});
var config = {
method: 'post',
url: 'https://obligr.io/api_v2/dlt/config',
headers: {
'Authorization': 'Bearer [API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded',
'Cookie': '[COOKIES]'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
var settings = {
"url": "https://obligr.io/api_v2/dlt/config",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer [API_KEY]",
"Content-Type": "application/x-www-form-urlencoded",
"Cookie": "[COOKIES]"
},
"data": {
"principle_entity_id": "1001412110524968835"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
{
"success": false,
"error": "DLT Config Successfully Saved.",
"data": null
}
https://obligr.io/api_v2/user/balance
curl -X POST \
https://obligr.io/api_v2/user/balance \
-H 'authorization: Bearer [API_KEY]' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json'
"https://obligr.io/api_v2/user/balance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => array(
"Authorization: Bearer [API_KEY]",
"Cookie: [COOKIES]"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
https://obligr.io/api_v2/user/balance?api_key=[API_KEY]
var client = new RestClient("https://obligr.io/api_v2/user/balance");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [API_KEY]");
request.AddHeader("Cookie", "[COOKIES]");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
import mimetypes
conn = http.client.HTTPSConnection("obligr.io")
payload = ''
headers = {
'Authorization': 'Bearer [API_KEY]");
'Cookie': '[COOKIES]'
}
conn.request("POST", "/api_v2/user/balance", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
.url(" https://obligr.io/api_v2/user/balance")
.method("POST", body)
.addHeader("Authorization", "Bearer [API_KEY]")
.addHeader("Cookie", "[COOKIES]")
.build();
Response response = client.newCall(request).execute();
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
});
var config = {
method: 'post',
url: ' https://obligr.io/api_v2/user/balance',
headers: {
'Authorization': 'Bearer [API_KEY]
'Cookie': '[COOKIES]'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
var settings = {
"url": " https://obligr.io/api_v2/user/balance",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer [API_KEY]",
"Cookie": "[COOKIES]"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});
{
"success": true,
"error": null,
"data": {
"sms_credit": 843813,
"voice_credit": 311727
}
}
https://obligr.io/api_v2/dlt/config
6 DIGIT
15 Characters
2 DIGIT
10 Characters
curl --location --request POST 'https://obligr.io/api_v2/user/billing_address' \
--header 'Authorization: Bearer [API_KEY]' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'username=DEMOABCD' \
--data-urlencode 'company_name=XYZ PVT LTD' \
--data-urlencode 'attn=XYZ' \
--data-urlencode 'address=Floor, 3 North Avenue, Maker Maxity, Bandra Kurla Complex, Bandra East,' \
--data-urlencode 'pincode=400051' \
--data-urlencode 'city=Mumbai' \
--data-urlencode 'state=Maharashtra' \
--data-urlencode 'country=INDIA' \
--data-urlencode 'gst_number=06AACCG0527D1Z8' \
--data-urlencode 'gst_code=06' \
--data-urlencode 'pan_number=AACCG0527D'
"https://obligr.io/api_v2/user/billing_address", CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "username=DEMOABCD&company_name=XYZ%20PVT%20LTD&attn=XYZ&address=Floor,3%20North%20Avenue%20Maker%20Maxity%20Bandra%20Kurla%20Complex%20Bandra%20East,&pincode=400051&city=Mumbai&state=Maharashtra&country=INDIA&gst_number=06AACCG0527D1Z8&gst_code=06&pan_number=AACCG0527D",
CURLOPT_HTTPHEADER => array(
"Authorization: Bearer [API_KEY]",
"Content-Type: application/x-www-form-urlencoded"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var client = new RestClient("https://obligr.io/api_v2/user/billing_address");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [API_KEY]");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddParameter("username", "DEMOABCD");
request.AddParameter("company_name", "XYZ PVT LTD");
request.AddParameter("attn", "XYZ");
request.AddParameter("address", "Floor, 3 North Avenue, Maker Maxity, Bandra Kurla Complex, Bandra East,");
request.AddParameter("pincode", "400051");
request.AddParameter("city", "Mumbai");
request.AddParameter("state", "Maharashtra");
request.AddParameter("country", "INDIA");
request.AddParameter("gst_number", "06AACCG0527D1Z8");
request.AddParameter("gst_code", "06");
request.AddParameter("pan_number", "AACCG0527D");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
import mimetypes
conn = http.client.HTTPSConnection("obligr.io")
payload = 'username=DEMOABCD&company_name=XYZ%20PVT%20LTD&attn=XYZ&address=Floor,3%20North%20Avenue%20Maker%20Maxity%20Bandra%20Kurla%20Complex%20Bandra%20East,&pincode=400051&city=Mumbai&state=Maharashtra&country=INDIA&gst_number=06AACCG0527D1Z8&gst_code=06&pan_number=AACCG0527D'
headers = {
'Authorization': 'Bearer [API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded'
}
conn.request("POST", "/api_v2/user/billing_address", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "username=DEMOABCD&company_name=XYZ PVT LTD&attn=XYZ&address=Floor, 3 North Avenue,Maker Maxity,Bandra Kurla Complex, Bandra East,&pincode=400051&city=Mumbai&state=Maharashtra&country=INDIA&gst_number=06AACCG0527D1Z8&gst_code=06&pan_number=AACCG0527D");
Request request = new Request.Builder()
.url("https://obligr.io/api_v2/user/billing_address")
.method("POST", body)
.addHeader("Authorization", "Bearer [API_KEY]")
.addHeader("Content-Type", "application/x-www-form-urlencoded")
.build();
Response response = client.newCall(request).execute();
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
'username': 'DEMOABCD',
'company name': 'XYZ PVT LTD',
'attn': 'XYZ',
'address': 'Floor, 3 North Avenue,Maker Maxity,Bandra Kurla Complex,Bandra East,',
'pincode': '400051',
'city': 'Mumbai',
'state': 'Maharashtra',
'country': 'INDIA',
'gst_number': '06AACCG0527D1Z8',
'gst_code': '06',
'pan_number': 'AACCG0527D'
});
var config = {
method: 'post',
url: 'https://obligr.io/api_v2/user/billing_address',
headers: {
'Authorization': 'Bearer [API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
var settings = {
"url": "https://obligr.io/api_v2/user/billing_address",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer [API_KEY]",
"Content-Type": "application/x-www-form-urlencoded"
},
"data": {
"username": "DEMOABCD",
"company_name": "XYZ PVT LTD",
"attn": "XYZ",
"address": "Floor, 3 North Avenue, Maker Maxity, Bandra Kurla Complex, Bandra East,",
"pincode": "400051",
"city": "Mumbai",
"state": "Maharashtra",
"country": "INDIA",
"gst_number": "06AACCG0527D1Z8",
"gst_code": "06",
"pan_number": "AACCG0527D"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
{
"success": true,
"error": null,
"data": "Billing Address Successfully Saved."
}
https://obligr.io/api_v2/user/signup
Only characters or number, not space or special characters
10 Digit Only
10 Characters
curl --location --request POST 'https://obligr.io/api_v2/user/signup' \
--header 'Authorization: Bearer [API_KEY]' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: [COOKIES]' \
--data-urlencode 'name=DEMOABCD' \
--data-urlencode 'username=DEMOABCD' \
--data-urlencode 'email=DEMOABCD@GMAIL.COM' \
--data-urlencode 'mobile_no=0000012345'
"https://obligr.io/api_v2/user/signup",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "name=DEMOABCD&username=DEMOABCD&email=DEMOABCD@GMAIL.COM&mobile_no=0000012345",
CURLOPT_HTTPHEADER => array(
"Authorization: Bearer [API_KEY]",
"Content-Type: application/x-www-form-urlencoded",
"Cookie: [COOKIES]"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
https://obligr.io/api_v2/user/signup/?api_key=[API_KEY]&name=DEMOABCD&username=DEMOABCD&email=DEMOABCD@GMAIL.COM&mobile_no=0000012345
var client = new RestClient("https://obligr.io/api_v2/user/signup");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [API_KEY]");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddHeader("Cookie", "[COOKIES]");
request.AddParameter("name", "DEMOABCD");
request.AddParameter("username", "DEMOABCD");
request.AddParameter("email", "DEMOABCD@GMAIL.COM");
request.AddParameter("mobile_no", "0000012345");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
import mimetypes
conn = http.client.HTTPSConnection("obligr.io")
payload = 'name=DEMOABCD&username=DEMOABCD&email=DEMOABCD@GMAIL.COM&mobile_no=0000012345'
headers = {
'Authorization': 'Bearer [API_KEY]
'Content-Type': 'application/x-www-form-urlencoded',
'Cookie': '[COOKIES]'
}
conn.request("POST", "/api_v2/user/signup", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
'name': 'DEMOABCD',
'username': 'DEMOABCD',
'email': 'DEMOABCD@GMAIL.COM',
'mobile_no': '0000012345'
});
var config = {
method: 'post',
url: 'https://obligr.io/api_v2/user/signup',
headers: {
'Authorization': 'Bearer [API_KEY]
'Content-Type': 'application/x-www-form-urlencoded',
'Cookie': '[COOKIES]'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
var settings = {
"url": "https://obligr.io/api_v2/user/signup",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer [API_KEY]",
"Content-Type": "application/x-www-form-urlencoded",
"Cookie": "[COOKIES]
"
},
"data": {
"name": "DEMOABCD",
"username": "DEMOABCD",
"email": "DEMOABCD@GMAIL.COM",
"mobile_no": "0000012345"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});Copied!
{
“success”: true,
“error”: null,
“data”: “User `DEMOABCD` created success. Password sent on email or mobile.”
}
https://obligr.io/api_v2/user/credit
SMS, Voice
Transactional
Promotional
Open_Dnd
Voice_Call
curl --location --request POST 'https://obligr.io/api_v2/user/credit' \
--header 'Authorization: Bearer [API_KEY]' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: [COOKIES]' \
--data-urlencode 'username=DEMOABCD' \
--data-urlencode 'credit_type=sms' \
--data-urlencode 'credit=20' \
--data-urlencode 'service_type=Transactional' \
--data-urlencode 'price_per_credit=0.20'
"https://obligr.io/api_v2/user/credit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "username=DEMOABCD&credit_type=sms&credit=20&service_type=Transactional&price_per_credit=0.20",
CURLOPT_HTTPHEADER => array(
"Authorization: Bearer [API_KEY]",
"Content-Type: application/x-www-form-urlencoded",
"Cookie: [COOKIES]"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
https://obligr.io/api_v2/user/credit?api_key= [API_KEY]&username=DEMOABCD&credit_type=sms&credit=20&service_type=Transactional&price_per_credit=0.20
var client = new RestClient("https://obligr.io/api_v2/user/credit");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [API_KEY]");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddParameter("username ", "DEMOABCD");
request.AddParameter("credit_type", "sms");
request.AddParameter("credit ", "20");
request.AddParameter("service_type", "Transactional");
request.AddParameter("price_per_credit", "0.20");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
import mimetypes
conn = http.client.HTTPSConnection("obligr.io")
payload = 'username%20=DEMOABCD&credit_type=sms&credit%20=20&service_type=Transactional&price_per_credit=0.20'
headers = {
'Authorization': 'Bearer [API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded'
}
conn.request("POST", "/api_v2/user/credit", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "username =DEMOABCD&credit_type=sms&credit =20&service_type=Transactional&price_per_credit=0.20");
Request request = new Request.Builder()
.url("https://obligr.io/api_v2/user/credit")
.method("POST", body)
.addHeader("Authorization", "Bearer [API_KEY]")
.addHeader("Content-Type", "application/x-www-form-urlencoded")
.build();
Response response = client.newCall(request).execute();
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
'username ': 'DEMOABCD',
'credit_type': 'sms',
'credit ': '20',
'service_type': 'Transactional',
'price_per_credit': '0.20'
});
var config = {
method: 'post',
url: 'https://obligr.io/api_v2/user/credit',
headers: {
'Authorization': 'Bearer [API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
var settings = {
"url": "https://obligr.io/api_v2/credit",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer [API_KEY]",
"Content-Type": "application/x-www-form-urlencoded"
},
"data": {
"username ": "DEMOABCD",
"credit_type": "sms",
"credit ": "20",
"service_type": "Transactional",
"price_per_credit": "0.20"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
{
“success”: false,
“error”: “Validation error”,
“data”: {
“username”: [
“Username cannot be blank.”
],
“credit”: [
“Credit cannot be blank.”
]
}
}
https://obligr.io/api_v2/user/profile/
curl --location --request POST 'https://obligr.io/api_v2/user/profile/' \
--header 'Authorization: Bearer [API_KEY]'
'https://obligr.io/api_v2/user/profile/',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer [API_KEY]'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
https://obligr.io/api_v2/user/profile?api_key=[API_KEY]
var client = new RestClient("https://obligr.io/api_v2/user/profile/");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [API_KEY]");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
conn = http.client.HTTPSConnection("obligr.io")
payload = ''
headers = {
'Authorization': 'Bearer [API_KEY]'
}
conn.request("POST", "/api_v2/user/profile/", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
.url("https://obligr.io/api_v2/user/profile/")
.method("POST", body)
.addHeader("Authorization", "Bearer [API_KEY]")
.build();
Response response = client.newCall(request).execute();
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
});
var config = {
method: 'post',
url: 'https://obligr.io/api_v2/user/profile/',
headers: {
'Authorization': 'Bearer [API_KEY]'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
var settings = {
"url": "https://obligr.io/api_v2/user/profile/",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer gondLLx1DsosF[API_KEY]"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});
{
"success": true,
"error": null,
"data": {
"name": "DEMOABCD",
"username": "DEMOABCD",
"url": "abcxyz.com",
"email": "DEMOABCD@GMAIL.COM",
"mobile_no": "0000012345",
"status": "active",
"type": "User",
"route_id": 00,
"pe_id":"100000000000000000",
"telemarketer_id": null,
"details": {
"app_name": "",
"app_copyright_from": 0,
"app_provider_name": "",
"app_provider_url": "",
"reseller_id": xx,
"url_tracking": "true",
"allow_voice_call": "true"
}...
}
https://obligr.io/api_v2/user/list
curl --location --request POST 'https://obligr.io/api_v2/user/list' \
--header 'Authorization: Bearer [API_KEY]' \
--header 'Cookie: [COOKIES]'
"https://obligr.io/api_v2/user/list", CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => array(
"Authorization: Bearer [API_KEY]",
"Cookie: [COOKIES]"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
https://obligr.io/api_v2/user/list/?api_key=[API_KEY]
var client = new RestClient("https://obligr.io/api_v2/user/list");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [API_KEY]");
request.AddHeader("Cookie", "[COOKIES]");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
import mimetypes
conn = http.client.HTTPSConnection("obligr.io")
payload = ''
headers = {
'Authorization': 'Bearer [API_KEY]',
'Cookie': '[COOKIES]'
}
conn.request("POST", "/api_v2/user/list", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
.url("https://obligr.io/api_v2/user/list")
.method("POST", body)
.addHeader("Authorization", "Bearer [API_KEY]")
.addHeader("Cookie", "[COOKIES]")
.build();
Response response = client.newCall(request).execute();
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
});
var config = {
method: 'post',
url: 'https://obligr.io/api_v2/user/list',
headers: {
'Authorization': 'Bearer [API_KEY]',
'Cookie': '[COOKIES]'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
var settings = {
"url": "https://obligr.io/api_v2/user/list",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer [API_KEY]",
"Cookie": "[COOKIES]"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});
{
“success”: true,
“error”: null,
“data”: [ {
“username”: “DEMOABCD”,
“name”: “DEMOABCD”,
“email”: “DEMOABCD@GMAIL.COM”,
“mobile”: “0000012345”,
“status”: “active”,
“type”: “User”,
“sms_credit”: 25,
“voice_credit”: 5
}]}
https://obligr.io/api_v2/user/detail
curl --location --request POST 'https://obligr.io/api_v2/user/detail' \
--header 'Authorization: Bearer [API_KEY]' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: [COOKIES]' \
--data-urlencode 'username=DEMOABCD'
"https://obligr.io/api_v2/user/detail", CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "username=DEMOABCD",
CURLOPT_HTTPHEADER => array(
"Authorization: Bearer [API_KEY]",
"Content-Type: application/x-www-form-urlencoded",
"Cookie: [COOKIES]"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
https://obligr.io/api_v2/user/detail/?api_key=[API_KEY]&username=DEMOABCD
var client = new RestClient("https://obligr.io/api_v2/user/detail");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [API_KEY]");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddHeader("Cookie", "[COOKIES]");
request.AddParameter("username", "DEMOABCD");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
import mimetypes
conn = http.client.HTTPSConnection("obligr.io")
payload = 'username=DEMOABCD'
headers = {
'Authorization': 'Bearer [API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded'
}
conn.request("POST", "/api_v2/user/detail", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "username=DEMOABCD");
Request request = new Request.Builder()
.url("https://obligr.io/api_v2/user/detail")
.method("POST", body)
.addHeader("Authorization", "Bearer [API_KEY]")
.addHeader("Content-Type", "application/x-www-form-urlencoded")
.build();
Response response = client.newCall(request).execute();
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
'username': 'DEMOABCD'
});
var config = {
method: 'post',
url: 'https://obligr.io/api_v2/user/detail',
headers: {
'Authorization': 'Bearer [API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
var settings = {
"url": "https://obligr.io/api_v2/user/detail",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer [API_KEY]",
"Content-Type": "application/x-www-form-urlencoded"
},
"data": {
"username": "DEMOABCD"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
{
“success”: true,
“error”: null,
“data”: {
“username”: “DEMOABCD”,
“name”: “DEMOABCD”,
“email”: “DEMOABCD@GMAIL.COM”,
“mobile”: “0000012345”,
“status”: “active”,
“type”: “User”,
“sms_credit”: 25,
“voice_credit”: 5
}}
https://obligr.io/api_v2/user/login
Enter Password
Digits and Special characters not allowed
Either Mobile or Email ID
curl --location --request POST 'https://obligr.io/api_v2/user/login' \
--header 'Authorization: Bearer [API_KEY]' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: [COOKIES]' \
--data-urlencode 'username=DEMOABCD' \
--data-urlencode 'password=123456' \
--data-urlencode 'mobile_no=8109112303'
'https://obligr.io/api_v2/user/login',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => 'username=DEMOABCD&password=123456&mobile_no=8109112303',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer [API_KEY]',
'Content-Type: application/x-www-form-urlencoded',
'Cookie: [COOKIES]'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
https://obligr.io/api_v2/user/login?api_key=[API_KEY]&username=DEMOABCD&password=123456&mobile_no=8109112303
var client = new RestClient("https://obligr.io/api_v2/user/login");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [API_KEY]");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddHeader("Cookie", "[COOKIES]");
request.AddParameter("username", "DEMOABCD");
request.AddParameter("password", "123456");
request.AddParameter("mobile_no", "8109112303");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
conn = http.client.HTTPSConnection("obligr.io")
payload = 'username=DEMOABCD&password=123456&mobile_no=8109112303'
headers = {
'Authorization': 'Bearer [API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded',
'Cookie': '[COOKIES]'
}
conn.request("POST", "/api_v2/user/login", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "username=DEMOABCD&password=123456&mobile_no=8109112303");
Request request = new Request.Builder()
.url("https://obligr.io/api_v2/user/login")
.method("POST", body)
.addHeader("Authorization", "Bearer [API_KEY]")
.addHeader("Content-Type", "application/x-www-form-urlencoded")
.addHeader("Cookie", "[COOKIES]")
.build();
Response response = client.newCall(request).execute();
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
'username': 'DEMOABCD',
'password': '123456',
'mobile_no': '8109112303'
});
var config = {
method: 'post',
url: 'https://obligr.io/api_v2/user/login',
headers: {
'Authorization': 'Bearer [API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded',
'Cookie': '[COOKIES]'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
var settings = {
"url": "https://obligr.io/api_v2/user/login",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer [API_KEY]",
"Content-Type": "application/x-www-form-urlencoded",
"Cookie": "[COOKIES]"
},
"data": {
"username": "DEMOABCD",
"password": "123456",
"mobile_no": "8109112303"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
{
"success": true,
"error": null,
"data": "1ddbe819eee518"
}
https://obligr.io/api_v2/contact/filter_number
curl --location --request POST 'https://obligr.io/api_v2/contact/filter_number' \
--header 'Authorization: Bearer [API_KEY]' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: [COOKIES]' \
--data-urlencode 'mobile_number=00000008369,910000098756,+910000698745,8225898989,8225898989'
"https://obligr.io/api_v2/contact/filter_number", CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "mobile_number=00000008369%20910000098756%20+910000698745%208225898989%208225898989",
CURLOPT_HTTPHEADER => array(
"Authorization: Bearer [API_KEY]",
"Content-Type: application/x-www-form-urlencoded",
"Cookie: [COOKIES]"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
https://obligr.io/api_v2/contact/filter_number?api_key=[API_KEY]&mobile_number=00000008369,910000098756,+910000698745,8225898989,8225898989
import http.client
import mimetypes
conn = http.client.HTTPSConnection("obligr.io")
payload = 'mobile_number=00000008369%20910000098756%20+910000698745%208225898989%208225898989'
headers = {
'Authorization': 'Bearer [API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded'
}
conn.request("POST", "/api_v2/contact/filter_number", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "mobile_number=00000008369,910000098756,+910000698745,8225898989,8225898989");
Request request = new Request.Builder()
.url("https://obligr.io/api_v2/contact/filter_number")
.method("POST", body)
.addHeader("Authorization", "Bearer [API_KEY]")
.addHeader("Content-Type", "application/x-www-form-urlencoded")
.build();
Response response = client.newCall(request).execute();
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
'mobile_number': '00000008369,910000098756,+910000698745,8225898989,8225898989'
});
var config = {
method: 'post',
url: 'https://obligr.io/api_v2/contact/filter_number',
headers: {
'Authorization': '[API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
var settings = {
"url": "https://obligr.io/api_v2/contact/filter_number",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer [API_KEY]",
"Content-Type": "application/x-www-form-urlencoded"
},
"data": {
"mobile_number": "00000008369,910000098756,+910000698745,8225898989,8225898989"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
{
“success”: true,
“error”: null,
“data”: {
“valid_number”: [
“8225898989”
],
“invalid_number”: [
“00000008369”,“910000098756”,“+910000698745”],
“duplicate_number”: [
“8225898989”
] } }
https://obligr.io/api_v2/contact/group_list
curl --location --request POST 'https://obligr.io/api_v2/contact/group_list' \
--header 'Authorization: Bearer [API_KEY]'
'https://obligr.io/api_v2/contact/group_list',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer [API_KEY]'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
https://obligr.io/api_v2/contact/group_list?api_key=[API_KEY]
var client = new RestClient("https://obligr.io/api_v2/contact/group_list");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [API_KEY]");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
conn = http.client.HTTPSConnection("obligr.io")
payload = ''
headers = {
'Authorization': 'Bearer [API_KEY]'
}
conn.request("POST", "/api_v2/contact/group_list", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
.url("https://obligr.io/api_v2/contact/group_list")
.method("POST", body)
.addHeader("Authorization", "Bearer [API_KEY]")
.build();
Response response = client.newCall(request).execute();
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
});
var config = {
method: 'post',
url: 'https://obligr.io/api_v2/contact/group_list',
headers: {
'Authorization': 'Bearer [API_KEY]'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
var settings = {
"url": "https://obligr.io/api_v2/contact/group_list",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer [API_KEY]"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});
{
"success": true,
"error": null,
"data": [
{
"id": 9546,
"name": "TEST",
"total_contact": 5
},
{
"id": 10273,
"name": "testo",
"total_contact": 53
},
{
"id": 11477,
"name": "Mine",
"total_contact": 1
}
]
}
https://obligr.io/api_v2/contact/group_contact/[GROUP_ID]
curl --location --request POST 'https://obligr.io/api_v2/contact/group_contact/[GROUP_ID]' \
--header 'Authorization: Bearer [API_KEY]'
'https://obligr.io/api_v2/contact/group_contact/[GROUP_ID]',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer [API_KEY]'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
https://obligr.io/api_v2/contact/group_contact/[GROUP_ID]?api_key=[API_KEY]
var client = new RestClient("https://obligr.io/api_v2/contact/group_contact/[GROUP_ID]");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [API_KEY]");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
conn = http.client.HTTPSConnection("obligr.io")
payload = ''
headers = {
'Authorization': 'Bearer [API_KEY]'
}
conn.request("POST", "/api_v2/contact/group_contact/[GROUP_ID]", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
.url("https://obligr.io/api_v2/contact/group_contact/[GROUP_ID]")
.method("POST", body)
.addHeader("Authorization", "Bearer [API_KEY]")
.build();
Response response = client.newCall(request).execute();
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
});
var config = {
method: 'post',
url: 'https://obligr.io/api_v2/contact/group_contact/[GROUP_ID]',
headers: {
'Authorization': 'Bearer [API_KEY]'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
var settings = {
"url": "https://obligr.io/api_v2/contact/group_contact/[GROUP_ID]",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer [API_KEY]"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});
{
"success": true,
"error": null,
"data": [
{
"name": "Ramesh",
"mobile_no": "8109112303",
"email": ""
}
]
}
https://obligr.io/api_v2/contact/add
Enter the Group ID
Tony Stark
+91,0,91 will be auto filtered to 10 Digit
Invalid number will not be added
curl --location --request POST 'https://obligr.io/api_v2/contact/add' \
--header 'Authorization: Bearer [API_KEY]' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'group_id=13845' \
--data-urlencode 'name=Tony Stark' \
--data-urlencode 'mobile_no=8109112303'
'https://obligr.io/api_v2/contact/add',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => 'group_id=13845&name=Tony%20Stark&mobile_no=8109112303',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer [API_KEY]',
'Content-Type: application/x-www-form-urlencoded'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
POST /api_v2/contact/add HTTP/1.1
Host: https://obligr.io/api_v2/
Authorization: Bearer [API_KEY]
Content-Type: application/x-www-form-urlencoded
Content-Length: 53
group_id=13845&name=Tony%20Stark&mobile_no=8109112303
var client = new RestClient("https://obligr.io/api_v2/contact/add");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [API_KEY]");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddParameter("group_id", "13845");
request.AddParameter("name", "Tony Stark");
request.AddParameter("mobile_no", "8109112303");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
conn = http.client.HTTPSConnection("obligr.io")
payload = 'group_id=13845&name=Tony%20Stark&mobile_no=8109112303'
headers = {
'Authorization': 'Bearer [API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded'
}
conn.request("POST", "/api_v2/contact/add", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "group_id=13845&name=Tony Stark&mobile_no=8109112303");
Request request = new Request.Builder()
.url("https://obligr.io/api_v2/contact/add")
.method("POST", body)
.addHeader("Authorization", "[API_KEY]")
.addHeader("Content-Type", "application/x-www-form-urlencoded")
.build();
Response response = client.newCall(request).execute();
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
'group_id': '13845',
'name': 'Tony Stark',
'mobile_no': '8109112303'
});
var config = {
method: 'post',
url: 'https://obligr.io/api_v2/contact/add',
headers: {
'Authorization': 'Bearer [API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
var settings = {
"url": "https://obligr.io/api_v2/contact/add",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer [API_KEY]",
"Content-Type": "application/x-www-form-urlencoded"
},
"data": {
"group_id": "13845",
"name": "Tony Stark",
"mobile_no": "8109112303"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
{
"success": true,
"error": null,
"data": {
"id": 11908770,
"name": "Tony Stark",
"mobile": "8109112303",
"email": null
}
}
https://obligr.io/api_v2/contact/add_bulk_mobile_no
Enter the Group ID
+918225838383, 918225848484,
08225898989,+ 918225838383,
8824401044
+91,0,91 will be auto filtered to 10 Digit
The invalid number will not be added
curl --location --request POST 'https://obligr.io/api_v2/contact/add_bulk_mobile_no' \
--header 'Authorization: Bearer [API_KEY]' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'group_id=[GROUP_ID]' \
--data-urlencode 'mobile_no=8109112303,8109112303,8109112303,8109112303,8109112303'
'https://obligr.io/api_v2/contact/add_bulk_mobile_no',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => 'group_id=[GROUP_ID]&mobile_no=8109112303,8109112303,8109112303,8109112303,8109112303',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer [API_KEY]',
'Content-Type: application/x-www-form-urlencoded'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
POST /api_v2/contact/add_bulk_mobile_no HTTP/1.1
Host: https://obligr.io/api_v2/
Authorization: Bearer [API_KEY]
Content-Type: application/x-www-form-urlencoded
Content-Length: 100
group_id=[GROUP_ID]&mobile_no=8109112303,8109112303,8109112303,8109112303,8109112303
var client = new RestClient("https://obligr.io/api_v2/contact/add_bulk_mobile_no");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [API_KEY]");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddParameter("group_id", "[GROUP_ID]");
request.AddParameter("mobile_no", "8109112303,8109112303,8109112303,8109112303,8109112303");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
conn = http.client.HTTPSConnection("obligr.io")
payload = 'group_id=[GROUP_ID]&mobile_no=8109112303,8109112303,8109112303,8109112303,8109112303'
headers = {
'Authorization': 'Bearer [API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded'
}
conn.request("POST", "/api_v2/contact/add_bulk_mobile_no", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "group_id=[GROUP_ID]&mobile_no=8109112303,8109112303,8109112303,8109112303,8109112303");
Request request = new Request.Builder()
.url("https://obligr.io/api_v2/contact/add_bulk_mobile_no")
.method("POST", body)
.addHeader("Authorization", "Bearer [API_KEY]")
.addHeader("Content-Type", "application/x-www-form-urlencoded")
.build();
Response response = client.newCall(request).execute();
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
'group_id': '[GROUP_ID]',
'mobile_no': '8109112303,8109112303,8109112303,8109112303,8109112303'
});
var config = {
method: 'post',
url: 'https://obligr.io/api_v2/contact/add_bulk_mobile_no',
headers: {
'Authorization': 'Bearer [API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
var settings = {
"url": "https://obligr.io/api_v2/contact/add_bulk_mobile_no",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer [API_KEY]",
"Content-Type": "application/x-www-form-urlencoded"
},
"data": {
"group_id": "[GROUP_ID]",
"mobile_no": "8109112303,8109112303,8109112303,8109112303,8109112303"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
{
"success": true,
"error": null,
"data": "1 Contact saved. in Group :Testing"
}
https://obligr.io/api_v2/contact/delete_bulk_mobile_no
Enter the Group ID
8225838383,8225848484,
8225898989,8824401044
10 Digit Number only
curl --location --request POST 'https://obligr.io/api_v2/contact/delete_bulk_mobile_no' \
--header 'Authorization: Bearer [API_KEY]' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'group_id=[GROUP_ID]' \
--data-urlencode 'mobile_no=8109112303,8109112303,8109112303,8109112303,8109112303,8109112303'
'https://obligr.io/api_v2/contact/delete_bulk_mobile_no',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => 'group_id=[GROUP_ID]&mobile_no=8109112303,8109112303,8109112303,8109112303,8109112303,8109112303',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer [API_KEY]',
'Content-Type: application/x-www-form-urlencoded'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
POST /api_v2/contact/delete_bulk_mobile_no HTTP/1.1
Host: https://obligr.io/api_v2/
Authorization: Bearer [API_KEY]
Content-Type: application/x-www-form-urlencoded
Content-Length: 74
group_id=[GROUP_ID]&mobile_no=8109112303,8109112303,8109112303,8109112303,8109112303,8109112303
var client = new RestClient("https://obligr.io/api_v2/contact/delete_bulk_mobile_no");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [API_KEY]");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddParameter("group_id", "[GROUP_ID]");
request.AddParameter("mobile_no", "8109112303,8109112303,8109112303,8109112303,8109112303,8109112303");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
conn = http.client.HTTPSConnection("obligr.io")
payload = 'group_id=[GROUP_ID]&mobile_no=8109112303,8109112303,8109112303,8109112303,8109112303,8109112303'
headers = {
'Authorization': 'Bearer [API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded'
}
conn.request("POST", "/api_v2/contact/delete_bulk_mobile_no", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "group_id=[GROUP_ID]&mobile_no=8109112303,8109112303,8109112303,8109112303,8109112303,8109112303");
Request request = new Request.Builder()
.url("https://obligr.io/api_v2/contact/delete_bulk_mobile_no")
.method("POST", body)
.addHeader("Authorization", "Bearer [API_KEY]")
.addHeader("Content-Type", "application/x-www-form-urlencoded")
.build();
Response response = client.newCall(request).execute();
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
'group_id': '[GROUP_ID]',
'mobile_no': '8109112303,8109112303,8109112303,8109112303,8109112303,8109112303'
});
var config = {
method: 'post',
url: 'https://obligr.io/api_v2/contact/delete_bulk_mobile_no',
headers: {
'Authorization': 'Bearer [API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
var settings = {
"url": "https://obligr.io/api_v2/contact/delete_bulk_mobile_no",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer [API_KEY]",
"Content-Type": "application/x-www-form-urlencoded"
},
"data": {
"group_id": "[GROUP_ID]",
"mobile_no": "8109112303,8109112303,8109112303,8109112303,8109112303,8109112303"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
{
"success": true,
"error": null,
"data": "4 Contact Deleted. From Group :Testing"
}
https://obligr.io/api_v2/contact/group_update/[GROUP_ID]
curl --location --request POST 'https://obligr.io/api_v2/group_update/[GROUP_ID]' \
--header 'Authorization: Bearer [API_KEY]' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'name=Testing' \
--data-urlencode 'country_code=+91'
'https://obligr.io/api_v2/group_update/[GROUP_ID]',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => 'name=Testing&country_code=%2B91',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer [API_KEY]',
'Content-Type: application/x-www-form-urlencoded'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
POST /api_v2/contact/group_update/[GROUP_ID]HTTP/1.1
Host: https://obligr.io/api_v2/
Authorization: Bearer [API_KEY]
Content-Type: application/x-www-form-urlencoded
Content-Length: 31
name=Testing&country_code=%2B91
var client = new RestClient("https://obligr.io/api_v2/contact/group_update/[GROUP_ID]");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [API_KEY]");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddParameter("name", "Testing");
request.AddParameter("country_code", "+91");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
conn = http.client.HTTPSConnection("obligr.io")
payload = 'name=Testing&country_code=%2B91'
headers = {
'Authorization': 'Bearer [API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded'
}
conn.request("POST", "/api_v2/contact/group_update/[GROUP_ID]", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "name=Testing&country_code=+91");
Request request = new Request.Builder()
.url("https://obligr.io/api_v2/contact/group_update/[GROUP_ID]")
.method("POST", body)
.addHeader("Authorization", "Bearer [API_KEY]")
.addHeader("Content-Type", "application/x-www-form-urlencoded")
.build();
Response response = client.newCall(request).execute();
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
'name': 'Testing',
'country_code': '+91'
});
var config = {
method: 'post',
url: 'https://obligr.io/api_v2/contact/group_update/[GROUP_ID]',
headers: {
'Authorization': 'Bearer [API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
var settings = {
"url": "https://obligr.io/api_v2/contact/group_update/[GROUP_ID]",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer [API_KEY]",
"Content-Type": "application/x-www-form-urlencoded"
},
"data": {
"name": "Testing",
"country_code": "+91"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
{
"success": true,
"error": null,
"data": {
"id": 13845,
"name": "Testing",
"country_code": "+91"
}
}
https://obligr.io/api_v2/contact/group_delete/[GROUP_ID]
curl --location --request POST 'https://obligr.io/api_v2/contact/group_delete/[GROUP_ID]' \
--header 'Authorization: Bearer [API_KEY]'
'https://obligr.io/api_v2/contact/group_delete/[GROUP_ID]',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer [API_KEY]'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
POST /api_v2/contact/group_delete/[GROUP_ID] HTTP/1.1
Host: https://obligr.io/api_v2/
Authorization: Bearer [API_KEY]
var client = new RestClient("https://obligr.io/api_v2/contact/group_delete/[GROUP_ID]");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "[API_KEY]");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
conn = http.client.HTTPSConnection("obligr.io")
payload = ''
headers = {
'Authorization': 'Bearer [API_KEY]'
}
conn.request("POST", "/api_v2/contact/group_delete/[GROUP_ID]", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
.url("https://obligr.io/api_v2/contact/group_delete/[GROUP_ID]")
.method("POST", body)
.addHeader("Authorization", "Bearer [API_KEY]")
.build();
Response response = client.newCall(request).execute();
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
});
var config = {
method: 'post',
url: 'https://obligr.io/api_v2/contact/group_delete/[GROUP_ID]',
headers: {
'Authorization': 'Bearer [API_KEY]'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
var settings = {
"url": "https://obligr.io/api_v2/contact/group_delete/[GROUP_ID]",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer [API_KEY]"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});
{
"success": true,
"error": null,
"data": "Group Successfully Deleted."
}
https://obligr.io/api_v2/contact/group_create
Create Separate Group for Internation Countries
curl --location --request POST 'https://obligr.io/api_v2/contact/group_create' \
--header '[API_KEY] \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'name=Test' \
--data-urlencode 'country_code=+91'
'https://obligr.io/api_v2/contact/group_create',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => 'name=Test&country_code=%2B91',
CURLOPT_HTTPHEADER => array(
'Authorization:[API_KEY]',
'Content-Type: application/x-www-form-urlencoded'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
https://obligr.io/api_v2/contact/group_create?api_key=[API_KEY]&name=Test&country_code=%2B91
var client = new RestClient("https://obligr.io/api_v2/contact/group_create");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "[API_KEY]");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddParameter("name", "Test");
request.AddParameter("country_code", "+91");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
conn = http.client.HTTPSConnection("obligr.io")
payload = 'name=Test&country_code=%2B91'
headers = {
'Authorization': '[API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded'
}
conn.request("POST", "/api_v2/contact/group_create", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "name=Test&country_code=+91");
Request request = new Request.Builder()
.url("https://obligr.io/api_v2/contact/group_create")
.method("POST", body)
.addHeader("Authorization", "[API_KEY]")
.addHeader("Content-Type", "application/x-www-form-urlencoded")
.build();
Response response = client.newCall(request).execute();
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
'name': 'Test',
'country_code': '+91'
});
var config = {
method: 'post',
url: 'https://obligr.io/api_v2/group_create',
headers: {
'Authorization': '[API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
var settings = {
"url": "https://obligr.io/api_v2/contact/group_create",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "[API_KEY]",
"Content-Type": "application/x-www-form-urlencoded"
},
"data": {
"name": "Test",
"country_code": "+91"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
{
"success": true,
"error": null,
"data": {
"id": 13845,
"name": "Test",
"country_code": "+91"
}
}
https://obligr.io/api_v2/message/count
1 or 0
curl --location --request POST ' https://obligr.io/api_v2/message/count' \
--header 'Authorization: Bearer [API_KEY]' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'message=THIS IS A TEST MESSAGE' \
--data-urlencode 'unicode=0'
" https://obligr.io/api_v2/message/count", CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "message=THIS%20IS%20A%20TEST%20MESSAGE&unicode=0",
CURLOPT_HTTPHEADER => array(
"Authorization: Bearer [API_KEY]",
"Content-Type: application/x-www-form-urlencoded"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
https://obligr.io/api_v2/message/count?api_key=[API_KEY]&message=THIS IS A TEST MESSAGE&unicode=0
var client = new RestClient(" https://obligr.io/api_v2/message/count");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "[API_KEY]");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddParameter("message", "THIS IS A TEST MESSAGE");
request.AddParameter("unicode", "0");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
import mimetypes
conn = http.client.HTTPSConnection("obligr.io")
payload = 'message=THIS%20IS%20A%20TEST%20MESSAGE&unicode=0'
headers = {
'Authorization': 'Bearer [API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded'
}
conn.request("POST", "/api_v2/message/count", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "message=THIS IS A TEST MESSAGE&unicode=0");
Request request = new Request.Builder()
.url("https://obligr.io/api_v2/message/count")
.method("POST", body)
.addHeader("Authorization", "Bearer [API_KEY]")
.addHeader("Content-Type", "application/x-www-form-urlencoded")
.build();
Response response = client.newCall(request).execute();
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
'message': 'THIS IS A TEST MESSAGE',
'unicode': '0'
});
var config = {
method: 'post',
url: 'https://obligr.io/api_v2/message/count',
headers: {
'Authorization': '[API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
var settings = {
"url": "https://obligr.io/api_v2/ message/count",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer [API_KEY]",
"Content-Type": "application/x-www-form-urlencoded"
},
"data": {
"message": "THIS IS A TEST MESSAGE",
"unicode": "0"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
{
“success”: true,
“error”: null,
“data”: {
“msg_length”: 22,
“msg_count”: 1,
“unicode”: false
}}
https://obligr.io/api_v2/message/send
19 Digit from DLT account
6 Character Header Name
Which should be approved on Template
{#var#} 30 characters max
Note- Actual Template should be matched
Else message will get rejected on the operator network
No Refund for it
comma separate multiple mobile no
User posting_time for Schedule SMS.
Format : 'Y-m-d H:i:s'
1 or 0 Unicode 1 SMS Count = 70 Characters
Select country if you want to send International SMS(Outside India).
+251 Ethiopia (+251)
+93 Afghanistan (+93)
+880 Bangladesh (+880)
+218 Libya (+218)
+998 Uzbekistan (+998)
+359 Bulgaria (+359)
+94 Sri Lanka (+94)
+256 Uganda (+256)
+679 Fiji (+679)
+31 Netherlands (+31)
+20 Egypt (+20)
+965 Kuwait (+965)
+380 Ukraine (+380)
+81 Japan (+81)
+34 Hungary (+36)
+53 Cuba (+53)
+33 France (+33)
+972 Israel (+972)
+353 Ireland (+353)
+41 Switzerland (+41)
+54 Argentina (+54)
+254 Kenya (+254)
+46 Sweden (+46)
+84 Vietnam (+84)
+974 Qatar (+974)
+354 Iceland (+354)
+55 Brazil (+55)
+961 Lebanon (+961)
+385 Croatia (+385)
+886 Taiwan (+886)
+852 Hong Kong (+852)
+233 Ghana (+233)
+351 Portugal (+351)
+58 Venezuela (+58)
+966 Saudi Arabia (+966)
+82 South Korea (+82)
+98 Iran (+98)
+57 Colombia (+57)
+51 Peru (+51)
+75 Bhutan (+975)
+506 Costa Rica (+506)
+48 Poland (+48)
+853 Macau (+853)
+90 Turkey (+90)
+45 Denmark (+45)
+61 Australia (+61)
+1 Canada (+1)
+27 South Africa (+27)
+66 Thailand (+66)
+964 Iraq (+964)
+1 United States (+1)
+86 China (+86)
+39 Italy (+39)
+49 Germany (+49)
+30 Greece (+30)
+62 Indonesia (+62)
+60 Malaysia (+60)
+960 Maldives (+960)
+230 Mauritius (+230)
+52 Mexico (+52)
+95 Myanmar (+95)
+977 Nepal (+977)
+64 New Zealand (+64)
+234 Nigeria (+234)
+968 Oman (+968)
+63 Philippines (+63)
+7 Russia (+7)
+65 Singapore (+65)
+971 United Arab Emirates (+971)
+44 United Kingdom (+44)
curl --location --request POST 'https://obligr.io/api_v2/message/send' \
--header 'Authorization: Bearer [API_KEY]' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: [COOKIES]' \
--data-urlencode 'dlt_template_id=1207161849448858474' \
--data-urlencode 'sender_id=' \
--data-urlencode 'mobile_no=8109112303' \
--data-urlencode 'message=Dear obligrdemo,
We Wish you a Very Happy Diwali
Regards
obligrdemo' \
--data-urlencode 'unicode=0'
"https://obligr.io/api_v2/message/send", CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "dlt_template_id=1207161849448858474&sender_id=&mobile_no=8109112303&message=Dear%20obligrdemo%2C%0AWe%20Wish%20you%20a%20Very%20Happy%20Diwali%0ARegards%0Aobligrdemo&unicode=0",
CURLOPT_HTTPHEADER => array(
"Authorization: Bearer [API_KEY]",
"Content-Type: application/x-www-form-urlencoded",
"Cookie: [COOKIES]"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
'
https://obligr.io/api_v2/message/send?api_key=[API_KEY]&dlt_template_id=1207161849448858474&sender_id=&mobile_no=8109112303&message=Dear%20obligrdemo%2C%0AWe%20Wish%20you%20a%20Very%20Happy%20Diwali%0ARegards%0Aobligrdemo&unicode=0
var client = new RestClient("https://obligr.io/api_v2/message/send");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [API_KEY]");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddHeader("Cookie", "[COOKIES]");
request.AddParameter("dlt_template_id", "1207161849448858474");
request.AddParameter("sender_id", "");
request.AddParameter("mobile_no", "8109112303");
request.AddParameter("message", "Dear obligrdemo,
We Wish you a Very Happy Diwali
Regards
obligrdemo");
request.AddParameter("unicode", "0");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
dlt_template_id=1207161849448858474&sender_id=&mobile_no=8109112303&message=Dear%20obligrdemo%2C%0AWe%20Wish%20you%20a%20Very%20Happy%20Diwali%0ARegards%0Aobligrdemo&unicode=0
import http.client
import mimetypes
conn = http.client.HTTPSConnection("obligr.io")
payload = 'dlt_template_id=1207161849448858474&sender_id=&mobile_no=8109112303&message=Dear%20obligrdemo%2C%0AWe%20Wish%20you%20a%20Very%20Happy%20Diwali%0ARegards%0Aobligrdemo&unicode=0'
headers = {
'Authorization': 'Bearer [API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded',
'Cookie': '[COOKIES]'
}
conn.request("POST", "/api_v2/message/send", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "dlt_template_id=1207161849448858474&sender_id=&mobile_no=8109112303&message=Dear obligrdemo,
We Wish you a Very Happy Diwali
Regards
obligrdemo&unicode=0");
Request request = new Request.Builder()
.url("https://obligr.io/api_v2/message/send")
.method("POST", body)
.addHeader("Authorization", "Bearer [API_KEY]")
.addHeader("Content-Type", "application/x-www-form-urlencoded")
.addHeader("Cookie", "[COOKIES]")
.build();
Response response = client.newCall(request).execute();
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
'dlt_template_id': '1207161849448858474',
'sender_id': '',
'mobile_no': '8109112303',
'message': 'THIS IS A TEST MESSAGE',
'message': 'Dear obligrdemo,\nWe Wish you a Very Happy Diwali\nRegards\nobligrdemo',
'unicode': '0'
});
var config = {
method: 'post',
url: 'https://obligr.io/api_v2/message/send',
headers: {
'Authorization': '[API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded',
'Cookie': '[COOKIES]'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
var settings = {
"url": "https://obligr.io/api_v2/message/send",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer [API_KEY]",
"Content-Type": "application/x-www-form-urlencoded",
"Cookie": "[COOKIES]"
},
"data": {
"dlt_template_id": "1207161849448858474",
"sender_id": "",
"mobile_no": "8109112303",
"message": "Dear obligrdemo,
We Wish you a Very Happy Diwali
Regards
obligrdemo",
"unicode ": "0"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
{
"success":true
"error":null,"data":
{
"campaign_id":2987413
"total_credit":1
"total_number":1,
"unicode":"0",
"message":"SMS successfully sent"}}