---
title: "Get Lineage"
method: GET
path: "/api/agents/{agent_id}/lineage"
tags: ["agents"]
---

# Get Lineage

`GET /api/agents/{agent_id}/lineage`

## Request

- Base URL: `https://app.thinqos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.thinqos.com/api/agents/{agent_id}/lineage`
- Auth: none declared

List the ownership lineage of a thinqOS agent: every grant including revoked ones, oldest first.
Caller must be able to view the agent. Each entry has owner_identity_id, access_level ('owner' =
view + edit + delete + billing, 'viewer' = view only), granted_at/by, and revoked_at/by (null
while active).

## Path parameters

- `agent_id` string, uuid, required

## Headers

- `x-impersonate-identity-id` string, nullable

## Response `200`

Successful Response

- AgentOwnerResponse[]
  - `owner_identity_id` string, uuid, required
  - `granted_at` string, required
  - `granted_by` string, uuid, nullable, required
  - `revoked_at` string, nullable, required
  - `revoked_by` string, uuid, nullable, required
  - `source` 'folder_admin' | 'controller'

## Other responses

- `422`: Validation Error

---

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