⚠ API keys are roadmap.Today the factory endpoints accept browser session auth only — sign in at /admin/factory and use the operator UI. Programmatic
oo_sk_… keys, rate limits, and webhooks are documented here as the planned shape, not the shipped surface. Want early access? [email protected].POST
/api/admin/factory/orchestrateAPI key requiredSubmit a prompt and stream the full build via SSE
Parameters
prompt*
body · string
Natural-language description (min 10 chars)
captureScreenshots
body · boolean
Web only — request a PNG of the launched server (Playwright). Desktop screenshots are roadmap. Setting true on a non-web prompt is a no-op.
tenantSlug
body · string
Override tenant for audit scoping
cURL
curl -X POST 'https://ooretz.space/api/admin/factory/orchestrate' \ -H 'Authorization: Bearer <YOUR_API_KEY>'
Example response
{
"jobId": "job_abc123",
"status": "success",
"proofSummary": "Built 23 files, all tests passed",
"artifactUrls": [
"https://artifacts.ooretz.space/job_abc123.zip"
],
"durationMs": 287341
}Error codes
400prompt missing or under 10 chars
401invalid API key
402tenant AI budget exhausted
429rate limit exceeded