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

# Read retained link growth history

> Read dated retained watch transitions for one website.

`get_profile_history`

Read dated retained watch transitions for one website. Requires watches:read and events:read. Category and authority history remain explicitly unavailable; no collection or inference.

<Note>This command name is absent from deployment evidence dated 2026-09-20. Hosted availability for this current definition is unverified; inspect your connected catalog before invoking it. Verify the command and its input schema in the selected environment.</Note>

| Access | Behavior |
| - | - |
| `events:read`, `watches:read` | Reads saved data |

This read does not start a verification job.

## Example request

Connect through [MCP](/guides/connect-mcp), [CLI](/guides/connect-cli), or [HTTP](/guides/connect-http). Replace example identifiers with records from your workspace.

<CodeGroup>
  ```json MCP theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "get_profile_history",
      "arguments": {
        "projectId": "project_example",
        "from": "2026-10-01T00:00:00.000Z",
        "to": "2026-10-14T00:00:00.000Z"
      }
    }
  }
  ```

  ```bash CLI theme={null}
  agentlinkops call get_profile_history --args '{"projectId":"project_example","from":"2026-10-01T00:00:00.000Z","to":"2026-10-14T00:00:00.000Z"}'
  ```

  ```bash HTTP theme={null}
  curl --fail-with-body https://app.agentlinkops.com/v1/commands/get_profile_history \
    -H "Authorization: Bearer $AGENTLINKOPS_TOKEN" \
    -H 'Content-Type: application/json' \
    --data '{"projectId":"project_example","from":"2026-10-01T00:00:00.000Z","to":"2026-10-14T00:00:00.000Z"}'
  ```
</CodeGroup>

## Returned result

Illustrative data validated against the documented response schema. IDs and dates are examples, not a live account capture. MCP returns this data in `structuredContent` and in a text content block; generic HTTP and CLI return the JSON result directly.

<Accordion title="Full response example">
  ```json theme={null}
  {
    "schema_version": 1,
    "identity": {
      "id": "sha256:0000000000000000000000000000000000000000000000000000000000000000",
      "selection": "example_selection",
      "workspace_id": "workspace_example",
      "project_id": "project_example",
      "from": "2026-10-01T00:00:00.000Z",
      "to": "2026-10-14T00:00:00.000Z",
      "kinds": [
        "found",
        "back",
        "lost",
        "missing"
      ],
      "through_sequence": 0,
      "retention_floor": 0,
      "issued_at": "2026-10-14T00:00:00.000Z",
      "expires_at": "2026-10-14T01:00:00.000Z"
    },
    "coverage": {
      "basis": "retained_watch_transition_events",
      "clock": "event_recorded_at",
      "unit": "watch_transition_events",
      "whole_web_coverage": false,
      "unique_physical_links": false,
      "includes_archived_watches": true,
      "scan_limited": false,
      "retained_selection_complete": true,
      "historical_completeness": "no_recorded_retention_gap",
      "limitations": [
        "watch_transitions_are_not_unique_links",
        "unobserved_history_unavailable"
      ]
    },
    "totals": {
      "new": 0,
      "recovered": 0,
      "lost": 0,
      "went_missing": 0,
      "net": 0,
      "records": 0
    },
    "daily": [],
    "category_history": {
      "state": "unavailable",
      "reason": "versioned_occurrence_inventory_not_accepted",
      "values": null
    },
    "authority_history": {
      "state": "unavailable",
      "reason": "dated_authority_history_not_in_this_contract",
      "values": null
    },
    "notes": [
      "This empty example does not establish that no links existed."
    ]
  }
  ```
</Accordion>

## Input fields

Omit optional fields when you do not want to supply them. Null is accepted only where listed. Unknown input properties are rejected.

| Field | Type | Presence | Meaning and constraints |
| - | - | - | - |
| `projectId` | string | Required | project ID from create/list. minLength: `1`; maxLength: `200` |
| `from` | string | Required | from; see schema. pattern: `"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"` |
| `to` | string | Optional | to; see schema. pattern: `"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"` |
| `kinds` | array | Optional | kinds; see schema. minItems: `1`; maxItems: `4` |
| `selection` | string | Optional | selection; see schema. minLength: `1`; maxLength: `8192` |

### Validation and omitted values

Requires watches:read and events:read. Supply from as a UTC timestamp with milliseconds. Omitted to uses the current server time for a new selection; an existing selection retains its original end time. Omitted kinds selects all four event kinds for a new report and preserves the saved kinds when selection is supplied. The interval must end after from, span at most 90 days and not end in the future.

Counts use retained watch transitions and their event-recorded times, including archived watches. New means first verified presence; recovered means presence after confirmed loss. Net is new plus recovered minus lost. Never-seen links that become missing have a separate count. Unknown checks do not establish loss.

The returned selection lasts one hour and binds the project, interval, event kinds, credential scope and retained feed boundary. Reuse it with the same interval and kinds. Restart the report and any partial export when the selection changes or expires.

Retention gaps and unobserved history remain explicit. This command does not reconstruct category or authority history. Save profile snapshots to start a separate dated baseline; current labels and scores do not establish past values.

## Output fields

Fields inside optional or nullable parents apply only when that parent exists. [Common schema conventions](/reference/schemas) explain evidence states, empty lists and extensions.

* **`schema_version`** (number, required): must equal `1`
* **`identity`** (object, required): additional fields rejected
* **`coverage`** (object, required): Dataset scope and completeness, including limits on what these results establish. additional fields rejected
* **`totals`** (object, required): additional fields rejected
* **`daily`** (array, required).
* **`category_history`** (object, required): additional fields rejected
* **`authority_history`** (object, required): additional fields rejected
* **`notes`** (array, required).

