Skip to content

Create a form

Creates a new form with the given name in a workspace of the token’s team. The form starts empty: save its questions, pages and settings with Update a form’s definition. Needs the forms:write scope and editor access to the workspace.

POST https://api.responsly.com/v1/forms
FieldRequiredDescription
workspace_idyesThe workspace for the form, for example from Get workspaces.
nameyesName of the form, up to 255 characters.
Terminal window
curl -X POST https://api.responsly.com/v1/forms \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"workspace_id": "Wk3nP0aQ", "name": "Post-purchase survey"}'

The response is 201 Created with the new form, in the same shape as Get a form, including its version. The definition is included only for a token with the forms:read scope.

StatusMeaning
403The token lacks forms:write, the workspace belongs to another team or you cannot edit it, or the team’s plan allows no more forms.
422workspace_id or name is missing or invalid.