# Retrieve a snippet `GET /api/v1/snippets/{id}` Returns one snippet by ID. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Snippets → Read**. ## Path parameters - `id` (integer, required) — ID of the snippet. ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request GET \ --url "https://api.asdincloud.com/api/v1/snippets/${ID:?Set ID}" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" ``` ## Response **200 OK** The snippet is returned in data. Example with fictional data and selected fields. ```json { "status": "success", "data": { "id": 8, "name": "Welcome note", "shortcut": "welcome", "body": "Welcome to the club!" } } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `404` — The requested record was not found.