---
title: "Get Matching Paragraph"
method: GET
path: "/authorities/{authority_id}/matching-paragraph"
tags: ["authorities"]
---

# Get Matching Paragraph

`GET /authorities/{authority_id}/matching-paragraph`

## Request

- Base URL: `https://api.casenode.ai`
- URL: `https://api.casenode.ai/authorities/{authority_id}/matching-paragraph`
- Auth: none declared

Expand a search-result snippet into the whole paragraph it was cut from.

A `/search` hit's `matching_paragraph` is a 40-word crop of `full_text`, so
it starts and ends mid-sentence. This resolves that crop back to a single
paragraph for "show whole paragraph", without loading the judgment.

`found: false` when the paragraph cannot be placed — a case with no indexed
paragraphs, or a crop that anchors to nothing. The caller keeps showing the
crop rather than an unrelated paragraph.

## Path parameters

- `authority_id` string, required

## Query parameters

- `q` string: The search query that produced the snippet
- `snippet` string, nullable: The cropped snippet shown to the user, used to disambiguate

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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