Profile
Security Questions List
https://api.linode.com/v4/profile/security-questions
Returns a collection of security questions and their responses, if any, for your User Profile.
Request Samples
- Shell
- CLI
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4/profile/security-questions
Response Samples
- 200
- default
{
"security_questions": [
{
"id": 1,
"question": "In what city were you born?",
"response": "Gotham City"
}
]
}
Responses
200: Returns a list of security questions.
The ID representing the security question.
The security question.
The security question response.
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.
Security Questions Answer
https://api.linode.com/v4/profile/security-questions
Adds security question responses for your User.
Requires exactly three unique questions.
Previous responses are overwritten if answered or reset to null
if unanswered.
Note: Security questions must be answered for your User prior to accessing the Two Factor Secret Create (POST /profile/tfa-enable) command.
Request Body Schema
Request Samples
- Shell
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X POST -d '{
"security_questions": [
{
"question_id": 1,
"response": "secret answer 1"
},
{
"question_id": 2,
"response": "secret answer 2"
},
{
"question_id": 11,
"response": "secret answer 3"
}
]
}' \
https://api.linode.com/v4/profile/security-questions
Response Samples
- 200
- default
{
"security_questions": [
{
"question_id": 1,
"response": "Gotham City",
"security_question": "In what city were you born?"
}
]
}
Responses
200: Security Questions answered successfully.
The ID representing the security question.
The security question response.
The security question.
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.