Usage
List usage sessions
Experimental. This endpoint is still settling — its request and response shape may change without a deprecation cycle.
Retrieves individual usage sessions (data sessions, calls, SMS) for an eSIM,
newest first, covering the last 3 calendar months. Passing from and to
together filters the listing to sessions that ended at or after from and
before to.
Sessions are built from provider CDRs, so recent sessions may change as files
arrive and a session's started can precede the requested window. Data
session usage is returned as whole bytes; voice and SMS usage use seconds and
message counts respectively. Concealed calling/called numbers are returned as
the fixed string anonymous.
/profiles/{profileReference}/esims/{esimReference}/sessionsAuthorization
Authorization: Bearer {token} — an OAuth2 access token from the client-credentials flow. How authentication works
Path parameters
profileReferencestringrequiredThe eSIM's profile reference (16-digit numeric string)
esimReferencestringrequiredeSIM reference identifier (18-digit opaque token)
Query parameters
fromstringIncludes sessions whose usageUpdatedAt is at or after this RFC 3339 UTC timestamp. Provide it together with to. It can reach at most 3 calendar months into the past.
tostringIncludes sessions whose usageUpdatedAt is before this RFC 3339 UTC timestamp. Provide it together with from.
limitintegerMaximum number of sessions per page.
100cursorstringOpaque cursor token for fetching the next page. Pass the nextCursor value from a previous response.
Responses
200Usage sessionsapplication/jsonShow response bodyHide response body
dataarray of UsageSessionrequiredUsage sessions, newest first (by usageUpdatedAt)
Show propertiesHide properties
dataobjectShow propertiesHide properties
sessionReferencestring · uuidrequiredStable session identifier
startedAtstring · date-timerequiredSession/call start (UTC). Can precede the requested window for long sessions.
endedAtstring | null · date-timerequiredSession/call end (UTC); null while the session is open
usageUpdatedAtstring · date-timerequiredEnd of the last reported usage window (UTC). An open session keeps accumulating usage; when comparing two reads of the same sessionReference, the one with the later usageUpdatedAt is the current state.
usedintegerrequiredAmount used in unit; data usage is reported as whole bytes
usageCountrystring | nullrequiredISO 3166-1 alpha-2 country the SIM was in, null when unknown
networkstring | nullrequiredOperator network the session used, as named at usage time; null when unknown
mccstring | nullrequiredVisited network E.212 mobile country code; null when unknown
mncstring | nullrequiredVisited network E.212 mobile network code (leading zeros significant); null when unknown
tadigstring | nullrequiredVisited operator TADIG code; null when unknown
typestringrequiredunitstringrequiredvoiceobjectShow propertiesHide properties
sessionReferencestring · uuidrequiredStable session identifier
startedAtstring · date-timerequiredSession/call start (UTC). Can precede the requested window for long sessions.
endedAtstring | null · date-timerequiredSession/call end (UTC); null while the session is open
usageUpdatedAtstring · date-timerequiredEnd of the last reported usage window (UTC). An open session keeps accumulating usage; when comparing two reads of the same sessionReference, the one with the later usageUpdatedAt is the current state.
usedintegerrequiredAmount used in unit; data usage is reported as whole bytes
usageCountrystring | nullrequiredISO 3166-1 alpha-2 country the SIM was in, null when unknown
networkstring | nullrequiredOperator network the session used, as named at usage time; null when unknown
mccstring | nullrequiredVisited network E.212 mobile country code; null when unknown
mncstring | nullrequiredVisited network E.212 mobile network code (leading zeros significant); null when unknown
tadigstring | nullrequiredVisited operator TADIG code; null when unknown
typestringrequiredunitstringrequireddirectionstringrequiredVoice direction; unknown preserves sessions whose provider direction is unavailable
incomingoutgoingunknowndestinationCountrystring | nullrequiredCountry inferred from the outgoing destination number; null when unknown or not applicable
fromNumberstring | nullrequiredCalling party; anonymous indicates provider concealment
toNumberstring | nullrequiredCalled party; anonymous indicates provider concealment
smsobjectShow propertiesHide properties
sessionReferencestring · uuidrequiredStable session identifier
startedAtstring · date-timerequiredSession/call start (UTC). Can precede the requested window for long sessions.
endedAtstring | null · date-timerequiredSession/call end (UTC); null while the session is open
usageUpdatedAtstring · date-timerequiredEnd of the last reported usage window (UTC). An open session keeps accumulating usage; when comparing two reads of the same sessionReference, the one with the later usageUpdatedAt is the current state.
usedintegerrequiredAmount used in unit; data usage is reported as whole bytes
usageCountrystring | nullrequiredISO 3166-1 alpha-2 country the SIM was in, null when unknown
networkstring | nullrequiredOperator network the session used, as named at usage time; null when unknown
mccstring | nullrequiredVisited network E.212 mobile country code; null when unknown
mncstring | nullrequiredVisited network E.212 mobile network code (leading zeros significant); null when unknown
tadigstring | nullrequiredVisited operator TADIG code; null when unknown
typestringrequiredunitstringrequiredfromNumberstring | nullrequiredSending party; anonymous indicates provider concealment
toNumberstring | nullrequiredReceiving party; anonymous indicates provider concealment
paginationobjectrequiredShow propertiesHide properties
limitintegerrequiredMaximum items per page
hasMorebooleanrequiredWhether there are more items after this page
nextCursorstring | nullrequiredOpaque cursor token for the next page. Null when there are no more results.
400Bad request - invalid parameters401Unauthorized - missing or invalid API key403Forbidden - client does not have access to this resource404Resource not found429Rate limit exceeded500Internal server error