Skip to main content

GET Get eSIM by ICCID

Note: Use this endpoint to quickly validate or check the status of an eSIM by its ICCID. Important for account audits.

This endpoint validates and returns eSIM information for a specific ICCID (Integrated Circuit Card Identifier).

Configure the API Endpoint

https://esim.betatel.com/api/v1/esim/sim-registries/{{iccid}}
  • Method: GET

Set Up the Headers

ParamValueDescription
Content-Typeapplication/jsonSpecifies the payload format.
x-api-key{{x-api-key}}Your unique API key for secure access.
x-user-id{{x-user-id}}Your user identifier for added security and tracking.

Path Parameters

Important: Accurate input of the ICCID path parameter ensures successful retrieval of eSIM details, which is critical for validation.

ParamTypeRequiredDescription
iccidstringrequiredThe ICCID of the eSIM to retrieve

Example Response

Status Code: 200 OK
Content-Type: application/json

Example Response
{
"iccid": "89148000004012345678",
"status": "active",
"inventory_id": 51952,
"created_date": 1761330317000,
"profile_data": {
"eid": "example_eid",
"status": "enabled"
}
}

The response includes the iccid - the requested ICCID, status - current status of the eSIM, inventory_id - associated inventory identifier, and profile_data - eSIM profile information.

Code Snippets

Note: By following these snippets, you gain direct access to a specific eSIM object and can examine relevant attributes.

Example - cURL
curl --location 'https://esim.betatel.com/api/v1/esim/sim-registries/{{iccid}}' \
--header 'Accept: application/json' \
--header 'x-api-key: {{x-api-key}}' \
--header 'x-user-id: {{x-user-id}}'

Error Handling

Caution: Enter the ICCID correctly to avoid '404' errors. Malformed requests will trigger a '400' status code.

  • 404 - Not Found - eSIM with specified ICCID does not exist
  • 400 - Bad Request - Invalid ICCID format
  • 401 - Unauthorized - Invalid or missing API key