Get questions of the user.

get

/oaa-kba/runtime/kba/v1/questions

Since 12.2.1.4.1-20230630, this method is deprecated. Questions that are associated with the user are returned. If user information is present, questions associated with the user is returned. These are questions preselected by the system to be used for KBA challenge.

Request

Query Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

Success
Body ()
Root Schema : QuestionsResponse
Type: object
Show Source
Nested Schema : choices
Type: array
Show Source
Nested Schema : Choice
Type: object
Show Source
Nested Schema : questions
Type: array
Show Source
Nested Schema : Question
Type: object
Show Source

401 Response

Unauthorized. User credentials invalid or not provided.
Body ()
Root Schema : KBAAPIResponse
Type: object
Show Source

422 Response

failed to get user questions for requested user.
Body ()
Root Schema : KBAAPIResponse
Type: object
Show Source

500 Response

Server error.
Body ()
Root Schema : KBAAPIResponse
Type: object
Show Source
Back to Top

Examples

The following example shows a sample request and response for retrieving questions associated with a user. The questions associated with the user are returned if the user information is present. The system has preselected these questions to be used for the KBA challenge.

cURL Command to Retrieve a List of Questions

curl --location --request GET '<OAAService>/oaa-kba/runtime/kba/v1/questions?userid=user1&group=Default' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic <Base64Encoded(<username>:<password>)>' \
--data ''

Sample Response

{
    "status": "0",
    "message": "Successfully processed the request.",
    "choices": [
        {
            "questions": [
                {
                    "questionId": 2,
                    "question": "What was your father's profession when you were born?",
                    "active": false
                },
                {
                    "questionId": 41,
                    "question": "What was the last name of your favorite teacher in High School?",
                    "active": false
                },
                {
                    "questionId": 5,
                    "question": "What is the first name of your mother's eldest sibling?",
                    "active": false
                },
                {
                    "questionId": 33,
                    "question": "How much did you pay for your first car?",
                    "active": false
                },
                {
                    "questionId": 17,
                    "question": "What was the first name of your first boss?",
                    "active": false
                }
            ]
        },
        {
            "questions": [
                {
                    "questionId": 87,
                    "question": "What was the name of your favorite childhood musical group?",
                    "active": false
                },
                {
                    "questionId": 50,
                    "question": "What was your youngest child's birth weight?",
                    "active": false
                },
                {
                    "questionId": 126,
                    "question": "What year was your favorite Super Bowl?",
                    "active": false
                },
                {
                    "questionId": 23,
                    "question": "What was your first sweetheart's first name?",
                    "active": false
                },
                {
                    "questionId": 54,
                    "question": "What breed was your first dog?",
                    "active": false
                }
            ]
        },
        {
            "questions": [
                {
                    "questionId": 60,
                    "question": "What is your best friend's birthday?",
                    "active": false
                },
                {
                    "questionId": 3,
                    "question": "What was your birth weight?",
                    "active": false
                },
                {
                    "questionId": 42,
                    "question": "What was the last name of your favorite professor in college?",
                    "active": false
                },
                {
                    "questionId": 6,
                    "question": "What is your maternal grandfather's first name?",
                    "active": false
                },
                {
                    "questionId": 34,
                    "question": "What year did you purchase your first car?",
                    "active": false
                }
            ]
        }
    ]
}
}
Back to Top