getPhoneNumber()
Retrieves a single PhoneNumber.
PhoneNumber
function getPhoneNumber(phoneNumberId: string): Promise<PhoneNumber>
phoneNumberId
string
The ID of the phone number to retrieve.
const phoneNumberId = 'idn_123' const response = await clerkClient.phoneNumbers.getPhoneNumber(phoneNumberId) console.log(response) /* _PhoneNumber { id: 'idn_123', phoneNumber: '15551234567', reservedForSecondFactor: false, defaultSecondFactor: false, verification: _Verification { status: 'verified', strategy: 'admin', externalVerificationRedirectURL: null, attempts: null, expireAt: null, nonce: null }, linkedTo: [] } */
This method in the SDK is a wrapper around the BAPI endpoint GET/phone_numbers/{phone_number_id}. See the BAPI reference for more information.
GET/phone_numbers/{phone_number_id}
Last updated on Jan 21, 2025