POST/projects/{project_id}/surveys

Create survey from template

Create a new survey from a canonical template. The survey starts in `draft` status — use `PATCH .../status` to flip it to `live` before the widget serves it. Returns 400 when the project has reached the 10-survey limit.

Base URLhttps://seggwat.com/api/v1

Parameters

project_idpathstringrequired

Unique identifier of the project (MongoDB ObjectId)

Example: 507f1f77bcf86cd799439011

Request Body

required

Template to instantiate.

application/json
CreateSurveyRequest

Request body for creating a survey from a canonical template.

templatestringrequired

Which canonical template to instantiate. `trial_exit` is intentionally excluded — that template requires billing context and is managed via the dashboard.

Enum:blanknpscsatces
Example: nps

Responses

Navigation