Skip to content
OAOpenAppPhysical Security as a Service
Login

Go SDK

The OpenApp Go SDK (github.com/tomers/openapp-sdk/go) is the official client generated from OpenAPI. Outbound HTTP goes through openapp-sdk-core (CGO and the C bridge) so auth, retries, and error mapping stay aligned with the other SDKs.

Module pathgithub.com/tomers/openapp-sdk/go
Source codeGitHub (go/)
READMEREADME.md on GitHub
Generated API referencepkg.go.dev (available after the first release publishes go/v* tags to the module proxy)
IssuesGitHub issues
Terminal window
go get github.com/tomers/openapp-sdk/go

Requires Go 1.22+ and an OpenApp API key.

package main
import (
"context"
"fmt"
"log"
"os"
openapp "github.com/tomers/openapp-sdk/go"
)
func main() {
client, err := openapp.NewAPIClient(os.Getenv("OPENAPP_API_KEY"))
if err != nil {
log.Fatalf("NewAPIClient: %v", err)
}
defer client.Close()
status, _, err := client.StatusAPI.GetBackendStatus(context.Background()).Execute()
if err != nil {
log.Fatalf("GetBackendStatus: %v", err)
}
fmt.Printf("status: %#v\n", status)
}

Call Close when finished so native runtime handles from the core bridge are released.

resp, httpResp, err := client.OrgsAPI.ListOrgs(context.Background()).Execute()
if err != nil {
_ = httpResp
log.Fatal(err)
}
fmt.Printf("orgs: %#v\n", resp)

Cross-language topics (with Go examples on each page):

HTTP contract: API reference · OpenAPI JSON