---
title: "Get activation code for an eSIM"
method: GET
path: "/sim_cards/{id}/activation_code"
tags: ["SIM Cards"]
---

# Get activation code for an eSIM

`GET /sim_cards/{id}/activation_code`

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.

## Path parameters

- `id` string, uuid, required

## Response `200`

Successful response

- object
  - `data` SIMCardActivationCode
    - `activation_code` string — Contents of the eSIM activation QR code.
    - `record_type` string

## Other responses

- `401` — Unauthorized
- `default` — Unexpected error

## Changes

- **2026-08-17** `1571b0380bd7` — 1 breaking
  - the `errors/items/code` response's property type/format changed from `integer`/`int32` to `string`/`` for status `default`
- **2026-08-04** `8f5f4e537994` — 1 breaking
  - the `errors/items/code` response's property type/format changed from `string`/`` to `integer`/`int32` for status `default`

[Change history](https://skmtc.dev/team-telnyx/apis/telnyx-api-2/changes/sim_cards/:id/activation_code/get.md)

---

[API](https://skmtc.dev/team-telnyx/apis/telnyx-api-2.md) · [All operations](https://skmtc.dev/team-telnyx/apis/telnyx-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/team-telnyx/telnyx-api-2/revisions/3fdc16374d70/schema)
