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

# Get what changed in one or more activity items

GET https://api.athenaintel.com/api/v0/assets/{asset_id}/activity/delta

Admin only. Report what changed between two Keryx clocks — for spreadsheets, the per-cell before/after values and row/column inserts and deletes (axis_changes); for documents, the inserted and deleted text; for presentations, the affected slides. Take the clocks from the activity endpoint. Computed by the same differ the in-app Activity pane renders, so the payload matches what a user sees. Always inspect delta.coverage: caps and non-decodable bulk regions are reported there rather than silently omitted.

Reference: https://docs.athenaintel.com/api-reference/assets/get-activity-delta

## Authentication

- `X-API-KEY` header (required) — API Key authentication via header

## Request

### Path parameters

- `asset_id` (string, required)

### Query parameters

- `from` (integer, required) — Start clock, from an activity item's from_clock.
- `to` (integer, required) — End clock, from the same activity item's to_clock.

## Response

### 200

Successful Response

- `asset_id` (string, required)
- `asset_type` (string, required)
- `deltas` (list of ActivityDeltaOut, required)
- `schema_version` (string, required) — Version of the delta payload shape. Detail fields are added additively within a version; a breaking change bumps it.

## Errors

### 400 Bad Request Error

Malformed or unsupported request

- `any`

### 401 Unauthorized Error

Unauthorized

- `message` (string, required)

### 403 Forbidden Error

Caller is not an admin, or cannot access the asset's workspace

- `any`

### 404 Not Found Error

Not Found

- `message` (string, required)

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### ActivityDeltaOut

The change one activity item made, or why it is unavailable.

- `from_clock` (integer, required)
- `to_clock` (integer, required)
- `delta` (map from string to any, optional, nullable) — The change itself. Always carries kind, type, summary, totals, and coverage; typed detail (cell_changes, slide_changes, inserted_text, ...) varies by kind. Null when error is set.
- `error` (string, optional, nullable) — Why this range could not be diffed. Null on success.

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)
- `ctx` (ValidationErrorCtx, optional)
- `input` (any, optional)

### ValidationErrorLocItems

- string
- integer

### ValidationErrorCtx

## Examples

**Response**

```json
{
  "asset_id": "asset_17d178ad",
  "asset_type": "spreadsheet",
  "deltas": [
    {
      "from_clock": 1752694811020,
      "to_clock": 1752694813551,
      "delta": {
        "axis_changes": [],
        "cell_changes": [
          {
            "cell_ref": "F14",
            "change_type": "modified",
            "new_value": "1,197,300",
            "old_value": "1,204,500",
            "sheet_id": "1",
            "sheet_name": "Testing"
          }
        ],
        "coverage": {
          "complete": true,
          "dropped": []
        },
        "facet_changes": [],
        "kind": "sheet",
        "range_changes": [],
        "structure_changes": [],
        "summary": "2 cells modified, 1 cell added",
        "totals": {
          "cells_added": 1,
          "cells_deleted": 0,
          "cells_formatted": 0,
          "cells_modified": 2
        },
        "type": "replace"
      }
    }
  ],
  "schema_version": "athena-activity-delta/v1"
}
```

**SDK Code**

```python
import requests

url = "https://api.athenaintel.com/api/v0/assets/asset_id/activity/delta"

querystring = {"from":"1","to":"1"}

headers = {"X-API-KEY": "<apiKey>"}

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

print(response.json())
```

```javascript
const url = 'https://api.athenaintel.com/api/v0/assets/asset_id/activity/delta?from=1&to=1';
const options = {method: 'GET', headers: {'X-API-KEY': '<apiKey>'}};

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.athenaintel.com/api/v0/assets/asset_id/activity/delta?from=1&to=1"

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

	req.Header.Add("X-API-KEY", "<apiKey>")

	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.athenaintel.com/api/v0/assets/asset_id/activity/delta?from=1&to=1")

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

request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<apiKey>'

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.athenaintel.com/api/v0/assets/asset_id/activity/delta?from=1&to=1")
  .header("X-API-KEY", "<apiKey>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.athenaintel.com/api/v0/assets/asset_id/activity/delta?from=1&to=1', [
  'headers' => [
    'X-API-KEY' => '<apiKey>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.athenaintel.com/api/v0/assets/asset_id/activity/delta?from=1&to=1");
var request = new RestRequest(Method.GET);
request.AddHeader("X-API-KEY", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["X-API-KEY": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.athenaintel.com/api/v0/assets/asset_id/activity/delta?from=1&to=1")! 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()
```