Obtain a line
Obtains a local line for one of your customers: a market-bound phone number and the eSIM that carries it.
The user must exist in your organization first — create one with POST /v1/users.
Provisioning flow:
- This call returns the line's id and state: PROVISIONING
- A SIM is assigned from available inventory and the number allocated with the local market's operator
- The line reaches READY, and GET /v1/numbers/{numberId} carries its sim.activationCode
Organizations with Telgea's end-user communications enabled also send the user installation instructions by email. White-label integrations have them switched off, so that activation code is the only delivery and presenting it is yours to do.
Request
- Base URLhttps://api.telgea.com
- AuthAPI key in header x-api-key
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.
Request body
Example request
{
"userId": "9c1f2a6e-3b7d-4e0a-8f21-5d6c7b8a9e01",
"countryCode": "DK"
}Response
Line accepted and being provisioned. Poll GET /v1/numbers/{numberId} until it reaches READY with its SIM.
Example response
{
"numberId": "8238c1b9-c2c0-4455-9b03-4bd787052709",
"state": "PROVISIONING"
}Changes
No recorded changes to this operation across all 1 revision of this API.