Overview

A Rental is an email address or a phone number that Phones Inc lends your organization for one service, so you can receive a verification code from that service. See Verification Codes for the full flow.
  1. Rent returns an address.
  2. Enter that address in the service’s sign-up or login form.
  3. Read the rental with Get Rental until code is set.
An email address is one that has never received mail from that service. The address or number is yours only while the rental lasts: do not use it for later logins. Your organization sees only its own rentals.

Properties

string
Unique rental identifier.
string
email or phone.
string
The id of the service the rental is for, for example tiktok.
string
The email address, or the phone number in international format (for example +15550100123).
string
Where the rental stands.
  • active - waiting for a code.
  • completed - a code arrived; it is in code.
  • expired - no code arrived before expiresAt.
  • cancelled - you cancelled it.
string | null
The verification code, or null until one arrives. If the service sends a newer code within 15 minutes, code is updated.
string | null
When the code arrived (ISO 8601 timestamp), or null.
string
When an active rental ends if no code has arrived (ISO 8601 timestamp). An email rental lasts 15 minutes; a phone rental’s length is set by the number’s carrier and is usually a few minutes.
string
When the rental started (ISO 8601 timestamp).

Example