> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tic.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate a client

> Generate typed SDKs for 60+ languages from the TIC OpenAPI specs using the OpenAPI Generator.

Both TIC APIs publish OpenAPI specs. Run the [OpenAPI Generator](https://openapi-generator.tech/) against the spec URL to produce a typed client in your language of choice.

## Spec URLs

| API               | OpenAPI version | Spec URL                                       |
| ----------------- | --------------- | ---------------------------------------------- |
| **LENS API (v2)** | 3.1             | `https://lens-api.tic.io/docs/v1/swagger.json` |
| **Legacy v1 API** | 3.0             | `https://api.tic.io/docs/v1/swagger.json`      |

## Quick start

Generate a TypeScript client for the LENS API:

```bash theme={null}
npx @openapitools/openapi-generator-cli generate \
  -i https://lens-api.tic.io/docs/v1/swagger.json \
  -g typescript-fetch \
  -o ./tic-lens-client
```

Same pattern for Python:

```bash theme={null}
npx @openapitools/openapi-generator-cli generate \
  -i https://lens-api.tic.io/docs/v1/swagger.json \
  -g python \
  -o ./tic-lens-client-python
```

Swap `-g <generator>` to target a different language — see the [full generator list](https://openapi-generator.tech/docs/generators).

## 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](https://openapi-generator.tech/docs/generators).

<Tip>
  Prefer the LENS spec for new clients — it's OpenAPI 3.1 with richer annotations, typed responses, and proper examples. Generate against v1 only if you're maintaining an existing v1 integration.
</Tip>
