GET : https://{env}-api.xebo.ai/v3/survey-management/surveys/{survey_id}/all-questions
The value of environment {{env}} variable depends upon your datacenter. Refer to the Environment page for more details.
"Content-Type": "application/json"
type: Bearer type
token: <access token> granted from login API
Or
x-api-key: <api key copied from the platform>
Content-Type: application/json
{
"data": [
{
"uuid": "cdcb25d4-9ea5-416b-bd0a-3f36a63b535e",
"title": "single choice",
"quesType": "single_choice",
"options": {
"row": [
{
"uuid": "2a79e4a6-83fc-486c-8ace-4e410d4d9c8f",
"text": "Option 1",
"rText": "",
"weight": 1
},
{
"uuid": "510c0d04-be2e-477c-8762-6b69601406a1",
"text": "Option 2",
"rText": "",
"weight": 2
},
],
"col": []
},
"qCode": "q_code_1",
"tags": [
{
"text": "tag 1",
"_id": "66ab3dd41fde115341b5a180"
}
]
},
{
"uuid": "b7e37b98-0349-4608-ad2d-2ced68992daf",
"title": "multiple choice",
"quesType": "multi_choice",
"options": {
"row": [
{
"uuid": "b4ccfc92-b7f4-4f0d-8a20-986c49ca1675",
"text": "Option 1",
"rText": "",
"weight": 1
},
{
"uuid": "d2aba907-d9dd-49c4-a2bb-a6d8e1122783",
"text": "Option 2",
"rText": "",
"weight": 2
},
],
"col": []
},
"qCode": "q_code_2",
"tags": []
},
]
}
{
"success": false,
"code": 401,
"status": "Unauthorized",
"error": "AUTHENTICATION_ERROR",
"message": "The authorization token was not provided"
}
{
"success": false,
"code": 500,
"status": "Internal Server Error",
"error": "SERVER_ERROR",
"message": "Error in processing your request"
}
Note: Please do not share your tokens in publicly accessible areas or to anyone. Also, this token generated is valid for 24 hours only. After its expiry, you can regenerate the access token from the same API endpoint by passing the username and password or from the refresh token API with the help of refresh token.