The Surveys API allows you to create, retrieve, update, and delete surveys programmatically.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/formbricks/formbricks/llms.txt
Use this file to discover all available pages before exploring further.
The Survey Object
Surveys contain questions/blocks, endings, and configuration for display and targeting.Attributes
Unique identifier for the survey
ISO 8601 timestamp of when the survey was created
ISO 8601 timestamp of when the survey was last updated
The environment this survey belongs to
Array of survey blocks containing questions and elements
Legacy: Array of questions (for backwards compatibility)
Survey endings/thank you screens
Survey status:
draft, scheduled, inProgress, paused, or completedList All Surveys
Query Parameters
Maximum number of surveys to return
Number of surveys to skip (for pagination)
Response
Retrieve a Survey
Get a specific survey by ID.Path Parameters
The ID of the survey to retrieve
Response
Create a Survey
Create a new survey in your environment.Body Parameters
The environment ID where the survey will be created
Array of survey blocks containing questions and elements
Array of survey endings/thank you screens
Survey status:
draft, scheduled, inProgress, paused, or completedResponse
Returns the created survey object with a201 Created status.
Update a Survey
Update an existing survey.Path Parameters
The ID of the survey to update
Body Parameters
Any survey fields you want to update. Only include fields that should be changed.Response
Returns the updated survey object.Delete a Survey
Delete a survey permanently.Path Parameters
The ID of the survey to delete
Response
Returns the deleted survey object.Legacy: Questions Format
For backwards compatibility, the API supports the legacyquestions format. When a survey has blocks where each block contains exactly one element, the API automatically transforms it to the questions format in responses.
When creating or updating surveys with the questions field, they are automatically converted to the modern blocks format.
Feature Permissions
Some survey features require specific organization plans:- Advanced targeting rules
- Custom survey logic
- Enterprise integrations
403 Forbidden response.