---
title: "Search Sections"
method: GET
path: "/v1/projects/{project_id}/context/sections/search"
tags: ["project-context"]
---

# Search Sections

`GET /v1/projects/{project_id}/context/sections/search`

## Request

- Base URL: `https://api.sonenta.dev`
- URL: `https://api.sonenta.dev/v1/projects/{project_id}/context/sections/search`
- Auth: none declared

Substring search over title + body (Viewer+); returns light rows + a snippet.

## Path parameters

- `project_id` string, required

## Query parameters

- `q` string, nullable: substring on title + body
- `type` string, nullable
- `language` string, nullable: sections applying to this code

## Response `200`

Successful Response

- SectionsSearchOut
  - `v` integer
  - `items` SectionSearchItem[], required
    - `uuid` string, required
    - `title` string, required
    - `type` string, required
    - `languages` string[], required
    - `position` integer, required
    - `updated_at` string, date-time, nullable
    - `snippet` string
  - `total` integer, required

## Other responses

- `422`: Validation Error

---

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