---
updatedAt: 2026-05-27T12:52:47.000Z
agentTools:
  projectIndex: https://developer.onetrust.com/onetrust/llms.txt
---

# Get Inventory Links

Use this API to list an existing links between an inventory and one or more other inventories of a given type.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Privacy Automation - Data Mapping Automation",
    "version": "1.0",
    "contact": {
      "name": "OneTrust Support",
      "url": "https://my.onetrust.com/s/contactsupport"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0"
    },
    "description": "The Data Mapping Automation APIs are used to manage structured records (assets, vendors, processing activities, and legal entities), define schema attributes, traverse parent–child hierarchies, and create cross-record relationships—including links to personal data."
  },
  "servers": [
    {
      "url": "https://{hostname}",
      "variables": {
        "hostname": {
          "default": "hostname",
          "description": "The OneTrust hostname such as app.onetrust.com, app-eu.onetrust.com, app-de.onetrust.com, app-uk.onetrust.com, app-apac.onetrust.com, trial.onetrust.com, or uat.onetrust.com."
        }
      }
    }
  ],
  "tags": [
    {
      "name": "Inventory Relationships V1",
      "description": "APIs used to create, update, and delete bidirectional links between inventories and to manage associations to related items (including personal data).",
      "externalDocs": {
        "description": "OpenAPI 3.1.0 - Download Definition",
        "url": "https://developer.onetrust.com/onetrust/openapi/privacy-automation-data-mapping-automation.json"
      }
    }
  ],
  "x-onetrust": {
    "spec-label": "OpenAPI 3.1.0",
    "links": [
      "{'Data Mapping Automation Knowledge Base': 'https://my.onetrust.com/s/topic/0TO1Q000000ItRxWAK/data-mapping-automation'}"
    ]
  },
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": false,
    "metrics-enabled": false
  },
  "paths": {
    "/api/inventory/v2/inventories/{id}/relations/{inventoryType}": {
      "get": {
        "operationId": "getInventoryRelationsByIdUsingGET",
        "summary": "Get Inventory Links",
        "description": "Use this API to list an existing links between an inventory and one or more other inventories of a given type.",
        "tags": [
          "Inventory Relationships V1"
        ],
        "x-onetrust": {
          "spec-label": "https://developer.onetrust.com/onetrust/openapi/privacy-automation-data-mapping-automation.json"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique identifier of an inventory record. The value can be obtained using the [List Inventories](/onetrust/reference/getInventoryList) API.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "43fd3a8d-3f6b-464e-bf43-3f0c6c592442"
          },
          {
            "name": "inventoryType",
            "in": "path",
            "description": "The type of inventory records to check relations for.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "processing-activities",
                "vendors",
                "assets",
                "entities",
                "data-elements"
              ]
            },
            "example": "vendors"
          },
          {
            "name": "page",
            "in": "query",
            "description": "Results page to be retrieved (0..N)",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0,
              "minimum": 0
            },
            "example": 0
          },
          {
            "name": "size",
            "in": "query",
            "description": "Number of records per page (1..50)",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20,
              "maximum": 50,
              "minimum": 1
            },
            "example": 20
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BaseInventoryAssociationDto"
                  }
                },
                "example": {
                  "data": [
                    {
                      "inventoryId": "9a7c3ec1-7830-4811-8563-36e0a093e7ae",
                      "inventoryAssociationId": "4374d5da-44ac-4308-a298-3efdb0f34ba4",
                      "inventoryType": "vendors",
                      "anchorInventoryId": "ba1d8b56-98e3-438b-a24d-cc4a8b282f93",
                      "inventoryAssociationTypeKey": "JointControllerLinkType",
                      "inventoryAssociationType": "JointController",
                      "name": "Vendorrecord",
                      "organization": "aws",
                      "organizationId": "01d5d6db-a3f0-424e-9956-cfa205dc8af7",
                      "type": "Operations",
                      "typeKey": "VendorsTypeOperations",
                      "editable": true
                    }
                  ],
                  "meta": {
                    "page": {
                      "first": true,
                      "last": true,
                      "number": 0,
                      "size": 20,
                      "totalElements": 1,
                      "totalPages": 1
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          },
          "429": {
            "description": "Too Many Requests. \nFor more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).",
            "headers": {
              "Retry-After": {
                "schema": {
                  "description": "The number of seconds after which requests will be allowed again.",
                  "format": "int32"
                }
              },
              "ot-period": {
                "schema": {
                  "description": "The unit of time for which the rate limit applies",
                  "enum": [
                    "HOUR",
                    "MINUTE"
                  ]
                }
              },
              "ot-ratelimit-event-id": {
                "schema": {
                  "description": "The unique identifier for the rate-limiting event.",
                  "format": "uuid"
                }
              },
              "ot-request-made": {
                "schema": {
                  "description": "The number of requests made within the specified period.",
                  "format": "int32"
                }
              },
              "ot-requests-allowed": {
                "schema": {
                  "description": "The number of requests allowed within the specified period.",
                  "format": "int32"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        },
        "security": [
          {
            "OAUTH2": [
              "INVENTORY",
              "INVENTORY_READ",
              "INVENTORY_WRITE"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "BaseInventoryAssociationDto": {
        "type": "object",
        "properties": {
          "inventoryId": {
            "description": "The unique identifier of the linked inventory record",
            "type": "string",
            "format": "uuid",
            "example": "9a7c3ec1-7830-4811-8563-36e0a093e7ae"
          },
          "inventoryAssociationId": {
            "description": "The unique identifier of the association between inventory records",
            "type": "string",
            "format": "uuid",
            "example": "4374d5da-44ac-4308-a298-3efdb0f34ba4"
          }
        }
      }
    },
    "securitySchemes": {
      "OAUTH2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://{hostname}/api/access/v1/oauth/token",
            "scopes": {
              "INVENTORY": "Inventory Scope gives the user access to read/write operations",
              "INVENTORY_READ": "Inventory Read Scope gives the user read-only access",
              "INVENTORY_WRITE": "Inventory Write Scope gives the user write access"
            }
          }
        }
      }
    }
  }
}
```

# Sibling pages

* [Update Advanced Attributes for Personal Data Association](https://developer.onetrust.com/onetrust/reference/updateadvancedattributesforpersonaldataassociationusingput.md)
* [Update Inventory Link](https://developer.onetrust.com/onetrust/reference/updateinventoryassociationusingput.md)
* [Link Inventory](https://developer.onetrust.com/onetrust/reference/updaterelationsusingput.md)
* [Delete Inventory Link](https://developer.onetrust.com/onetrust/reference/deleterelationsusingdelete.md)
* [Link Inventory](https://developer.onetrust.com/onetrust/reference/createrelationsusingpost.md)
* [Create Control Implementation](https://developer.onetrust.com/onetrust/reference/addcontrolstoinventoryusingpost.md)