UsageExperimental
List usage sessions
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.
Recent sessions may change as additional usage is reported, 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 UsageSessionUsage sessions, newest first (by usageUpdatedAt)
Show propertiesHide properties
dataobjectoptionalShow propertiesHide properties
sessionReferencestring · uuidStable session identifier
startedAtstring · date-timeSession/call start (UTC). Can precede the requested window for long sessions.
endedAtstring | null · date-timeSession/call end (UTC); null while the session is open
usageUpdatedAtstring · date-timeEnd 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.
usedintegerAmount used in unit; data usage is reported as whole bytes
usageCountrystring | nullISO 3166-1 alpha-2 country the SIM was in, null when unknown
networkstring | nullOperator network the session used, as named at usage time; null when unknown
mccstring | nullVisited network E.212 mobile country code; null when unknown
mncstring | nullVisited network E.212 mobile network code (leading zeros significant); null when unknown
tadigstring | nullVisited operator TADIG code; null when unknown
typestringunitstringvoiceobjectoptionalShow propertiesHide properties
sessionReferencestring · uuidStable session identifier
startedAtstring · date-timeSession/call start (UTC). Can precede the requested window for long sessions.
endedAtstring | null · date-timeSession/call end (UTC); null while the session is open
usageUpdatedAtstring · date-timeEnd 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.
usedintegerAmount used in unit; data usage is reported as whole bytes
usageCountrystring | nullISO 3166-1 alpha-2 country the SIM was in, null when unknown
networkstring | nullOperator network the session used, as named at usage time; null when unknown
mccstring | nullVisited network E.212 mobile country code; null when unknown
mncstring | nullVisited network E.212 mobile network code (leading zeros significant); null when unknown
tadigstring | nullVisited operator TADIG code; null when unknown
typestringunitstringdirectionstringVoice direction; unknown preserves sessions whose provider direction is unavailable
incomingoutgoingunknowndestinationCountrystring | nullCountry inferred from the outgoing destination number; null when unknown or not applicable
fromNumberstring | nullCalling party; anonymous indicates provider concealment
toNumberstring | nullCalled party; anonymous indicates provider concealment
smsobjectoptionalShow propertiesHide properties
sessionReferencestring · uuidStable session identifier
startedAtstring · date-timeSession/call start (UTC). Can precede the requested window for long sessions.
endedAtstring | null · date-timeSession/call end (UTC); null while the session is open
usageUpdatedAtstring · date-timeEnd 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.
usedintegerAmount used in unit; data usage is reported as whole bytes
usageCountrystring | nullISO 3166-1 alpha-2 country the SIM was in, null when unknown
networkstring | nullOperator network the session used, as named at usage time; null when unknown
mccstring | nullVisited network E.212 mobile country code; null when unknown
mncstring | nullVisited network E.212 mobile network code (leading zeros significant); null when unknown
tadigstring | nullVisited operator TADIG code; null when unknown
typestringunitstringfromNumberstring | nullSending party; anonymous indicates provider concealment
toNumberstring | nullReceiving party; anonymous indicates provider concealment
paginationobjectShow propertiesHide properties
limitintegerMaximum items per page
hasMorebooleanWhether there are more items after this page
nextCursorstring | nullOpaque 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 exceeded. A `429` can also arrive without these headers or this body; handle it by its status code.500Internal server error