---
title: "Add Survey Question"
method: POST
path: "/api/surveys/{survey_id}/questions"
---

# Add Survey Question

`POST /api/surveys/{survey_id}/questions`

## Request

- Base URL: `https://api.ascendkit.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ascendkit.dev/api/surveys/{survey_id}/questions`
- Auth: API key in header `X-AscendKit-Public-Key` and HTTP bearer

## Path parameters

- `survey_id` string, required

## Request body

- QuestionAdd
  - `type` 'text' | 'comment' | 'radiogroup' | 'checkbox' | 'rating' | 'boolean' | 'dropdown' | 'ranking', required
  - `title` string, required
  - `name` string, nullable
  - `isRequired` boolean
  - `choices` string[], nullable
  - `rateMin` integer, nullable
  - `rateMax` integer, nullable
  - `minRateDescription` string, nullable
  - `maxRateDescription` string, nullable
  - `inputType` string, nullable
  - `visibleIf` string, nullable
  - `requiredIf` string, nullable
  - `position` integer, nullable

## Response `200`

Successful Response

- ApiResponse
  - `data` unknown
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ascendkit/apis/ascendkit-api.md) · [All operations](https://skmtc.dev/ascendkit/apis/ascendkit-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ascendkit/apis/ascendkit-api/revisions/0a41c122c44f?raw)
