PauboxClient you use to send email. They require the email feature (enabled by default).
Result<T, PauboxError>.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Create, list, get, update, and delete Paubox webhook endpoints with the Rust SDK to receive delivery, open, failure, and inbound mail events.
PauboxClient you use to send email. They require the email feature (enabled by default).
let client = PauboxClient::new("YOUR_API_KEY");
Result<T, PauboxError>.
let endpoints = client.list_webhook_endpoints().await?;
for ep in &endpoints {
println!("{}: {} (active: {:?})", ep.id, ep.target_url, ep.active);
}
let endpoint = client.create_webhook_endpoint(
"https://example.com/webhooks/paubox",
&["inbound_mail_received", "api_mail_log_delivered"],
Some("whsec_abc123"), // signing_key
None, // active (defaults to true)
).await?;
println!("Created: {}", endpoint.id);
let endpoint = client.get_webhook_endpoint(42).await?;
use paubox::webhooks::UpdateWebhookEndpoint;
let updated = client.update_webhook_endpoint(42, UpdateWebhookEndpoint {
active: Some(false),
..Default::default()
}).await?;
client.delete_webhook_endpoint(42).await?;