Skip to content
Fourohtwo

api.x402-hosting.com/v1/projects/:id/renew

Extend a project's hosting lease, priced per day (1-730 days via the days query parameter). Call this when hosting is nearing expiry or to republish an expired site; only the owner wallet can pay.

BaseDown
POSThttps://api.x402-hosting.com/v1/projects/:id/renew

Uptime0.0% of 2 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.x402-hosting.com/v1/projects/:id/renew", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"days":1}),
});
console.log(await res.json());

Example input

{
  "days": 1
}

More from x402 HostingProvider status