The Responses API allows you to retrieve survey responses from the Management API and submit responses from the Client API.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 Response Object
Attributes
Unique identifier for the response
ISO 8601 timestamp of when the response was created
ISO 8601 timestamp of when the response was last updated
The ID of the survey this response belongs to
The ID of the contact who submitted the response (if identified)
Whether the response is complete
Response data as key-value pairs (question ID to answer)
Variables collected during the response (string or number values)
Time to complete (in seconds) for each question
Metadata about the response including source, URL, userAgent, country, and action
Contact attributes at the time of response
Language code of the response (e.g., “en”)
Management API
Use the Management API to retrieve responses from your surveys.List Responses
Query Parameters
Filter responses by survey ID
Filter responses by contact ID
Maximum number of responses to return (1-100)
Number of responses to skip for pagination
Filter responses created after this date (ISO 8601)
Filter responses created before this date (ISO 8601)
Field to sort by:
createdAt or updatedAtSort order:
asc or descResponse
Retrieve a Response
Get a specific response by ID.Path Parameters
The ID of the response to retrieve
Delete a Response
Delete a response permanently.Path Parameters
The ID of the response to delete
Client API
Use the Client API to submit survey responses from your application.Create a Response
Submit a new survey response.Path Parameters
The environment ID where the survey exists
Body Parameters
The ID of the survey being responded to
Whether this is the final submission (true) or a partial response (false)
Response data as question ID to answer mapping
User identifier for contact tracking (Enterprise only)
The display ID if tracking survey displays
Single-use ID for link surveys
Language code for the response
Additional variables to store with the response
Time to complete (in seconds) for each question
Metadata including source, url, and action
Response
The ID of the created response
Whether the survey quota has been reached
Update a Response
Update an existing response (for partial submissions).Path Parameters
The environment ID
The ID of the response to update
Body Parameters
Mark the response as finished
Additional response data to merge with existing data
Update the response language
Additional variables to merge
Additional time to complete data
Response
Returns the same format as creating a response.Responses marked as
finished: true cannot be updated. You’ll receive a 400 error if you attempt to update a finished response.Data Validation
The API validates response data against the survey’s validation rules:- Required fields must be present when
finished: true - Data types must match question types
- File uploads are validated against allowed types
- Text length limits are enforced
400 Bad Request with details:
Response Events
When responses are created or updated, events are sent to the pipeline:responseCreated- Fired when a response is first createdresponseUpdated- Fired when a response is updatedresponseFinished- Fired when a response is marked as finished