Stainless
Display autogenerated SDK code samples from Stainless in your API playground with type-safe examples across Python, TypeScript, and other SDKs.
Prerequisites
- Have a Stainless account.
Set up the integration
Set up OpenAPI decoration in Stainless.
In your stainless.yml config file, add openapi.code_samples: 'mintlify'. See the Stainless documentation for more information.
Publish the URL to your OpenAPI spec.
In your Stainless project:
- Click the Release tab.
- Click Setup OpenAPI publishing.
- Copy the URL to your publicly accessible OpenAPI spec.
Add your OpenAPI spec URL to your docs.json.
In your docs.json file, add the URL from Stainless to the openapi field. See OpenAPI Setup for more information.