Integration

API Doc's

Sample Codes with Exclusive Documentation

Introduction

API Reference - v2.0

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)

Edit
Edit
curl -X POST \
https://obligr.io/api_v2/user/balance \
-H 'authorization: Bearer [YOUR_API_KEY]' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json'
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
  CURLOPT_URL => "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 [YOUR_API_KEY]",
    "Cookie: [COOKIES]"
  ),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
https://obligr.io/api_v2/user/balance/?api_key=[YOUR_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 [YOUR_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 [YOUR_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 [YOUR_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 [YOUR_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 [YOUR_API_KEY]",
"Cookie": "[COOKIES]"
},
};

$.ajax(settings).done(function (response) {
console.log(response);
});

{
“success”: true,
“error”: null,
“data”: {
“sms_credit”: 33,
“voice_credit”: 85

Edit

BODY PARAMS

Key
Value
Description
username (string)
DEMOABCD
REQUIRED
company_name (string)
OBLIGR INDIA PVT LTD
REQUIRED
attn (string)
OBLIGR
REQUIRED
address (string)
20/3 SAJAN NAGAR
REQUIRED
pincode (number)
452001
REQUIRED - 6 DIGIT
city (string)
INDORE
REQUIRED
state (string)
MADHYA PRADESH
REQUIRED
country (string)
INDIA
REQUIRED
gst_number (string)
23AACC06906C1ZV
REQUIRED - 15 Characters
gst_code (number)
23
REQUIRED - 2 DIGIT
pan_number (string)
AACC06906C
REQUIRED - 10 Characters
curl --location --request POST 'https://obligr.io/api_v2/user/billing_address' \
--header 'Authorization: Bearer [YOUR_API_KEY]' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'username=DEMOABCD' \
--data-urlencode 'company_name=OBLIGR INDIA PVT LTD' \
--data-urlencode 'attn=OBLIGR' \
--data-urlencode 'address=20/3 SAJAN NAGAR' \
--data-urlencode 'pincode=452001' \
--data-urlencode 'city=INDORE' \
--data-urlencode 'state=MADHYA PRADESH' \
--data-urlencode 'country=INDIA' \
--data-urlencode 'gst_number=23AACC06906C1ZV' \
--data-urlencode 'gst_code=23' \
--data-urlencode 'pan_number=AACC06906C'

 

<?php
$curl = curl_init(); 
curl_setopt_array($curl, array( CURLOPT_URL => "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=OBLIGR%20INDIA%20PVT%20LTD&attn=OBLIGR&address=20/3%20SAJAN%20NAGAR&pincode=452001&city=INDORE&state=MADHYA%20PRADESH&country=INDIA&gst_number=23AACC06906C1ZV&gst_code=23&pan_number=AACC06906C", CURLOPT_HTTPHEADER => array( "Authorization: Bearer [YOUR_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 [YOUR_API_KEY]");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddParameter("username", "DEMOABCD");
request.AddParameter("company_name", "OBLIGR INDIA PVT LTD");
request.AddParameter("attn", "OBLIGR");
request.AddParameter("address", "20/3 SAJAN NAGAR");
request.AddParameter("pincode", "452001");
request.AddParameter("city", "INDORE");
request.AddParameter("state", "MADHYA PRADESH");
request.AddParameter("country", "INDIA");
request.AddParameter("gst_number", "23AACC06906C1ZV");
request.AddParameter("gst_code", "23");
request.AddParameter("pan_number", "AACC06906C");
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=OBLIGR%20INDIA%20PVT%20LTD&attn=OBLIGR&address=20/3%20SAJAN%20NAGAR&pincode=452001&city=INDORE&state=MADHYA%20PRADESH&country=INDIA&gst_number=23AACC06906C1ZV&gst_code=23&pan_number=AACC06906C'
headers = {
'Authorization': 'Bearer [YOUR_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=OBLIGR INDIA PVT LTD&attn=OBLIGR&address=20/3 SAJAN NAGAR&pincode=452001&city=INDORE&state=MADHYA PRADESH&country=INDIA&gst_number=23AACC06906C1ZV&gst_code=23&pan_number=AACC06906C");
Request request = new Request.Builder()
.url("https://obligr.io/api_v2/user/billing_address")
.method("POST", body)
.addHeader("Authorization", "Bearer [YOUR_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': 'OBLIGR INDIA PVT LTD',
'attn': 'OBLIGR',
'address': '20/3 SAJAN NAGAR',
'pincode': '452001',
'city': 'INDORE',
'state': 'MADHYA PRADESH',
'country': 'INDIA',
'gst_number': '23AACC06906C1ZV',
'gst_code': '23',
'pan_number': 'AACC06906C'
});
var config = {
method: 'post',
url: 'https://obligr.io/api_v2/user/billing_address',
headers: {
'Authorization': 'Bearer [YOUR_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 [YOUR_API_KEY]",
"Content-Type": "application/x-www-form-urlencoded"
},
"data": {
"username": "DEMOABCD",
"company_name": "OBLIGR INDIA PVT LTD",
"attn": "OBLIGR",
"address": "20/3 SAJAN NAGAR",
"pincode": "452001",
"city": "INDORE",
"state": "MADHYA PRADESH",
"country": "INDIA",
"gst_number": "23AACC06906C1ZV",
"gst_code": "23",
"pan_number": "AACC06906C"
}
};

$.ajax(settings).done(function (response) {
console.log(response);
});

{
“success”: true,
“error”: null,
“data”: “Billing Address Successfully Saved.”

Edit

BODY PARAMS

Key
Value
Description
name (string)
DEMOABCD
REQUIRED
username (string) Only characters or number, not space or special characters
DEMOABCD
REQUIRED
email (string)
REQUIRED
mobile_no (number) 10 Digit only
0000012345
REQUIRED
curl --location --request POST 'https://obligr.io/api_v2/user/signup' \
--header 'Authorization: Bearer [YOUR_API_KEY]' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: [COOKIES]' \
--data-urlencode 'name=DEMOABCD' \
--data-urlencode 'username=DEMOABCD' \
--data-urlencode '[email protected]' \
--data-urlencode 'mobile_no=0000012345'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "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 protected]&mobile_no=0000012345",
CURLOPT_HTTPHEADER => array(
"Authorization: Bearer [YOUR_API_KEY]",
"Content-Type: application/x-www-form-urlencoded",
"Cookie: [COOKIES]"
),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
https://demo.obligr.com/api_v2/user/signup/?api_key=[YOUR_API_KEY]&name=DEMOABCD&username=DEMOABCD&[email protected]&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 [YOUR_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", "[email protected]");
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 protected]&mobile_no=0000012345'
headers = {
'Authorization': 'Bearer [YOUR_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"))
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "name=DEMOABCD&username=DEMOABCD&[email protected]&mobile_no=0000012345");
Request request = new Request.Builder()
.url("https://obligr.io/api_v2/user/signup")
.method("POST", body)
.addHeader("Authorization", "[YOUR_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({
'name': 'DEMOABCD',
'username': 'DEMOABCD',
'email': '[email protected]',
'mobile_no': '0000012345'
});
var config = {
method: 'post',
url: 'https://obligr.io/api_v2/user/signup',
headers: {
'Authorization': 'Bearer [YOUR_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 [YOUR_API_KEY]",
"Content-Type": "application/x-www-form-urlencoded",
"Cookie": "[COOKIES]
"
},
"data": {
"name": "DEMOABCD",
"username": "DEMOABCD",
"email": "[email protected]",
"mobile_no": "0000012345"
}
};

$.ajax(settings).done(function (response) {
console.log(response);
});

{
“success”: true,
“error”: null,
“data”: “User `DEMOABCD` created success. Password sent on email or mobile.”

Edit

BODY PARAMS

Key
Value
Description
username (string)
DEMOABCD
REQUIRED
credit_type (string)
sms
REQUIRED sms , voice
credit (number)
20
REQUIRED
service_type (string)
Transactional
REQUIRED Transactional,Promotional,open_dnd,voice_call
price_per_credit (number)
0.20
REQUIRED
 curl --location --request POST 'https://obligr.io/api_v2/user/credit' \
--header 'Authorization: Bearer [YOUR_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' 
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "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 [YOUR_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=[YOUR_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 [YOUR_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 [YOUR_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 [YOUR_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 [YOUR_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/credit",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer [YOUR_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.”
]

}

Edit
curl --location --request POST 'https://obligr.io/api_v2/user/list' \
--header 'Authorization: Bearer [YOUR_API_KEY]' \
--header 'Cookie: [COOKIES]'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "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 [YOUR_API_KEY]", "Cookie: [COOKIES]" ), )); $response = curl_exec($curl); curl_close($curl); echo $response;
https://obligr.io/api_v2/user/list/?api_key=[YOUR_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 [YOUR_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 [YOUR_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 [YOUR_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 [YOUR_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 [YOUR_API_KEY]",
    "Cookie": "[COOKIES]"
  },
};

