Endpoint

Overview

Rents an email address or a phone number for one service and returns the Rental. Enter its address in the service, then read the rental with Get Rental until code is set. See Verification Codes. An email address is one that has never received mail from that service. An email rental lasts 15 minutes; a phone rental lasts until its expiresAt. Cancel a rental you no longer need.
Rentals must be enabled for your organization by Phones Inc. Until then this endpoint answers forbidden. Contact support to enable them.
A login that belongs to several organizations selects one with the X-Phonesinc-Organization header.

Request Body

string
required
email or phone.
string
required
The service’s id from List Services, for example tiktok.

Response

boolean
true when the address or number is yours.
Rental
The new Rental, with status: "active".

Errors