Replace a SIM card
Initiates a SIM card replacement (eSIM swap) on one line. This provisions a new eSIM and deactivates the previous one.
Important: This endpoint should only be used when the end-user changes devices and the existing eSIM activation QR code (LPA string) has been confirmed to be expired or no longer working. Do not use this endpoint to troubleshoot connectivity issues — contact support instead.
Rate limit: one replacement per line inside the cooldown your organization's SIM-swap offering sets, counted from when the line's last replacement finished — and once per calendar day for a German number. A request inside the window gets a 429 naming when to retry.
Flow:
- A new eSIM profile is provisioned and the old SIM is deactivated
- Until the new profile is ready, GET /v1/numbers/{numberId} reports the line with sim: null — its state is REPLACING, and SIM details are published only in READY
- Back in READY, the line's sim.activationCode is the new one to render as a QR code
Organizations with Telgea's end-user communications enabled also email the user the new activation code. White-label integrations have them switched off and present it themselves.
Request
- Base URLhttps://api.telgea.com
- AuthAPI key in header x-api-key
Path parameters
UUID of the line.
Headers
A value unique to this request, of 1 to 255 printable ASCII characters — a UUID is the usual choice. Retry with the same key within 24 hours and you get the original response back, even if it was a failure, and nothing is done twice. Send a new key whenever you change the request. Keys are private to your API key and organisation.
Response
SIM replacement request accepted and processed asynchronously. Poll GET /v1/numbers/{numberId} until the line is READY again with its new SIM.
Example response
{
"status": "accepted"
}Changes
No recorded changes to this operation across all 1 revision of this API.