Speakeasy Logo
Skip to Content

Integrate Speakeasy with ReadMe


Autogenerated code snippets from Speakeasy SDKs can be integrated directly into a ReadMe documentation site.

docs.myapi.com
Speakeasy code snippets with ReadMe

Prerequisites

To integrate ReadMe with Speakeasy, the following is required:

Setting up the integration

Configure workflow.yaml for ReadMe

To display code samples from Speakeasy SDKs in ReadMe, update the workflow.yaml file to support their proprietary OpenAPI extension.

In the SDK target configuration, set the codeSamples.style field to readme:

Get the API’s combined spec public URL from the registry

Navigate to the Speakeasy Dashboard  and open the API Registry tab. Open the *-with-code-samples entry for the API.

app.speakeasy.com
Screenshot showing the Speakeasy API Registry page

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.

app.speakeasy.com
Screenshot showing the combined spec registry entry with the share function highlighted.

Upload the combined spec URL to ReadMe

In the ReadMe dashboard , open the project.

dash.readme.com
ReadMe dashboard

Click the API Reference tab, then click + New API Definition.

myapi.readme.io
ReadMe API Reference page

Paste the combined spec URL from Speakeasy into the text input below Import from URL, then click Import.

myapi.readme.io
Filling the ReadMe OAS import form

Speakeasy-generated code snippets are now available in the ReadMe project’s API Reference section.

Next steps

For help customizing ReadMe API references generated from OpenAPI documents, see the ReadMe OpenAPI support documentation .

Last updated on