$.ajax(settings).done(function (response) {
  console.log(response);
});

{
“success”: true,
“error”: null,
“data”: [ {
“username”: “DEMOABCD”,
“name”: “DEMOABCD”,
“email”: “[email protected]”,
“mobile”: “0000012345”,
“status”: “active”,
“type”: “User”,
“sms_credit”: 25,
“voice_credit”: 5
}]} 

 

Edit

BODY PARAMS

Key
Value
Description
username (string)
DEMOABCD
REQUIRED
curl --location --request POST 'https://obligr.io/api_v2/user/detail' \
--header 'Authorization: Bearer [YOUR_API_KEY]' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: [COOKIES]' \
--data-urlencode 'username=DEMOABCD'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "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 [YOUR_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=[YOUR_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 [YOUR_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 [YOUR_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 [YOUR_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 [YOUR_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 [YOUR_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”: “[email protected]”,
“mobile”: “0000012345”,
“status”: “active”,
“type”: “User”,
“sms_credit”: 25,
“voice_credit”: 5
}} 

Edit

BODY PARAMS

Key
Value
Description
mobile_number (string)(string)
08225838383,918225848484,+918225838383
REQUIRED
curl --location --request POST 'https://obligr.io/api_v2/contact/filter_number' \
--header 'Authorization: Bearer [YOUR_API_KEY]' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: [COOKIES]' \
--data-urlencode 'mobile_number=08225838383,918225848484,+918225838383'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "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=08225838383%2C918225848484%2C+918225838383", CURLOPT_HTTPHEADER => array( "Authorization: Bearer [YOUR_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=[YOUR_API_KEY]&mobile_number=08225838383,918225848484,+918225838383
import http.client
import mimetypes
conn = http.client.HTTPSConnection("obligr.io")
payload = 'mobile_number=08225838383%2C918225848484%2C+918225838383'
headers = {
  'Authorization': 'Bearer [YOUR_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=08225838383,918225848484,+918225838383");
Request request = new Request.Builder()
  .url("https://obligr.io/api_v2/contact/filter_number")
  .method("POST", body)
  .addHeader("Authorization", "Bearer [YOUR_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': '08225838383,918225848484,+918225838383' 
});
var config = {
  method: 'post',
  url: 'https://obligr.io/api_v2/contact/filter_number',
  headers: { 
    'Authorization': '[YOUR_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 [YOUR_API_KEY]",
    "Content-Type": "application/x-www-form-urlencoded"
  },
  "data": {
    "mobile_number": "08225838383,918225848484,+918225838383"
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});

{
“success”: true,
“error”: null,
“data”: {
“valid_number”: [
“8225838383”,
“8225848484”
],
“invalid_number”: [],
“duplicate_number”: [
“8225838383”
] } } 

Edit
Edit

BODY PARAMS

Key
Value
Description
message (string)
THIS IS A TEST MESSAGE
REQUIRED
unicode (boolean)
0
1 or 0
curl --location --request POST 'https://obligr.io/api_v2/message/count' \
--header 'Authorization: Bearer [YOUR_API_KEY]' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'message=THIS IS A TEST MESSAGE' \
--data-urlencode 'unicode=0'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "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 [YOUR_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=[YOUR_API_KEY]&message=YOUR_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", "[YOUR_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 [YOUR_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 [YOUR_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': '[YOUR_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 [YOUR_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
}}

Edit

BODY PARAMS

