---
title: Kotlin | Rails
description: Add the Rails Kotlin artifacts and use the same OkHttp entrypoints as the Java SDK.
---

## Install

**Gradle** (from the SDK README):

```
implementation("com.rails.api:rails-kotlin:0.0.1")
```

**Maven**:

```
<dependency>
  <groupId>com.rails.api</groupId>
  <artifactId>rails-kotlin</artifactId>
  <version>0.0.1</version>
</dependency>
```

Confirm the version in the README when you upgrade.

## Requirements

**Java 8 or later** (per README).

## Client from the environment

Use **`RailsOkHttpClient.fromEnv()`** as in the README; it honors **`RAILS_API_KEY`**, **`RAILS_BASE_URL`**, and the same system-property overrides described there.

Use the **[API Reference](/api/index.md)** tab for endpoint-level detail and cross-language snippets.

## Runnable sample

Follow **Path A** on the [Quick start overview](/guides/quick-start/index.md) and use [`rails-sdk-samples/kotlin/`](https://github.com/railsinfra/rails-sdk-samples/tree/main/kotlin) for a hosted Swagger UI workflow.
