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); Invite(ctx, orgID, 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) |
Organisation invites
See Organisation invites for send: false (product-owned mail) and the hosted /invite flow. Send and RequireMfa are *bool (server default true); pass wocha.Bool(false) for an explicit false. Requires wocha-go v1.1.0+.