> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.manicule.dev/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://mintlify.manicule.dev/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://mintlify.manicule.dev/api/mcp.
> Every agent surface: https://mintlify.manicule.dev/.well-known/llms-manifest.json

# Stainless (/integrations/sdks/stainless)

<!-- agent-signals: reading_time_min: 1 · est_tokens: 300 · updated: 2026-07-31 -->
Related: [Speakeasy](/integrations/sdks/speakeasy.md), [Support integrations](/integrations/support/overview.md)

> 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](https://app.stainless.com) account.

## Set up the integration

<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://www.stainless.com/docs/docs-integrations/mintlify) for more information.</Step>

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

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

    <img src="/_assets/97299753674daa309dbb2f59cebdf9a9f70f83db77abe37b96fbc7a2e980c1cf" alt="Stainless release page with the OpenAPI spec URL highlighted with a green box." width="2124" height="1104" />
  </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>
