---
title: "Renew Api Key"
method: POST
path: "/api/v1/subscribe/renew"
tags: ["subscribe"]
---

# Renew Api Key

`POST /api/v1/subscribe/renew`

Renew an active API key by extending its expiration. Supports 1 or 2 months.

## Request body

- RenewRequest — API Key renewal request.
  - `api_key_id` integer, required — API Key ID to renew
  - `months` integer — Renewal months (1 or 2)
  - `currency` string — Payment currency (CNY or USD)

## Response `200`

Successful Response

- RenewResponse — API Key renewal response.
  - `success` boolean, required
  - `message` string, required
  - `new_expires_at` string, nullable
  - `amount_charged` number, nullable
  - `new_balance` number, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/qcode/apis/qcode-web.md) · [All operations](https://skmtc.dev/qcode/apis/qcode-web/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/qcode/qcode-web/revisions/2f2f5f49ffc7/schema)
