UIRender Developer Resources & API Documentation
Automate website cloning pipelines, integrate with AI coding agents via MCP, or download clean Next.js 15 & React codebases programmatically with predictable versioning and typed error handling.
01. UIRender API Authentication & Headers
All REST API endpoints accept standard JSON payloads and authenticate requests using Bearer tokens or active user session cookies.
Authorization: Bearer <UIRENDER_API_KEY>
Content-Type: application/json
Accept: application/json
X-API-Version: 1.0.002. UIRender REST API Reference (v1)
Initiates a website cloning job for a target URL. Deducts clone credits upon queue acceptance.
{
"url": "https://example.com",
"framework": "nextjs", // "nextjs" (App Router) | "vite" (React SPA)
"styling": "tailwind", // "tailwind" (v4) | "css" (Vanilla CSS)
"mode": "single", // "single" (1 credit) | "multi" (crawl subroutes)
"maxRoutes": 5, // 1 to 25 (only applicable when mode is "multi")
"verify": true // Run pre-packaging TypeScript syntax verification
}{
"success": true,
"cloneId": "cln_1740000000_abc123",
"jobId": "ext_job_998877",
"status": "processing",
"creditCost": 1,
"availableCredits": 2
}Returns the live status, worker progress, and download link for a clone job.
{
"success": true,
"clone": {
"id": "cln_1740000000_abc123",
"targetUrl": "https://example.com",
"status": "completed", // "queued" | "processing" | "completed" | "failed"
"framework": "nextjs",
"styling": "tailwind",
"r2PublicUrl": "https://storage.uirender.com/downloads/cln_1740000000_abc123.tgz",
"createdAt": "2026-08-21T20:00:00.000Z"
}
}Streams the binary self-contained project archive (.TGZ or .ZIP) with ready-to-run package.json and tsconfig.json.
Retrieves the authenticated user profile, credit balance, and subscription tier.
03. UIRender Typed Error Responses & Error Codes
All UIRender API error responses return structured JSON (RFC 9457 compatible) with machine-readable error codes, explanations, and actionable hints so AI agents and client libraries can recover without guessing.
Standard Error Response Schema
{
"error": "Insufficient clone credits.",
"code": "PAYMENT_REQUIRED",
"message": "This request requires 1 credit, but you only have 0.",
"hint": "Purchase additional credits at https://uirender.com/pricing or view your balance at /v1/user/me.",
"status": 402,
"docs_url": "https://uirender.com/docs"
}| HTTP Status | Error Code | Agent Resolution Hint |
|---|---|---|
| 400 Bad Request | INVALID_REQUEST | Provide a complete valid URL (e.g. https://example.com) |
| 401 Unauthorized | UNAUTHORIZED | Pass Authorization: Bearer <API_KEY> header |
| 402 Payment Required | PAYMENT_REQUIRED | Refill clone credits at https://uirender.com/pricing |
| 404 Not Found | NOT_FOUND / ROUTE_NOT_FOUND | Verify ID or check https://uirender.com/openapi.json |
| 502 Bad Gateway | CLONE_DISPATCH_FAILED | Target website unreachable or timed out; retry |
| 503 Service Unavailable | SERVICE_UNAVAILABLE | Backend undergoing scheduled maintenance; retry shortly |
04. UIRender Model Context Protocol (MCP) Server
UIRender can be registered as an autonomous tool for LLM coding agents in Cursor, Claude Desktop, Antigravity, and Windsurf.
MCP Tool Definition: uirender_clone_website
{
"name": "uirender_clone_website",
"description": "Clones any public website URL into clean Next.js 15 or Vite React code with Tailwind CSS and local assets.",
"parameters": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The target website URL to clone."
},
"framework": {
"type": "string",
"enum": ["nextjs", "vite"],
"default": "nextjs"
},
"styling": {
"type": "string",
"enum": ["tailwind", "css"],
"default": "tailwind"
},
"maxRoutes": {
"type": "integer",
"description": "Max sub-routes to crawl (1 to 25)",
"default": 1
}
},
"required": ["url"]
}
}05. UIRender Webhooks & Status Callbacks
Receive asynchronous event notifications when long-running multi-page clones complete or fail.
{
"event": "clone.completed",
"cloneId": "cln_1740000000_abc123",
"status": "completed",
"downloadUrl": "https://uirender.com/v1/clones/cln_1740000000_abc123/download",
"timestamp": "2026-08-21T20:01:15.000Z"
}06. UIRender API Versioning & Deprecation Policy
UIRender uses strict URL-path and header-based API versioning to ensure breaking changes never disrupt production agent integrations.
- URL Path Versioning: The current production API version is available at
https://uirender.com/v1/...(with/api/...defaulting to v1). - Version Header: All API responses include
X-API-Version: 1.0.0. Clients may sendX-API-Version: 1.0.0to lock their integration. - 6-Month Deprecation Guarantee: Any deprecated endpoint is guaranteed at least 6 months of active support before sunset.
- RFC 8594 Standard Headers: Deprecated endpoints will return
Deprecation: @<unix-timestamp>andSunset: <date>HTTP headers.
07. UIRender Machine-Readable Endpoints Index
| Resource | URL | Format |
|---|---|---|
| OpenAPI 3.1 Spec | https://uirender.com/openapi.json | JSON / OpenAPI 3.1.0 |
| OpenAPI v1 Spec Alias | https://uirender.com/v1/openapi.json | JSON |
| Agent Instructions | https://uirender.com/AGENTS.md | Markdown |
| Machine Pricing | https://uirender.com/pricing.md | Markdown |
| LLM Context | https://uirender.com/llms.txt | Text / Markdown |
| Extended Tech Context | https://uirender.com/llms-full.txt | Text / Markdown |