# prov.trace.diffs.get

prov.trace.diffs.get in Node SDK.

## Signature

```ts
prov.trace.diffs.get(diffId: string): Promise<TraceDiff>
```

## Parameters

- `diffId` (string)

## Returns

`Promise<TraceDiff>`

## HTTP operation

[`GET /v1/trace/diffs/{id}`](https://provenanceauth.com/docs/api/registry-diffs.md#get-v1-trace-diffs-id): Retrieve a registry diff

## Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)

## Example

**Node**

```ts
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/trace/diffs`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({
    "base": "qwen2.5-0.5b-instruct@7ae55760",
    "target": "qwen2.5-0.5b-instruct@7ae55760",
    "tau": 0.25
  }),
})).json();
const diffId = step1.id;
await new Promise((ok) => setTimeout(ok, 8000));
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/trace/diffs/${diffId}`, {
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();
```

**Python**

```python
import os
import time
import httpx

api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/trace/diffs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
    "base": "qwen2.5-0.5b-instruct@7ae55760",
    "target": "qwen2.5-0.5b-instruct@7ae55760",
    "tau": 0.25
}).json()
diff_id = step1["id"]
time.sleep(8)
data = httpx.get(f"{api}/v1/trace/diffs/{diff_id}", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()
```
