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

# Get one survey

> Returns one survey with its questions, theme and email.



## OpenAPI

````yaml /api/statisfy-api.openapi.json get /v1/surveys/{survey_id}
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/surveys/{survey_id}:
    get:
      tags:
        - surveys
      summary: Get one survey
      description: Returns one survey with its questions, theme and email.
      operationId: surveys_get
      parameters:
        - description: The survey's id, from GET /v1/surveys
          in: path
          name: survey_id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Survey'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    Survey:
      properties:
        created_at:
          format: date-time
          title: Created At
          type: string
        definition:
          additionalProperties: true
          description: >-
            The survey's questions and pages: the SurveyJS JSON the app's survey
            builder saves
            (https://help.statisfy.com/rest-api/survey_definition). Elements sit
            in `pages[].elements` (or top-level `elements`) and in panels'
            `elements`; panels nest at most 10 deep. An element's `type` is one
            of boolean, checkbox, comment, dropdown, expression, file, html,
            image, imagepicker, matrix, matrixdropdown, matrixdynamic,
            multipletext, panel, paneldynamic, radiogroup, ranking, rating,
            signaturepad, tagbox, text. A question's `name` is the key its
            answers carry, so every question needs one and names must be unique.
            At most 1,000,000 characters as JSON. HTML in it (`html` elements,
            `completedHtml`) is stored as sent and cleaned where the survey
            renders
          title: Definition
          type: object
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        email:
          anyOf:
            - $ref: '#/components/schemas/SurveyEmail'
            - type: 'null'
          description: The email a survey campaign sends; null until one is set
        id:
          title: Id
          type: string
        state:
          description: >-
            draft or published. Only a published survey can be sent in a
            campaign, and a published survey is locked: it can't be changed or
            deleted, only duplicated
          enum:
            - draft
            - published
          title: State
          type: string
        theme:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          description: >-
            The SurveyJS theme JSON the app's survey builder saves
            (https://help.statisfy.com/rest-api/survey_definition#theme)
          title: Theme
        title:
          title: Title
          type: string
        type:
          description: NPS, CSAT, CES or CUSTOM. NPS and CSAT surveys feed account health
          title: Type
          type: string
        updated_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Updated At
      required:
        - id
        - title
        - type
        - state
        - created_at
        - updated_at
        - description
        - definition
        - theme
        - email
      title: Survey
      type: object
    SurveyEmail:
      properties:
        editor:
          description: >-
            Which of the app's email editors made it: simple (the form), visual
            (the drag-and-drop builder) or html (the HTML editor, where the API
            writes)
          enum:
            - simple
            - visual
            - html
          title: Editor
          type: string
        html:
          description: The HTML a campaign sends, merge tags not yet filled in
          title: Html
          type: string
        sender_email:
          anyOf:
            - type: string
            - type: 'null'
          title: Sender Email
        sender_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Sender Name
        subject:
          anyOf:
            - type: string
            - type: 'null'
          title: Subject
      required:
        - editor
        - subject
        - sender_name
        - sender_email
        - html
      title: SurveyEmail
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

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