v1

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

Get an ownership inference by owner type

Get the current ownership inference for a resource for a specific owner type.

This endpoint supports ETag-based caching. Pass the previously returned ETag value in the If-None-Match request header to receive a 304 Not Modified response when the inference has not changed.

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

Path parameters

resource_idstring required
Example:test-resource

The identifier of the resource to retrieve the ownership inference for.

owner_type'user' | 'team' | 'service' | 'unknown' required

The owner type for an ownership inference.

Example:team

The owner type of the inference to retrieve.

Headers

If-None-Matchstring
Example:"abc123"

A previously returned ETag value. When supplied and the resource has not changed, the endpoint returns 304 Not Modified.

Response

OK

Example response

{
  "data": {
    "attributes": {
      "checksum": "abc123",
      "confidence": "0.9500",
      "created_at": "2026-01-15T10:00:00Z",
      "evidence_versions": [
        {
          "pipeline_id": "p1",
          "version": "v3"
        }
      ],
      "explanation": "High confidence match",
      "owner_type": "team",
      "primary_contact_ref": "ref:handle/team-a",
      "sources": [
        {
          "kind": "code_owners"
        }
      ],
      "status": "suggested",
      "updated_at": "2026-01-15T10:00:00Z"
    },
    "id": "test-resource:team",
    "type": "ownership_inference"
  }
}