Firsty

Search...

Search...

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.

get/profiles/{profileReference}/esims/{esimReference}/sessions

Authorization

Authorization: Bearer {token} — an OAuth2 access token from the client-credentials flow. How authentication works

Path parameters

profileReferencestringrequired

The eSIM's profile reference (16-digit numeric string)

esimReferencestringrequired

eSIM reference identifier (18-digit opaque token)

Query parameters

fromstring

Includes 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.

tostring

Includes sessions whose usageUpdatedAt is before this RFC 3339 UTC timestamp. Provide it together with from.

limitinteger

Maximum number of sessions per page.

Default100
cursorstring

Opaque cursor token for fetching the next page. Pass the nextCursor value from a previous response.

Responses

200Usage sessionsapplication/json
Show response body
dataarray of UsageSessionrequired

Usage sessions, newest first (by usageUpdatedAt)

Show properties
dataobject
Show properties
sessionReferencestring · uuidrequired

Stable session identifier

startedAtstring · date-timerequired

Session/call start (UTC). Can precede the requested window for long sessions.

endedAtstring | null · date-timerequired

Session/call end (UTC); null while the session is open

usageUpdatedAtstring · date-timerequired

End 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.

usedintegerrequired

Amount used in unit; data usage is reported as whole bytes

usageCountrystring | nullrequired

ISO 3166-1 alpha-2 country the SIM was in, null when unknown

networkstring | nullrequired

Operator network the session used, as named at usage time; null when unknown

mccstring | nullrequired

Visited network E.212 mobile country code; null when unknown

mncstring | nullrequired

Visited network E.212 mobile network code (leading zeros significant); null when unknown

tadigstring | nullrequired

Visited operator TADIG code; null when unknown

typestringrequired
unitstringrequired
voiceobject
Show properties
sessionReferencestring · uuidrequired

Stable session identifier

startedAtstring · date-timerequired

Session/call start (UTC). Can precede the requested window for long sessions.

endedAtstring | null · date-timerequired

Session/call end (UTC); null while the session is open

usageUpdatedAtstring · date-timerequired

End 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.

usedintegerrequired

Amount used in unit; data usage is reported as whole bytes

usageCountrystring | nullrequired

ISO 3166-1 alpha-2 country the SIM was in, null when unknown

networkstring | nullrequired

Operator network the session used, as named at usage time; null when unknown

mccstring | nullrequired

Visited network E.212 mobile country code; null when unknown

mncstring | nullrequired

Visited network E.212 mobile network code (leading zeros significant); null when unknown

tadigstring | nullrequired

Visited operator TADIG code; null when unknown

typestringrequired
unitstringrequired
directionstringrequired

Voice direction; unknown preserves sessions whose provider direction is unavailable

Optionsincomingoutgoingunknown
destinationCountrystring | nullrequired

Country inferred from the outgoing destination number; null when unknown or not applicable

fromNumberstring | nullrequired

Calling party; anonymous indicates provider concealment

toNumberstring | nullrequired

Called party; anonymous indicates provider concealment

smsobject
Show properties
sessionReferencestring · uuidrequired

Stable session identifier

startedAtstring · date-timerequired

Session/call start (UTC). Can precede the requested window for long sessions.

endedAtstring | null · date-timerequired

Session/call end (UTC); null while the session is open

usageUpdatedAtstring · date-timerequired

End 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.

usedintegerrequired

Amount used in unit; data usage is reported as whole bytes

usageCountrystring | nullrequired

ISO 3166-1 alpha-2 country the SIM was in, null when unknown

networkstring | nullrequired

Operator network the session used, as named at usage time; null when unknown

mccstring | nullrequired

Visited network E.212 mobile country code; null when unknown

mncstring | nullrequired

Visited network E.212 mobile network code (leading zeros significant); null when unknown

tadigstring | nullrequired

Visited operator TADIG code; null when unknown

typestringrequired
unitstringrequired
fromNumberstring | nullrequired

Sending party; anonymous indicates provider concealment

toNumberstring | nullrequired

Receiving party; anonymous indicates provider concealment

paginationobjectrequired
Show properties
limitintegerrequired

Maximum items per page

hasMorebooleanrequired

Whether there are more items after this page

nextCursorstring | nullrequired

Opaque 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