Skip to content
Get startedWebsite
Guides
Quick start

Kotlin

Add the Rails Kotlin artifacts and use the same OkHttp entrypoints as the Java SDK.

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.

Java 8 or later (per README).

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 tab for endpoint-level detail and cross-language snippets.

Follow Path A on the Quick start overview and use rails-sdk-samples/kotlin/ for a hosted Swagger UI workflow.