Billing
List session costs
What each session cost, newest first, broken into the five price categories, with what monthly, purchased and preserved credit paid. These are billing’s own records, the same ones the dashboard’s Billing activity shows; nothing is recomputed. Sessions billed before the workspace moved to monthly-credit billing are not listed.
GET
/
v1
/
billing
/
sessions
List session costs
curl --request GET \
--url https://api.driver.dev/v1/billing/sessions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.driver.dev/v1/billing/sessions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.driver.dev/v1/billing/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.driver.dev/v1/billing/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 => [
"Authorization: Bearer <token>"
],
]);
$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.driver.dev/v1/billing/sessions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.driver.dev/v1/billing/sessions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.driver.dev/v1/billing/sessions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"sessions": [
{
"sessionId": "9301676abe8b49a98d0331666332ae05",
"orgId": "org_01KNRFX3833MCT6CX3R9AWR4Z8",
"status": "settled",
"statusDetail": "Charged.",
"billedAt": "2026-11-27T21:14:00.431Z",
"browserSeconds": 1095.56,
"network": "driver",
"charged": {
"cents": 500,
"dollars": 5
},
"paidFrom": {
"monthlyCredit": {
"cents": 120,
"dollars": 1.2
},
"purchasedCredit": {
"cents": 380,
"dollars": 3.8
},
"preservedCredit": {
"cents": 0,
"dollars": 0
}
},
"deductedFromCredit": {
"cents": 380,
"dollars": 3.8
},
"categories": {
"byopBandwidth": {
"quantity": 0,
"unit": "MB",
"rate": null,
"charged": {
"cents": 0,
"dollars": 0
},
"paidFrom": {
"monthlyCredit": {
"cents": 0,
"dollars": 0
},
"purchasedCredit": {
"cents": 0,
"dollars": 0
},
"preservedCredit": {
"cents": 0,
"dollars": 0
}
}
},
"driverNetworkBandwidth": {
"quantity": 1024,
"unit": "MB",
"rate": {
"cents": 500,
"dollars": 5,
"per": {
"quantity": 1024,
"unit": "MB"
}
},
"charged": {
"cents": 500,
"dollars": 5
},
"paidFrom": {
"monthlyCredit": {
"cents": 120,
"dollars": 1.2
},
"purchasedCredit": {
"cents": 380,
"dollars": 3.8
},
"preservedCredit": {
"cents": 0,
"dollars": 0
}
}
},
"thirdPartyBandwidth": {
"quantity": 0,
"unit": "MB",
"rate": null,
"charged": {
"cents": 0,
"dollars": 0
},
"paidFrom": {
"monthlyCredit": {
"cents": 0,
"dollars": 0
},
"purchasedCredit": {
"cents": 0,
"dollars": 0
},
"preservedCredit": {
"cents": 0,
"dollars": 0
}
}
},
"platformFeeBandwidth": {
"quantity": 1024,
"unit": "MB",
"rate": {
"cents": 0,
"dollars": 0,
"per": {
"quantity": 1024,
"unit": "MB"
}
},
"charged": {
"cents": 0,
"dollars": 0
},
"paidFrom": {
"monthlyCredit": {
"cents": 0,
"dollars": 0
},
"purchasedCredit": {
"cents": 0,
"dollars": 0
},
"preservedCredit": {
"cents": 0,
"dollars": 0
}
}
},
"browserHours": {
"quantity": 0.30432,
"unit": "hours",
"rate": {
"cents": 0,
"dollars": 0,
"per": {
"quantity": 1,
"unit": "hours"
}
},
"charged": {
"cents": 0,
"dollars": 0
},
"paidFrom": {
"monthlyCredit": {
"cents": 0,
"dollars": 0
},
"purchasedCredit": {
"cents": 0,
"dollars": 0
},
"preservedCredit": {
"cents": 0,
"dollars": 0
}
}
}
}
}
],
"nextCursor": "1795689240431~S:9301676abe8b49a98d0331666332ae05"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Authorizations
A workspace API key from Settings → API keys in the dashboard (https://app.driver.dev), sent as a bearer token.
Query Parameters
⌘I
List session costs
curl --request GET \
--url https://api.driver.dev/v1/billing/sessions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.driver.dev/v1/billing/sessions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.driver.dev/v1/billing/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.driver.dev/v1/billing/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 => [
"Authorization: Bearer <token>"
],
]);
$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.driver.dev/v1/billing/sessions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.driver.dev/v1/billing/sessions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.driver.dev/v1/billing/sessions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"sessions": [
{
"sessionId": "9301676abe8b49a98d0331666332ae05",
"orgId": "org_01KNRFX3833MCT6CX3R9AWR4Z8",
"status": "settled",
"statusDetail": "Charged.",
"billedAt": "2026-11-27T21:14:00.431Z",
"browserSeconds": 1095.56,
"network": "driver",
"charged": {
"cents": 500,
"dollars": 5
},
"paidFrom": {
"monthlyCredit": {
"cents": 120,
"dollars": 1.2
},
"purchasedCredit": {
"cents": 380,
"dollars": 3.8
},
"preservedCredit": {
"cents": 0,
"dollars": 0
}
},
"deductedFromCredit": {
"cents": 380,
"dollars": 3.8
},
"categories": {
"byopBandwidth": {
"quantity": 0,
"unit": "MB",
"rate": null,
"charged": {
"cents": 0,
"dollars": 0
},
"paidFrom": {
"monthlyCredit": {
"cents": 0,
"dollars": 0
},
"purchasedCredit": {
"cents": 0,
"dollars": 0
},
"preservedCredit": {
"cents": 0,
"dollars": 0
}
}
},
"driverNetworkBandwidth": {
"quantity": 1024,
"unit": "MB",
"rate": {
"cents": 500,
"dollars": 5,
"per": {
"quantity": 1024,
"unit": "MB"
}
},
"charged": {
"cents": 500,
"dollars": 5
},
"paidFrom": {
"monthlyCredit": {
"cents": 120,
"dollars": 1.2
},
"purchasedCredit": {
"cents": 380,
"dollars": 3.8
},
"preservedCredit": {
"cents": 0,
"dollars": 0
}
}
},
"thirdPartyBandwidth": {
"quantity": 0,
"unit": "MB",
"rate": null,
"charged": {
"cents": 0,
"dollars": 0
},
"paidFrom": {
"monthlyCredit": {
"cents": 0,
"dollars": 0
},
"purchasedCredit": {
"cents": 0,
"dollars": 0
},
"preservedCredit": {
"cents": 0,
"dollars": 0
}
}
},
"platformFeeBandwidth": {
"quantity": 1024,
"unit": "MB",
"rate": {
"cents": 0,
"dollars": 0,
"per": {
"quantity": 1024,
"unit": "MB"
}
},
"charged": {
"cents": 0,
"dollars": 0
},
"paidFrom": {
"monthlyCredit": {
"cents": 0,
"dollars": 0
},
"purchasedCredit": {
"cents": 0,
"dollars": 0
},
"preservedCredit": {
"cents": 0,
"dollars": 0
}
}
},
"browserHours": {
"quantity": 0.30432,
"unit": "hours",
"rate": {
"cents": 0,
"dollars": 0,
"per": {
"quantity": 1,
"unit": "hours"
}
},
"charged": {
"cents": 0,
"dollars": 0
},
"paidFrom": {
"monthlyCredit": {
"cents": 0,
"dollars": 0
},
"purchasedCredit": {
"cents": 0,
"dollars": 0
},
"preservedCredit": {
"cents": 0,
"dollars": 0
}
}
}
}
}
],
"nextCursor": "1795689240431~S:9301676abe8b49a98d0331666332ae05"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}