Sessions
List fleet charging sessions
GET
/
public
/
fleets
/
v1
/
sessions
List fleet charging sessions
curl --request GET \
--url https://api.ionage.in/public/fleets/v1/sessions \
--header 'x-api-key: <api-key>'import requests
url = "https://api.ionage.in/public/fleets/v1/sessions"
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.ionage.in/public/fleets/v1/sessions', 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.ionage.in/public/fleets/v1/sessions",
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.ionage.in/public/fleets/v1/sessions"
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.ionage.in/public/fleets/v1/sessions")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ionage.in/public/fleets/v1/sessions")
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{
"data": [
{
"session_id": "ses_9df5f4f7b0f64f9e",
"status": "ACTIVE",
"driver_id": "drv_9df5f4f7b0f64f9e",
"vehicle_id": "veh_9df5f4f7b0f64f9e",
"station_id": "st_d1ed2dd3f9ef4b4e",
"charger_id": "ch_2cf24dba5fb0a30e",
"connector_id": "con_3a7bd3e2360a3d80",
"metering": {
"energy_wh": 12840,
"power_w": 58200,
"state_of_charge_percent": 64,
"sampled_at": "2026-09-17T09:30:00Z"
},
"billing": {
"billing_type": "PREPAID",
"currency": "INR",
"estimated_cost_paise": 23754,
"final_cost_paise": null
},
"start_time": "2026-09-17T09:08:00Z",
"end_time": null,
"created_at": "2026-09-17T09:07:42Z",
"updated_at": "2026-09-17T09:30:00Z"
},
{
"session_id": "ses_9df5f4f7b0f64f9e",
"status": "ACTIVE",
"driver_id": "drv_9df5f4f7b0f64f9e",
"vehicle_id": "veh_9df5f4f7b0f64f9e",
"station_id": "st_d1ed2dd3f9ef4b4e",
"charger_id": "ch_2cf24dba5fb0a30e",
"connector_id": "con_3a7bd3e2360a3d80",
"metering": {
"energy_wh": 12840,
"power_w": 58200,
"state_of_charge_percent": 64,
"sampled_at": "2026-09-17T09:30:00Z"
},
"billing": {
"billing_type": "PREPAID",
"currency": "INR",
"estimated_cost_paise": 23754,
"final_cost_paise": null
},
"start_time": "2026-09-17T09:08:00Z",
"end_time": null,
"created_at": "2026-09-17T09:07:42Z",
"updated_at": "2026-09-17T09:30:00Z"
}
],
"metadata": {
"total_count": 125,
"next": "/public/fleets/v1/restrictions?limit=50&offset=50",
"prev": null
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "connector_id is required"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "an unexpected error occurred while processing the request"
}
}Authorizations
Query Parameters
Was this page helpful?
List fleet charging sessions
curl --request GET \
--url https://api.ionage.in/public/fleets/v1/sessions \
--header 'x-api-key: <api-key>'import requests
url = "https://api.ionage.in/public/fleets/v1/sessions"
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.ionage.in/public/fleets/v1/sessions', 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.ionage.in/public/fleets/v1/sessions",
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.ionage.in/public/fleets/v1/sessions"
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.ionage.in/public/fleets/v1/sessions")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ionage.in/public/fleets/v1/sessions")
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{
"data": [
{
"session_id": "ses_9df5f4f7b0f64f9e",
"status": "ACTIVE",
"driver_id": "drv_9df5f4f7b0f64f9e",
"vehicle_id": "veh_9df5f4f7b0f64f9e",
"station_id": "st_d1ed2dd3f9ef4b4e",
"charger_id": "ch_2cf24dba5fb0a30e",
"connector_id": "con_3a7bd3e2360a3d80",
"metering": {
"energy_wh": 12840,
"power_w": 58200,
"state_of_charge_percent": 64,
"sampled_at": "2026-09-17T09:30:00Z"
},
"billing": {
"billing_type": "PREPAID",
"currency": "INR",
"estimated_cost_paise": 23754,
"final_cost_paise": null
},
"start_time": "2026-09-17T09:08:00Z",
"end_time": null,
"created_at": "2026-09-17T09:07:42Z",
"updated_at": "2026-09-17T09:30:00Z"
},
{
"session_id": "ses_9df5f4f7b0f64f9e",
"status": "ACTIVE",
"driver_id": "drv_9df5f4f7b0f64f9e",
"vehicle_id": "veh_9df5f4f7b0f64f9e",
"station_id": "st_d1ed2dd3f9ef4b4e",
"charger_id": "ch_2cf24dba5fb0a30e",
"connector_id": "con_3a7bd3e2360a3d80",
"metering": {
"energy_wh": 12840,
"power_w": 58200,
"state_of_charge_percent": 64,
"sampled_at": "2026-09-17T09:30:00Z"
},
"billing": {
"billing_type": "PREPAID",
"currency": "INR",
"estimated_cost_paise": 23754,
"final_cost_paise": null
},
"start_time": "2026-09-17T09:08:00Z",
"end_time": null,
"created_at": "2026-09-17T09:07:42Z",
"updated_at": "2026-09-17T09:30:00Z"
}
],
"metadata": {
"total_count": 125,
"next": "/public/fleets/v1/restrictions?limit=50&offset=50",
"prev": null
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "connector_id is required"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "an unexpected error occurred while processing the request"
}
}
.png?fit=max&auto=format&n=Q9Mj_7gZzDeQpRZZ&q=85&s=81619203ea2696cfd7251205cfbc5afc)