> ## Documentation Index
> Fetch the complete documentation index at: https://wiki.another-horizon.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# Stainless

> Automate SDK code samples in your API playground.

## Prerequisites

* Have a [Stainless](https://app.stainless.com) account.

## Integrate with Stainless

<Steps>
  <Step title="Set up OpenAPI decoration in Stainless.">
    In your `stainless.yml` config file, add `openapi.code_samples: 'mintlify'`. See the [Stainless documentation](https://app.stainless.com/docs/guides/integrate-docs) for more information.
  </Step>

  <Step title="Publish the URL to your OpenAPI spec.">
    In your Stainless project:

    1. Select the **Release** tab.
    2. Select **Setup OpenAPI publishing**.
    3. Copy the URL to your publicly accessible OpenAPI spec.

    <img src="https://mintcdn.com/anotherhorizon/KtT4EXjd_91dkOA7/images/stainless-public-OpenAPI-spec.png?fit=max&auto=format&n=KtT4EXjd_91dkOA7&q=85&s=46ac18b8b9289339e6e9c22c110a4532" alt="Stainless release page with the OpenAPI spec URL highlighted with a green box." width="2124" height="1104" data-path="images/stainless-public-OpenAPI-spec.png" />
  </Step>

  <Step title={<>Add your OpenAPI spec URL to your <code>docs.json</code>.</>}>
    In your `docs.json` file, add the URL from Stainless to the `openapi` field. See [OpenAPI Setup](/api-playground/openapi-setup) for more information.
  </Step>
</Steps>
