Firsty

Search...

Search...

Usage

Get eSIM usage

Retrieves data usage for a specific eSIM. Returns total, used, and remaining data for all active packages.

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

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)

Responses

200eSIM usage dataapplication/json
Show response body
dataobject
Show properties
profileReferencestring
esimReferencestring

eSIM reference identifier (18-digit opaque token)

iccidstring
packagesarray of PackageUsage

Usage details for each active package

Show properties
packageReferencestring

Package reference identifier (23-character opaque token)

externalTransactionIdstring | null

The client's external transaction ID if provided

typestring

Package type: data for mobile data, sms for text messaging, voice for calls

Optionsdatasmsvoice
usageobject

Usage summary with unit

Show properties
totalnumber

Total capacity (MB for data, message count for SMS, seconds for voice)

usednumber

Amount used

remainingnumber

Amount remaining

unitstring

Unit of measurement (MB, sms, or seconds)

OptionsMBsmsseconds
totalsobject

Aggregated usage totals across all packages by type

Show properties
dataone of UsageSummary | option 2

Aggregated data usage (unit MB), null if no data packages

Show properties
UsageSummaryobject

Usage summary with unit

Show properties
totalnumber

Total capacity (MB for data, message count for SMS, seconds for voice)

usednumber

Amount used

remainingnumber

Amount remaining

unitstring

Unit of measurement (MB, sms, or seconds)

OptionsMBsmsseconds
option 2null
smsone of UsageSummary | option 2

Aggregated SMS usage (unit sms), null if no SMS packages

Show properties
UsageSummaryobject

Usage summary with unit

Show properties
totalnumber

Total capacity (MB for data, message count for SMS, seconds for voice)

usednumber

Amount used

remainingnumber

Amount remaining

unitstring

Unit of measurement (MB, sms, or seconds)

OptionsMBsmsseconds
option 2null
voiceone of UsageSummary | option 2

Aggregated voice usage (unit seconds), null if no voice packages

Show properties
UsageSummaryobject

Usage summary with unit

Show properties
totalnumber

Total capacity (MB for data, message count for SMS, seconds for voice)

usednumber

Amount used

remainingnumber

Amount remaining

unitstring

Unit of measurement (MB, sms, or seconds)

OptionsMBsmsseconds
option 2null
401Unauthorized - missing or invalid API key403Forbidden - client does not have access to this resource404Resource not found429Rate limit exceeded500Internal server error