---
title: "get_history"
method: GET
path: "/v1/targets/{targetId}/history"
---

# get_history

`GET /v1/targets/{targetId}/history`

## Request

- Base URL: `https://app.agentlinkops.com`
- URL: `https://app.agentlinkops.com/v1/targets/{targetId}/history`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

The URL fixes subject and subjectId. Remaining history arguments go in query parameters. This resource response keeps the detailed row format.

## Path parameters

- `targetId` string, required: The watch id when subject is link, the target id when subject is target.

## Query parameters

- `cursor` string: Opaque list cursor; omit initially.
- `limit` integer: Page/report row cap; see bounds.

## Headers

- `X-Workspace-ID` string

## Response `200`

The URL fixes subject and subjectId. Remaining history arguments go in query parameters. This resource response keeps the detailed row format.

- object
  - `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/2a712a1dcfa7?raw)
