SIM Cards

Get activation code for an eSIM

Changed on

It returns the activation code for an eSIM.<br/><br/> This API is only available for eSIMs. If the given SIM is a physical SIM card, or has already been installed, an error will be returned.

get/sim_cards/{id}/activation_code

Request

  • Base URL: https://api.telnyx.com/v2
  • URL: https://api.telnyx.com/v2/sim_cards/{id}/activation_code
  • Auth: HTTP bearer

Path parameters

idstring uuid required
Example:6a09cdc3-8948-47f0-aa62-74ac943d6c58

Identifies the SIM.

Response

Successful response

Example response

{
  "data": {
    "record_type": "sim_card_activation_code",
    "activation_code": "LPA:1$...."
  }
}

Changes

    • breaking

      the // response's property type changed from integer to string, and format from int32 to no format for status

    • info

      added the optional property // to the response with the status

    • breaking

      the // response's property type changed from string to integer, and format from no format to int32 for status