Skip to main content
Server-side only — This SDK is designed for server-side environments (Rails, Sinatra, background jobs). Never use it in browser/frontend code as this exposes your API key. See Frontend Integration for the proxy pattern.
Coverage. This SDK tracks the API closely. Voice calls are the one area not generated in any SDK yet: use the CLI or the REST API for those. Note that send is taken by Object#send in Ruby, so the generated method is messages.send_. See the coverage table.
The official Zavu SDK for Ruby provides an idiomatic Ruby interface to the Zavu API.

Installation

Requirements

  • Ruby 3.0 or higher

Quick Start

Configuration

Initialize the Client

Environment Variables

We recommend storing your API key in environment variables:

Accessing Response Headers

Use .with_raw_response to access the full HTTP response including headers (useful for rate limiting):

Error Handling

Error Types

Retries

The SDK supports automatic retries with configurable backoff:

Thread Safety

The client is thread-safe and can be shared across threads:

Rails Integration