# Monthly Usage History

> Pod Engine API endpoint reference, optimized for LLM consumption.
> Auto-generated from the source-of-truth endpoint registry.
>
> Category: Usage
> Source: https://www.podengine.ai/api-docs/get-team-usage-monthly.md
> Interactive HTML docs: https://www.podengine.ai/api-docs/get-team-usage-monthly
> Full API reference (all endpoints): https://www.podengine.ai/api-docs/llms.txt

**Base URL:** `http://localhost:4000`
**Auth:** Requires a Bearer token: `Authorization: Bearer YOUR_API_KEY`

---

#### GET /api/v1/teams/usage/monthly
**Monthly Usage History**

Get monthly usage history for your team over the past N months.

```bash
curl -X GET "http://localhost:4000/api/v1/teams/usage/monthly" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

**Query schema:**
```json
{
  "type": "object",
  "properties": {
    "months": {
      "default": 6,
      "description": "Number of months of history to return",
      "type": "number",
      "minimum": 1,
      "maximum": 24
    }
  },
  "required": [
    "months"
  ],
  "additionalProperties": false
}
```

**Response schema:**
```json
{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "OK"
      ]
    },
    "data": {
      "type": "object",
      "properties": {
        "months": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "month": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}$",
                "description": "Month in YYYY-MM format"
              },
              "totalUsage": {
                "type": "number",
                "minimum": 0,
                "description": "Total requests in this month"
              },
              "usageByAlias": {
                "type": "object",
                "additionalProperties": {
                  "type": "number",
                  "minimum": 0
                },
                "description": "Usage count per alias for this month"
              }
            },
            "required": [
              "month",
              "totalUsage",
              "usageByAlias"
            ],
            "additionalProperties": false
          },
          "description": "Monthly usage entries sorted by month ascending"
        },
        "limits": {
          "type": "object",
          "additionalProperties": {
            "nullable": true,
            "type": "number",
            "minimum": 0
          },
          "required": [
            "deepResearchRequests",
            "diarizationRequests",
            "episodeLookups",
            "exportCount",
            "podcastLookups",
            "searchCount",
            "transcriptDownloadCount",
            "transcriptionRequests"
          ],
          "description": "Current monthly limits per alias"
        }
      },
      "required": [
        "months",
        "limits"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "status",
    "data"
  ],
  "additionalProperties": false
}
```

---

## See also

- All endpoints in one file: https://www.podengine.ai/api-docs/llms.txt
- Full reference with every schema inlined: https://www.podengine.ai/api-docs/llms-full.txt
- OpenAPI 3.1 spec: https://www.podengine.ai/api-docs/openapi.json
- Get an API key: https://www.podengine.ai/get-started
- Support: support@podengine.ai
