---
title: "Get a template"
method: GET
path: "/api/templates/{key}"
tags: ["Templates"]
---

# Get a template

`GET /api/templates/{key}`

Retrieves a specific template by its unique key, including the full decision graph and sample request JSON.

## Path parameters

- `key` string, required

## Response `200`

Template details including decision graph

- object — Template details including decision graph
  - `key` string, required — Unique identifier for the template
  - `title` string, required — Display title of the template
  - `industry` string, required — Industry category the template belongs to
  - `description` string, required — Brief description of what the template does
  - `requestJson` string, required — Sample request JSON for testing the template
  - `decisionGraphJson` string, required — JSON representation of the decision graph

---

[API](https://skmtc.dev/gorules/apis/gorules-agent-api.md) · [All operations](https://skmtc.dev/gorules/apis/gorules-agent-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gorules/gorules-agent-api/revisions/52c0773fcd80/schema)
