Skip to main content

Get activation code for an eSIM

GET 
/sim_cards/:id/activation_code

It returns the activation code for an eSIM.

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.

Request

Path Parameters

    id uuidrequired

    Identifies the SIM.

Responses

200: Successful response

401: Unauthorized

default: Unexpected error

Request samples


curl -L 'https://api.telnyx.com/v2/sim_cards/:id/activation_code' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


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