Speakeasy Logo
Skip to Content

Integrate Speakeasy with Scalar


Scalar enables easy creation and maintenance of API documentation. Scalar renders documentation by referencing a live OpenAPI document, making it compatible with Speakeasy’s Automated Code Samples feature.

docs.myapi.com
Scalar docs with successful linked URL

Prerequisites

To integrate Scalar with Speakeasy, you’ll need the following:

Setting up the integration

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.

Import the combined spec URL into Scalar

Open a Scalar project , go to the Reference tab, and click Import URL.

docs.scalar.com
Screenshot of the Scalar UI Project Reference tab, showing the Import URL link

Paste the combined spec URL copied from Speakeasy into the provided field, optionally check Create Link, then click Import.

docs.scalar.com
Screenshot of the Scalar page where the public URL from Speakeasy is added

When the import is complete, the API documentation will be rendered.

docs.scalar.com
Screenshot showing API documentation in Scalar after successfully linking the URL

Next steps

Scalar is more than just an OpenAPI renderer. Visit the official Scalar documentation  to learn more.

Last updated on