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+jsoncontent negotiation - Swift Package Manager — simple dependency management
Requirements
- Swift 6.0 or later
- Xcode 16+ or equivalent Swift toolchain
Installation
Add the dependency to yourPackage.swift:
Rootly to your target dependencies:
Quick Start
The SDK provides amakeClient helper that configures the generated OpenAPI client with authentication and the default Rootly API base URL:
Getting an API Key
- Log in to your Rootly account
- Navigate to Settings > API Keys
- 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
- Source Code: GitHub Repository
- Issues: GitHub Issues
- API Reference: Rootly API Docs