Snippets

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

get/v2/snippets/{snippetId}

Request

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

Path parameters

snippetIdstring required

The unique snippet ID

Response

Success

snippets_idinteger required

The unique ID of the snippet

users_idinteger required

The ID of the user that owns the snippet

user_namestring

The display name of the owning user

namestring required

The name of the snippet

slugstring required

The unique lowercase handle used by the public code endpoint (GET /v2/snippets/code/{slug})

descriptionstring

The description of the snippet

image_urlstring

A URL to the snippet's card image

codestring

The snippet markup. Omitted from list rows -- read a single snippet to get it.

created_atstring date-time required

A timestamp indicating when the snippet was created

last_modifiedstring date-time required

A timestamp indicating the last time the snippet was modified

Example response

{
  "created_at": "1970-04-20 07:10:00+00",
  "last_modified": "1970-04-20 07:10:00+00"
}

Changes