Skip to main content
GET
Get one version of a code snippet

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
version
integer
required
Required range: x >= 1

Response

OK

object
any
required
snippet_id
string
required
version
integer
required
Required range: x >= 1
state
enum<string>
required

A published version never changes; an edit opens a new draft.

Available options:
draft,
published
source
string

An expression in the restricted transform language.

inputs
object[]
output_schema
object

A subset of JSON Schema; a result that does not match is an error.

timeout_ms
integer
Required range: 250 <= x <= 5000
content_hash
string
created_by
any
created_at
any
updated_at
any
published_by
any
published_at
any
snippet_name
any
snippet_archived
any