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

# Run Results

> Get enrichment results and change diffs for a specific run.

## Authentication

Requires an API key in the `Authorization` header.

```bash theme={"dark"}
Authorization: Bearer YOUR_API_KEY
```

## Path parameters

<ParamField path="id" type="string" required>
  The monitor's unique identifier (UUID).
</ParamField>

<ParamField path="runId" type="string" required>
  The run's unique identifier (UUID).
</ParamField>

## Query parameters

<ParamField query="changes_only" type="boolean">
  Set to `true` to only return records with detected changes. Default: `false`.
</ParamField>

### Example request

```bash theme={"dark"}
curl "https://encrata.com/api/monitors/a1b2c3d4-.../runs/b2c3d4e5-.../results?changes_only=true" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Response

Returns an array of snapshot objects.

<ResponseField name="email" type="string">
  The email address.
</ResponseField>

<ResponseField name="data" type="object">
  The full enriched profile data from this run.
</ResponseField>

<ResponseField name="changes" type="object | null">
  Field-level diff object. Each key is a changed field with `old` and `new` values. `null` if no changes.
</ResponseField>

<ResponseField name="has_changes" type="boolean">
  Whether this record has any detected changes.
</ResponseField>

### Example response

```json theme={"dark"}
[
  {
    "email": "satya@microsoft.com",
    "data": { "first_name": "Satya", "company": "Microsoft", "job_role": "CEO", ... },
    "changes": {
      "job_role": { "old": "CTO", "new": "CEO" }
    },
    "has_changes": true
  }
]
```

## CSV Download

Append `/download` to the results URL to download as CSV:

```bash theme={"dark"}
curl "https://encrata.com/api/monitors/a1b2c3d4-.../runs/b2c3d4e5-.../results/download" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -o results.csv
```