<Accordion title="All fields and nested objects">
  | Field | Type | Presence | Meaning and constraints |
  | - | - | - | - |
  | `schema_version` | number | Required | must equal `1` |
  | `identity` | object | Required | additional fields rejected |
  | `identity.id` | string | Required | Resource identifier returned by the operation. pattern: `"^sha256:[a-f0-9]{64}$"` |
  | `identity.selection` | string | Required | minLength: `1`; maxLength: `8192` |
  | `identity.workspace_id` | string | Required | Workspace that owns this record. minLength: `1`; maxLength: `200` |
  | `identity.project_id` | string | Required | Project that owns this record. minLength: `1`; maxLength: `200` |
  | `identity.from` | string | Required | pattern: `"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"` |
  | `identity.to` | string | Required | pattern: `"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"` |
  | `identity.kinds` | array | Required | minItems: `1`; maxItems: `4` |
  | `identity.through_sequence` | integer | Required | minimum: `0`; maximum: `9007199254740991` |
  | `identity.retention_floor` | integer | Required | minimum: `0`; maximum: `9007199254740991` |
  | `identity.issued_at` | string | Required | pattern: `"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"` |
  | `identity.expires_at` | string | Required | pattern: `"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"` |
  | `coverage` | object | Required | Dataset scope and completeness, including limits on what these results establish. additional fields rejected |
  | `coverage.basis` | string | Required | must equal `"retained_watch_transition_events"` |
  | `coverage.clock` | string | Required | must equal `"event_recorded_at"` |
  | `coverage.unit` | string | Required | must equal `"watch_transition_events"` |
  | `coverage.whole_web_coverage` | boolean | Required | False: these results do not measure the whole web. must equal `false` |
  | `coverage.unique_physical_links` | boolean | Required | must equal `false` |
  | `coverage.includes_archived_watches` | boolean | Required | must equal `true` |
  | `coverage.scan_limited` | boolean | Required | must equal `false` |
  | `coverage.retained_selection_complete` | boolean | Required | must equal `true` |
  | `coverage.historical_completeness` | string | Required | values: `"no_recorded_retention_gap"`, `"retention_gap"` |
  | `coverage.limitations` | array | Required | |
  | `totals` | object | Required | additional fields rejected |
  | `totals.new` | integer | Required | minimum: `0`; maximum: `9007199254740991` |
  | `totals.recovered` | integer | Required | minimum: `0`; maximum: `9007199254740991` |
  | `totals.lost` | integer | Required | minimum: `0`; maximum: `9007199254740991` |
  | `totals.went_missing` | integer | Required | minimum: `0`; maximum: `9007199254740991` |
  | `totals.net` | integer | Required | minimum: `-9007199254740991`; maximum: `9007199254740991` |
  | `totals.records` | integer | Required | minimum: `0`; maximum: `9007199254740991` |
  | `daily` | array | Required | |
  | `daily[].new` | integer | Required | minimum: `0`; maximum: `9007199254740991` |
  | `daily[].recovered` | integer | Required | minimum: `0`; maximum: `9007199254740991` |
  | `daily[].lost` | integer | Required | minimum: `0`; maximum: `9007199254740991` |
  | `daily[].went_missing` | integer | Required | minimum: `0`; maximum: `9007199254740991` |
  | `daily[].net` | integer | Required | minimum: `-9007199254740991`; maximum: `9007199254740991` |
  | `daily[].records` | integer | Required | minimum: `0`; maximum: `9007199254740991` |
  | `daily[].day` | string | Required | pattern: `"^\\d{4}-\\d{2}-\\d{2}$"` |
  | `category_history` | object | Required | additional fields rejected |
  | `category_history.state` | string | Required | Saved lifecycle or evidence state, as enumerated for this record. must equal `"unavailable"` |
  | `category_history.reason` | string | Required | Recorded explanation; null when no explanation applies. |
  | `category_history.values` | null | Required | |
  | `authority_history` | object | Required | additional fields rejected |
  | `authority_history.state` | string | Required | Saved lifecycle or evidence state, as enumerated for this record. must equal `"unavailable"` |
  | `authority_history.reason` | string | Required | Recorded explanation; null when no explanation applies. |
  | `authority_history.values` | null | Required | |
  | `notes` | array | Required | |
</Accordion>

[Download input schema](/schemas/get_profile_history.input.json) · [Download output schema](/schemas/get_profile_history.output.json)

## Errors and retries

Follow the error recovery before retrying this read. Preserve the selected workspace, project, filters and feed. Recovering a read does not require an idempotency key or another verification job. Operation-specific errors include `INVALID_PROFILE_HISTORY_INPUT`, `INVALID_PROFILE_HISTORY_CURSOR`, `PROFILE_HISTORY_ACCESS_DENIED`, `PROFILE_HISTORY_SELECTION_CHANGED`, `PROFILE_HISTORY_UNAVAILABLE`.

See [error recovery](/reference/errors) for status, scope, cooldown, cursor and retry handling. Unknown observations are result data and do not establish loss.

## HTTP resource routes

These existing resource routes share the operation’s domain behavior. Their parameter placement, status and response envelope can differ from generic invocation. See [HTTP route details](/reference/http/routes).

| Method and route | Success | Details |
| - | - | - |
| `GET /v1/reports/history` | 200 | Supply projectId and from in the query, with optional to, selection and kinds. kinds is one comma-separated string of found,back,lost,missing; the route converts it to the command array. Returns a retained transition report; it starts no collection. |

## Continue

[list\_profile\_history\_records](/reference/commands/list_profile_history_records) · [save\_profile\_snapshot](/reference/commands/save_profile_snapshot)

Follow the [related workflow](/guides/reports), inspect [capability status](/capability-status), or return to the [command index](/reference/index).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.