---
title: "Your sets, newest first."
method: GET
path: "/v2/sets"
tags: ["sets"]
---

# Your sets, newest first.

`GET /v2/sets`

## Request

- Base URL: `https://api.50heads.com`
- URL: `https://api.50heads.com/v2/sets`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://auth.50heads.com/authorize`, token URL `https://auth.50heads.com/token`; client credentials, token URL `https://auth.50heads.com/token`, scopes: `questions:read`)

## Query parameters

- `status` 'open' | 'closed'
- `limit` integer
- `cursor` string

## Response `200`

OK

- SetListResponse
  - `sets` object[], required
    - `id` string, required
    - `status` 'open' | 'closed', required
    - `shownAs` string, nullable, required
    - `maxAnswers` integer, required
    - `openForDays` union, required
      - 1
      - 7
      - 14
      - 30
    - `publicResults` boolean, required
    - `expiresAt` string, required
    - `questionIds` string[], required
    - `answered` integer, required
    - `creditsReserved` integer, required
    - `creditsSpent` integer, required
    - `link` object, nullable, required
      - `url` string, required
      - `qrSvgUrl` string, required
      - `qrPngUrl` string, required
      - `closesAt` string, nullable, required
      - `views` integer, required
      - `started` integer, required
    - `teamId` string, nullable, required
    - `createdAt` string, required
    - `closedAt` string, nullable, required
  - `nextCursor` string, nullable, required

## Other responses

- `400`: The request is not valid; `error.details.validation` lists the fixes.
- `401`: No key or token, or it expired or was revoked.
- `403`: The key or token lacks the scope (`insufficient_scope`), or the action is not allowed.
- `429`: Too many requests; wait for Retry-After.

---

[API](https://skmtc.dev/50heads/apis/50heads-api.md) · [All operations](https://skmtc.dev/50heads/apis/50heads-api/llms.txt) · [OpenAPI document](https://skmtc.dev/50heads/apis/50heads-api/revisions/20175e8b00e3?raw)
