> ## Documentation Index
> Fetch the complete documentation index at: https://docs.docyard.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# Approve Template

> Approve a template for publishing

# Approve Template

Approve a template, making it available for use in uploads.

## Endpoint

```
POST /admin/templates/{template_id}/approve
```

## Path Parameters

| Parameter     | Type   | Required | Description     |
| ------------- | ------ | -------- | --------------- |
| `template_id` | string | Yes      | The template ID |

## Request

```bash theme={null}
curl -X POST https://api.docyard.io/v1/admin/templates/tmpl-ins-dec-002/approve \
  -H "X-API-Key: dk_live_admin_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "notes": "Template looks good. Locks are properly defined with appropriate weights."
  }'
```

## Response

```json theme={null}
{
  "template_id": "tmpl-ins-dec-002",
  "status": "published",
  "approved_at": "2026-03-15T11:00:00Z",
  "approved_by": "admin-001",
  "message": "Template approved and published successfully."
}
```

***

## Related Endpoints

* [Reject Template](/api-reference/admin/reject)
* [List Pending Templates](/api-reference/admin/list-pending)
