REST APIJSON OVER HTTPS
WayForge REST API Reference
Automate domain prescanning, site recovery, link placement, and Cloudflare deployment directly from your own scripts or auction monitors. Authenticate protected requests via the x-wf-session header or wf_session cookie.
POST
/api/prescanFree · PublicScans a domain or exact Wayback URL across 1996–2026, filters out parked/doorway eras, and returns scored snapshot candidates.
curl -X POST https://wayforge.org/api/prescan \
-H "Content-Type: application/json" \
-d '{"domain": "example.com", "year": "best"}'POST
/api/recoverRequires Auth + WalletRecovers the selected snapshot into a 72-hour staging bundle with AI Style & Layout Reconstruction, tracker stripping, and initial link injection.
curl -X POST https://wayforge.org/api/recover \
-H "Content-Type: application/json" \
-H "x-wf-session: <YOUR_SESSION_TOKEN>" \
-d '{
"domain": "example.com",
"snapshotTimestamp": "20250625020236",
"payWithWallet": true,
"quoteUsd": 15,
"links": [
{
"id": "link_1",
"pagePath": "/",
"anchorText": "cloud logistics platform",
"targetUrl": "https://money-site.com",
"position": "first_paragraph",
"rel": "dofollow"
}
]
}'Additional Staging, Re-Roll, ZIP & Cloudflare Endpoints
PATCH /api/recover — Update injected
links[] or re-roll snapshotTimestamp on an active 72h bundle at $0 cost.PUT /api/recover — Deploy bundle to Cloudflare (
cloudflareToken, bindDomain: false | true for Stage 1 or Stage 2).GET /api/preview/:jobId?path=/ — Render live HTML preview of any page inside the 72h bundle.
GET /api/recover/:jobId/zip — Download the Universal ZIP archive (HTML +
.htaccess + nginx.vhost.conf + _worker.js).