> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ai-stats.phaseo.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Generation lookup

> Look up saved generations with the Go SDK.

Use the wrapper method:

* `client.GetGeneration(ctx, generationID)`

```go theme={null}
import (
  "context"
  "fmt"
  aistats "github.com/AI-Stats/AI-Stats/packages/sdk/sdk-go"
)

client := aistats.New(apiKey, "https://api.phaseo.app/v1")
record, err := client.GetGeneration(context.Background(), "G-01ABC...")
if err != nil {
  panic(err)
}

fmt.Println(record)
```

When request details were stored, the returned record also includes `replay_supported` and `replay_request` so you can resubmit the captured payload to the original endpoint.
