Skip to main content
POST
/
servers
/
{server}
/
renew
Renew a server
curl --request POST \
  --url https://rdp.sh/api/v1/servers/{server}/renew \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "duration": 1
}'
{
  "status": true,
  "message": "<string>",
  "invoice_id": 123,
  "amount_charged": 123,
  "new_expiry_date": "<string>",
  "server": {
    "id": 123,
    "ip_address": "<string>",
    "expiry_date": "<string>",
    "suspended": true
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.rdp.sh/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Path Parameters

server
string
required

Body

application/json
duration
integer
default:1

Number of months to renew (1-12). The duration discount tier is automatically applied:

  • 3 months: 5% off
  • 6 months: 10% off
  • 12 months: 15% off

Other durations receive no discount.

Required range: 1 <= x <= 12

Response

Server renewed successfully.

status
boolean
required
Example:

true

message
string
required
Example:

"Server renewed for 1 month(s)"

invoice_id
integer
required
Example:

123

amount_charged
number
required
Example:

10

new_expiry_date
string
required
Example:

"2026-02-16T00:00:00.000Z"

server
object
required