---
name: metabase_get_snippet
kind: function
lang: py
domain: infra
version: "1.0.0"
purity: impure
signature: "def metabase_get_snippet(client: MetabaseClient, snippet_id: int) -> dict"
description: "Obtiene un SQL snippet de Metabase por su ID. Endpoint: GET /api/native-query-snippet/:id."
tags: [metabase, snippet, get, api, python, pendiente-usar]
uses_functions: []
uses_types: [MetabaseClient_go_infra]
returns: []
returns_optional: false
error_type: "error_go_core"
imports: [httpx]
params:
  - name: client
    desc: "instancia autenticada de MetabaseClient"
  - name: snippet_id
    desc: "ID numerico del snippet a obtener"
output: "dict: snippet completo con id, name, content, description, collection_id, creator_id, archived, created_at, updated_at"
tested: false
tests: []
test_file_path: ""
file_path: "python/functions/metabase/snippets.py"
---

## Ejemplo

```python
snippet = metabase_get_snippet(client, 42)
print(snippet["name"])
print(snippet["content"])
print(snippet["description"])
```

## Notas

Retorna 404 si el snippet no existe.
Util para verificar el contenido actual antes de hacer un update.
