> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.aventure.vc/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.aventure.vc/_mcp/server.

# Provenance history for a record

GET https://api.aventure.vc/v1/provenance/history

Returns paginated field-level provenance rows ordered by effectiveAt DESC.

Reference: https://docs.aventure.vc/api-reference/a-venture-api/data-provenance/get-history

## Authentication

- `Authorization` header (bearer token, required) — User bearer token: Supabase or Clerk session JWT, Clerk OAuth access token, or Clerk personal API key
- `X-API-Key` header (required) — Admin API key for system-to-system write operations
- `X-Client-Secret` header (required) — Client secret for read-only service-to-service access (no writes)

## Request

### Query parameters

- `tableName` (enum, required) — Tracked resource. Canonical form is the camelCase wire token (e.g. `entity`, `newsArticle`); the legacy Postgres table name (`res_entity`) is still accepted for backwards compatibility.
  - Allowed values: `entity`, `person`, `newsArticle`, `entityPersonJoin`, `newsArticleEntityJoin`, `newsArticlePersonJoin`, `entityRelationship`, `entityTypeJoin`, `entityAddressJoin`, `entityClassificationJoin`, `entityDetail`, `entityResearchSnippets`, `personAddressJoin`, `fundraiseTransaction`, `fundraiseTransactionInvestorJoin`, `text`, `urlLink`, `deployTarget`
- `recordId` (string, optional) — Record key of the tracked row (text)
- `page` (integer, optional, default: 0) — Zero-based page index (0..N)
- `size` (integer, optional, default: 25) — The size of the page to be returned
- `sort` (list of string, optional, default: ["effectiveAt,DESC"]) — Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.

## Response

### 200

OK

- `content` (list of object, optional)
  - `changes` (list of object, required)
    - `fieldName` (string, required)
    - `newPresent` (boolean, required)
    - `oldPresent` (boolean, required)
    - `newValue` (string, optional, nullable)
    - `oldValue` (string, optional, nullable)
  - `effectiveAt` (datetime, required)
  - `eventId` (string, required)
  - `id` (long, required)
  - `operation` (enum, required) — Write operation captured by a provenance event row
    - Allowed values: `insert`, `update`, `delete`
  - `recordId` (string, required)
  - `source` (object, required) — Write provenance supplied on mutation query parameters.
    - `sourceDetail` (string, required) — Source detail or reviewer reference for the write.
    - `sourceType` (enum, required) — Write provenance source type.
      - Allowed values: `requestChangeForm`, `newsArticle`, `blogArticle`, `firstPartyWebsite`, `relatedPartyWebsite`, `thirdPartyWebsite`, `llm`, `aventureStaff`, `api`, `manual`, `import`
    - `actorType` (enum, optional) — Actor type; inferred as agent when agentChassis and agentModel are supplied, or as employee from an authenticated user JWT session.
      - Allowed values: `agent`, `employee`
    - `agentChassis` (string, optional, nullable) — Agent chassis token for agent-authored writes.
    - `agentModel` (string, optional, nullable) — Agent model id for agent-authored writes.
    - `sourceProvider` (string, optional, nullable) — Provider name for provider-native IDs or slugs.
    - `sourceProviderId` (string, optional, nullable) — Provider-native source ID.
    - `sourceProviderSlug` (string, optional, nullable) — Provider-native source slug.
  - `status` (enum, required) — Confidence and dispute state of a field-level provenance row
    - Allowed values: `unconfirmed`, `confirmed`, `disputedFirstParty`, `disputedRelatedParty`, `disputedThirdParty`, `disputedAnonymous`
  - `tableName` (enum, required) — Domain resource whose field-level provenance is tracked
    - Allowed values: `entity`, `person`, `newsArticle`, `entityPersonJoin`, `newsArticleEntityJoin`, `newsArticlePersonJoin`, `entityRelationship`, `entityTypeJoin`, `entityAddressJoin`, `entityClassificationJoin`, `entityDetail`, `entityResearchSnippets`, `personAddressJoin`, `fundraiseTransaction`, `fundraiseTransactionInvestorJoin`, `text`, `urlLink`, `deployTarget`
  - `actor` (object, optional, nullable) — Authenticated actor that authored a provenance write event
    - `displayName` (string, required)
    - `type` (enum, required) — Actor boundary for a provenance write event
      - Allowed values: `agent`, `employee`
    - `agent` (object, optional, nullable) — Validated automated-agent attribution for a write request. Travels on agentChassis and agentModel query parameters; actorType is not required at the OpenAPI/HTTP layer only because the web boundary infers actorType=agent from this complete pair before the domain factory and persistence write lane enforce actor context. Chassis is a CLI/SDK token, modelFamily is the derived LLM family prefix, and model is the full model identifier.
      - `chassis` (string, required) — Wire token from app.contracts.agent-provenance.chassis keys.
      - `model` (string, required) — Full agent model identifier with the family prefix preserved.
      - `modelFamily` (string, required) — Model family derived from the leading token of the model identifier.
    - `employeeDisplayName` (string, optional, nullable)
    - `employeeUserId` (string, optional, nullable)
  - `changedBy` (string, optional, nullable)
  - `entityId` (string, optional, nullable)
  - `personId` (string, optional, nullable)