Key
Value
Description
sender_id
OBLIGR
REQUIRED - 6 Character.
message (string)
THIS IS A TEST MESSAGE
REQUIRED
mobile_no (string)
8225838383
REQUIRED -comma separate multiple mobile no
schedule_date_time (datetime)
2020-05-20 13:44:43
User posting_time for Schedule SMS. Format : 'Y-m-d H:i:s'
unicode (boolean)
0
1 or 0 Unicode 1 SMS Count = 70 Characters
curl --location --request POST 'https://obligr.io/api_v2/message/send' \
--header 'Authorization: Bearer [YOUR_API_KEY]' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: [COOKIES]' \
--data-urlencode 'sender_id=OBLIGR' \
--data-urlencode 'message=THIS IS A TEST MESSAGE' \
--data-urlencode 'mobile_no=8225838383' \
--data-urlencode 'unicode=0
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "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 => "sender_id=OBLIGR&message=THIS%20IS%20A%20TEST%20MESSAGE&mobile_no=8225838383&unicode=0", CURLOPT_HTTPHEADER => array( "Authorization: Bearer [YOUR_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=[YOUR_API_KEY]&sender_id=OBLIGR&message=THIS IS A TEST MESSAGE&mobile_no=8225838383&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  [YOUR_API_KEY]");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddHeader("Cookie", "[COOKIES]");
request.AddParameter("sender_id", "OBLIGR");
request.AddParameter("message", "THIS IS A TEST MESSAGE");
request.AddParameter("mobile_no", "8225838383");
request.AddParameter("unicode", "0");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
import mimetypes
conn = http.client.HTTPSConnection("[YOUR_API_KEY]")
payload = 'sender_id=OBLIGR&message=THIS%20IS%20A%20TEST%20MESSAGE&mobile_no=8225838383&unicode%20=0'
headers = {
  'Authorization': 'Bearer [YOUR_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, "sender_id=OBLIGR&message=THIS IS A TEST MESSAGE&mobile_no=8225838383&unicode =0");
Request request = new Request.Builder()
  .url("https://obligr.io/api_v2/message/send")
  .method("POST", body)
  .addHeader("Authorization", "Bearer U[YOUR_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({
 'sender_id': 'OBLIGR',
'message': 'THIS IS A TEST MESSAGE',
'mobile_no': '8225838383',
'unicode ': '0' 
});
var config = {
  method: 'post',
  url: 'https://obligr.io/api_v2/message/send',
  headers: { 
    'Authorization': '[YOUR_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 obligr.io",
    "Content-Type": "application/x-www-form-urlencoded",
    "Cookie": "[COOKIES]"
  },
  "data": {
    "sender_id": "OBLIGR",
    "message": "THIS IS A TEST MESSAGE",
    "mobile_no": "8225838383",
    "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” }}
Edit

BODY PARAMS

Key
Value
Description
date_from (string)
2020-07-29 00:00:00
REQUIRED Y-m-d h:i:s Format
date_to
2020-07-29 23:59:59
REQUIRED Y-m-d h:i:s Format
sender_id (string)
OBLIGR
message (string)
THIS IS A TEST MESSAGE
job_id (number)
2984201
Note : if search by "job_id" then no need to enter date_from or date_to.
curl --location --request POST 'https://obligr.io/api_v2/message/report' \
--header 'Authorization: Bearer [YOUR_API_KEY]' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: [COOKIES]' \
--data-urlencode 'job_id=2984201'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/message/report",
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 => "job_id=2984201", CURLOPT_HTTPHEADER => array( "Authorization: Bearer [YOUR_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/report?api_key=[YOUR_API_KEY]&date_from=2020-07-29 00:00:00&date_to=2020-07-29 23:59:59&sender_id=OBLIGR&message=THIS IS A TEST MESSAGE&job_id=2984201
"campaign_id": 2984201,
var client = new RestClient("https://obligr.io/api_v2/message/report");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [YOUR_API_KEY]");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddHeader("Cookie", "[COOKIES]");
request.AddParameter("job_id", "2984201");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
import mimetypes
conn = http.client.HTTPSConnection("obligr.io")
payload = 'date_from=2020-07-29%2000%3A00%3A00&date_to=2020-07-29%2023%3A59%3A59&sender_id=OBLIGR&message=THIS%20IS%20A%20TEST%20MESSAGE&job_id=2984201'
headers = {
  'Authorization': 'Bearer [YOUR_API_KEY]',
  'Content-Type': 'application/x-www-form-urlencoded',
  'Cookie': '[COOKIES]'
}
conn.request("POST", "/api_v2/message/report", 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, "date_from=2020-07-29 00:00:00&date_to=2020-07-29 23:59:59&sender_id=OBLIGR&message=THIS IS A TEST MESSAGE&job_id=2984201");
Request request = new Request.Builder()
.url("https://obligr.io/api_v2/message/report")
.method("POST", body)
.addHeader("Authorization", "Bearer [YOUR_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({
 'date_from': '2020-07-29 00:00:00',
'date_to': '2020-07-29 23:59:59',
'sender_id': 'OBLIGR',
'message': 'THIS IS A TEST MESSAGE',
'job_id': '2984201' 
});
var config = {
  method: 'post',
  url: 'https://obligr.io/api_v2/message/report',
  headers: { 
    'Authorization': 'Bearer [YOUR_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/report",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer [YOUR_API_KEY]",
"Content-Type": "application/x-www-form-urlencoded",
"Cookie": "[COOKIES]"
},
"data": {
"date_from": "2020-07-29 00:00:00",
"date_to": "2020-07-29 23:59:59",
"sender_id": "OBLIGR",
"message": "THIS IS A TEST MESSAGE",
"job_id": "2984201"
}
};

$.ajax(settings).done(function (response) {
console.log(response);
});

{
“success”: true,
“error”: null,
“data”: [
{
“job_id”: 2984201,
“sender_id”: “OBLIGR”,
“total_number”: 1,
“total_messages”: 1,
“message”: “THIS IS A TEST MESSAGE”,
“date_submitted”: “2020-07-29 18:30:05”,
“unicode”: “”,
“status”: “Completed”,
“send_by”: “api”,
“parent_job_id”: null,
“re_schedule_time”: 0,
“re_schedule_status”: null
}]} 

Edit

BODY PARAMS

curl --location --request POST 'https://obligr.io/api_v2/message/report_details/2984201' \
--header 'Authorization: Bearer [YOUR_API_KEY]' \
--header 'Cookie: [COOKIES]'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/message/report_details/2984201",
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 [YOUR_API_KEY]", "Cookie: [COOKIES] " ), )); $response = curl_exec($curl); curl_close($curl); echo $response;
https://obligr.io/api_v2/message/report_details/[JOB_ID]?api_key=[YOUR_API_KEY]

var client = new RestClient(“https://obligr.io/api_v2/message/report_details/2984201”);
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader(“Authorization”, “Bearer [YOUR_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 [YOUR_API_KEY]',
  'Cookie': '[COOKIES]'
}
conn.request("POST", "/api_v2/message/report_details/2984201", 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/message/report_details/2984201")
  .method("POST", body)
  .addHeader("Authorization", "Bearer [YOUR_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/message/report_details/2984201',
  headers: { 
    'Authorization': 'Bearer [YOUR_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/message/report_details/2984201",
  "method": "POST",
  "timeout": 0,
  "headers": {
    "Authorization": "Bearer [YOUR_API_KEY]",
    "Cookie": "[COOKIES]"
  },
};

$.ajax(settings).done(function (response) {
  console.log(response);
});

{
    “success”: true,
    “error”: null,
    “data”: [
        {
            “mobile_no”: “8225838383”,
            “status”: “DELIVRD”,
            “message_id”: “005388383100162019500647619025731”
        }]} 

Edit

BODY PARAMS

curl -X POST \
https://obligr.io/api_v2/message/sender_id \
-H 'authorization: Bearer [YOUR_API_KEY]' \
-H 'cache-control: no-cache' \
-H 'content-type: application/x-www-form-urlencoded' \
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/message/sender_id",<br ?--> 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 [YOUR_API_KEY]",
"Cookie: [COOKIES]"
),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
https://demo.obligr.com/api_v2/message/sender_id?api_key=UU-V5BS9_UWd3wRdWdEpTw4av5TR29SOYabzxpsb9RcHPX1P_-XXcvp6qifTnTzA
var client = new RestClient("https://obligr.io/api_v2/message/sender_id");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [YOUR_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 [YOUR_API_KEY]',
  'Cookie': '[COOKIES]'
}
conn.request("POST", "/api_v2/message/sender_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/message/sender_id")
  .method("POST", body)
  .addHeader("Authorization", "Bearer [YOUR_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/message/sender_id',
  headers: { 
    'Authorization': 'Bearer [YOUR_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/message/sender_id",
  "method": "POST",
  "timeout": 0,
  "headers": {
    "Authorization": "Bearer [YOUR_API_KEY]",
    "Cookie": "[COOKIES]"
  },
};

$.ajax(settings).done(function (response) {
  console.log(response);
});

{
“success”: true,
“error”: null,
“data”: [
{
“name”: “DEMOOO”,
“status”: “Active”,
“is_default”: 0,
“date_created”: “2020-07-30 18:51:56”
}]} 

Edit

BODY PARAMS

Key
Value
Description
sender_id (string)
DEMOOO (string)
REQUIRED - 6 Character.
message (string)
THIS IS A TEST MESSAGE IT SHOULD BE ABOVE 160 CHARACTER PLEASE TYPE 160 CHARACTER FOR APPROVE THIS SENDER ID
REQUIRED sample message
curl -X POST \
https://obligr.io/api_v2/message/add_sender_id \
-H 'authorization: Bearer [YOUR_API_KEY]' \
-H 'cache-control: no-cache' \
-H 'content-type: application/x-www-form-urlencoded' \
-d 'sender_id=BLKSMS&message=YOUR_MESSAGE'
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
  CURLOPT_URL => "https://obligr.io/api_v2/message/add_sender_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 => "sender_id=DEMOOO&message=THIS%20IS%20A%20TEST%20MESSAGE%20IT%20SHOULD%20BE%20ABOVE%20160%20CHARACTER%20PLEASE%20TYPE%20160%20CHARACTER%20FOR%20APPROVE%20THIS%20SENDER%20ID",
  CURLOPT_HTTPHEADER => array(
    "Authorization: Bearer [YOUR_API_KEY]",
    "Content-Type: application/x-www-form-urlencoded",
    "Cookie: [COOKIES]"
  ),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var client = new RestClient("https://obligr.io/api_v2/message/add_sender_id");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [YOUR_API_KEY]");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddHeader("Cookie", "[COOKIES]");
request.AddParameter("sender_id", "DEMOOO");
request.AddParameter("message", "THIS IS A TEST MESSAGE IT SHOULD BE ABOVE 160 CHARACTER PLEASE TYPE 160 CHARACTER FOR APPROVE THIS SENDER ID");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
import mimetypes
conn = http.client.HTTPSConnection("obligr.io")
payload = 'sender_id=DEMOOO&message=THIS%20IS%20A%20TEST%20MESSAGE%20IT%20SHOULD%20BE%20ABOVE%20160%20CHARACTER%20PLEASE%20TYPE%20160%20CHARACTER%20FOR%20APPROVE%20THIS%20SENDER%20ID'
headers = {
  'Authorization': 'Bearer [YOUR_API_KEY]',
  'Content-Type': 'application/x-www-form-urlencoded',
  'Cookie': '[COOKIES]'
}
conn.request("POST", "/api_v2/message/add_sender_id", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
OkHttpClientclient = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "sender_id=DEMOOO&message=THIS IS A TEST MESSAGE IT SHOULD BE ABOVE 160 CHARACTER PLEASE TYPE 160 CHARACTER FOR APPROVE THIS SENDER ID");
Request request = new Request.Builder()
  .url("https://obligr.io/api_v2/message/add_sender_id")
  .method("POST", body)
  .addHeader("Authorization", "Bearer [YOUR_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({
'sender_id': 'DEMOOO',
'message': 'THIS IS A TEST MESSAGE IT SHOULD BE ABOVE 160 CHARACTER PLEASE TYPE 160 CHARACTER FOR APPROVE THIS SENDER ID'
});
var config = {
method: 'post',
url: 'https://obligr.io/api_v2/message/add_sender_id',
headers: {
'Authorization': 'Bearer [YOUR_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/add_sender_id",
  "method": "POST",
  "timeout": 0,
  "headers": {
    "Authorization": "Bearer [YOUR_API_KEY]",
    "Content-Type": "application/x-www-form-urlencoded",
    "Cookie": "[COOKIES]"
  },
  "data": {
    "sender_id": "DEMOOO",
    "message": "THIS IS A TEST MESSAGE IT SHOULD BE ABOVE 160 CHARACTER PLEASE TYPE 160 CHARACTER FOR APPROVE THIS SENDER ID"
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
{ “success”: true, “error”: null, “data”: { “sender_id”: “DEMOOO”, “status”: “pending” } }
Edit

BODY PARAMS

curl -X POST \
https://obligr.io/api_v2/message/delete_sender_id/{sender_id} \
-H 'authorization: Bearer [YOUR_API_KEY]' \
-H 'cache-control: no-cache' \
-H 'content-type: application/x-www-form-urlencoded' \
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/message/delete_sender_id/DEMOOO",<br ?--> 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 [YOUR_API_KEY]",
"Cookie: [COOKIES]"
),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
var client = new RestClient("https://obligr.io/api_v2/message/delete_sender_id/DEMOOO");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [YOUR_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 [YOUR_API_KEY]',
'Cookie': '[COOKIES]'
}
conn.request("POST", "/api_v2/message/delete_sender_id/DEMOOO", 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/message/delete_sender_id/DEMOOO")
  .method("POST", body)
  .addHeader("Authorization", "Bearer [YOUR_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/message/delete_sender_id/DEMOOO',
  headers: { 
    'Authorization': 'Bearer [YOUR_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://demo.obligr.com/api_v2/message/delete_sender_id/DEMOOO",
  "method": "POST",
  "timeout": 0,
  "headers": {
    "Authorization": "Bearer [YOUR_API_KEY]",
    "Cookie": "[COOKIES]"
  },
};

$.ajax(settings).done(function (response) {
  console.log(response);
});

{
“success”: true,
“error”: null,
“data”: “Sender ID DEMOOO Successfully Deleted.”
}

Edit
Edit

Two Factor Authentication process - it should be a single service with different option

BODY PARAMS

Key
Value
Description
caller_id (number)
8225838383
REQUIRED 10 Digit mobile number.
voice_source (string)
voice_file
Optional voice_file or voice_text
voice_file (string)
REQUIRED IF use voice_source is voice_file file name or file_url only .wav,.mp3 file
voice_text (string)
REQUIRED IF use voice_source is voice_text
voice_pitch_rate (string)
medium
Optional slow,medium,fast

voice_name

REQUIRED IF use type is voice_call/both

Voice Name

Language - Gender

Salli

en-US - Female

Joey

en-US - Male

Aditi

hi-IN - Female - 1

Raveena

hi-IN - Hindi Text Accepted

mobile_no
8225838383
REQUIRED comma separate multiple mobile no
posting_time (datetime)
2020-05-22 15:40:22
User posting_time for Schedule Voice Call. Format : 'Y-m-d H:i:s'
is_conversation (integer)
(integer) 1 OR 0
Track call response after call press by user.
re_schedule_time (integer)
Default 0
Number of time auto Reschedule
re_schedule_status (string)
Answered,NoAnswer,Failed,Busy,RING_TIMEOUT,Rejected,Completed
voice_interval (integer)
Reschedule Time Interval (In Minutes).
country_code (string)
(string) eg.IN (default)
Select country if you want to sent International Call(Outside India).
+267 - Botswana (+267)
+86 - China (+86)
+49 - Germany (Germany) (+49)
+30 - Greece (Greece) (+30)
+62 - Indonesia (Indonesia) (+62)
+964 - Iraq (+964)
+39 - Italy (+39)
+60 - Malaysia (Malaysia) (+60)
+960 - Maldives (Maldives) (+960)
+230 - Mauritius (Mauritius) (+230)
+52 - Mexico (Mexico) (+52)
+95 - Myanmar (Myanmar) (+95)
+977 - Nepal (Nepal) (+977)
+64 - New Zealand (New Zealand) (+64)
+234 - Nigeria (Nigeria) (+234)
+968 - Oman (Oman (+968)
+63 - Philippines (Philippines) (+63)
+7 - Russian Federation (Russian Federation) (+7)
+65 - Singapore (Singapore) (+65)
+66 - Thailand (+66)
+971 - United Arab Emirates (United Arab Emirates) (+971)
+44 - United Kingdom (United Kingdom) (+44)
+1 - United States (+1)
curl --location --request POST 'https://obligr.io/api_v2/voice-call/campaign' \
--header 'Authorization: Bearer [YOUR_API_KEY]' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: [COOKIES]' \
--data-urlencode 'caller_id=8225838383' \
--data-urlencode 'voice_source=voice_file' \
--data-urlencode 'voice_file=https://dl.prokerala.com/downloads/ringtones/files/mp3/tiktokpopularjokerringtone2019laylairemixfullbassdjbestjokerringtonefamousb-50918.mp3' \
--data-urlencode 'mobile_no=8225838383' \
--data-urlencode 're_schedule_status=NoAnswer,Failed,Busy,RING_TIMEOUT,Rejected,Completed' \
--data-urlencode 'voice_interval=5'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/voice-call/campaign",
CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "caller_id=888888XXXX&voice_file=2018032510455421853753553.wav&mobile=987654XXXX", CURLOPT_HTTPHEADER => array( "authorization: Bearer [YOUR_API_KEY]", "cache-control: no-cache", "content-type: application/x-www-form-urlencoded" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
https://obligr.io/api_v2/voice-call/campaign?api_key=UU-V5BS9_UWd3wRdWdEpTw4av5TR29SOYabzxpsb9RcHPX1P_-XXcvp6qifTnTzA&caller_id=8225838383&voice_source=voice_file&voice_file=https://dl.prokerala.com/downloads/ringtones/files/mp3/tiktokpopularjokerringtone2019laylairemixfullbassdjbestjokerringtonefamousb-50918.mp3&mobile_no=8225838383&re_schedule_status=NoAnswer,Failed,Busy,RING_TIMEOUT,Rejected,Completed&voice_interval=5
var client = new RestClient("https://obligr.io/api_v2/voice-call/campaign");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [YOUR_API_KEY]");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddHeader("Cookie", "[COOKIES]");
request.AddParameter("caller_id", "8225838383");
request.AddParameter("voice_source", "voice_file");
request.AddParameter("voice_file", "https://dl.prokerala.com/downloads/ringtones/files/mp3/tiktokpopularjokerringtone2019laylairemixfullbassdjbestjokerringtonefamousb-50918.mp3");
request.AddParameter("mobile_no", "8225838383");
request.AddParameter("re_schedule_status", "NoAnswer,Failed,Busy,RING_TIMEOUT,Rejected,Completed");
request.AddParameter("voice_interval", "5");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
import mimetypes
conn = http.client.HTTPSConnection("obligr.io")
payload = 'caller_id=8225838383&voice_source=voice_file&voice_file=https%3A//dl.prokerala.com/downloads/ringtones/files/mp3/tiktokpopularjokerringtone2019laylairemixfullbassdjbestjokerringtonefamousb-50918.mp3&mobile_no=8225838383&re_schedule_status=NoAnswer%2CFailed%2CBusy%2CRING_TIMEOUT%2CRejected%2CCompleted&voice_interval=5'
headers = {
  'Authorization': 'Bearer [YOUR_API_KEY]',
  'Content-Type': 'application/x-www-form-urlencoded',
  'Cookie': '[COOKIES]'
}
conn.request("POST", "/api_v2/voice-call/campaign", 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, "caller_id=8225838383&voice_source=voice_file&voice_file=https://dl.prokerala.com/downloads/ringtones/files/mp3/tiktokpopularjokerringtone2019laylairemixfullbassdjbestjokerringtonefamousb-50918.mp3&mobile_no=8225838383&re_schedule_status=NoAnswer,Failed,Busy,RING_TIMEOUT,Rejected,Completed&voice_interval=5");
Request request = new Request.Builder()
  .url("https://obligr.io/api_v2/voice-call/campaign")
  .method("POST", body)
  .addHeader("Authorization", "Bearer [YOUR_API_KEY]A")
  .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({
 'caller_id': '8225838383',
'voice_source': 'voice_file',
'voice_file': 'https://dl.prokerala.com/downloads/ringtones/files/mp3/tiktokpopularjokerringtone2019laylairemixfullbassdjbestjokerringtonefamousb-50918.mp3',
'mobile_no': '8225838383',
're_schedule_status': 'NoAnswer,Failed,Busy,RING_TIMEOUT,Rejected,Completed',
'voice_interval': '5' 
});
var config = {
  method: 'post',
  url: 'https://obligr.io/api_v2/voice-call/campaign',
  headers: { 
    'Authorization': '[YOUR_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/voice-call/campaign",
  "method": "POST",
  "timeout": 0,
  "headers": {
    "Authorization": "Bearer [YOUR_API_KEY]",
    "Content-Type": "application/x-www-form-urlencoded",
    "Cookie": "[COOKIES]"
  },
  "data": {
    "caller_id": "8225838383",
    "voice_source": "voice_file",
    "voice_file": "https://dl.prokerala.com/downloads/ringtones/files/mp3/tiktokpopularjokerringtone2019laylairemixfullbassdjbestjokerringtonefamousb-50918.mp3",
    "mobile_no": "8225838383",
    "re_schedule_status": "NoAnswer,Failed,Busy,RING_TIMEOUT,Rejected,Completed",
    "voice_interval": "5"
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
{ “success”: true, “error”: null, “data”: { “campaign_id”: 556093, “total_call”: 2, “total_number”: 1, “message”: “Call successfully sent.” } }
Edit

BODY PARAMS

Key
Value
Description
sender_id (string)
TESTING
Name or title for Caller ID
mobile_no (number)
8225838383
REQUIRED 10 digit mobile number
curl --location --request POST 'https://obligr.io/api_v2/voice-call/add_caller_id' \
--header 'Authorization: Bearer [YOUR_API_KEY]' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: [COOKIES]' \
--data-urlencode 'title=TESTING' \
--data-urlencode 'mobile_no=8225838383'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/voice-call/add_caller_id",<br ?--> 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 => "title=TESTING&mobile_no=8225838383",
CURLOPT_HTTPHEADER => array(
"Authorization: Bearer [YOUR_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/voice-call/add_caller_id?api_key=[YOUR_API_KEY]&title=TESTING&mobile_no=8225838383
var client = new RestClient("https://obligr.io/api_v2/voice-call/add_caller_id");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [YOUR_API_KEY]");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddHeader("Cookie", "[COOKIES]");
request.AddParameter("title", "TESTING");
request.AddParameter("mobile_no", "8225838383");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
import mimetypes
conn = http.client.HTTPSConnection("obligr.io")
payload = 'title=TESTING&mobile_no=8225838383'
headers = {
  'Authorization': 'Bearer [YOUR_API_KEY]',
  'Content-Type': 'application/x-www-form-urlencoded',
  'Cookie': '[COOKIES]'
}
conn.request("POST", "/api_v2/voice-call/add_caller_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, "title=TESTING&mobile_no=8225838383");
Request request = new Request.Builder()
  .url("https://obligr.io/api_v2/voice-call/add_caller_id")
  .method("POST", body)
  .addHeader("Authorization", "Bearer [YOUR_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({
 'title': 'TESTING',
'mobile_no': '8225838383' 
});
var config = {
  method: 'post',
  url: 'https://obligr.io/api_v2/voice-call/add_caller_id',
  headers: { 
    'Authorization': 'Bearer [YOUR_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/voice-call/add_caller_id",
  "method": "POST",
  "timeout": 0,
  "headers": {
    "Authorization": "Bearer [YOUR_API_KEY]",
    "Content-Type": "application/x-www-form-urlencoded",
    "Cookie": "[COOKIES]
"
  },
  "data": {
    "title": "TESTING",
    "mobile_no": "8225838383"
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});

{
“success”: true,
“error”: null,
“data”: {
“mobile_no”: “8225838383”,
“title”: “TESTING”,
“status”: “pending”
}

Edit
Key
Value
Description
verify_otp
REQUIRED
curl --location --request POST 'https://obligr.io/api_v2/voice-call/verify_caller_id/8225838383' \
--header 'Authorization: Bearer [YOUR_API_KEY]' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: [COOKIES]' \
--data-urlencode 'verify_otp=7682173'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/voice-call/verify_caller_id/8225838383",
 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 => "verify_otp=7682173",
CURLOPT_HTTPHEADER => array(
"Authorization: Bearer [YOUR_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/voice-call/verify_caller_id/{mobile_no}?api_key=[YOUR_API_KEY]&verify_otp=9876543
var client = new RestClient("https://obligr.io/api_v2/voice-call/verify_caller_id/8225838383");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [YOUR_API_KEY]");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddHeader("Cookie", "[COOKIES]");
request.AddParameter("verify_otp", "7682173");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
import mimetypes
conn = http.client.HTTPSConnection("obligr.io")
payload = 'verify_otp=7682173'
headers = {
  'Authorization': 'Bearer [YOUR_API_KEY]',
  'Content-Type': 'application/x-www-form-urlencoded',
  'Cookie': '[COOKIES]'
}
conn.request("POST", "/api_v2/voice-call/verify_caller_id/8225838383", 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, "verify_otp=7682173");
Request request = new Request.Builder()
  .url("https://obligr.io/api_v2/voice-call/verify_caller_id/8225838383")
  .method("POST", body)
  .addHeader("Authorization", "Bearer [YOUR_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({
 'verify_otp': '7682173' 
});
var config = {
  method: 'post',
  url: 'https://obligr.io/api_v2/voice-call/verify_caller_id/8225838383',
  headers: { 
    'Authorization': 'Bearer [YOUR_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/voice-call/verify_caller_id/8225838383",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer [YOUR_API_KEY]",
"Content-Type": "application/x-www-form-urlencoded",
"Cookie": "[COOKIES]"
},
"data": {
"verify_otp": "7682173"
}
};

$.ajax(settings).done(function (response) {
console.log(response);
});

{
“success”: true,
“error”: null,
“data”: {
“mobile_no”: “8225838383”,
“title”: “TESTING”,
“status”: “active”
}
}

Edit
curl --location --request POST 'https://obligr.io/api_v2/voice-call/delete_caller_id/8225838383' \
--header 'Authorization: Bearer [YOUR_API_KEY]' \
--header 'Cookie: [COOKIES]';
});
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://demo.obligr.com/api_v2/voice-call/delete_caller_id/8225838383",<br ?--> 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 UU-V5BS9_UWd3wRdWdEpTw4av5TR29SOYabzxpsb9RcHPX1P_-XXcvp6qifTnTzA",
"Cookie: __cfduid=d659b54143769c92b55ef19f4ab55821b1596017761"
),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
https://obligr.io/api_v2/voice-call/delete_caller_id/{mobile_no}?api_key=[YOUR_API_KEY]
var client = new RestClient("https://obligr.io/api_v2/voice-call/delete_caller_id/8225838383");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [YOUR_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 [YOUR_API_KEY]',
'Cookie': '[COOKIES]'
}
conn.request("POST", "/api_v2/voice-call/delete_caller_id/8225838383", 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/voice-call/delete_caller_id/8225838383")
  .method("POST", body)
  .addHeader("Authorization", "[YOUR_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/voice-call/delete_caller_id/8225838383',
  headers: { 
    'Authorization': 'Bearer [YOUR_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/voice-call/delete_caller_id/8225838383",
  "method": "POST",
  "timeout": 0,
  "headers": {
    "Authorization": "Bearer [YOUR_API_KEY]",
    "Cookie": "[COOKIES]"
  },
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
{ “success”: true, “error”: null, “data”: “Caller ID 8225838383 Successfully Deleted.” }
Edit

BODY PARAMS

Key
Value
Description
date_from (string)
2020-07-28 00:00:00
REQUIRED Y-m-d h:i:s Format
date_to (string)
2020-07-28 23:59:59
REQUIRED Y-m-d h:i:s Format
campaign_id (number)
556093
Note : if search by "campaign_id" then no need to enter date_from or date_to.

answered: The destination has answered the call
rejected: The call attempt was rejected by the destination
busy: The destination is on the line with another caller
unanswered: The call was canceled by the caller
timeout: The call timed out before it was answered
failed: The call failed before reaching the destination
completed: The call is  completed successfully

curl --location --request POST 'https://obligr.io/api_v2/voice-call/report' \
--header 'Authorization: Bearer [YOUR_API_KEY]' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: [COOKIES]' \
--data-urlencode 'campaign_id=556093'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/voice-call/report",<br ?--> 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 => "campaign_id=556093",
CURLOPT_HTTPHEADER => array(
"Authorization: Bearer  [YOUR_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/voice-call/report?api_key=[YOUR_API_KEY]&date_from=2020-07-31 00:00:00&date_to=2020-07-31 23:59:59&campaign_id=556093
var client = new RestClient("https://obligr.io/api_v2/voice-call/report");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [YOUR_API_KEY]");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddHeader("Cookie", "[COOKIES]");
request.AddParameter("campaign_id", "556093");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
import mimetypes
conn = http.client.HTTPSConnection("obligr.io")
payload = 'campaign_id=556093'
headers = {
  'Authorization': 'Bearer [YOUR_API_KEY]',
  'Content-Type': 'application/x-www-form-urlencoded',
  'Cookie': '[COOKIES]'
}
conn.request("POST", "/api_v2/voice-call/report", 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, "campaign_id=556093");
Request request = new Request.Builder()
  .url("https://obligr.io/api_v2/voice-call/report")
  .method("POST", body)
  .addHeader("Authorization", "Bearer [YOUR_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({
 'campaign_id': '556093' 
});
var config = {
  method: 'post',
  url: 'https://obligr.io/api_v2/voice-call/report',
  headers: { 
    'Authorization': 'Bearer [YOUR_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/voice-call/report",
  "method": "POST",
  "timeout": 0,
  "headers": {
    "Authorization": "Bearer [YOUR_API_KEY]",
    "Content-Type": "application/x-www-form-urlencoded",
    "Cookie": "[COOKIES]"
  },
  "data": {
    "campaign_id": "556093"
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});


“success”: true,
“error”: null,
“data”: [
{
“campaign_id”: 556093,
“total_call”: 2,
“total_number”: 1,
“date_submitted”: “2020-07-31 14:01:36”,
“duration”: 54,
“status”: “completed”,
“parent_campaign_id”: null,
“voice_source”: “voice_file”,
“voice_file”: “202007311401359900225777707.mp3”,
“voice_name”: “”,
“voice_text”: “”,
“voice_pitch_rate”: “”,
“is_conversation”: 0,
“re_schedule_time”: 0,
“voice_interval”: 0,
“conversation_resp”: “”,
“summary”: {
“unanswered”: “1”
},
“call_response_summary”: null
}
]
}

Edit
curl --location --request POST 'https://obligr.io/api_v2/voice-call/details/556093' \
--header 'Authorization: Bearer [YOUR_API_KEY]' \
--header 'Cookie: [COOKIES]
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/voice-call/details/556093",<br ?--> 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 [YOUR_API_KEY]",
"Cookie: [COOKIES]"
),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
'
https://obligr.io/api_v2/voice-call/details/{campaign_id}?api_key=[YOUR_API_KEY]
var client = new RestClient("https://obligr.io/api_v2/voice-call/details/556093");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [YOUR_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 [YOUR_API_KEY]',
'Cookie': '[COOKIES]'
}
conn.request("POST", "/api_v2/voice-call/details/556093", 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/voice-call/details/556093")
  .method("POST", body)
  .addHeader("Authorization", "[YOUR_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/voice-call/details/556093',
  headers: { 
    'Authorization': '[YOUR_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/voice-call/details/556093",
  "method": "POST",
  "timeout": 0,
  "headers": {
    "Authorization": "Bearer [YOUR_API_KEY]",
    "Cookie": "[COOKIES]"
  },
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
{ “success”: true, “error”: null, “data”: [ { “mobile_no”: “+918225838383”, “status”: “unanswered”, “duration”: 0, “call_start”: “2020-07-31 14:01:42”, “call_end”: “2020-07-31 14:01:42”, “call_response”: “”, “response_msg”: “” } ] }
Edit
curl --location --request POST 'https://obligr.io/api_v2/voice-call/delete_scheduled/556094' \
--header 'Authorization: Bearer [YOUR_API_KEY]' \
--header 'Cookie: [COOKIES]'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/voice-call/delete_scheduled/556094",<br ?--> 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 [YOUR_API_KEY]",
"Cookie: [COOKIES]"
),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
https://obligr.io/api_v2/voice-call/delete_scheduled/{campaign_id}?api_key=[YOUR_API_KEY]
var client = new RestClient("https://obligr.io/api_v2/voice-call/delete_scheduled/556094");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [YOUR_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 [YOUR_API_KEY]',
  'Cookie': '[COOKIES]'
}
conn.request("POST", "/api_v2/voice-call/delete_scheduled/556094", 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/voice-call/delete_scheduled/556094")
.method("POST", body)
.addHeader("Authorization", "Bearer [YOUR_API_KEY]")
.addHeader("Cookie", "[COOKIES]")
.build();
Response response = client.newCall(request).execute();
var axios = require('axios');

var config = {
  method: 'post',
  url: 'https://obligr.io/api_v2/voice-call/delete_scheduled/556094',
  headers: { 
    'Authorization': 'Bearer [YOUR_API_KEY]', 
    'Cookie': '[COOKIES]'
  }
};

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/voice-call/delete_scheduled/556094",
  "method": "POST",
  "timeout": 0,
  "headers": {
    "Authorization": "Bearer [YOUR_API_KEY]",
    "Cookie": "[COOKIES]"
  },
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
{ “success”: true, “error”: null, “data”: “Campaign 556094 Successfully Deleted.” }
Edit

BODY PARAMS

Key
Value
Description
voice_title (string)
voice_file (string)
REQUIRED voice_file URL or form_data file
curl --location --request POST 'https://obligr.io/api_v2/voice-call/voice_file_upload' \
--header 'Authorization: Bearer [YOUR_API_KEY]' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: [COOKIES]' \
--data-urlencode 'voice_title=TESTING' \
--data-urlencode 'voice_file=https://dl.prokerala.com/downloads/ringtones/files/mp3/tiktokpopularjokerringtone2019laylairemixfullbassdjbestjokerringtonefamousb-50918.mp3'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/voice-call/voice_file_upload",<br ?--> 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 => "voice_title=TESTING&voice_file=https%3A//dl.prokerala.com/downloads/ringtones/files/mp3/tiktokpopularjokerringtone2019laylairemixfullbassdjbestjokerringtonefamousb-50918.mp3",
CURLOPT_HTTPHEADER => array(
"Authorization: Bearer [YOUR_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/voice-call/voice_file_upload?api_key=[YOUR_API_KEY]&voice_title=TESTING&voice_file=https://dl.prokerala.com/downloads/ringtones/files/mp3/tiktokpopularjokerringtone2019laylairemixfullbassdjbestjokerringtonefamousb-50918.mp3
var client = new RestClient("https://obligr.io/api_v2/voice-call/voice_file_upload");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [YOUR_API_KEY]");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddHeader("Cookie", "[COOKIES]");
request.AddParameter("voice_title", "TESTING");
request.AddParameter("voice_file", "https://dl.prokerala.com/downloads/ringtones/files/mp3/tiktokpopularjokerringtone2019laylairemixfullbassdjbestjokerringtonefamousb-50918.mp3");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
import mimetypes
conn = http.client.HTTPSConnection("obligr.io")
payload = 'voice_title=TESTING&voice_file=https%3A//dl.prokerala.com/downloads/ringtones/files/mp3/tiktokpopularjokerringtone2019laylairemixfullbassdjbestjokerringtonefamousb-50918.mp3'
headers = {
  'Authorization': 'Bearer [YOUR_API_KEY]',
  'Content-Type': 'application/x-www-form-urlencoded',
  'Cookie': '[COOKIES]'
}
conn.request("POST", "/api_v2/voice-call/voice_file_upload", 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, "voice_title=TESTING&voice_file=https://dl.prokerala.com/downloads/ringtones/files/mp3/tiktokpopularjokerringtone2019laylairemixfullbassdjbestjokerringtonefamousb-50918.mp3");
Request request = new Request.Builder()
  .url("https://obligr.io/api_v2/voice-call/voice_file_upload")
  .method("POST", body)
  .addHeader("Authorization", "[YOUR_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({
'voice_title': 'TESTING',
'voice_file': 'https://dl.prokerala.com/downloads/ringtones/files/mp3/tiktokpopularjokerringtone2019laylairemixfullbassdjbestjokerringtonefamousb-50918.mp3'
});
var config = {
method: 'post',
url: 'https://obligr.io/api_v2/voice-call/voice_file_upload',
headers: {
'Authorization': '[YOUR_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/voice-call/voice_file_upload",
  "method": "POST",
  "timeout": 0,
  "headers": {
    "Authorization": "[YOUR_API_KEY]",
    "Content-Type": "application/x-www-form-urlencoded",
    "Cookie": "[COOKIES]"
  },
  "data": {
    "voice_title": "TESTING",
    "voice_file": "https://dl.prokerala.com/downloads/ringtones/files/mp3/tiktokpopularjokerringtone2019laylairemixfullbassdjbestjokerringtonefamousb-50918.mp3"
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});

{
“success”: true,
“error”: null,
“data”: {
“title”: “202007311409099900886395626 2020-07-31 14:09:10 (54 sec : 2 Credit)”,
“voice_file”: “202007311409099900886395626.mp3”,
“duration”: 54
}
}

Edit
curl --location --request POST 'https://obligr.io/api_v2/voice-call/voice_file' \
--header 'Authorization: Bearer [YOUR_API_KEY]' \
--header 'Cookie: [COOKIES]'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/voice-call/voice_file",<br ?--> 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 [YOUR_API_KEY]",
"Cookie: [COOKIES]"
),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
https://obligr.io/api_v2/voice-call/voice_file?api_key=[YOUR_API_KEY]
var client = new RestClient("https://obligr.io/api_v2/voice-call/voice_file");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [YOUR_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 [YOUR_API_KEY]',
  'Cookie': '[COOKIES]'
}
conn.request("POST", "/api_v2/voice-call/voice_file", 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/voice-call/voice_file")
  .method("POST", body)
  .addHeader("Authorization", "Bearer [YOUR_API_KEY]")
  .addHeader("Cookie", "[YOUR_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/voice-call/voice_file',
  headers: { 
    'Authorization': 'Bearer [YOUR_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/voice-call/voice_file",
  "method": "POST",
  "timeout": 0,
  "headers": {
    "Authorization": "[YOUR_API_KEY]",
    "Cookie": "[COOKIES]"
  },
};

$.ajax(settings).done(function (response) {
  console.log(response);
});

{
“success”: true,
“error”: null,
“data”: [
{
“title”: “lr_20200617113021_3466 2020-07-31 17:33:42”,
“voice_file_name”: “202007311733429900921610003.mp3”,
“voice_file_url”: “http://demo.obligr.com/frontend/web/media/recording/9900/202007311733429900921610003.mp3”,
“duration”: 20,
“date_created”: “2020-07-31 17:33:42”,
“add_by”: “panel”
}
]
}

Edit
Edit

Two Factor Authentication process - it should be a single service with different option

BODY PARAMS

Key
Value
Description
mobile_no (number)
REQUIRED 10 Digit mobile number.
type (string)
sms
Optional
sms,voice_call,both Default is : sms
if select 'both' then otp verification
goes to sms as well voice call.
sender_id (string)
BLKSMS
Optional
Usee in Type is sms/both. Select
from your active sender ID.
caller_id (string)
REQUIRED IF use type is voice_call/both
10 Digit Mobile number.
Select from your active Caller ID.
voice_name (string)
sms
REQUIRED IF use type is voice_call/both
message (string)
Your OTP Verification Code is : ##OTP##
optional
Type your custom message.put OTP code replace placeholder : ##OTP##.
Default is : Your OTP Verification Code is : ##OTP##
Here ##OTP## is replace with auto generate OTP .
expire_time (number)
180
Optional
Give value in minutes Default is : 180 (for 3 hours)
otp_length (number)
6
Optional
length of OTP number in (DIGIT) Default is : 6 Digit Min Value is : 4 , Max Value is : 12
is_unicode (int)
0
Optional 1 or 0

voice_name

REQUIRED IF use type is voice_call/both

Voice Name

Language - Gender

Salli

en-US - Female

Joey

en-US - Male

Aditi

hi-IN - Female - 1

Raveena

hi-IN - Hindi Text Accepted

curl --location --request POST 'https://obligr.io/api_v2/tfa/send' \
--header 'Authorization: Bearer [YOUR_API_KEY]' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: [COOKIES]' \
--data-urlencode 'mobile_no=8225838383' \
--data-urlencode 'type=sms' \
--data-urlencode 'sender_id=DEMOOO' \
--data-urlencode 'caller_id=8225838383' \
--data-urlencode 'voice_name=Raveena' \
--data-urlencode 'message=Your OTP Verification Code is : ##OTP##' \
--data-urlencode 'expire_time=180' \
--data-urlencode 'otp_length=6' \
--data-urlencode 'is_unicode=0'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/tfa/send",<br ?--> 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_no=8225838383&type=sms&sender_id=DEMOOO&caller_id=8225838383&voice_name=Raveena&message=Your%20OTP%20Verification%20Code%20is%20%3A%20%23%23OTP%23%23&expire_time=180&otp_length=6&is_unicode=0",
CURLOPT_HTTPHEADER => array(
"Authorization: Bearer [YOUR_API_KEY]",
"Content-Type: application/x-www-form-urlencoded",
"Cookie: [COOKIES]"
),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response; 
https://demo.obligr.com/api_v2/tfa/send?api_key=[YOUR_API_KEY]&mobile_no=8225838383&type=sms&sender_id=DEMOOO&caller_id=8225838383&voice_name=Raveena&message=Your OTP Verification Code is : %23%23OTP%23%23&expire_time=180&otp_length=6&is_unicode=0
var client = new RestClient("https://obligr.io/api_v2/tfa/send");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "
[YOUR_API_KEY]");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddHeader("Cookie", "[COOKIES]");
request.AddParameter("mobile_no", "8225838383");
request.AddParameter("type", "sms");
request.AddParameter("sender_id", "DEMOOO");
request.AddParameter("caller_id", "8225838383");
request.AddParameter("voice_name", "Raveena");
request.AddParameter("message", "Your OTP Verification Code is : ##OTP##");
request.AddParameter("expire_time", "180");
request.AddParameter("otp_length", "6");
request.AddParameter("is_unicode", "0");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content)
import http.client
import mimetypes
conn = http.client.HTTPSConnection("obligr.io")
payload = 'mobile_no=8225838383&type=sms&sender_id=DEMOOO&caller_id=8225838383&voice_name=Raveena&message=Your%20OTP%20Verification%20Code%20is%20%3A%20%23%23OTP%23%23&expire_time=180&otp_length=6&is_unicode=0'
headers = {
  'Authorization': 'Bearer [YOUR_API_KEY]',
  'Content-Type': 'application/x-www-form-urlencoded',
  'Cookie': '[COOKIES]'
}
conn.request("POST", "/api_v2/tfa/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, "mobile_no=8225838383&type=sms&sender_id=DEMOOO&caller_id=8225838383&voice_name=Raveena&message=Your OTP Verification Code is : ##OTP##&expire_time=180&otp_length=6&is_unicode=0");
Request request = new Request.Builder()
  .url("https://obligr.io/api_v2/tfa/send")
  .method("POST", body)
  .addHeader("Authorization", "Bearer [YOUR_API_KEY]")
  .addHeader("Content-Type", "application/x-www-form-urlencoded")
  .addHeader("Cookie", "[COOKIES]
")
  .build();
Response response = client.newCall(request).execute();
var unirest = require('unirest');
var req = unirest('POST', 'https://obligr.io/api_v2/tfa/send')
  .headers({
    'Authorization': 'Bearer [YOUR_API_KEY]',
    'Content-Type': 'application/x-www-form-urlencoded',
    'Cookie': '[COOKIES]'
  })
  .send('mobile_no=8225838383')
  .send('type=sms')
  .send('sender_id=DEMOOO')
  .send('caller_id=8225838383')
  .send('voice_name=Raveena')
  .send('message=Your OTP Verification Code is : ##OTP##')
  .send('expire_time=180')
  .send('otp_length=6')
  .send('is_unicode=0')
  .end(function (res) { 
    if (res.error) throw new Error(res.error); 
    console.log(res.raw_body);
  });
var settings = {
  "url": "https://obligr.io/api_v2/tfa/send",
  "method": "POST",
  "timeout": 0,
  "headers": {
    "Authorization": "Bearer [YOUR_API_KEY]",
    "Content-Type": "application/x-www-form-urlencoded",
    "Cookie": "[COOKIES]"
  },
  "data": {
    "mobile_no": "8225838383",
    "type": "sms",
    "sender_id": "DEMOOO",
    "caller_id": "8225838383",
    "voice_name": "Raveena",
    "message": "Your OTP Verification Code is : ##OTP##",
    "expire_time": "180",
    "otp_length": "6",
    "is_unicode": "0"
  }
};
{ “success”: true, “error”: null, “data”: { “verify_key”: “HOElx46H”, “mobile_no”: “8225838383”, “message”: “OTP successfully sent.” } }
Edit

BODY PARAMS

Key
Value
Description
mobile_no (number)
8225838383
REQUIRED 10 digit mobile number
verify_key (string)
HOElx46H
REQUIRED
curl --location --request POST 'https://obligr.io/api_v2/tfa/resend' \
--header 'Authorization: Bearer [YOUR_API_KEY]' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: [COOKIES]' \
--data-urlencode 'mobile_no=8225838383' \
--data-urlencode 'verify_key=HOElx46H'
$.ajax(settings).done(function (response) {
  console.log(response);
});
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/tfa/resend",<br ?--> 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_no=8225838383&verify_key=HOElx46H",
CURLOPT_HTTPHEADER => array(
"Authorization: Bearer [YOUR_API_KEY]",
"Content-Type: application/x-www-form-urlencoded",
"Cookie: [COOKIES]"
),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
https://demo.obligr.com/api_v2/tfa/resend?api_key=[YOUR_API_KEY]&mobile_no=8225838383&verify_key=HOElx46H
var client = new RestClient("https://obligr.io/api_v2/tfa/resend");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [YOUR_API_KEY]");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddHeader("Cookie", "[COOKIES]");
request.AddParameter("mobile_no", "8225838383");
request.AddParameter("verify_key", "HOElx46H");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
import mimetypes
conn = http.client.HTTPSConnection("obligr.io")
payload = 'mobile_no=8225838383&verify_key=HOElx46H'
headers = {
  'Authorization': 'Bearer [YOUR_API_KEY]',
  'Content-Type': 'application/x-www-form-urlencoded',
  'Cookie': '[COOKIES]'
}
conn.request("POST", "/api_v2/tfa/resend", 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_no=8225838383&verify_key=HOElx46H");
Request request = new Request.Builder()
  .url("https://obligr.io/api_v2/tfa/resend")
  .method("POST", body)
  .addHeader("Authorization", "Bearer [YOUR_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({
 'mobile_no': '8225838383',
'verify_key': 'HOElx46H' 
});
var config = {
  method: 'post',
  url: 'https://obligr.io/api_v2/tfa/resend',
  headers: { 
    'Authorization': 'Bearer [YOUR_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/tfa/resend",
  "method": "POST",
  "timeout": 0,
  "headers": {
    "Authorization": "Bearer [YOUR_API_KEY]",
    "Content-Type": "application/x-www-form-urlencoded",
    "Cookie": "[COOKIES]"
  },
  "data": {
    "mobile_no": "8225838383",
    "verify_key": "HOElx46H"
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
{ “success”: true, “error”: null, “data”: { “verify_key”: “HOElx46H”, “mobile_no”: “8225838383”, “message”: “OTP successfully ReSent.” } }
Edit

BODY PARAMS

Key
Value
Description
mobile_no (number)
8225838383
REQUIRED 10 digit mobile number
verify_key (string)
HOElx46H
REQUIRED
otp (string)
******
REQUIRED Your 6 Digit OTP Code.
curl --location --request POST 'https://obligr.io/api_v2/tfa/verify' \
--header 'Authorization: Bearer 
[YOUR_API_KEY]' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: [COOKIES]' \
--data-urlencode 'mobile_no=8225838383' \
--data-urlencode 'verify_key=onhi8afh' \
--data-urlencode 'otp=013430'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/tfa/verify",<br ?--> 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_no=8225838383&verify_key=onhi8afh&otp=013430",
CURLOPT_HTTPHEADER => array(
"Authorization: Bearer [YOUR_API_KEY]A",
"Content-Type: application/x-www-form-urlencoded",
"Cookie: [COOKIES]"
),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
https://obligr.io/api_v2/tfa/verify?api_key=[YOUR_API_KEY]&mobile_no=8225838383&verify_key=onhi8afh&otp=013430
var client = new RestClient("https://obligr.io/api_v2/tfa/verify");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer [YOUR_API_KEY]");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddHeader("Cookie", "[COOKIES]");
request.AddParameter("mobile_no", "8225838383");
request.AddParameter("verify_key", "onhi8afh");
request.AddParameter("otp", "013430");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
import mimetypes
conn = http.client.HTTPSConnection("obligr.io")
payload = 'mobile_no=8225838383&verify_key=onhi8afh&otp=013430'
headers = {
  'Authorization': 'Bearer [YOUR_API_KEY]',
  'Content-Type': 'application/x-www-form-urlencoded',
  'Cookie': '[COOKIES]'
}
conn.request("POST", "/api_v2/tfa/verify", 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_no=8225838383&verify_key=onhi8afh&otp=013430");
Request request = new Request.Builder()
  .url("https://obligr.io/api_v2/tfa/verify")
  .method("POST", body)
  .addHeader("Authorization", "Bearer [YOUR_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({
 'mobile_no': '8225838383',
'verify_key': 'onhi8afh',
'otp': '013430' 
});
var config = {
  method: 'post',
  url: 'https://obligr.io/api_v2/tfa/verify',
  headers: { 
    'Authorization': 'Bearer [YOUR_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/tfa/verify",
  "method": "POST",
  "timeout": 0,
  "headers": {
    "Authorization": "Bearer [YOUR_API_KEY]",
    "Content-Type": "application/x-www-form-urlencoded",
    "Cookie": "[COOKIES]"
  },
  "data": {
    "mobile_no": "8225838383",
    "verify_key": "onhi8afh",
    "otp": "013430"
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
{ “success”: true, “error”: null, “data”: { “mobile_no”: “8225838383”, “message”: “OTP successfully Verified.” } }