{"openapi":"3.1.0","info":{"title":"Founden API","version":"1.0.0","description":"Build and run your company from your AI assistant. One API call, no browser."},"paths":{"/v1/builds":{"post":{"tags":["Founden"],"summary":"Create Build","description":"Start a Founden build from a prompt.\n\nThe agent builds your company in the cloud. No browser needed. Returns an\nexecution_id and a stream_url for live progress. Costs 1 credit.","operationId":"create_build_v1_builds_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/builds/{execution_id}/message":{"post":{"tags":["Founden"],"summary":"Message Build","description":"Send a follow-up instruction to a running build. Free within a build.","operationId":"message_build_v1_builds__execution_id__message_post","parameters":[{"name":"execution_id","in":"path","required":true,"schema":{"type":"string","title":"Execution Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/builds/{execution_id}":{"get":{"tags":["Founden"],"summary":"Get Build","description":"Get build status and preview URL.","operationId":"get_build_v1_builds__execution_id__get","parameters":[{"name":"execution_id","in":"path","required":true,"schema":{"type":"string","title":"Execution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/builds/{execution_id}/stop":{"post":{"tags":["Founden"],"summary":"Stop Build","description":"Stop a running build.","operationId":"stop_build_v1_builds__execution_id__stop_post","parameters":[{"name":"execution_id","in":"path","required":true,"schema":{"type":"string","title":"Execution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"BuildCreateRequest":{"properties":{"prompt":{"type":"string","minLength":1,"title":"Prompt","description":"What to build or change, in plain language. e.g. 'Build a booking site for my dental clinic with online payments'."},"company_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id","description":"Target an existing company you own. Omit to use (or create) your default company."}},"type":"object","required":["prompt"],"title":"BuildCreateRequest","description":"Start (or continue, on your default company) a Founden build."},"BuildMessageRequest":{"properties":{"prompt":{"type":"string","minLength":1,"title":"Prompt","description":"Follow-up instruction for the running build agent. e.g. 'add a contact form' or 'fix the deploy error'."}},"type":"object","required":["prompt"],"title":"BuildMessageRequest","description":"Send a follow-up instruction to a running build agent."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}}