---
title: "Get Snippet"
method: GET
path: "/public/snippets/{snippet_id}"
tags: ["PUBLIC_SNIPPETS"]
deprecated: true
---

# Get Snippet

`GET /public/snippets/{snippet_id}`

> **Deprecated.**

Get a single snippet by its Weaviate UUID.

This endpoint retrieves a specific snippet from either the
DataDefinition or SqlExamples collection.

## Path parameters

- `snippet_id` string, required

## Response `200`

Successful Response

- SnippetItem — Individual code snippet from Weaviate
  - `id` string, required — Unique identifier for the snippet
  - `title` string, required — Title or name of the snippet
  - `description` string, required — Description of what the snippet does
  - `database_type` string, required — Database type (e.g., clickhouse, postgres)
  - `tags` string[] — Capability tags
  - `type` string, required — Snippet type: data_definition or sql_example
  - `full_content` object — Full snippet content

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.net/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myaltimate/fastapi/versions/aab3fe5c9f05/schema)
