Skip to main content
GET
Get one session's cost

Authorizations

Authorization
string
header
required

A workspace API key from Settings → API keys in the dashboard (https://app.driver.dev), sent as a bearer token.

Path Parameters

sessionId
string
required

The session ID returned when the session was created.

Pattern: ^[A-Za-z0-9_-]{1,128}$
Example:

"9301676abe8b49a98d0331666332ae05"

Response

The session's cost.

sessionId
string
required

The session id: an opaque string; do not validate its format.

orgId
string
required

Your workspace (organization) ID.

status
enum<string>
required

settled: charged. pending: received by billing and not priced yet. held: chargeable usage that has not been deducted yet and is under review. written_off: Driver decided not to charge it; nothing is owed.

Available options:
settled,
pending,
held,
written_off
statusDetail
string
required

What the status means for this session's figures.

billedAt
string | null
required

When billing recorded the session (ISO 8601), or null for sessions billed before times were recorded.

browserSeconds
number | null
required

How long the browser ran, as billed.

Required range: x >= 0
network
enum<string>
required

Which network carried the session's traffic.

Available options:
byop,
driver,
third_party
charged
object
required

Total cost of the session at the plan's rates, including the part monthly credit covered. Null when pending, written off, or not recorded.

paidFrom
object
required

Where the charge was paid from. Null figures are not known: the session is pending or held, or billing did not record that part.

deductedFromCredit
object
required

Purchased plus preserved credit taken by this session, the figure the dashboard shows as "Deducted from credits".

categories
object
required