Skip to main content

Go

One client for repositories and Git, trails and code review, the agent sessions and checkpoints behind commits, search, and the organizations and projects around them. Standard library only, Go 1.24 or newer. The API reference is on pkg.go.dev.
Every request goes where its data lives: repository requests to the region that stores the repository, and account, organization and project requests to Core. You never choose a host. From v0.3.1, the Go SDK can run as a service account instead of as you: set ENTIRE_TOKEN to a service account secret. The client exchanges it at the Core of the secret’s jurisdiction for service account tokens that live at most 10 minutes, and renews them; the secret itself never reaches the API. Endpoints the SDK does not cover are a few lines away: client.NewRequest and entire.Call send any request with the client’s authentication, routing, retries and error handling.

Building a plugin

The plugin package implements the plugin protocol for partners: install receipts, plugin JWTs and installation tokens, the repository list, check runs and webhooks. See Build it with the Go SDK. Until 1.0, minor versions may change the API.