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 Display
Create a new display for a valid survey ID. If a userId is passed, the display is linked to the user.
POST
/
{environmentId}
/
displays
curl --request POST \
--url https://app.formbricks.com/api/v2/client/{environmentId}/displays \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"surveyId": "survey123",
"userId": "user123"
}'
{
"displayId": "display123"
}
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}/displays \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"surveyId": "survey123",
"userId": "user123"
}'
{
"displayId": "display123"
}