Operate
OpenAPI, drift, and Git
Import a contract, compare calls with it, and refresh it from a file URL.
GET /sim/{slug}/__openapi exports an OpenAPI document built from the current routes. GET /sim/{slug}/__routes lists the enabled routes as JSON.
On Developer, saving an OpenAPI contract lets GET /sim/{slug}/__drift compare the routes with that contract. A call that leaves the contract is marked with x-twin-drift. The control API serves the same report at GET /api/v1/twins/{slug}/drift.
Also on Developer, a GitHub blob URL or a raw file URL imports that one file as routes. JSON is read as OpenAPI and stored as the contract. A file that starts with < is read as WSDL. Saving the URL again replaces the contract and adds the routes from the file. It does not delete routes you added by hand, and it does not push edits back to the repository.