Skip to main content
GET
Get a template

Authorizations

Authorization
string
header
required

varg API key (varg_...). Get one at app.varg.ai or run bunx vargai login. App sessions may alternatively send a Supabase JWT.

Path Parameters

id
string<uuid>
required

Template id

Response

The template

A community-published render template

id
string<uuid>
documentId
string<uuid>

The template's own (frozen) copy of the source document

sourceDocumentId
string | null

The document the author published it from

userId
string

Author user id

description
string
tags
string[] | null
status
string

Moderation status. Only approved templates are public.

Example:

"approved"

useCount
integer
favoriteCount
integer
isFavorited
boolean

Whether the calling user has favorited it

thumbnailObjectPosition
string
Example:

"center center"

videoObjectPosition
string
Example:

"center center"

isServiceTemplate
boolean
previewUrl
string | null

Short autoplay clip; null until the preview is ready

createdAt
string<date-time>
document
object

The document that holds the template's TSX source

thumbnailUrl
string | null
outputMediaUrl
string | null
outputMediaType
string | null
durationMs
integer | null

Output video duration in milliseconds

author
object