Skip to content
Fourohtwo

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

Activate a newly created project so its site goes live, paying per day of hosting (1-730 days via the days query parameter). Call this after the first deployment is queued; only the owner wallet bound at creation can pay.

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

Uptime0.0% of 1 check 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

import { createPayer } from "fourohtwo";

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

Example input

{
  "days": 1
}

More from x402 Hosting