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

> Call /generations to retrieve a prior generation record.

**Method**: `client.getGeneration(...)`

```java theme={null}
import ai.stats.sdk.AIStats;

AIStats client = new AIStats(System.getenv("AI_STATS_API_KEY"));

Object generation = client.getGeneration("G-01ABC123");
System.out.println(String.valueOf(generation));
```

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