v1

latestOpenAPI 3.0.02026-07-141,4077,1665.2 MB
CSM Ownership

List ownership inference history for a resource

List inference history entries for a resource across all owner types, ordered from most recent to oldest. Uses cursor-based pagination.

get/api/v2/csm/ownership/{resource_id}/history

Path parameters

resource_idstring required
Example:res-1

The identifier of the resource to retrieve inference history for.

Query parameters

cursorstring
Example:eyJpZCI6OTh9

An opaque, base64-encoded cursor token returned by a previous call in pagination.next_cursor. Omit to fetch the first page.

limitinteger
Example:25

The maximum number of history entries to return per page.

Response

OK

Example response

{
  "data": {
    "attributes": {
      "items": [
        {
          "confidence": "0.9000",
          "created_at": "2026-01-15T10:00:00Z",
          "evidence_versions": [
            {
              "pipeline_id": "p1",
              "version": "v3"
            }
          ],
          "failed_at": "2026-01-15T10:00:00Z",
          "failure_reason": "missing evidence",
          "id": 100,
          "owner_type": "team",
          "primary_contact_ref": "ref:handle/team-a",
          "resource_id": "res-1",
          "retry_schedule": "2026-01-15T11:00:00Z",
          "sources": [
            {
              "kind": "code_owners"
            }
          ],
          "status": "suggested"
        }
      ],
      "pagination": {
        "next_cursor": "eyJpZCI6OTh9"
      }
    },
    "id": "res-1",
    "type": "ownership_history"
  }
}