---
title: "Public Api Renew"
method: POST
path: "/api/v1/accounts/{account_id}/renew"
tags: ["public-api"]
---

# Public Api Renew

`POST /api/v1/accounts/{account_id}/renew`

## Request

- Base URL: `https://api.rahanetwork.cloud` (the document declares no server; this is the origin it was published from)
- URL: `https://api.rahanetwork.cloud/api/v1/accounts/{account_id}/renew`
- Auth: none declared

Renew one of the key's services from its wallet. Needs ``Idempotency-Key``.

## Path parameters

- `account_id` integer, required

## Request body

- RenewBody
  - `product_id` integer, nullable: omit to renew on the current plan
  - `gb` integer, nullable: API agents: GB of the new term; 0 is unlimited
  - `ip` integer, nullable: API agents: simultaneous IPs
  - `days` integer, nullable: API agents: the new term's length
  - `squads` string[], nullable: API agents: squad ids from GET /squads (omit to keep the current ones)
  - `discount_code` string, nullable
  - `custom` CustomSelection: GB and/or IP for a customizable product (what the product's config offers).
    - `gb` integer, nullable
    - `ip` integer, nullable
  - `notify` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-14** `4df251494ba6`: 2 info
  - added the new optional request property `squads`
  - the `gb/anyOf[subschema #1]/` request property's min was decreased from `1.00` to `0.00`
- **2026-10-09** `a340bfa05fd5`: 3 info
  - added the new optional request property `days`
  - added the new optional request property `gb`
  - added the new optional request property `ip`
- **2026-10-07** `b53005445497`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/rahanetwork/apis/remnabot/changes/api/v1/accounts/:account_id/renew/post.md)

---

[API](https://skmtc.dev/rahanetwork/apis/remnabot.md) - [All operations](https://skmtc.dev/rahanetwork/apis/remnabot/llms.txt) - [OpenAPI document](https://skmtc.dev/rahanetwork/apis/remnabot/revisions/9f53dd81b28b?raw)
