---
title: "Get template usage statistics"
method: GET
path: "/api/v1/templates/stats"
tags: ["Templates"]
deprecated: true
---

# Get template usage statistics

`GET /api/v1/templates/stats`

## Request

- Base URL: `https://agent.getaxonflow.com`
- URL: `https://agent.getaxonflow.com/api/v1/templates/stats`
- Auth: none declared. Required headers: `X-Tenant-ID`
- TypeScript: <https://skmtc.dev/getaxonflow/apis/axonflow-policy-management-api/docs/api/v1/templates/stats/get.ts> (a function with typed inputs; its response is checked against the schema)

> **Deprecated.**

Retrieve usage statistics for templates in your tenant

## Headers

- `X-Tenant-ID` string, required

## Response `200`

Template statistics

- TemplateStatsResponse
  - `stats` object[]
    - `template_id` string
    - `template_name` string
    - `usage_count` integer
    - `last_used_at` string, date-time

## Other responses

- `401`: Missing or invalid tenant ID
- `500`: Internal server error

---

[API](https://skmtc.dev/getaxonflow/apis/axonflow-policy-management-api.md) - [All operations](https://skmtc.dev/getaxonflow/apis/axonflow-policy-management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getaxonflow/apis/axonflow-policy-management-api/revisions/302fbde24320?raw)
