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. 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.