Migrate from Redocly & Swagger
Redocly and Swagger docs are generated from an OpenAPI file, so the API reference moves with that file: import it and Theneo builds the reference, the endpoint pages and the API Explorer. Guides you wrote in Redocly Markdown come over through the CLI folder import.
At a glance
OpenAPI 3.0 / 3.1 and Swagger 2.0 files | Import directly as your API reference. |
Tags | Become groups in the sidebar. Endpoints without any tags are grouped by path. |
Endpoint names | Taken from |
| Import into a Webhooks group. |
Specs split across files with external | Bundle into one file before importing. |
Redoc extensions | Not read. Arrange groups in the editor, rely on the request samples Theneo generates, and set your logo in Branding. |
Redocly Markdown guides | Rewrite Markdoc tags to Theneo widgets, then import with the CLI. |
Import your API reference
1
Get one spec file
Redocly: bundle your API description into a single file.
redocly bundle openapi/openapi.yaml --output openapi.yaml
SwaggerHub: export the API definition as YAML or JSON. Swagger UI: download the spec file the page loads.
2
Import it
In the dashboard, create a project and import the file or its URL (see Import your API). Or use the CLI:
npm install -g @theneo/cli
theneo login
theneo project create --name "Acme API" --file ./openapi.yaml
# or from a URL
theneo project create --name "Acme API" --link https://example.com/openapi.json
3
Review the reference
Check the groups in the sidebar, rename or reorder them in the editor, and add descriptions where the spec has none.
4
Keep it in sync
When the spec changes, re-import it. merge only updates sections whose API contract changed, so pages you edited in Theneo keep their edits unless their endpoint changed.
theneo project import --project acme-api --file ./openapi.yaml --import-type merge
Markdown in your spec's description fields imports with the spec, including tables and images with absolute URLs.
Bring Redocly guides
Redocly guides are Markdown files with Markdoc tags. Build a Theneo project folder from them (one folder per page with index.md and section.json, plus theneo.json; see Project Folder Structure). Put the bundled spec at the root of the folder and set "apiSpec": "openapi.yaml" in theneo.json, so one import brings the guides and the reference together.
|
| Use the matching type: info, success, warning or error. |
|
| Each tabTitle must match a name in the tabs list. |
|
| Two to four cards per group. |
| Paste the content or code into the page | Turn repeated blocks into Reusable Content after import. |
Your sidebar file ( | The | Only sections listed there are imported. |
Then validate and import:
theneo audit --dir ./theneo-docs
theneo import --project acme-api --dir ./theneo-docs
Importing a folder replaces the project's content, so import into a new project and review there.
What does not transfer
- Redocly and Swagger UI theme settings. Set colors, fonts and your logo in Branding.
- Custom React pages and plugins from a Redocly portal.
Stuck on a large spec or a custom portal? Email hello@theneo.io and the team will look at your project with you.
On this page
- Migrate from Redocly & Swagger