Skip to main content
The LENS API publishes an OpenAPI spec. Run the OpenAPI Generator against the spec URL to produce a typed client in your language of choice.

Spec URL

The v1 in the URL is the version of the spec document, not of the API.

Quick start

Generate a TypeScript client for the LENS API:
Same pattern for Python:
Swap -g <generator> to target a different language - see the full generator list.

Supported languages

The OpenAPI Generator covers 60+ targets including most common server and client languages: Backend: C#, Go, Java, Kotlin, PHP, Python, Ruby, Rust, Scala, Swift, Elixir, Erlang, Haskell, Perl, Crystal. Frontend / mobile: TypeScript (fetch, axios, node, angular, rxjs, redux-query, …), JavaScript, Dart, Swift, Kotlin (Android), Objective-C. Other: Ada, Apex, Bash, C, C++, Clojure, Eiffel, Elm, Groovy, Julia, Lua, Nim, OCaml, PowerShell, R, Zapier. For the full, current list including beta and experimental generators, see the OpenAPI Generator documentation.