Profile
Phone Number Verify
https://api.linode.com/v4/profile/phone-number/verify
Verify a phone number by confirming the one-time code received via SMS message after accessing the Phone Verification Code Send (POST /profile/phone-number) command.
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 command.
Once completed, the verified phone number is assigned to the User making the request. To change the verified phone number for a User, first use the Phone Number Delete (DELETE /profile/phone-number) command, then begin the verification process again with the Phone Verification Code Send (POST /profile/phone-number) command.
Request Body Schema
The one-time code received via SMS message after accessing the Phone Verification Code Send (POST /profile/phone-number) command.
Request Samples
- Shell
- CLI
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X POST -d '{
"otp_code": "123456"
}' \
https://api.linode.com/v4/profile/phone-number/verify
Response Samples
- 200
- default
{}
Responses
200: Phone number verification successful.
default: Error
What happened to cause this error. In most cases, this can be fixed immediately by changing the data you sent in the request, but in some cases you will be instructed to open a Support Ticket or perform some other action before you can complete the request successfully.
The field in the request that caused this error. This may be a path, separated by periods in the case of nested fields. In some cases this may come back as "null" if the error is not specific to any single element of the request.