Read a survey's visibility and the impact of changing it
Changed onReturns the survey's enforced visibility, its owner, the caller's access, and what a change would do: blockers[] lists the outbound connections that currently make restricted refusable (webhooks, integrations, active feedback sources, draft or enabled workflows, and non-archived creatives that open it), impact carries the numbers the confirmation dialogues show, allowedTargets[] the values a POST would act on right now, and pending / version describe a change still in flight. Read this before offering "Make restricted"; the POST answers 409 while blockers[] is non-empty.
Requires survey.change_visibility, the same permission as the POST: the survey's owner while they still hold read access to the workspace, or an organisation owner/manager, with the feature enabled. Everyone else — read or write members, team-level managers, every API key, and anyone who cannot see the survey at all — answers 403 with the same body as an unknown id. Connection names and ids are configuration, not survey content, and only the people who may act on them get to read them.
While pending is non-null the survey is restricted for everyone but its owner (within their workspace access: read to view, write to edit) and the organisation's owners and managers, whichever direction is queued — the application fails closed until the graph acknowledges the change — so visibility reads restricted in that state and allowedTargets includes the value that cancels the pending change.
Request
- Base URLhttps://app.formbricks.com
- URLhttps://app.formbricks.com/api/v3/surveys/{surveyId}/visibility
- Auth
- API key in cookie next-auth.session-token
- or API key in header x-api-key
- or HTTP bearer
Path parameters
Survey identifier.
Response
Visibility state retrieved
Example response
{
"data": {
"access": {
"via": "workspace"
}
}
}Changes
- warning
added the new
chart_in_useenum value to theresponse property for the response status - warning
added the new
chart_in_useenum value to theresponse property for the response status - warning
added the new
chart_in_useenum value to theresponse property for the response status - warning
added the new
chart_in_useenum value to theresponse property for the response status - warning
added the new
chart_in_useenum value to theresponse property for the response status - warning
added the new
dashboards_plan_requiredenum value to theresponse property for the response status - warning
added the new
dashboards_plan_requiredenum value to theresponse property for the response status - warning
added the new
dashboards_plan_requiredenum value to theresponse property for the response status - warning
added the new
dashboards_plan_requiredenum value to theresponse property for the response status - warning
added the new
dashboards_plan_requiredenum value to theresponse property for the response status - warning
added the new
limit_exceededenum value to the//response property for the response status - warning
added the new
limit_exceededenum value to the//response property for the response status - warning
added the new
limit_exceededenum value to the//response property for the response status - warning
added the new
limit_exceededenum value to the//response property for the response status - warning
added the new
limit_exceededenum value to the//response property for the response status
- warning
- warning
added the new
creativeenum value to the////response property for the response status - warning
added the new
creatives_not_entitledenum value to theresponse property for the response status - warning
added the new
creatives_not_entitledenum value to theresponse property for the response status - warning
added the new
creatives_not_entitledenum value to theresponse property for the response status - warning
added the new
creatives_not_entitledenum value to theresponse property for the response status - warning
added the new
creatives_not_entitledenum value to theresponse property for the response status - warning
added the new
survey_has_linked_creativesenum value to theresponse property for the response status - warning
added the new
survey_has_linked_creativesenum value to theresponse property for the response status - warning
added the new
survey_has_linked_creativesenum value to theresponse property for the response status - warning
added the new
survey_has_linked_creativesenum value to theresponse property for the response status - warning
added the new
survey_has_linked_creativesenum value to theresponse property for the response status
- warning