List geofences
curl --request GET \
--url https://api.jitra.app/public/v1/geofences \
--header 'x-api-key: <api-key>'import requests
url = "https://api.jitra.app/public/v1/geofences"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.jitra.app/public/v1/geofences', 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.jitra.app/public/v1/geofences",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.jitra.app/public/v1/geofences"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.jitra.app/public/v1/geofences")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jitra.app/public/v1/geofences")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"statusCode": 200,
"result": [
{
"id": 12,
"name": "Warehouse Zone",
"description": "Main operational area",
"color": "#00AAFF",
"coordinates": [
[
106.8,
-6.2
]
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}{
"statusCode": 401,
"errorCode": "ERR999",
"message": "Unauthorized",
"timestamp": "2026-05-17T01:00:00.000Z"
}{
"statusCode": 429,
"errorCode": "ERR999",
"message": "ThrottlerException: Too Many Requests",
"timestamp": "2026-05-17T01:00:00.000Z"
}Endpoints
Read Geofences
Returns all polygon Geofences available to the authenticated Organization.
GET
/
geofences
List geofences
curl --request GET \
--url https://api.jitra.app/public/v1/geofences \
--header 'x-api-key: <api-key>'import requests
url = "https://api.jitra.app/public/v1/geofences"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.jitra.app/public/v1/geofences', 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.jitra.app/public/v1/geofences",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.jitra.app/public/v1/geofences"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.jitra.app/public/v1/geofences")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jitra.app/public/v1/geofences")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"statusCode": 200,
"result": [
{
"id": 12,
"name": "Warehouse Zone",
"description": "Main operational area",
"color": "#00AAFF",
"coordinates": [
[
106.8,
-6.2
]
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}{
"statusCode": 401,
"errorCode": "ERR999",
"message": "Unauthorized",
"timestamp": "2026-05-17T01:00:00.000Z"
}{
"statusCode": 429,
"errorCode": "ERR999",
"message": "ThrottlerException: Too Many Requests",
"timestamp": "2026-05-17T01:00:00.000Z"
}Authorizations
ApiKeyAuthBearerAuth
Organization API key issued from Jitra (Organization → API Key).
Response
Geofence list.
Example:
200
Hide child attributes
Hide child attributes
Geofence ID.
Example:
12
Geofence name.
Example:
"Warehouse Zone"
Geofence description.
Example:
"Main operational area"
Display color (hex).
Example:
"#00AAFF"
Polygon vertices as [longitude, latitude] pairs.
Geographic coordinate as [longitude, latitude].
Required array length:
2 elementsExample:
[106.8, -6.2]
Record creation timestamp.
Last update timestamp.
