{"openapi":"3.1.0","info":{"title":"Deframer","version":"1.0.0","description":"Convert a published Framer site you own into a TypeScript project (Next.js, TanStack Start, Astro, React Router, Vite). Deframer is independent of Framer and not affiliated with it.","termsOfService":"https://deframer.co/terms","contact":{"name":"Deframer support","url":"https://deframer.co/contact"}},"servers":[{"url":"https://deframer.co"}],"paths":{"/api/client/me":{"get":{"operationId":"getAccount","summary":"The signed-in account","description":"The user's email, credit balance, lifetime deal, and verification tag for proving site ownership.","security":[{"oauth2":["account","convert"]},{"deframerToken":[]}],"x-openai-isConsequential":false,"responses":{"200":{"description":"The account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"401":{"description":"Not signed in, or the connection was revoked: connect again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (scope, blocked account, or ownership not verified).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait for Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/client/site":{"post":{"operationId":"checkSite","summary":"Check a site before converting","description":"Fetches the live page: whether it is a published Framer site, its title, and whether it carries this user's ownership tag. Free.","security":[{"oauth2":["account","convert"]},{"deframerToken":[]}],"x-openai-isConsequential":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"The published site's address, e.g. https://example.framer.website"}}}}}},"responses":{"200":{"description":"The check.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteCheck"}}}},"400":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, or the connection was revoked: connect again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (scope, blocked account, or ownership not verified).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait for Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/jobs":{"post":{"operationId":"startConversion","summary":"Convert a site","description":"Starts converting a published Framer site to a TypeScript project. Converting is free; the download is unlocked on deframer.co. A recent conversion of the same site may be reused (200).","security":[{"oauth2":["account","convert"]},{"deframerToken":[]}],"x-openai-isConsequential":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url","framework","includeAssets"],"properties":{"url":{"type":"string"},"framework":{"type":"string","enum":["next","start","astro","react-router","vite","html","nuxt"],"description":"next (Next.js), start (TanStack Start), astro, react-router, vite, html (Static HTML: the built pages, ready to upload), or nuxt (Nuxt 4 around the React site)."},"includeAssets":{"type":"boolean","description":"true: images, fonts and videos go into the project. false: they stay on Framer's CDN."},"fresh":{"type":"boolean","description":"Convert again even if a recent conversion exists."}}}}}},"responses":{"200":{"description":"A recent conversion reused.","content":{"application/json":{"schema":{"type":"object","required":["job"],"properties":{"job":{"$ref":"#/components/schemas/Job"},"reused":{"type":"boolean"}}}}}},"202":{"description":"Queued.","content":{"application/json":{"schema":{"type":"object","required":["job"],"properties":{"job":{"$ref":"#/components/schemas/Job"}}}}}},"400":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Not signed in, or the connection was revoked: connect again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (scope, blocked account, or ownership not verified).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Not a published Framer site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait for Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/jobs/{id}":{"get":{"operationId":"getConversion","summary":"A conversion's progress","description":"Status and progress of a conversion. Poll every few seconds while running. When done, send the user to https://deframer.co/jobs/{id} to preview, unlock and download.","security":[{"oauth2":["account","convert"]},{"deframerToken":[]}],"x-openai-isConsequential":false,"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The job.","content":{"application/json":{"schema":{"type":"object","required":["job","unlocked"],"properties":{"job":{"$ref":"#/components/schemas/Job"},"unlocked":{"type":"boolean"}}}}}},"401":{"description":"Not signed in, or the connection was revoked: connect again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (scope, blocked account, or ownership not verified).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait for Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/jobs/{id}/unlock":{"post":{"operationId":"unlockDownload","summary":"Unlock a download (spends credits)","description":"Verifies the site carries the user's tag and spends a credit. Not available to OAuth clients: they send the user to deframer.co.","security":[{"deframerToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","const":"verified"}}}}}},"responses":{"200":{"description":"Unlocked."},"401":{"description":"Not signed in, or the connection was revoked: connect again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not unlocked: the user unlocks the download on deframer.co.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (scope, blocked account, or ownership not verified).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait for Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/jobs/{id}/download-link":{"post":{"operationId":"createDownloadLink","summary":"A one-time download link","description":"A link (5 minutes, used once, no auth) to the project's ZIP. The download must already be unlocked.","security":[{"deframerToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The link.","content":{"application/json":{"schema":{"type":"object","required":["url","expiresAt"],"properties":{"url":{"type":"string"},"expiresAt":{"type":"integer"}}}}}},"401":{"description":"Not signed in, or the connection was revoked: connect again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not unlocked: the user unlocks the download on deframer.co.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (scope, blocked account, or ownership not verified).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited: wait for Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine-readable code, e.g. token_invalid, insufficient_scope, rate_limited, not_framer, ownership_unverified."},"message":{"type":"string","description":"Written for the user: show it as is."},"detail":{"type":"string"}}}}},"Account":{"type":"object","required":["email","credits","lifetime","verification","costs","links"],"properties":{"email":{"type":"string"},"name":{"type":["string","null"]},"credits":{"type":"integer","description":"Credits available. Credits are bought on deframer.co only."},"lifetime":{"type":"boolean","description":"The lifetime deal: every verified download is free."},"verification":{"type":"object","required":["code","metaName","tag"],"properties":{"code":{"type":"string","description":"The user's verification code, dfv_…"},"metaName":{"type":"string","const":"deframer-verification"},"tag":{"type":"string","description":"The meta tag to add to the site's head (Framer: Site settings → Custom code) and publish, to prove ownership."}}},"costs":{"type":"object","properties":{"verifiedDownload":{"type":"integer"},"directDownload":{"type":"integer"}}},"links":{"type":"object","properties":{"dashboard":{"type":"string"},"pricing":{"type":"string"},"help":{"type":"string"}}}}},"SiteCheck":{"type":"object","required":["url","framer","verified","verifiedByOther"],"properties":{"url":{"type":"string","description":"The address as it will be converted."},"framer":{"type":"boolean","description":"A published Framer site with something to convert."},"reason":{"type":"string","enum":["not_framer","not_published","password_required","unreachable","blocked"]},"verified":{"type":"boolean","description":"The live page carries this user's verification tag."},"verifiedByOther":{"type":"boolean","description":"The tag on the page belongs to another account."},"title":{"type":["string","null"]}}},"Job":{"type":"object","required":["id","url","status","stage","progress","assets","createdAt"],"properties":{"id":{"type":"string","format":"uuid"},"url":{"type":"string"},"status":{"type":"string","enum":["queued","running","building-preview","done","failed","expired","interrupted"]},"stage":{"type":"string","enum":["queued","fetching","modules","converting","packaging","done"]},"progress":{"type":"number","minimum":0,"maximum":1},"framework":{"type":"string","enum":["next","start","astro","react-router","vite","html","nuxt"]},"assets":{"type":"string","enum":["cdn","local"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}},"expiresAt":{"type":"integer","description":"Epoch ms when the job's files are deleted."},"download":{"type":"object","properties":{"filename":{"type":"string"},"bytes":{"type":"integer"},"files":{"type":"integer"},"available":{"type":"boolean"}}},"createdAt":{"type":"integer"}}}},"securitySchemes":{"oauth2":{"type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://deframer.co/oauth/authorize","tokenUrl":"https://deframer.co/api/oauth/token","refreshUrl":"https://deframer.co/api/oauth/token","scopes":{"account":"Read the account and credit balance","convert":"Check sites and convert them"}}}},"deframerToken":{"type":"apiKey","in":"header","name":"X-Deframer-Token","description":"A dfk_ token from the connect flow (POST /api/connect/start)."}}}}