SDKs
Speakeasy
Automate your SDK usage snippets in the API playground
Integrate Speakeasy-generated code snippets from your SDKs into your Mintlify API reference documentation to display SDK usage snippets in the interactive playground.
SDK Repository Setup
Add the following to your .speakeasy/workflow.yaml
file in your SDK repositories:
.speakeasy/workflow.yaml
Mintlify Repository Setup
You can set up Speakeasy integration either through the CLI or manually.
Option 1: CLI Setup
- Run the setup commands:
- Follow the CLI prompts to:
- Set up your source OpenAPI spec
- Add the Speakeasy overlay for code snippets
- Configure the output spec path
Option 2: Manual Setup
Create the following files in your Mintlify docs repo:
.speakeasy/workflow.yaml
.github/workflows/sdk_generation.yaml
Finally, add your SPEAKEASY_API_KEY
as a repository secret under Settings > Secrets & Variables > Actions
. You can find the key in the Speakeasy dashboard under API Keys.