> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getversive.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create question group

> Create a question group or a page

Creates an empty group, at the end of its parent unless you send `after_position`. Add questions with [Create questions in batch](https://docs.getversive.com/api-reference/questions/batch-questions.md) (`question_group_id`) or [Move questions to a group](https://docs.getversive.com/api-reference/question-groups/move-questions.md).

A page (`kind: "page"`) holds only questions — no subgroups or randomizers — of these types: `multipleChoice`, `ratingScale`, `matrixRatingScale`, `matrixSelection`, `nps`, `starRating`, `ranking`, `rankingWithMatrix`, `allocation`, `allocationWithMatrix`, `number`, `dateInput`, `email`, `shortText`, `textInput`, `message`. Its questions can't show a Figma prototype or an embedded website, or have an AI follow-up (`ai_probe`) turned on. Logic can jump to a page (`move_to_question_group`) but not to a question inside it, and display conditions, checks against earlier answers and `{{Q:...}}` references can't use a source on the same page. See [Several questions on one page](https://docs.getversive.com/studies/question-types.md#several-questions-on-one-page).

**study\_id** `string` *required*

The study ID.

**title** `string` *required*

Internal title; a page shows it as its heading.

**parent\_question\_group\_id** `string`

A top-level group to nest this one in. Omit for the top level. A page can't be a parent.

**is\_randomize** `boolean` (default: false)

Shuffle the group's direct children for each participant.

**kind** `string` (default: group)

`group` or `page`. Any other value returns `422`.

**after\_position** `string` (default: end)

`end`, `start`, or the ID of a question, group or randomizer directly in the parent; the new group goes right after it.

### Response

Returns the created group (status `201`).

**id** `string`

The group ID.

**study\_id** `string`

The study the group belongs to.

**parent\_question\_group\_id** `string | null`

The group it sits in, or `null` at the top level. Groups nest at most two levels.

**title** `string`

Internal title. A page shows it as its heading.

**display\_order** `integer`

Position among its siblings (questions and groups share one order).

**is\_randomize** `boolean`

Whether the group shuffles its direct children for each participant.

**is\_pinned** `boolean`

Whether the group keeps its position when its parent is randomized.

**kind** `string`

`group` (questions asked one at a time) or `page` (the web interviewer shows all of its questions on one screen; voice interviews still ask them one at a time).

**routing\_branch\_id** `string | null`

The randomizer arm that owns this group, if any.

```bash cURL theme={null}
curl -X POST "https://api.getversive.com/api/v1/question-groups" \
  -H "Authorization: Bearer $VERSIVE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"study_id": "9b2f7c1e-4a4b-4f6e-9a1d-1c2d3e4f5a6b", "title": "About you", "kind": "page"}'
```

```json 201 theme={null}
{
  "id": "d4e5f6a7-0000-4000-8000-000000000002",
  "study_id": "9b2f7c1e-4a4b-4f6e-9a1d-1c2d3e4f5a6b",
  "parent_question_group_id": null,
  "title": "About you",
  "display_order": 1,
  "is_randomize": false,
  "is_pinned": false,
  "kind": "page",
  "routing_branch_id": null
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.