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

# Get Snippet Code

`GET /v2/snippets/code/{slug}`

## Request

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

Returns just the markup of the snippet with the given slug as text/plain. This is what altvr.app's /api/snippets/{slug} relays.

## Path parameters

- `slug` string, required

## Response `200`

Success

## 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/code/:slug/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)
