Skip to main content
GET
/
client
/
user
/
survey-responses
Get Survey Responses
curl --request GET \
  --url https://api.doshi.app/client/user/survey-responses \
  --header 'Access-Type: <access-type>' \
  --header 'Authorization: Bearer <token>'
{
  "responses": [
    {
      "id": "<string>",
      "lessonId": "<string>",
      "userId": "<string>",
      "questionType": "<string>",
      "questionId": "<string>",
      "question": "<string>",
      "answer": {},
      "answerType": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "userAttributeKey": "<string>"
    }
  ],
  "total": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.doshi.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Authentication token (API Key) provided by Doshi. Your server's IP address must be whitelisted to use this API. Contact hello@doshi.app to whitelist your IPs.

Headers

Access-Type
enum<string>
required

Must be set to 'client' for all API requests

Available options:
client

Query Parameters

userId
string

Filter by user ID

lessonId
string

Filter by lesson ID

page
integer
default:1

Page number for pagination

pageSize
integer
default:10000

Number of results per page (max 10000)

Response

A list of survey responses.

responses
object[]
required
total
integer
required