$0.01
per call · USD Coin on Base
Create an upload session for a new hosted Next.js site. Call this first when deploying a new project: it returns a presigned artifact upload URL, and the paying wallet becomes the project owner.
Endpoint
POST https://api.x402-hosting.com/v1/uploads9
Calls / 30d
2
Unique payers / 30d
Aug 27
Last called
exact
Payment scheme
Call this service
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);
const res = await fetchWithPay("https://api.x402-hosting.com/v1/uploads", {
method: "POST",
});
const data = await res.json();curl -X POST \
"https://api.x402-hosting.com/v1/uploads?contentType=application%2Fzip&name=my-site&sha256=0000000000000000000000000000000000000000000000000000000000000000&size=1024" \
-H "X-PAYMENT: <signed x402 payment>"Example response
{
"expiresAt": "2026-08-24T19:00:00.000Z",
"headers": {
"content-type": "application/zip"
},
"objectKey": "uploads/00000000-0000-4000-8000-000000000001/artifact.zip",
"operationId": "00000000-0000-4000-8000-000000000001",
"uploadId": "00000000-0000-4000-8000-000000000001",
"uploadUrl": "https://uploads.example.com/artifact.zip"
}Payment details
0xac0bba6e3241a398b1911528a3e19f87aee12f6eUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913Is this your API?
Pin it to the top of Developer Tools and the homepage with a featured placement.
More from x402 Hosting & similar services
x402 Hosting · Projects Uploads
api.x402-hosting.com
Create an upload session to deploy a new version of an existing project. Call this when publishing an update; it returns a presigned artifact upload URL. Only the project owner wallet can pay.
x402 Hosting · Projects Activate
api.x402-hosting.com
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.
x402 Hosting · Projects Transfer
api.x402-hosting.com
Transfer project ownership to another EVM wallet (toAddress query parameter). Call this to hand control of a site to a new owner; that wallet must sign all future paid operations. Only the current owner wallet can pay.