Documentation menu

Get template

GEThttps://api.instacloud.com/templates/{code}

Token scope: account · org · project — read-only tokens allowed.

One template: upstream pin, services, and its required/optional variables. Public — no auth required.

Parameters

NameInTypeRequiredDescription
codepathstringyestemplate code (lower-kebab)

Responses

200

Default Response

FieldTypeRequiredDescription
templateobjectyes
template.codestringno
template.versionstringno
template.maintainerstringno
template.sourcestringno
template.namestringno
template.taglinestringno
template.categorystringno
template.tagsstring[]no
template.upstreamobjectnothe upstream pin (repo/image/pinned) from the manifest
template.servicesobjectnothe manifest's services map, keyed by service name
template.variablesobjectno
template.variables.requiredobject[]no
template.variables.required.namestringyes
template.variables.required.descriptionstringno
template.variables.required.requiredbooleanno
template.variables.required.defaultstringno
template.variables.required.generatestringnogenerator spec (secret:N) — the platform auto-generates the value when the caller supplies none
template.variables.required.editablebooleanno
template.variables.optionalobject[]no
template.variables.optional.namestringyes
template.variables.optional.descriptionstringno
template.variables.optional.requiredbooleanno
template.variables.optional.defaultstringno
template.variables.optional.generatestringnogenerator spec (secret:N) — the platform auto-generates the value when the caller supplies none
template.variables.optional.editablebooleanno
template.constraintsobject[]no
template.totalProjectsintegernodistinct PROJECTS that deployed this template since its first publish (any outcome) — the adoption number; one project deploying repeatedly counts once
template.activeProjectsintegernodistinct PROJECTS that still have at least one live service from a SUCCEEDED deployment of this template made since its first publish (service in creating/active; deleting, errored or deleted services do not keep a project active) — what a visitor reads as "running this now"
template.successRateinteger | nullnoshare of the CONCLUDED deployments of this template since its first publish that reached succeeded, as a whole percent. Denominator: deployments with status succeeded + failed + partial, EXCLUDING runs abandoned by a platform restart (a platform release must not count against a template) and excluding running deployments (not concluded). A partial deployment counts as a failure. This is a per-DEPLOYMENT rate, not per attempt: an idempotent retry reuses its deployment row. null (never 0) when nothing has concluded — no data is not 0%
template.deploymentCountintegernocumulative DEPLOYMENT runs for this code since the template was first published
template.activeDeploymentCountintegernoDEPLOYMENT runs since the first publish that succeeded and still have a live attributed service
template.logoUrlstring | nullnoabsolute https logo URL; null when the template published no logo. Official templates: a commit-pinned jsDelivr URL (TEMPLATE_LOGO_HOST in templateManifest.ts). Community templates: any https:// link the author set.
template.licensestring | nullnothe upstream project's license id, from the manifest's upstream.license; null when the manifest declares none
template.updatedAtstringnowhen this template was last published — the catalog freshness stamp
template.readmestring | nullnothe template README as markdown (capped at publish — see templateManifest.ts TEMPLATE_README_MAX_BYTES); null when the template published none. Render with raw HTML disabled: the platform bounds its size, not its contents.
template.documentationUrlstring | nullnothe upstream project's own documentation link, from the manifest's meta.links.documentation; null when the manifest declares none

404

Default Response

FieldTypeRequiredDescription
errorstringyes

View as Markdown