Sessions

Get session cost

Changed on

Returns the finalized cost of a released session as an exact amount in US dollars (e.g. 0.031905), suitable for precise billing passthrough.

get/v1/sessions/{id}/cost

Request

  • Base URL
    https://api.steel.dev
  • URL
    https://api.steel.dev/v1/sessions/{id}/cost
  • Auth
    • API key in header steel-api-key
    • or none

Path parameters

idstring uuid required

Response

Session cost breakdown in US dollars

currency'usd' required

Currency used for the cost values

idstring uuid required

Session ID

totalCostnumber required

Exact total session cost in US dollars (e.g. 0.031905), with no rounding to whole cents. Rounded only to micro-dollar precision (6 decimal places) for precise billing passthrough.

unit'dollar' required

Cost unit. Values are expressed in US dollars.

Changes

    • breaking

      the response's property type changed from integer to number for status

    • warning

      added the new dollar enum value to the response property for the response status

    • info

      removed the cent enum value from the response property for the response status

    • info

      endpoint added