Surveys
Surveys
GET
https://api.feedbackly.com/v5/surveys
This endpoint returns all available surveys with the questions embedded
Query Parameters
Name | Type | Description |
---|---|---|
skip | number | Number of documents to skip from the start |
preferredLanguage | string | Preferred language to show the titles in |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Authentication token to access the API eg: 'Authorization': 'ey0iuefg.834xcunerun348efnsd' |
Request return type
Field | Type | Example | Description |
data | Survey data objects | ||
paging | Pagination object |
Survey by id
GET
https://api.feedbackly.com/v5/questions/:id
Gets question by id
Path Parameters
Name | Type | Description |
---|---|---|
id | string | Id of the survey |
Query Parameters
Name | Type | Description |
---|---|---|
preferredLanguage | string | Preferred language to show the titles in |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Authentication token to access the API eg: 'Authorization': 'ey0iuefg.834xcunerun348efnsd' |
Survey data object
Field | Type | Example | Description |
teamId | string | "5a3386af952bf6000177bdda" | Team id |
languages | string[] | ["en", "es"] | List of available languages for the survey |
name | string | "Satisfaction survey" | Survey name |
_id | string | "5a3386af952bf6000177bdda" | Survey id |
language | string | "en" | Language used to display titles, choices etc |
teamName | string | "My team name" | Team name |
createdBy | string | "Khal Drogo" | User name |
archived | boolean | false | Whether the survey is archived |
questions | array | Questions embedded within the survey | |
> _id | string | "5a3386af952bf6000177bdda" | Question id |
> questionType | string | "NPS" | |
> title | string | "How would you recommend us to a friend or colleague?" | Question title |
> choices | array | Question choices | |
>> fieldId | string | "1" | The id of the field |
>> fieldName | string | "Beef" | The label of the choice |
>> type? | string | "string" | Type of field (Contact question type) |
>> subType? | string | "tel" | Subtype of the field (Contact question type) |
>> imageUrl? | string | "https://example.com/1.png" | Image url of the choice (Image question type) |
Last updated