Autogenerated code snippets from Speakeasy SDKs can be integrated directly into Mintlify API reference documentation. SDK usage snippets are shown in the interactive playground of Mintlify-powered documentation sites.
docs.myapi.com
Prerequisites
To integrate Mintlify with Speakeasy, you’ll need the following:
Get the API’s combined spec public URL from the registry
Navigate to the Speakeasy Dashboard and open the API Registry overview. Select the relevant API and open the entry labeled with type Combined Spec. This is typically at the bottom under “Related Documents”.
app.speakeasy.com
NOTE: If the entry is not labeled Combined Spec, ensure that the API
has an automatic code sample
URL configured.
From the registry entry’s page, copy the provided public URL using the “Share” button on the top right.
app.speakeasy.com
Update the configuration file
Add the combined spec URL to Anchors or Tabs in the docs.json configuration file of a Mintlify repository.
Note: Mintlify now uses docs.json as the primary configuration file. If you’re still using the legacy mint.json format, follow the migration guide to upgrade to docs.json.
Using docs.json
Add the combined spec URL to Anchors by updating the anchor field in the docs.json file as follows:
Add the combined spec URL to Tabs by updating the tab field in the docs.json file as follows:
Migrating from mint.json
If you’re using the legacy mint.json configuration file, upgrade to docs.json using the Mintlify CLI:
This command creates a docs.json file from your existing mint.json. After verifying the configuration, delete the old mint.json file.
Speakeasy-generated code snippets can now be viewed in the Mintlify API reference documentation. See the code snippets in action in the interactive playground of the Mintlify-powered documentation site.
Next steps
Mintlify offers flexible customization options for API references generated from OpenAPI documents. For more information, refer to the Mintlify documentation .