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 torelaybase.New:
https://api.relaybase.com. To point at a different environment:
Quick start
Verifying an email
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 aserror. To inspect the underlying HTTP status: