Browse Docs

Kotlin Alerts SDK

The API Alerts Kotlin SDK is built on Kotlin Multiplatform and runs everywhere Kotlin runs. Drop it into Android apps, Ktor servers, Spring Boot services, or any Kotlin codebase that needs to notify you when something important happens. Minimal setup, fire-and-forget by default with optional response handling, and zero infrastructure.

Installation

Add the dependency to your build.gradle.kts:

dependencies {
    implementation("com.apialerts:apialerts-kotlin:1.0.0")
}

Usage

import com.apialerts.ApiAlerts

val client = ApiAlerts("YOUR-API-KEY")

// Simple notification
client.send(message = "Deployment successful")

// With all options
client.send(
    message = "New user signed up",
    channel = "developers",
    link = "https://dashboard.example.com/users/123",
    tags = listOf("signup", "organic"),
)

Resources