---
title: "Get Sections"
method: GET
path: "/api/v1/sections"
tags: ["Sections"]
---

# Get Sections

`GET /api/v1/sections`

Get all active sections for the user, optionally filtered by project.

This is a paginated endpoint. See the [Pagination guide](#tag/Pagination) for details on using cursor-based pagination.

## Query parameters

- `project_id` string, nullable — String ID of the project to get sections from. If omitted or null, get sections from all projects.
- `cursor` string, nullable — An opaque string used as the cursor for pagination. Must be used with the same parameters from the previous request
- `limit` integer — The number of objects to return in a page
- `public_key` string, nullable — Public project access key.

## Response `200`

Successful Response

- PaginatedListSectionSyncView
  - `results` SectionSyncView[], required — Objects in the current page of results.
    - `id` string, required — String ID of the section.
    - `user_id` string, required — String ID of the user who owns the section.
    - `project_id` string, required — String ID of the project that contains the section.
    - `added_at` string, date-time, required — Date and time when the section was created.
    - `updated_at` string, date-time, nullable, required — Date and time when the section was last updated, or `null` if unknown.
    - `archived_at` string, date-time, nullable, required — Date and time when the section was archived, or `null` if it is active.
    - `name` string, required — Section name.
    - `description` string, nullable, required — Section description, or `null` if it has none.
    - `section_order` integer, required — Position of the section in the project.
    - `order_key` string, nullable, required — Fractional-indexing order key: sections sort by comparing keys lexicographically within a project. May be `null` for projects not yet migrated.
    - `is_collapsed` boolean, required — Whether the section is collapsed in the user's view.
    - `is_archived` boolean, required — Whether the section is archived.
    - `is_deleted` boolean, required — Whether the section is deleted.
  - `next_cursor` string, nullable, required — Cursor for the next page of results, or `null` when there are no more results.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/todoist/apis/todoist-api.md) · [All operations](https://skmtc.net/todoist/apis/todoist-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/todoist/todoist-api/revisions/69a962f1578f/schema)
