Verify a phone number by confirming the one-time code received via SMS message after running the Send a phone number verification code operation.
-
Verification codes are valid for 10 minutes after they are sent.
-
Only the same User that made the verification code request can use that code with this operation.
Once completed, the verified phone number is assigned to the User making the request. To change the verified phone number for a User, first run the Delete a phone number operation, then begin the verification process again with the Send a phone number verification code operation.
Permissions and scopes
To call this operation, you need permissions, based on the model you're using:
-
Identity and access permissions. Your user needs a role with these permissions. Learn more.
- Permissions:
verify_profile_phone_number
- Permissions:
-
OAuth scopes. Your user needs these scopes assigned. Learn more.
- Scopes:
account:read_write
- Scopes:
CLI
linode-cli phone verify \
--otp_code 123456