Firsty

Search...

Search...

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.

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 UsageSession

Usage sessions, newest first (by usageUpdatedAt)

Show properties
dataobjectoptional
Show properties
sessionReferencestring · uuid

Stable session identifier

startedAtstring · date-time

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

endedAtstring | null · date-time

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

usageUpdatedAtstring · date-time

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.

usedinteger

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

usageCountrystring | null

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

networkstring | null

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

mccstring | null

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

mncstring | null

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

tadigstring | null

Visited operator TADIG code; null when unknown

typestring
unitstring
voiceobjectoptional
Show properties
sessionReferencestring · uuid

Stable session identifier

startedAtstring · date-time

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

endedAtstring | null · date-time

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

usageUpdatedAtstring · date-time

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.

usedinteger

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

usageCountrystring | null

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

networkstring | null

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

mccstring | null

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

mncstring | null

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

tadigstring | null

Visited operator TADIG code; null when unknown

typestring
unitstring
directionstring

Voice direction; unknown preserves sessions whose provider direction is unavailable

Optionsincomingoutgoingunknown
destinationCountrystring | null

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

fromNumberstring | null

Calling party; anonymous indicates provider concealment

toNumberstring | null

Called party; anonymous indicates provider concealment

smsobjectoptional
Show properties
sessionReferencestring · uuid

Stable session identifier

startedAtstring · date-time

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

endedAtstring | null · date-time

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

usageUpdatedAtstring · date-time

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.

usedinteger

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

usageCountrystring | null

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

networkstring | null

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

mccstring | null

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

mncstring | null

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

tadigstring | null

Visited operator TADIG code; null when unknown

typestring
unitstring
fromNumberstring | null

Sending party; anonymous indicates provider concealment

toNumberstring | null

Receiving party; anonymous indicates provider concealment

paginationobject
Show properties
limitinteger

Maximum items per page

hasMoreboolean

Whether there are more items after this page

nextCursorstring | null

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 exceeded. A `429` can also arrive without these headers or this body; handle it by its status code.500Internal server error