json
{
"PhoneNumber": "+18483550675",
"IMEI": "359796727818015"
}curl -X POST https://api.telegent.com/v1.0/numbers/device/unlock-status \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"PhoneNumber": "+18483550675",
"IMEI": "359796727818015"
}'import requests
url = "https://api.telegent.com/v1.0/numbers/device/unlock-status"
payload = {
"PhoneNumber": "+12017540711",
"IMEI": "357100775549659"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({PhoneNumber: '+12017540711', IMEI: '357100775549659'})
};
fetch('https://api.telegent.com/v1.0/numbers/device/unlock-status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.telegent.com/v1.0/numbers/device/unlock-status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'PhoneNumber' => '+12017540711',
'IMEI' => '357100775549659'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.telegent.com/v1.0/numbers/device/unlock-status"
payload := strings.NewReader("{\n \"PhoneNumber\": \"+12017540711\",\n \"IMEI\": \"357100775549659\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.telegent.com/v1.0/numbers/device/unlock-status")
.header("Content-Type", "application/json")
.body("{\n \"PhoneNumber\": \"+12017540711\",\n \"IMEI\": \"357100775549659\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telegent.com/v1.0/numbers/device/unlock-status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"PhoneNumber\": \"+12017540711\",\n \"IMEI\": \"357100775549659\"\n}"
response = http.request(request)
puts response.read_body{
"PhoneNumber": "+18483550675",
"IMEI": "359796727818015",
"UnlockStatus": "LOCKED",
"Status": "Success",
"StatusMessage": ""
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}Numbers
Device Unlock Status
Check the carrier unlock status of a device by IMEI or by phone number. Works for any IMEI, including devices on other carriers that have never been provisioned on the Telegent network.
Two ways to look up a device:
- By
IMEI— the general-purpose lookup. Works for any device on any carrier, whether or not it exists in your account.PhoneNumberis returned empty. - By
PhoneNumber— only works for numbers assigned to your own account. The device’sIMEIis resolved automatically and returned alongside the lock status.
PhoneNumber is optional; if it is blank, IMEI is required. The response shape is the same either way.
Reading the response: This endpoint returns HTTP 200 even when the lookup fails. Always check the Status field — Success means UnlockStatus is populated, FAILED means UnlockStatus is null and StatusMessage carries the upstream error (for example GENS-0020 Invalid IMEI or GENS-0013 Invalid MSISDN).
Next steps:
- Retrieve device model, manufacturer and TAC —
POST /v1.0/numbers/device-details - Check the number’s service status —
POST /v1.0/numbers/status
POST
/
v1.0
/
numbers
/
device
/
unlock-status
json
{
"PhoneNumber": "+18483550675",
"IMEI": "359796727818015"
}curl -X POST https://api.telegent.com/v1.0/numbers/device/unlock-status \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"PhoneNumber": "+18483550675",
"IMEI": "359796727818015"
}'import requests
url = "https://api.telegent.com/v1.0/numbers/device/unlock-status"
payload = {
"PhoneNumber": "+12017540711",
"IMEI": "357100775549659"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({PhoneNumber: '+12017540711', IMEI: '357100775549659'})
};
fetch('https://api.telegent.com/v1.0/numbers/device/unlock-status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.telegent.com/v1.0/numbers/device/unlock-status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'PhoneNumber' => '+12017540711',
'IMEI' => '357100775549659'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.telegent.com/v1.0/numbers/device/unlock-status"
payload := strings.NewReader("{\n \"PhoneNumber\": \"+12017540711\",\n \"IMEI\": \"357100775549659\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.telegent.com/v1.0/numbers/device/unlock-status")
.header("Content-Type", "application/json")
.body("{\n \"PhoneNumber\": \"+12017540711\",\n \"IMEI\": \"357100775549659\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.telegent.com/v1.0/numbers/device/unlock-status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"PhoneNumber\": \"+12017540711\",\n \"IMEI\": \"357100775549659\"\n}"
response = http.request(request)
puts response.read_body{
"PhoneNumber": "+18483550675",
"IMEI": "359796727818015",
"UnlockStatus": "LOCKED",
"Status": "Success",
"StatusMessage": ""
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}{
"StatusCode": 123,
"Message": "<string>"
}Body
application/json
Response
Device Unlock Status Retrieved
The response is of type object.