Skip to main content
POST
Assign a phone number
  • Your first login gets a new number. Later logins reuse it.
  • A login that has a number keeps it, so assigning again returns the same number.
  • Next, the person sets this number as the website account’s phone for codes. Then call logins.verify_sms_number to check that codes arrive.
  • features.sms_numbers on your account says whether you may assign one.
It needs the person’s Logins PIN: without it, an API key or app gets login_unlock_required with a dashboard_url where the person enters it, which lets that key or app make such changes for 5 minutes, never see a saved value.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

a saved login ID: login_ and 32 lowercase hex digits

Example:

"login_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"

Response

The login's number

phone_number
string
required
status
enum<string>
required
Available options:
linked,
verified
linked_at
string
required
verified_at
string | null
required
verification
object | null
required