Extend a project's hosting lease, priced per day (1-730 days via the days query parameter)
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.
200000 (raw units)
price
1
calls / 30d
1
unique payers
2026-08-25
updated
Provider
api.x402-hosting.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xe126b3E5d052f1F575828f61fEBA4f4f2603652a",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "200000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"headers": {
"Idempotency-Key": "00000000-0000-4000-8000-000000000001"
},
"method": "POST",
"pathParams": {
"id": "c7db4206-6faa-4fed-8e17-b6cb690772ce"
},
"queryParams": {
"days": 1
},
"type": "http"
},
"output": {
"example": {
"operationId": "00000000-0000-4000-8000-000000000001",
"operationUrl": "/v1/operations/00000000-0000-4000-8000-000000000001",
"projectId": "00000000-0000-4000-8000-000000000001",
"state": "CREATED"
},
"type": "json"
}
},
"routeTemplate": "/v1/projects/:id/renew",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"headers": {
"additionalProperties": true,
"properties": {
"Idempotency-Key": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
"type": "string"
}
},
"required": [
"Idempotency-Key"
],
"type": "object"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"pathParams": {
"additionalProperties": false,
"properties": {
"id": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
},
"queryParams": {
"additionalProperties": false,
"properties": {
"days": {
"maximum": 730,
"minimum": 1,
"type": "integer"
},
"deploymentId": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
"type": "string"
}
},
"required": [
"days"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"queryParams"
],
"type": "object"
},
"output": {
"additionalProperties": false,
"properties": {
"example": {
"additionalProperties": true,
"properties": {
"operationId": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
"type": "string"
},
"operationUrl": {
"type": "string"
},
"projectId": {
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
"type": "string"
},
"state": {
"type": "string"
}
},
"required": [
"projectId",
"operationId"
],
"type": "object"
},
"type": {
"const": "json",
"type": "string"
}
},
"required": [
"type",
"example"
],
"type": "object"
}
},
"required": [
"input",
"output"
],
"type": "object"
}
}
}Use it
curl
curl "https://api.x402-hosting.com/v1/projects/:id/renew" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://api.x402-hosting.com/v1/projects/:id/renew");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://api.x402-hosting.com/v1/projects/:id/renew")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/7958.json, and this resource appears in /discovery/resources and /discovery/search.