Surveys
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
List all surveys
Required API key scopes
survey:readPath parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query parameters
- limitintegerNumber of results to return per page. 
- offsetintegerThe initial index from which to return the results. 
Response
Request
GET 
Response
Status 200
Create surveys
Required API key scopes
survey:writePath parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Request parameters
- namestring
- descriptionstring
- type
- linked_flag_idinteger
- targeting_flag_idinteger
- targeting_flag_filters
- remove_targeting_flagboolean
- questions
- conditions
- appearance
- start_datestring
- end_datestring
- archivedboolean
Response
Request
POST 
Response
Status 201
Retrieve surveys
Required API key scopes
survey:readPath parameters
- idstringA UUID string identifying this survey. 
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Response
Request
GET 
Response
Status 200
Update surveys
Required API key scopes
survey:writePath parameters
- idstringA UUID string identifying this survey. 
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Request parameters
- namestring
- descriptionstring
- type
- linked_flag_idinteger
- targeting_flag_idinteger
- targeting_flag_filters
- remove_targeting_flagboolean
- questions
- conditions
- appearance
- start_datestring
- end_datestring
- archivedboolean
Response
Request
PATCH 
Response
Status 200
Delete surveys
Required API key scopes
survey:writePath parameters
- idstringA UUID string identifying this survey. 
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Request
DELETE 
Response
Status 204 No response body
Retrieve surveys responses count
Path parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Response
Request
GET 
Response
Status 200