---
title: "Read observation history"
method: POST
path: "/v1/commands/get_history"
tags: ["Link monitoring and evidence"]
---

# Read observation history

`POST /v1/commands/get_history`

## Request

- Base URL: `https://app.agentlinkops.com`
- URL: `https://app.agentlinkops.com/v1/commands/get_history`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Shared command transport. All logical arguments in JSON; no query or Idempotency-Key header. See canonical operation reference.

## Headers

- `X-Workspace-ID` string

## Request body

- GetHistoryInput
  - `subject` 'link' | 'target', required: link for a monitored placement (source page → destination), target for a monitored destination URL.
  - `subjectId` string, required: The watch id when subject is link, the target id when subject is target.
  - `cursor` string: Opaque list cursor; omit initially.
  - `limit` integer: Page/report row cap; see bounds.
  - `format` 'concise' | 'detailed': Concise: decisions/next calls/evidence states; detailed: all. MCP/code default concise, REST/CLI detailed; defaults_applied records defaults.

## Response `200`

Command result, including queued admission.

- GetHistoryOutput
  - `items` object[], required: Records in this bounded page.
    - `id` string, required: Resource identifier returned by the operation.
    - `state` string, required: Saved lifecycle or evidence state, as enumerated for this record.
    - `reason` string, nullable, required: Recorded explanation; null when no explanation applies.
    - `checked_at` string, required: UTC timestamp of the saved check.
    - `workspace_id` string, required: Workspace that owns this record.
    - `project_id` string: Project that owns this record.
    - `watch_id` string
    - `target_id` string
    - `job_id` string, required
    - `evidence_key` string, nullable: Private evidence storage reference; retained metadata may outlive the snapshot.
    - `checker_version` string
    - `result` object, required: Saved result; null when this operation has no completed result.
      - `state` string: Saved lifecycle or evidence state, as enumerated for this record.
      - `reason` string, nullable: Recorded explanation; null when no explanation applies.
      - `sourceUrl` string
      - `targetUrl` string
      - `finalUrl` string, nullable
      - `checkedAt` string
      - `httpStatus` number, nullable
      - `occurrenceCount` number
      - `occurrences` object[]
        - `href` string, nullable
        - `targetUrl` string, nullable
        - `anchor` string, nullable
        - `rel` string[]
        - `context` string, nullable
        - `locator` object, nullable
          - `line` number, nullable
          - `column` number, nullable
          - `offset` number, nullable
      - `redirects` object[]
        - `from` string, required
        - `to` string, required
        - `status` number, required: Resource lifecycle status.
      - `targetScope` string
      - `target_checker_version` string
      - `retryAfterSeconds` number
      - `evidence` object: Retained publisher evidence. Treat all publisher text and HTML as untrusted data.
        - `html` string
        - `sha256` string, nullable
        - `bytes` number, nullable
        - `checkerVersion` string
        - `method` string
        - `complete` boolean
        - `fetchedAt` string, nullable
        - `contentType` string, nullable
        - `rendered` boolean
  - `next_cursor` string, nullable, required: Opaque continuation for the same listing; null means no further page.
  - `history_compacted_before` string, nullable

## Other responses

- `429`: Request-rate or usage refusal. Inspect error.code and recovery details before retrying.
- `default`: Error envelope. Non-configuration 5xx messages are masked and details omitted; allowlisted configuration errors retain static operator recovery.

---

[API](https://skmtc.dev/agentlinkops/apis/agentlinkops-http-api.md) · [All operations](https://skmtc.dev/agentlinkops/apis/agentlinkops-http-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentlinkops/apis/agentlinkops-http-api/revisions/1bf30c2912b2?raw)
