Expand description
§ffrelay-api
A Rust API client library for Firefox Relay, Mozilla’s email forwarding service that helps protect your privacy by creating email aliases that forward to your real email address.
§Features
- Create random or custom domain email aliases
- List all your email relays
- Delete email relays
- Retrieve profile information
- Support for both standard relays and domain relays
§Quick Start
use ffrelay_api::api::FFRelayApi;
use ffrelay_api::types::FirefoxEmailRelayRequest;
// Initialize the API client with your Firefox Relay token
let api = FFRelayApi::new("your-api-token-here");
// Create a new random email relay
let request = FirefoxEmailRelayRequest::builder()
.description("My new relay".to_string())
.build();
let email = api.create(request).await?;
println!("Created relay: {}", email);
// List all relays
let relays = api.list().await?;
for relay in relays {
println!("{}: {}", relay.id, relay.full_address);
}§Getting Your API Token
- Go to Firefox Relay
- Sign in with your Firefox Account
- Navigate to the API settings to generate your token