Rensei docs
API ReferenceTemplates

Get one template catalogue entry with its version list.

Returns a single template (by slug) plus its version list (newest first). Human principals only: a browser session or a WorkOS user-token bearer is accepted; rsk_* API keys and BYOA OAuth-agent tokens authenticate but are rejected 403. Templates are tenant-private: only the authoring org or a first-party `rensei` system template is visible; any other slug returns 404 so existence is not leaked across the tenant boundary. For shared `rensei` templates, per-version publisher identity and validation reports are stripped.

GET
/api/templates/{slug}

Authorization

AuthorizationBearer <token>

Rensei API key presented as Authorization: Bearer rsk_live_. Required API-key scopes are recorded per operation in x-rensei-required-scopes.

In: header

Path Parameters

slug*string

The template slug.

Response Body

application/json

curl -X GET "https://example.com/api/templates/string"
{
  "template": {
    "id": "string",
    "slug": "string",
    "name": "string",
    "description": "string",
    "author": "string",
    "latestVersion": "string",
    "category": "string",
    "createdAt": "string",
    "updatedAt": "string"
  },
  "versions": [
    {
      "id": "string",
      "version": "string",
      "bundleSha256": "string",
      "metadata": {
        "property1": null,
        "property2": null
      },
      "validationReport": {
        "property1": null,
        "property2": null
      },
      "publishedBy": "string",
      "publishedAt": "string"
    }
  ]
}
Empty
Empty
Empty