Skip to main content
The Rootly Swift SDK (rootly-swift) is a Swift client for the Rootly API, auto-generated from the OpenAPI specification using Apple’s Swift OpenAPI Generator.

Features

  • Auto-generated — types and client code generated from the OpenAPI spec at build time
  • Swift-native — uses structured concurrency with async/await
  • JSON:API compliant — handles application/vnd.api+json content negotiation
  • Swift Package Manager — simple dependency management

Requirements

  • Swift 6.0 or later
  • Xcode 16+ or equivalent Swift toolchain

Installation

Add the dependency to your Package.swift:
Then add Rootly to your target dependencies:

Quick Start

The SDK provides a makeClient helper that configures the generated OpenAPI client with authentication and the default Rootly API base URL:

Getting an API Key

  1. Log in to your Rootly account
  2. Navigate to Settings > API Keys
  3. Create a new API key with the permissions you need

Usage

List Incidents

Filter Incidents

Get a Single Incident

Create an Incident

Update an Incident

List Services

Configuration

Custom Server URL

Feedback & Support