Surveys
List surveys
Standalone surveys: hosted multi-question forms respondents open from a link. Not to be confused with micro surveys, which show inside your product.
Authorization
BearerAuth AuthorizationBearer <token>
Use an API key from the Produktly dashboard → Settings → API keys.
In: header
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/surveys"{ "data": [ { "id": 0, "name": "string", "active": true, "status": "draft", "publicUrl": "string", "responseCount": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "folderId": 0 } ], "pagination": { "total": 0, "limit": 0, "offset": 0 }}Widget stats by entity type GET
Previous Page
Create a survey POST
Creates the survey as a draft. Pass active: true to publish immediately so publicUrl accepts responses; that needs an API key with the publish scope, otherwise the survey stays a draft and the response note says why. A question can be shown only when earlier answers match: give the earlier question an id and reference it from conditions.rules. Conditions that could never match are rejected.