Lease phone numbers
Reserve phone numbers from inventory for use in orders. This allows customers to choose specific numbers before completing their order.
Availability: This feature is part of our premium number selection offering and may not be available for all product offerings. Check the response for availability information.
Usage Flow:
- Lease numbers to get a lease token
- Use the lease token and chosen msisdn in subscription line items
- Numbers are automatically released if not used before expiry
Important: Leased numbers expire after a short time (typically 1 hour) to prevent inventory hoarding.
Authorizations
An API key that grants access to the Connect API. You can create and manage API keys in the portal.
Headers
A unique key to ensure idempotency of requests. If a request with the same key has already been processed, the same result will be returned. The key must be unique for each distinct operation. Keys are expired after 24 hours, but we recommend using a new key for each request.
Modified requests with the same idempotency keys are rejected with a 409 Conflict status code.
256Body
Request to lease phone numbers for use in orders.
Response
Numbers leased successfully.
Result of a number leasing request.
The leased phone numbers.
Token to use when creating subscription line items with these numbers.
Provide this token in the leaseToken field when ordering or creating a subscription
along with the chosen msisdn from the leased numbers.
"lease_abc123def456"
When this lease expires if not used in an order.
"2024-01-15T11:30:00Z"