Skip to main content
Go client for the Relaybase email validation API.

GitHub Repository

Source, issues, and releases for the Relaybase Go SDK.

Requirements

  • Go 1.22+

Installation

Authentication

Get your API key from the Relaybase dashboard and pass it to relaybase.New:
By default the client talks to https://api.relaybase.com. To point at a different environment:

Quick start

Verifying an email

Or with a context (for timeouts/cancellation):
If mode is left as the zero value (""), it defaults to EmailModeCheckFast.

Verification modes

See Validation Results for how these map to the API’s mode field.

Response fields

SingleVerify returns a *relaybase.VerifyResult: Example:

Error handling

Errors from the API are returned as error. To inspect the underlying HTTP status:
Common status codes:

Roadmap

Bulk validation support for validating multiple emails in a single call is in progress and will be added in a future release.