{"openapi":"3.1.0","info":{"title":"Buildify API","version":"2","description":"Personal API keys (Authorization: Bearer bfk_...) act as the user. Request bodies are described in each summary; see /docs/api."},"servers":[{"url":"https://www.buildify.sh"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"},"cookieAuth":{"type":"apiKey","in":"cookie","name":"better-auth.session_token"}}},"paths":{"/api/me/credits":{"get":{"summary":"Balance, plan and today's usage.","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/catalog":{"get":{"summary":"Models you can use with credit prices per 1M tokens.","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/projects":{"get":{"summary":"Your projects.","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}},"post":{"summary":"Create a project and start the first build. Body: prompt, model, template (vite-react | nextjs | vite-three | remote), name?, plan? (true = plan + questions first); draft? (true = create only, attach assets, then POST /runs with kind create); remote? (template remote: owner, repo, baseBranch, createBranch?, workBranch?, author {name, email}, checkCmd?).","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/github/repos":{"get":{"summary":"Remote Coding: repositories your linked GitHub account can push to.","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/github/repos/{owner}/{repo}/branches":{"get":{"summary":"Remote Coding: branches of a repository.","parameters":[{"name":"owner","in":"path","required":true,"schema":{"type":"string"}},{"name":"repo","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/projects/{id}/pr":{"get":{"summary":"Remote Coding: current pull request and a suggested title/body.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}},"post":{"summary":"Remote Coding: open the pull request work branch → base branch. Body: title, body?, draft?.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/projects/{id}/remote":{"patch":{"summary":"Remote Coding: change branches, author or check command (owner, project idle).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/projects/{id}":{"delete":{"summary":"PATCH: name, folderId, defaultModel, instructions, status (active | archived), pinned (sorts first on the dashboard); DELETE archives it.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}},"patch":{"summary":"PATCH: name, folderId, defaultModel, instructions, status (active | archived), pinned (sorts first on the dashboard); DELETE archives it.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/projects/{id}/runs":{"post":{"summary":"Follow-up build. Body: prompt, model.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}},"get":{"summary":"Runs for a project.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/runs/{id}/events":{"get":{"summary":"Server-sent events: the live trace of a run (status, tool calls, file changes, preview_ready, version).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/projects/{id}/publish":{"post":{"summary":"Deploy the current version to a production URL.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/projects/{id}/visibility":{"put":{"summary":"Body: isPublic. Public projects get a share page and appear in /apps.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/projects/{id}/files?sha=":{"get":{"summary":"File list at a version; /file?sha=&path= returns one file.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/projects/{id}/diff?base=&head=":{"get":{"summary":"Changed files with patches between two commits.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/projects/{id}/assets":{"get":{"summary":"Images attached to the project (multipart file, 2 MB and 10 per project). They appear in the sandbox under public/assets and are mentioned to the agent.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}},"post":{"summary":"Images attached to the project (multipart file, 2 MB and 10 per project). They appear in the sandbox under public/assets and are mentioned to the agent.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/projects/{id}/assets/{assetId}":{"get":{"summary":"Fetch or remove one image.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"assetId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}},"delete":{"summary":"Fetch or remove one image.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"assetId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/projects/{id}/transcript":{"get":{"summary":"The conversation and version list as Markdown.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/reference":{"post":{"summary":"Body: url. Summarises a public page (title, headings, excerpt) and returns the prompt block; POST /api/projects also accepts referenceUrl.","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/projects/{id}/transfer":{"post":{"summary":"Owner only. Body: userId of a collaborator, who becomes the owner; you stay as editor. Refused while a build runs.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/projects/{id}/webhook":{"get":{"summary":"Owner only. PUT body: url (public https) returns the signing secret once; POST sends a signed ping. Events: run.finished, project.published, project.publish_failed; header X-Buildify-Signature: sha256=HMAC-SHA256(secret, raw body).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}},"put":{"summary":"Owner only. PUT body: url (public https) returns the signing secret once; POST sends a signed ping. Events: run.finished, project.published, project.publish_failed; header X-Buildify-Signature: sha256=HMAC-SHA256(secret, raw body).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}},"post":{"summary":"Owner only. PUT body: url (public https) returns the signing secret once; POST sends a signed ping. Events: run.finished, project.published, project.publish_failed; header X-Buildify-Signature: sha256=HMAC-SHA256(secret, raw body).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}},"delete":{"summary":"Owner only. PUT body: url (public https) returns the signing secret once; POST sends a signed ping. Events: run.finished, project.published, project.publish_failed; header X-Buildify-Signature: sha256=HMAC-SHA256(secret, raw body).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/projects/{id}/members":{"get":{"summary":"Collaborators. POST body: email (an existing account), role (editor | viewer). Editors build on the owner's credits. DELETE body: userId (owner removes anyone; a member can remove themselves).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}},"post":{"summary":"Collaborators. POST body: email (an existing account), role (editor | viewer). Editors build on the owner's credits. DELETE body: userId (owner removes anyone; a member can remove themselves).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}},"delete":{"summary":"Collaborators. POST body: email (an existing account), role (editor | viewer). Editors build on the owner's credits. DELETE body: userId (owner removes anyone; a member can remove themselves).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/projects/{id}/env":{"get":{"summary":"Project environment variables (names only on read).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}},"put":{"summary":"Project environment variables (names only on read).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}},"delete":{"summary":"Project environment variables (names only on read).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/projects/{id}/domain":{"get":{"summary":"Custom domain (Pro/Max): DNS records to set, status.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}},"put":{"summary":"Custom domain (Pro/Max): DNS records to set, status.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}},"delete":{"summary":"Custom domain (Pro/Max): DNS records to set, status.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/audits":{"post":{"summary":"SEO or accessibility audit. Body: url, kind (seo | a11y), projectId? (links the audit to a project so its findings can become a fix run), pages? (a11y: crawl up to 10 same-site pages; each is priced as one audit).","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/me/usage":{"get":{"summary":"Credit ledger entries.","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/me/email-prefs":{"get":{"summary":"Optional mail toggles: digest, lowBalance.","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}},"put":{"summary":"Optional mail toggles: digest, lowBalance.","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/workspace/members":{"get":{"summary":"Your team: members see every project in your workspace. POST body: email, role (editor | viewer). DELETE body: userId (remove), email (revoke invite) or workspaceId (leave a team).","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}},"post":{"summary":"Your team: members see every project in your workspace. POST body: email, role (editor | viewer). DELETE body: userId (remove), email (revoke invite) or workspaceId (leave a team).","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}},"delete":{"summary":"Your team: members see every project in your workspace. POST body: email, role (editor | viewer). DELETE body: userId (remove), email (revoke invite) or workspaceId (leave a team).","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/chat/conversations":{"get":{"summary":"AI chat: list conversations; POST body: model, firstMessage.","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}},"post":{"summary":"AI chat: list conversations; POST body: model, firstMessage.","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/chat/conversations/{id}":{"get":{"summary":"Transcript; PATCH renames (title), stars (isStarred) or shares (shared: true mints /shared/<token>, false revokes); DELETE removes it and its messages.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}},"patch":{"summary":"Transcript; PATCH renames (title), stars (isStarred) or shares (shared: true mints /shared/<token>, false revokes); DELETE removes it and its messages.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}},"delete":{"summary":"Transcript; PATCH renames (title), stars (isStarred) or shares (shared: true mints /shared/<token>, false revokes); DELETE removes it and its messages.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/chat/conversations/{id}/messages":{"post":{"summary":"Send a message and stream the reply as SSE (delta, done, error). Body: model, content.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/runs/{id}/retry":{"post":{"summary":"Re-queue a failed, timed-out or stopped build with the same prompt, model and base version.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/runs/{id}/claim":{"get":{"summary":"Report a bad build (POST body: reason) to ask for the run's credits back; one claim per run, within 14 days. GET shows the claim's status.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}},"post":{"summary":"Report a bad build (POST body: reason) to ask for the run's credits back; one claim per run, within 14 days. GET shows the claim's status.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/audits/{id}/fix":{"post":{"summary":"Start a follow-up build on the audit's project that fixes the failing checks. Body: model? (defaults to the recommended model).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/projects/{id}/github/push":{"post":{"summary":"Copy the current version into your own GitHub repository (linked GitHub account with repo scope). Body: repo (name or owner/name; created private when missing), branch? (main).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/projects/{id}/download":{"get":{"summary":"The project's code as a zip (current version, or ?sha= for an older one). Any member can download.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/me/export":{"get":{"summary":"Everything stored about you as one JSON file (no secrets).","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}},"/api/billing/offers":{"get":{"summary":"Plans, packs, your subscription and payment history.","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Unauthorized"},"402":{"description":"Refused by a plan or credit gate (error, message)"},"429":{"description":"Rate limited"},"503":{"description":"Builder unavailable or maintenance"}}}}}}