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.
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