---
title: "Monthly Credit Reset"
method: POST
path: "/api/v1/internal/cron/monthly-credit-reset"
tags: ["cron"]
---

# Monthly Credit Reset

`POST /api/v1/internal/cron/monthly-credit-reset`

## Request

- Base URL: `https://api.slidemaster.tw` (the document declares no server; this is the origin it was published from)
- URL: `https://api.slidemaster.tw/api/v1/internal/cron/monthly-credit-reset`
- Auth: none declared

每月 1 日 00:00 UTC 執行：為所有有效付費訂閱用戶（PRO + Basic active）重置 API Credits。

Cloud Scheduler 設定：
- Schedule: 0 0 1 * *（每月 1 日 00:00 UTC）
- URL: https://api.slidemaster.tw/api/v1/internal/cron/monthly-credit-reset
- Method: POST
- Header: X-Cron-Secret: <CRON_SECRET env value>

也可手動呼叫（傳入正確 header 即可）。

## Headers

- `X-Cron-Secret` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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