Skip to content

Get User's Answer

Retrieve the response submitted by a specific user for a specific quiz.


Overview

This endpoint fetches the response that a particular user has submitted for a specific quiz within a namespace.

Method: GET
Endpoint:
/api/v1/namespaces/:namespaceId/quizzes/:quizId/users/:invitedUserUUID/answers


Request

Headers

http
x-api-key: {your_api_key}  # Optional, provides administrative access
Accept: application/json

Path Parameters

ParameterTypeRequiredDescription
namespaceIdstringNamespace unique ID
quizIdstringQuiz unique ID
invitedUserUUIDstringInvited user unique ID

No request body is required for this operation.


Response

json
{
  "answers": {
    "id": "HKhDZ1gnaD3jPS6sUOrY-anon_zJagrCHJgUsvS739JYdf",
    "userId": "anon_zJagrCHJgUsvS739JYdf",
    "quizId": "HKhDZ1gnaD3jPS6sUOrY",
    "activityDate": {
      "_seconds": 1753477903,
      "_nanoseconds": 682000000
    },
    "qAnswers": {
      "fhn1": "cb2b7af9-6b10-4096-b3db-b637de9f8680",
      "fhn2": "a1e1fbcc-b11e-4b06-bc1e-9b1c0e8aa2ea",
      "fhn3": "a03752af-39e6-40d8-8349-0aed34900052",
      "fhn4": "6c5b3b7a-cb7c-46b3-8537-dcecb8265de2",
      "fhn5": "cc29254d-188b-46e8-b613-634619bee59c",
      "fhn6": "0418b14d-ec78-48d8-a23d-359de286875f",
      "fhn7": "f8b37b3c-e27c-43f8-984f-b628f458f501",
      "fhn8": "7d4692e2-6420-4948-a144-f15f5bc1b6da"
    },
    "isCompleted": true,
    "completionStatus": 3,
    "isAnonymous": true,
    "score": 73,
    "spend_score": 23,
    "save_score": 100,
    "borrow_score": 93,
    "plan_score": 75,
    "customData": "custom_id=my_custom_id_81a7debc7e8d78edbc"
  }
}

Error Responses

  • 500 Internal Server Error – If the quiz does not exist
json
{
  "error": "quiz does not exist"
}

Other possible errors:

  • Quiz not found
  • Namespace not found
  • Invited user not found

Important Security Note

For non-authenticated requests, the response will only include questions with IDs "fhn1" through "fhn8". All other question answers will be filtered out. Full answer data is only returned when the request is made with administrative authentication.