Skip to main content
The Rootly Rust SDK (rootly-rs) is a strongly-typed client for the Rootly API. Types and methods are generated directly from the OpenAPI specification using Progenitor, giving you full type safety for every endpoint, parameter, and response.

Features

  • Full coverage — every API operation with builder pattern
  • Strongly typed — every endpoint, parameter, and response is a Rust type
  • Async/await — powered by reqwest and tokio
  • JSON:API compliant — handles application/vnd.api+json content negotiation

Requirements

  • Rust 1.85+
  • tokio runtime

Installation

Add to your Cargo.toml:

Quick Start

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

Get an Incident

Create an Incident

Update an Incident

List Services

Create an Alert

Pagination

Error Handling

Retry with Backoff

For handling rate limits (HTTP 429):

Using Types

All generated types are available under rootly::types:

Configuration

Custom Base URL

Quick Setup with Defaults

API Coverage

Full coverage of the Rootly API v1:

Feedback & Support