---
title: "Get surveys | Mostra survey"
method: GET
path: "/surveys"
tags: ["Surveys"]
---

# Get surveys | Mostra survey

`GET /surveys`

## Request

- Base URL: `https://app.didattica.polito.it/api`
- URL: `https://app.didattica.polito.it/api/surveys`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/polito/apis/polito-students-api/docs/surveys/get.ts> (a function with typed inputs; its response is checked against the schema)

## Response `200`

The request has succeeded.

- object
  - `data` Survey[], required
    - `id` number, required
    - `title` string, required
    - `subtitle` string, nullable, required
    - `category` SurveyTaxonomy, required
      - `id` string, required
      - `name` string, required
    - `type` SurveyTaxonomy, required
      - `id` string, required
      - `name` string, required
    - `period` number, required
    - `year` string, required
    - `isMandatory` boolean, required
    - `isCompiled` boolean, required
    - `compileDate` string, date-time, nullable, required
    - `url` string, required
    - `startsAt` string, date-time, required
    - `endsAt` string, date-time, required
    - `course` SurveyCourseRef
      - `id` number, required
      - `name` string, required
      - `shortcode` string, required

## Other responses

- `400`: The server could not understand the request due to invalid syntax.
- `500`: Server error

---

[API](https://skmtc.dev/polito/apis/polito-students-api.md) - [All operations](https://skmtc.dev/polito/apis/polito-students-api/llms.txt) - [OpenAPI document](https://skmtc.dev/polito/apis/polito-students-api/revisions/9d87728aaa56?raw)
