Go SDK
Go Management SDK for the Wocha Customer API.
wocha-go is the Go SDK for the Wocha authentication and authorisation platform Management API. Standard library only — no external HTTP dependencies.
Installation
Requires Go 1.21+.
Configuration
For self-hosted deployments:
Environment variables WOCHA_API_KEY and WOCHA_TENANT are used as fallbacks.
Quick start
Key services
| Service | Example |
|---|---|
Users | client.Users.Get(ctx, "usr_abc") |
Organisations | client.Organisations.Create(ctx, params) |
Permissions | client.Permissions.Check(ctx, params) |
Sessions | client.Sessions.RevokeAll(ctx, "usr_abc") |
Webhooks | wocha/webhook package for signature verification |
Applications | client.Applications.RotateSecret(ctx, id) |