{"openapi":"3.1.0","info":{"title":"OF RECORD","version":"0.2.0","description":"Companies filed by agents. Signed by humans. Form a Delaware LLC or C corp from your AI agent. A human signs, passes ID and pays."},"servers":[{"url":"https://ofrecord.dev"}],"paths":{"/v1/quote":{"post":{"operationId":"get_quote","summary":"Quote a Delaware company","description":"Returns the total price, what is included, filing speed and the human steps for forming a Delaware LLC ($299, state fee $110 included) or C corporation ($349). No side effects. Show the total to your user before starting an order.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"entity_type":{"type":"string","enum":["llc","c_corp"],"description":"Delaware LLC or Delaware C corporation. An S corp is a tax election (IRS Form 2553) made after formation, not an entity type."},"speed":{"type":"string","enum":["standard","next_day","same_day"],"description":"State processing speed. Default standard."}},"required":["entity_type"]}}}},"responses":{"200":{"description":"Result object"},"400":{"description":"{ \"error\": { \"code\", \"message\", \"field\" } }"}}}},"/v1/companies":{"post":{"operationId":"form_company","summary":"Start a Delaware company order","description":"Starts an order to form a Delaware LLC or C corporation and returns an order_id, a secret order_key and a human_url. Nothing is filed and nothing is charged until the named person opens human_url in a browser, attests, passes a live government ID check, signs and pays. An agent cannot do those steps: hand the link to your user. Use dry_run to validate first. Start an order only when your user has asked for a company and approved the quote.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"entity_type":{"type":"string","enum":["llc","c_corp"],"description":"Delaware LLC or Delaware C corporation. An S corp is a tax election (IRS Form 2553) made after formation, not an entity type."},"company_name":{"type":"string","description":"Full legal name including its ending, e.g. \"Northwind Labs LLC\" or \"Northwind Labs, Inc.\""},"alternate_names":{"type":"array","items":{"type":"string"},"maxItems":3,"description":"Fallbacks, in order, used if the first name is not available in Delaware."},"speed":{"type":"string","enum":["standard","next_day","same_day"],"description":"State processing speed. Default standard."},"human":{"type":"object","additionalProperties":false,"description":"The person who will own or control the company and will sign and pay. Must be a real adult with a US government ID.","properties":{"full_name":{"type":"string"},"email":{"type":"string"}},"required":["full_name","email"]},"mailing_address":{"type":"object","additionalProperties":false,"description":"US mailing address for the company and its contact person.","properties":{"line1":{"type":"string"},"line2":{"type":"string"},"city":{"type":"string"},"state":{"type":"string","description":"Two-letter state code, e.g. TX"},"postal_code":{"type":"string","description":"US ZIP code"},"country":{"type":"string","enum":["US"]}},"required":["line1","city","state","postal_code"]},"members":{"type":"integer","minimum":1,"maximum":50,"description":"LLC only: number of members. Default 1."},"idempotency_key":{"type":"string","description":"A random string of 16 to 100 characters, new for each order (a UUID works). Repeating a call with the same key and the same details returns the same order instead of creating another."},"dry_run":{"type":"boolean","description":"true checks every field and returns the price without creating an order."}},"required":["entity_type","company_name","human","mailing_address"]}}}},"responses":{"200":{"description":"Result object"},"400":{"description":"{ \"error\": { \"code\", \"message\", \"field\" } }"}}}},"/v1/companies/{id}":{"get":{"operationId":"get_company","summary":"Check a company order","description":"Returns the status of an order and what happens next. Once filed, returns the legal name, Delaware file number, certificate text, registered agent, the EIN answer sheet and the compliance calendar. Use order_id \"ord_demo\" with order_key \"ork_demo\" to see a sample.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"orderKey":[]}],"responses":{"200":{"description":"Result object"},"400":{"description":"{ \"error\": { \"code\", \"message\", \"field\" } }"}}}},"/v1/companies/{id}/cancel":{"post":{"operationId":"cancel_company","summary":"Cancel a company order","description":"Cancels an order that has not yet been submitted to Delaware and refunds any payment in full. An order already submitted or filed cannot be cancelled. Returns the updated order.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"orderKey":[]}],"responses":{"200":{"description":"Result object"},"400":{"description":"{ \"error\": { \"code\", \"message\", \"field\" } }"}}}}},"components":{"securitySchemes":{"orderKey":{"type":"http","scheme":"bearer","description":"The order_key returned by form_company"}}}}