- `empty` (boolean, optional)
- `first` (boolean, optional)
- `last` (boolean, optional)
- `number` (integer, optional)
- `numberOfElements` (integer, optional)
- `pageable` (object, optional)
  - `offset` (long, optional)
  - `pageNumber` (integer, optional)
  - `pageSize` (integer, optional)
  - `paged` (boolean, optional)
  - `sort` (object, optional)
    - `empty` (boolean, optional)
    - `sorted` (boolean, optional)
    - `unsorted` (boolean, optional)
  - `unpaged` (boolean, optional)
- `size` (integer, optional)
- `sort` (object, optional)
  - `empty` (boolean, optional)
  - `sorted` (boolean, optional)
  - `unsorted` (boolean, optional)
- `totalElements` (long, optional)
- `totalPages` (integer, optional)

## Examples

**Response**

```json
{
  "content": [
    {
      "changes": [
        {
          "fieldName": "string",
          "newPresent": true,
          "oldPresent": true,
          "newValue": "string",
          "oldValue": "string"
        }
      ],
      "effectiveAt": "2024-01-15T09:30:00Z",
      "eventId": "string",
      "id": 1,
      "operation": "insert",
      "recordId": "string",
      "source": {
        "sourceDetail": "aventure.vc",
        "sourceType": "aventureStaff",
        "actorType": "agent",
        "agentChassis": "codex-cli",
        "agentModel": "string",
        "sourceProvider": "TechCrunch",
        "sourceProviderId": "tc-2026-05-20-example-round",
        "sourceProviderSlug": "example-round"
      },
      "status": "unconfirmed",
      "tableName": "entity",
      "actor": {
        "displayName": "string",
        "type": "agent",
        "agent": {
          "chassis": "claude-code",
          "model": "string",
          "modelFamily": "claude"
        },
        "employeeDisplayName": "string",
        "employeeUserId": "string"
      },
      "changedBy": "string",
      "entityId": "string",
      "personId": "string"
    }
  ],
  "empty": true,
  "first": true,
  "last": true,
  "number": 1,
  "numberOfElements": 1,
  "pageable": {
    "offset": 1,
    "pageNumber": 1,
    "pageSize": 1,
    "paged": true,
    "sort": {
      "empty": true,
      "sorted": true,
      "unsorted": true
    },
    "unpaged": true
  },
  "size": 1,
  "sort": {
    "empty": true,
    "sorted": true,
    "unsorted": true
  },
  "totalElements": 1,
  "totalPages": 1
}
```

**SDK Code**

```python
import requests

url = "https://api.aventure.vc/v1/provenance/history"

querystring = {"tableName":"entity"}

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript
const url = 'https://api.aventure.vc/v1/provenance/history?tableName=entity';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.aventure.vc/v1/provenance/history?tableName=entity"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.aventure.vc/v1/provenance/history?tableName=entity")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.aventure.vc/v1/provenance/history?tableName=entity")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.aventure.vc/v1/provenance/history?tableName=entity', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.aventure.vc/v1/provenance/history?tableName=entity");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.aventure.vc/v1/provenance/history?tableName=entity")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```