---
title: "Check Template Safety Route"
method: POST
path: "/templates/{template_identifier}/safety-check"
---

# Check Template Safety Route

`POST /templates/{template_identifier}/safety-check`

## Request

- Base URL: `https://api.goodeye.dev/v1`
- URL: `https://api.goodeye.dev/v1/templates/{template_identifier}/safety-check`
- Auth: none declared

Check a published template version for embedded secrets or private data.

Auth is optional: anonymous callers bill against the per-IP-hash
anonymous grant via the metering chokepoint.

Fields longer than the safety check's input limit are truncated for this
scan and flagged in the response (``truncated`` plus ``truncated_fields``);
genuinely invalid input returns 400 ``validation_error``.

## Path parameters

- `template_identifier` string, required

## Query parameters

- `version` integer, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/goodeye/apis/goodeye-api.md) · [All operations](https://skmtc.dev/goodeye/apis/goodeye-api/llms.txt) · [OpenAPI document](https://skmtc.dev/goodeye/apis/goodeye-api/revisions/547cb8bb6ede?raw)
