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

# Installation

> Install and configure the official Kotlin SDK for Markpdf.

# Installation

Use `tech.markpdf:markpdf-kotlin` in Kotlin/JVM, server-side Kotlin, and Android projects that use coroutines.

## Install

```kotlin theme={null}
implementation("tech.markpdf:markpdf-kotlin:0.1.0")
```

## Configure the API key

Set the key in your environment or secure app configuration:

```bash theme={null}
MARKPDF_API_KEY=YOUR_API_KEY
```

Then create the client:

```kotlin theme={null}
val client = MarkpdfClient(apiKey = System.getenv("MARKPDF_API_KEY"))
```

<Warning>
  Do not ship unrestricted private API keys inside public Android apps. Use a backend proxy for production public apps.
</Warning>

## API endpoint

The production API endpoint is:

```text theme={null}
https://api.markpdf.tech
```

## Next step

Continue with [Quickstart](/docs/sdks/kotlin/quickstart).
