---
title: "template_access_denied — no access to the template"
url: https://lumean.app/en/developers/docs/errors/template-access-denied
locale: en
description: "The order was not created. The response is HTTP 403 with the body `{\"success\": false, \"message\": \"…\", \"reason\": \"template_access_denied\"}`. The code comes on an order retry (`POST /orders/{order}/retry`) when the template of the original order is no longer available."
generated: 2026-12-02
---

# template_access_denied — no access to the template

- HTTP: `403`

- `reason`: `template_access_denied`

- `Retry-After` header: no

## What happened

The order was not created. The response is HTTP 403 with the body `{"success": false, "message": "…", "reason": "template_access_denied"}`. The code comes on an order retry (`POST /orders/{order}/retry`) when the template of the original order is no longer available.

## Why

The template belongs to another account, and its owner made it private. Orders can no longer be created from it. In `POST /orders`, another account's private template looks the same as a nonexistent one: a 422 with the `template_id` field in `errors`.

## What to do

Such an order cannot be retried. Create a new order from your own template or a public one. A template belongs to the account, not to a key: a template created in your account works through the API, and the other way round.

## Next request

`GET /templates/{template}` returns 200 only to the template owner. For another account's template it returns 403, and for a nonexistent one 404. Your own templates are listed by `GET /templates`.

## Related

- [Guide: templates](https://lumean.app/en/developers/docs/guide/templates)
- [Guide: keys, scopes and headers](https://lumean.app/en/developers/docs/guide/authentication)
- [GET /templates/{template}](https://lumean.app/en/developers/docs/api/get-templates-template)
- [GET /templates](https://lumean.app/en/developers/docs/api/get-templates)
- [403 — access denied](https://lumean.app/en/developers/docs/errors/403)
- [My key scopes](https://lumean.app/en/developers)

---

- This page in the browser: https://lumean.app/en/developers/docs/errors/template-access-denied
- Full machine-readable reference: https://api.lumean.app/docs/llm.md
