Skip to main content
GET
Get a code snippet and its versions

Authorizations

Authorization
string
header
required

A workspace API key, sent as Authorization: Bearer sempera_sk_... Each operation names the one scope it needs. Scopes, key kinds and roles are in the Authentication guide.

Path Parameters

snippet_id
string
required

Response

OK

id
string
required
Pattern: ^snip_[0-9a-f]{16}$
object
any
required
name
string
required
description
string
status
enum<string>
Available options:
active,
archived
latest_published
integer | null
draft_version
integer | null
versions
object[]
used_by
object[]
created_at
any
updated_at
any
archived_at
any
created_by
any