Klob Apps

SpecLens documentation

OpenAPI and AsyncAPI documentation inside Confluence Cloud.

Get started

  1. Install SpecLens from the Atlassian Marketplace (a Confluence admin does this once).
  2. On a page, attach your specification: .yaml, .yml or .json.
  3. Type /SpecLens in the editor and insert SpecLens API docs.
  4. In the settings, choose A file attached to this page and pick your file. Save and publish.

Prefer not to attach a file? Choose Pasted inside the macro and paste the specification in a code block inside the macro.

Settings

SettingWhat it does
Where is the specification?A file attached to the same page, or the content pasted inside the macro.
Viewer for OpenAPI and SwaggerAutomatic (Swagger UI), Swagger UI or Redoc. AsyncAPI always uses the AsyncAPI viewer.
Initial layoutSwagger UI only: operations as a list, all expanded, or all collapsed.
Show schemas sectionSwagger UI only: show or hide the models/schemas section.

Supported specifications

Export to PDF and Word

When a page is exported, each SpecLens macro becomes a summary: title, version, servers and a table of every operation (OpenAPI/Swagger) or channel (AsyncAPI).

Limitations, on purpose

Troubleshooting

MessageWhat to do
Choose a specificationEdit the macro and pick a file, or switch to pasted content.
The selected file is no longer attached to this pageThe attachment was deleted or moved. Pick another file.
Syntax error (line X, column Y)Fix the YAML/JSON at that position. Indentation errors are the most common cause.
The viewer could not display this specificationValidate the specification, or try the other OpenAPI viewer in the settings.
SpecLens needs an active licenseAsk a Confluence admin to renew SpecLens in Apps > Manage apps.

Need help?

See Support.