# Get Resource Ownership Transfer Audit History

`GET /api/resources/{resource_type}/{resource_id}/ownership`

### Overview
Retrieves the immutable audit log of ownership transfers for any managed resource (Agent, Knowledge Document, Tool, Eval Set).

### Authentication & Headers
- **Auth**: Bearer Token (L1 / L2)
- **Required Header**: `API-Version: 1`

### Parameters
- **`resource_type`** *(path, string, required)*: Canonical resource type (`agent`, `knowledge_document`, `tool`, `eval_set`).
- **`resource_id`** *(path, string, required)*: Unique identifier of the target resource.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `resource_type` | path | string | yes | Canonical type of the managed resource (agent, document, tool, eval_set). |
| `resource_id` | path | string | yes | Unique identifier of the resource undergoing ownership transfer or audit query. |

## Responses

### 200 — Ownership audit history trail

### 400 — Bad Request - The request parameters or headers are invalid (e.g. unsupported API-Version).

### 401 — Unauthorized - Missing, invalid, or expired JWT Bearer token.

### 403 — Forbidden - Insufficient role permissions or resource access denied by RBAC policy.

### 404 — Not Found - The requested resource ID was not found.

### 422 — Validation Error

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `detail` | object[] | no |  |
| `detail[].loc` | string | integer[] | yes |  |
| `detail[].msg` | string | yes |  |
| `detail[].type` | string | yes |  |
| `detail[].input` | object | no |  |
| `detail[].ctx` | object | no |  |

```json
{
  "detail": [
    {
      "loc": [
        null
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
```

## Example

```bash
curl -X GET "$PINTER_URL/api/resources/agent/agnt_risk_compliance_01/ownership" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
```
