---
title: "Get Snippet"
method: GET
path: "/v2/snippets/{snippetId}"
tags: ["Snippets"]
---

# Get Snippet

`GET /v2/snippets/{snippetId}`

## Request

- Base URL: `https://api.sidequestvr.com`
- URL: `https://api.sidequestvr.com/v2/snippets/{snippetId}`
- Auth: none declared

Returns a single snippet including its markup. Responds 404 for soft-deleted snippets (admins still see them).

## Path parameters

- `snippetId` string, required

## Response `200`

Success

- Snippet: A reusable block of Banter markup published by a user for anyone to paste into a world's index.html
  - `snippets_id` integer, required: The unique ID of the snippet
  - `users_id` integer, required: The ID of the user that owns the snippet
  - `user_name` string: The display name of the owning user
  - `name` string, required: The name of the snippet
  - `slug` string, required: The unique lowercase handle used by the public code endpoint (GET /v2/snippets/code/{slug})
  - `description` string: The description of the snippet
  - `image_url` string: A URL to the snippet's card image
  - `code` string: The snippet markup. Omitted from list rows -- read a single snippet to get it.
  - `created_at` string, date-time, required: A timestamp indicating when the snippet was created
  - `last_modified` string, date-time, required: A timestamp indicating the last time the snippet was modified

## Other responses

- `400`: The data provided to the call was incorrect or incomplete.
- `404`: No resource was found at the target path or the authorization token provided does not have access to know that it exists.

## Changes

- **2026-10-12** `5f62fe19531f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sidequestvr/apis/sidequest-api/changes/v2/snippets/:snippetId/get.md)

---

[API](https://skmtc.dev/sidequestvr/apis/sidequest-api.md) - [All operations](https://skmtc.dev/sidequestvr/apis/sidequest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sidequestvr/apis/sidequest-api/revisions/015df326911c?raw)
