Browse Docs

Swift Alerts SDK

The API Alerts Swift SDK sends alerts from your Swift code through API Alerts. Drop it into iOS apps, macOS applications, watchOS apps, or Vapor servers that need to notify you when something important happens. Minimal setup, fire-and-forget by default with optional response handling, and zero infrastructure.

Installation

Add the package via Swift Package Manager:

https://github.com/apialerts/apialerts-swift

Usage

import ApiAlerts

let 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: ["signup", "organic"]
)

Resources