Create survey

View as MarkdownOpen in Claude

You can create a survey with either sections -> questions or just questions. This allows you to decide how much flexibility you want in your survey design. However, if you want to render the survey in the Prolific Application, you must use sections.

Authentication

Authorizationstring
The Prolific API uses API token to authenticate requests. You can create an API token directly from your settings. Your API token does not have an expiry date and carries full permission, so be sure to keep them secure. If your token is leaked, delete it and create a new one directly in the app. In your requests add `Authorization` header with the value `Token <your token>`.

Request

This endpoint expects an object.
researcher_idstringRequired
The Prolific researcher ID.
titlestringRequired
The survey title.
sectionslist of objectsOptional

An array of sections in the survey, or use questions.

questionslist of objectsOptional

An array of questions in the survey, or use sections.

Response

Successful Response
researcher_idstring
The Prolific researcher ID.
titlestring
The survey title.
_idstring or null
Auto generated by the system.
date_createddatetime or null

The date/time the survey was created (UTC).

date_modifieddatetime or null

The date/time the survey was modified (UTC).

sectionslist of objects or null

Optional: An array of sections in the survey, otherwise questions will be defined.

questionslist of objects or null

Optional: An array of questions in the survey, otherwise sections will be defined.

Errors