SDKs
Speakeasy
Automate your SDK usage snippets in the API playground
You can integrate Speakeasy-generated code snippets from your SDKs directly into your Mintlify API reference documentation. These snippets appear in the interactive playground of your documentation.
Setup Steps
- Configure SDK Repository
Add the following to your
.speakeasy/workflow.yaml
file in your SDK repos:
.speakeasy/workflow.yaml
-
Set Up Mintlify Repository
Choose one of these methods:
Option A: Interactive Setup (Recommended)
Run these commands:
Follow the prompts to set up your source spec and configure the code snippet overlay.
Option B: Manual Setup
Create two files in your Mintlify docs repo:
.speakeasy/workflow.yaml.github/workflows/sdk_generation.yaml -
Add API Key Add your
SPEAKEASY_API_KEY
as a repository secret in your Mintlify repo underSettings > Secrets & Variables > Actions
. You can find the key in the Speakeasy dashboard under the API Keys tab.