Get account overview
const url = 'https://api.roamex.com/v1/account';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.roamex.com/v1/account \ --header 'Authorization: Bearer <token>'Returns your account details, balance, eSIM counts and the number of API requests logged for your account in the last 24 hours. The eSIM counts use the same rules as the status filter of /esims/list. The request body is ignored.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The account overview.
object
object
Account status. A key only authenticates while the account is approved.
object
Euro cents.
Your customer markup, in percent.
total counts every eSIM on the account. active, ready and cancelled count the eSIMs /esims/list returns for that status filter.
object
object
API requests logged for this account in the last 24 hours.
Example
{ "success": true, "account": { "id": "00000000-0000-4000-8000-0000000000a1", "companyName": "Example Travel BV", "contactEmail": "ops@example.com", "country": "NL", "status": "approved", "balance": { "amount": 25000, "currency": "EUR", "formatted": "€250.00" }, "customerMarkupPercent": 30, "createdAt": "2026-09-01T09:30:00+00:00" }, "esims": { "total": 12, "active": 3, "ready": 4, "cancelled": 1 }, "api": { "requestsLast24h": 87 }}Headers
Section titled “Headers”Calls allowed per minute for this endpoint group.
Calls left in the current minute.
When the current window ends, in Unix seconds.
AUTH_ERROR: the key is missing, malformed, unknown or revoked. The message says which, for example Missing Authorization header, Invalid Authorization header format. Use: Bearer <api_key>, Invalid API key format or Invalid API key.
object
object
Machine-readable. Branch on this.
A sentence for people. It can change.
Example
{ "success": false, "error": { "code": "AUTH_ERROR", "message": "Invalid API key" }}AUTH_ERROR: the account is suspended (Your account is suspended. Please contact support.) or rejected (Account is not approved for API access).
object
object
Machine-readable. Branch on this.
A sentence for people. It can change.
Example
{ "success": false}NOT_FOUND: the API is switched off on the platform.ACCOUNT_NOT_FOUND: the account row could not be read.
object
object
Machine-readable. Branch on this.
A sentence for people. It can change.
Example
{ "success": false}PAYLOAD_TOO_LARGE: the Content-Length header is over 100 KB.
object
object
Machine-readable. Branch on this.
A sentence for people. It can change.
Example
{ "success": false}RATE_LIMITED: the account’s per-minute budget for this endpoint group is used up, or too many refused keys came from this IP address. Wait the Retry-After seconds.
object
object
Machine-readable. Branch on this.
A sentence for people. It can change.
Example
{ "success": false, "error": { "code": "RATE_LIMITED", "message": "Rate limit exceeded. Please wait 42 seconds before retrying." }}Headers
Section titled “Headers”Calls allowed per minute for this endpoint group.
Calls left in the current minute.
When the current window ends, in Unix seconds.
Seconds to wait before retrying.
INTERNAL_ERROR: an unexpected error on our side.AUTH_ERRORwith status 500: the key could not be checked because of an error on our side. Retry with backoff.
object
object
Machine-readable. Branch on this.
A sentence for people. It can change.
Example
{ "success": false}
