API v2 Documentation (Draft)
Client API > Response
Client API > Contacts
Client API > Display
Client API > Environment
Client API > User
Client API > File Upload
Roles
Me
Management API > Responses
Management API > Contacts
Management API > Contact Attribute Keys
Management API > Surveys > Contact Links
Management API > Webhooks
Organizations API > Teams
Organizations API > Project Teams
Organizations API > Users
Create Response
Create a response for a survey and its fields with the userβs responses. The userId & meta here is optional
POST
/
{environmentId}
/
responses
curl --request POST \
--url https://app.formbricks.com/api/v2/client/{environmentId}/responses \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"surveyId": "survey123",
"responses": {}
}'
{
"responseId": "response123"
}
Authorizations
Use your Formbricks x-api-key to authenticate.
Body
application/json Β· object
Response
201 - application/json
Created
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://app.formbricks.com/api/v2/client/{environmentId}/responses \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"surveyId": "survey123",
"responses": {}
}'
{
"responseId": "response123"
}