> ## 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.

# List surveys

> The workspace's surveys, newest first, draft and published, without their questions (GET /v1/surveys/{survey_id} has them). Deleted (archived) surveys are left out.



## OpenAPI

````yaml /api/statisfy-api.openapi.json get /v1/surveys
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:
    get:
      tags:
        - surveys
      summary: List surveys
      description: >-
        The workspace's surveys, newest first, draft and published, without
        their questions (GET /v1/surveys/{survey_id} has them). Deleted
        (archived) surveys are left out.
      operationId: surveys_list
      parameters:
        - description: Only surveys in this state
          in: query
          name: state
          required: false
          schema:
            anyOf:
              - enum:
                  - draft
                  - published
                type: string
              - type: 'null'
            default: null
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SurveysResponse'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    SurveysResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/SurveySummary'
          title: Data
          type: array
      required:
        - data
      title: SurveysResponse
      type: object
    SurveySummary:
      properties:
        created_at:
          format: date-time
          title: Created At
          type: string
        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
        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
      title: SurveySummary
      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.