CodeSandbox Define API
The Define API allows programmatic creation of browser sandboxes from code files, useful for documentation sites and code examples that need to generate a sandbox on the fly. Supports both GET and POST requests to https://codesandbox.io/api/v1/sandboxes/define, accepting a files parameter containing the sandbox file structure and returning either a rendered sandbox or JSON with sandbox_id when using the ?json=1 query parameter.