---
updatedAt: 2026-06-09T16:19:20.000Z
agentTools:
  projectIndex: https://docs.smartsurvey.io/llms.txt
---

# Add

Adds a new page to the end of a survey

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "SS Public API",
    "version": "v2"
  },
  "servers": [
    {
      "url": "https://{host}/v2",
      "description": "Select the host for the region your account's data is stored in.",
      "variables": {
        "host": {
          "default": "api.smartsurvey.io",
          "description": "The regional hostname for your account.",
          "enum": [
            "api.smartsurvey.io",
            "api-eu.smartsurvey.io",
            "api-us.smartsurvey.io"
          ]
        }
      }
    }
  ],
  "paths": {
    "/surveys/{surveyId}/pages": {
      "post": {
        "tags": [
          "SurveyPages"
        ],
        "summary": "Add",
        "description": "Adds a new page to the end of a survey",
        "parameters": [
          {
            "name": "surveyId",
            "in": "path",
            "description": "The survey id that you want to add a page to",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SmartSurvey.Public.API.Models.SurveyPages.SurveyPageUpdateModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SmartSurvey.Public.API.Models.SurveyPages.SurveyPageUpdateModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SmartSurvey.Public.API.Models.SurveyPages.SurveyPageUpdateModel"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/SmartSurvey.Public.API.Models.SurveyPages.SurveyPageUpdateModel"
              }
            },
            "text/xml": {
              "schema": {
                "$ref": "#/components/schemas/SmartSurvey.Public.API.Models.SurveyPages.SurveyPageUpdateModel"
              }
            },
            "application/*+xml": {
              "schema": {
                "$ref": "#/components/schemas/SmartSurvey.Public.API.Models.SurveyPages.SurveyPageUpdateModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SmartSurvey.Public.API.Models.Surveys.PageDetailedResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmartSurvey.Public.API.Models.Surveys.PageDetailedResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmartSurvey.Public.API.Models.Surveys.PageDetailedResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/SmartSurvey.Public.API.Models.Surveys.PageDetailedResponse"
                }
              },
              "text/xml": {
                "schema": {
                  "$ref": "#/components/schemas/SmartSurvey.Public.API.Models.Surveys.PageDetailedResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/xml": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Survey not found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              },
              "text/xml": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Microsoft.AspNetCore.Mvc.ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "A URI reference [RFC3986] that identifies the problem type. This specification encourages that, when\r\ndereferenced, it provide human-readable documentation for the problem type\r\n(e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be\r\n\"about:blank\".",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence\r\nof the problem, except for purposes of localization(e.g., using proactive content negotiation;\r\nsee[RFC7231], Section 3.4).",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "description": "The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "description": "A human-readable explanation specific to this occurrence of the problem.",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "description": "A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.",
            "nullable": true
          }
        },
        "additionalProperties": {},
        "description": "A machine-readable format for specifying errors in HTTP API responses based on <see href=\"https://tools.ietf.org/html/rfc7807\" />."
      },
      "SmartSurvey.Enums.OptionRandomiseTypes": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "format": "int32"
      },
      "SmartSurvey.Enums.PageCompletionActionTypes": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "format": "int32"
      },
      "SmartSurvey.Enums.RandomiseTypes": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "format": "int32"
      },
      "SmartSurvey.Enums.TerminalResponseStatusTypes": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "format": "int32"
      },
      "SmartSurvey.Public.API.Models.SurveyPages.SurveyPageUpdateModel": {
        "type": "object",
        "properties": {
          "title": {
            "maxLength": 500,
            "type": "string",
            "description": "The optional new title to update to",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "The optional new page description to update to",
            "nullable": true
          },
          "css_class": {
            "maxLength": 500,
            "type": "string",
            "description": "The optional new page css class(es) to update to",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A model for updating a survey page"
      },
      "SmartSurvey.Public.API.Models.Surveys.PageDetailedResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The unique id of this page",
            "format": "int32"
          },
          "title": {
            "type": "string",
            "description": "The title of the page",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "The page description",
            "nullable": true
          },
          "position": {
            "type": "integer",
            "description": "The relative position of this page in the survey",
            "format": "int32"
          },
          "date_created": {
            "type": "string",
            "description": "The date that the page was created",
            "format": "date-time"
          },
          "questions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SmartSurvey.Shared.SurveyBuilder.Models.QuestionModel"
            },
            "description": "A list of questions",
            "nullable": true
          },
          "has_display_logic": {
            "type": "boolean",
            "description": "Whether this page carries a display-logic rule. Response-only and sparse: present (true) only when the\r\npage has display logic, and omitted (null) otherwise — so its absence means \"no display logic\".",
            "nullable": true
          },
          "page_logic": {
            "$ref": "#/components/schemas/SmartSurvey.Shared.SurveyBuilder.PageLogic.PageLogic"
          }
        },
        "additionalProperties": false,
        "description": "A DTO representing page details for survey design"
      },
      "SmartSurvey.Shared.SurveyBuilder.Models.CarryForward": {
        "type": "object",
        "properties": {
          "source_question_id": {
            "type": "integer",
            "format": "int32"
          },
          "mode": {
            "type": "string",
            "nullable": true
          },
          "columns": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SmartSurvey.Shared.SurveyBuilder.Models.ChoiceCarryForward": {
        "type": "object",
        "properties": {
          "source_choice_id": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "display": {
            "type": "string",
            "nullable": true
          },
          "is_other": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SmartSurvey.Shared.SurveyBuilder.Models.ChoiceImage": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "nullable": true
          },
          "alt_text": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SmartSurvey.Shared.SurveyBuilder.Models.ChoiceOrdering": {
        "type": "object",
        "properties": {
          "order": {
            "$ref": "#/components/schemas/SmartSurvey.Enums.OptionRandomiseTypes"
          },
          "last_choice_static": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SmartSurvey.Shared.SurveyBuilder.Models.ChoiceProperties": {
        "type": "object",
        "properties": {
          "required": {
            "type": "boolean"
          },
          "hide_option": {
            "type": "boolean"
          },
          "score_value": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "none_of_the_above": {
            "type": "boolean",
            "nullable": true
          },
          "lines": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "width": {
            "type": "string",
            "nullable": true
          },
          "format": {
            "type": "string",
            "nullable": true
          },
          "group_required": {
            "type": "boolean",
            "nullable": true
          },
          "max_per_row": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "text_box_width": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "required_message": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          },
          "validation_message": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SmartSurvey.Shared.SurveyBuilder.Models.QuestionChoice": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "position": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "group_ref": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "properties": {
            "$ref": "#/components/schemas/SmartSurvey.Shared.SurveyBuilder.Models.ChoiceProperties"
          },
          "image": {
            "$ref": "#/components/schemas/SmartSurvey.Shared.SurveyBuilder.Models.ChoiceImage"
          },
          "carry_forward": {
            "$ref": "#/components/schemas/SmartSurvey.Shared.SurveyBuilder.Models.ChoiceCarryForward"
          },
          "has_display_logic": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SmartSurvey.Shared.SurveyBuilder.Models.QuestionConfig": {
        "type": "object",
        "additionalProperties": false
      },
      "SmartSurvey.Shared.SurveyBuilder.Models.QuestionModel": {
        "required": [
          "type"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "type": {
            "minLength": 1,
            "type": "string"
          },
          "sub_type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "maxLength": 4000,
            "type": "string",
            "nullable": true
          },
          "raw_title": {
            "type": "string",
            "nullable": true
          },
          "position": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "number": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "date_created": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "date_modified_utc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "properties": {
            "$ref": "#/components/schemas/SmartSurvey.Shared.SurveyBuilder.Models.QuestionProperties"
          },
          "choices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SmartSurvey.Shared.SurveyBuilder.Models.QuestionChoice"
            },
            "nullable": true
          },
          "choice_ordering": {
            "$ref": "#/components/schemas/SmartSurvey.Shared.SurveyBuilder.Models.ChoiceOrdering"
          },
          "config": {
            "$ref": "#/components/schemas/SmartSurvey.Shared.SurveyBuilder.Models.QuestionConfig"
          },
          "carry_forward": {
            "$ref": "#/components/schemas/SmartSurvey.Shared.SurveyBuilder.Models.CarryForward"
          },
          "has_display_logic": {
            "type": "boolean",
            "nullable": true
          },
          "skip_logic_count": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SmartSurvey.Shared.SurveyBuilder.Models.QuestionProperties": {
        "type": "object",
        "properties": {
          "required": {
            "type": "boolean"
          },
          "hide_question": {
            "type": "boolean"
          },
          "skip_numbering": {
            "type": "boolean"
          },
          "css_class": {
            "type": "string",
            "nullable": true
          },
          "required_message": {
            "maxLength": 1000,
            "type": "string",
            "nullable": true
          },
          "validation_message": {
            "maxLength": 1000,
            "type": "string",
            "nullable": true
          },
          "default_answer": {
            "maxLength": 1000,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SmartSurvey.Shared.SurveyBuilder.PageLogic.CompletionAction": {
        "type": "object",
        "properties": {
          "action": {
            "$ref": "#/components/schemas/SmartSurvey.Enums.PageCompletionActionTypes"
          },
          "destination_page_id": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SmartSurvey.Shared.SurveyBuilder.PageLogic.PageLogic": {
        "type": "object",
        "properties": {
          "completion_action": {
            "$ref": "#/components/schemas/SmartSurvey.Shared.SurveyBuilder.PageLogic.CompletionAction"
          },
          "terminal": {
            "$ref": "#/components/schemas/SmartSurvey.Shared.SurveyBuilder.PageLogic.TerminalAction"
          },
          "question_randomisation": {
            "$ref": "#/components/schemas/SmartSurvey.Shared.SurveyBuilder.PageLogic.QuestionRandomisation"
          },
          "is_empty": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "SmartSurvey.Shared.SurveyBuilder.PageLogic.QuestionRandomisation": {
        "type": "object",
        "properties": {
          "randomisation": {
            "$ref": "#/components/schemas/SmartSurvey.Enums.RandomiseTypes"
          },
          "number_questions_to_display": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "questions": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SmartSurvey.Shared.SurveyBuilder.PageLogic.TerminalAction": {
        "type": "object",
        "properties": {
          "thank_you": {
            "type": "boolean"
          },
          "response_status": {
            "$ref": "#/components/schemas/SmartSurvey.Enums.TerminalResponseStatusTypes"
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "Basic": {
        "type": "http",
        "description": "Basic Authorization",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "Basic": []
    }
  ]
}
```