---
title: Go SDK
description: Use the generated Go SDK for the Vortex Payments API.
---

# Go SDK

The Go SDK is generated from the Vortex Payments OpenAPI contract.

```bash
go get github.com/vortexnyc/vortex-go
```

```go
import (
	"context"
	"os"

	vortex "github.com/vortexnyc/vortex-go"
)

// vp_test_ key = sandbox; vp_live_ key = production.
// Point at the sandbox host while you build and test.
cfg := vortex.NewConfiguration()
cfg.Host = "api.sandbox.vortex.nyc"
cfg.Scheme = "https"
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("VORTEX_API_KEY"))

client := vortex.NewAPIClient(cfg)
_ = context.Background()
```

## Local source

- Generated package: `sdks/go`
- Module path: `github.com/vortexnyc/vortex-go`
- Generator: OpenAPI Generator

Regenerate with:

```bash
pnpm run sdk:generate
```
