> ## Documentation Index
> Fetch the complete documentation index at: https://developer.onetrust.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get List of Relationship Records by Entity

Use this API to retrieve a list of Relationship Records by entity.

> 🗒 Things to Know
> 
> - This API only supports AI Governance entities (Models, Datasets, AI Systems, and AI Agents).
> - AI Governance APIs will become available over the course of the Spring as customer tenants are upgraded to enhanced AI Governance services. No customer action is required and more detailed information will be published in upcoming release notes and product documentation. 

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "AI Governance - AI Governance",
    "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 AI Governance APIs are used to integrate external systems and streamline the flow of data with AI Governance in the OneTrust Platform."
  },
  "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": "Relationship Management",
      "description": "The Relationship Management APIs are used to manage relationships between AI Governance entities.",
      "externalDocs": {
        "description": "OpenAPI 3.1.0 - Download Definition",
        "url": "https://developer.onetrust.com/onetrust/openapi/ai-governance.json"
      }
    }
  ],
  "x-onetrust": {
    "spec-label": "OpenAPI 3.1.0"
  },
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": false,
    "metrics-enabled": false
  },
  "paths": {
    "/api/ai-governance/v1/linked-entity-types/entity-types/names/{entityTypeName}/entities/{entityId}/links/pages": {
      "post": {
        "operationId": "getRelatedEntitiesForAnEntityUsingPOST",
        "summary": "Get List of Relationship Records by Entity",
        "description": "Use this API to retrieve a list of Relationship Records by entity.\n\n> 🗒 Things to Know\n> \n> - This API only supports AI Governance entities (Models, Datasets, AI Systems, and AI Agents).\n> - AI Governance APIs will become available over the course of the Spring as customer tenants are upgraded to enhanced AI Governance services. No customer action is required and more detailed information will be published in upcoming release notes and product documentation. ",
        "tags": [
          "Relationship Management"
        ],
        "x-onetrust": {
          "spec-label": "https://developer.onetrust.com/onetrust/openapi/ai-governance.json"
        },
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Results page to be retrieved (0..N). Example: '?page=1'",
            "schema": {
              "type": "integer",
              "default": 0
            }
          },
          {
            "name": "size",
            "in": "query",
            "description": "Number of records per page (1..50). Example: '?size=20'",
            "schema": {
              "type": "integer",
              "default": 10,
              "maximum": 50,
              "minimum": 1
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sorting criteria in the format: property,(asc|desc). Example: '?sort=id,desc'",
            "schema": {
              "type": "string",
              "default": "id,desc",
              "enum": [
                "id,asc",
                "id,desc"
              ]
            }
          },
          {
            "name": "entityTypeName",
            "in": "path",
            "description": "Name of the Entity Type",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "aisystems",
                "datasets",
                "models",
                "aiagents"
              ]
            },
            "example": "aisystems"
          },
          {
            "name": "entityId",
            "in": "path",
            "description": "Entity Identifier",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "4c994bfc-987e-4a24-b0bd-9644e05e9b5d"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AttributeQueryCriteria"
              },
              "examples": {
                "Get All Related Entities for a given AISystem": {
                  "summary": "Get All Related Entities for a given AISystem",
                  "description": "Get All Related Entities for a given AISystem",
                  "value": {
                    "fullText": ""
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Gets - All Related Entities for a given AISystem.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Page"
                },
                "examples": {
                  "Related Entities": {
                    "summary": "Related Entities for a given AISystem.",
                    "description": "Related Entities",
                    "value": {
                      "content": [
                        {
                          "createdDate": "2026-02-19T06:13:22.810Z",
                          "id": "8fd085db-f213-4690-8d5a-100449ce880c",
                          "lastUpdatedDate": "2026-02-19T06:13:22.810Z",
                          "relationshipTypeDetail": {
                            "id": "8857005c-662f-4f90-9e4e-481b225a666a",
                            "name": "ai-system-composition",
                            "nameKey": "CE.Link.AISystemComposition.Name",
                            "schemaName": "ai-system-composition",
                            "seeded": true,
                            "moduleName": "CustomEntityManagement",
                            "description": "Defines a compositional relationship between AI Systems where one system is an integral part or component of another system",
                            "descriptionKey": "CE.Link.AISystemComposition.Description",
                            "entityType1ToEntityType2EntityLinkName": "is composed of",
                            "entityType1ToEntityType2EntityLinkNameKey": "CE.Link.AISystemComposition.ForwardLabel",
                            "entityType2ToEntityType1EntityLinkName": "is a component of",
                            "entityType2ToEntityType1EntityLinkNameKey": "CE.Link.AISystemComposition.BackwardLabel",
                            "enableAudit": true,
                            "allowNewCustomLinkAssociation": true,
                            "auditFields": {
                              "createdDate": "2025-12-08T15:19:47.897Z",
                              "lastUpdatedDate": "2025-12-08T15:19:47.897Z"
                            }
                          },
                          "source": {
                            "linkEntityDetail": {
                              "extendedBaseAttributes": {},
                              "displayLabel": "AISystem 1"
                            },
                            "id": "0f79003f-b177-4f02-aa83-9bf11deec7c7",
                            "number": 1,
                            "name": "AISystem 1",
                            "entityType": {
                              "id": "8a0b318a-d206-4ff9-b1db-00c8c8611d37",
                              "name": "aisystems",
                              "nameKey": "CE.AISystems.Name",
                              "seeded": true,
                              "moduleName": "AIGovernance",
                              "schemaName": "aisystems"
                            },
                            "deleted": false
                          },
                          "target": {
                            "linkEntityDetail": {
                              "extendedBaseAttributes": {},
                              "displayLabel": "Model Test"
                            },
                            "id": "296c0a2d-b5f6-450d-8b13-3c2327775042",
                            "number": 2,
                            "name": "Model Test",
                            "entityType": {
                              "id": "963bbab3-8bc9-4787-9ebb-a502775bef54",
                              "name": "models",
                              "nameKey": "CE.Models.Name",
                              "seeded": true,
                              "moduleName": "AIGovernance",
                              "schemaName": "models"
                            },
                            "deleted": false
                          }
                        }
                      ],
                      "number": 0,
                      "size": 20,
                      "totalElements": 1,
                      "first": true,
                      "last": true,
                      "hasContent": true,
                      "numberOfElements": 1,
                      "totalPages": 1
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "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": [
              "AI_GOVERNANCE",
              "AI_GOVERNANCE_READ"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Page": {
        "type": "object",
        "properties": {
          "totalElements": {
            "type": "integer",
            "format": "int64"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          },
          "content": {
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "number": {
            "type": "integer",
            "format": "int32"
          },
          "sort": {
            "$ref": "#/components/schemas/SortObject"
          },
          "first": {
            "type": "boolean"
          },
          "last": {
            "type": "boolean"
          },
          "pageable": {
            "$ref": "#/components/schemas/PageableObject"
          },
          "numberOfElements": {
            "type": "integer",
            "format": "int32"
          },
          "empty": {
            "type": "boolean"
          }
        }
      },
      "PageableObject": {
        "type": "object",
        "properties": {
          "offset": {
            "type": "integer",
            "format": "int64"
          },
          "sort": {
            "$ref": "#/components/schemas/SortObject"
          },
          "paged": {
            "type": "boolean"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "unpaged": {
            "type": "boolean"
          }
        }
      },
      "SortObject": {
        "type": "object",
        "properties": {
          "empty": {
            "type": "boolean"
          },
          "sorted": {
            "type": "boolean"
          },
          "unsorted": {
            "type": "boolean"
          }
        }
      },
      "AttributePredicate": {
        "type": "object",
        "properties": {
          "field": {
            "description": "The field name used to filter results.",
            "type": "string"
          },
          "operator": {
            "description": "The relationship that must be met between the field and value.",
            "type": "string",
            "enum": [
              "EQUAL_TO",
              "NOT_EQUAL_TO",
              "GREATER_THAN",
              "GREATER_THAN_EQUAL_TO",
              "LESS_THAN",
              "LESS_THAN_EQUAL_TO",
              "BETWEEN"
            ]
          },
          "value": {
            "description": "The field value used to filter results. If filtering for a range of values, this would be the start of the range and should be used in conjunction with the `toValue` parameter. \nExamples by type: UUID = 'e68d49c4-f11f-4cd9-8f1b-0be8ef945b8f', LocalDate = '2023-01-01', OffsetDateTime = '2023-01-01T00:00:00Z', String = 'Closed', Number = 7",
            "type": "object",
            "oneOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "string"
              },
              {
                "type": "number"
              }
            ]
          },
          "toValue": {
            "description": "The field value for the end of the range. This field should be used in conjunction with the `value` parameter. \nExamples by type: LocalDate = '2023-01-01', OffsetDateTime = '2023-01-01T00:00:00Z', String = 'Closed', Number = 7",
            "type": "object",
            "oneOf": [
              {
                "type": "string",
                "format": "date"
              },
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "string"
              },
              {
                "type": "number"
              }
            ]
          }
        },
        "required": [
          "field"
        ]
      },
      "AttributeQueryCriteria": {
        "type": "object",
        "properties": {
          "filters": {
            "description": "The fields and values used to filter results.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AttributePredicate"
            },
            "uniqueItems": true
          },
          "fullText": {
            "description": "The key terms for the search criteria.",
            "type": "string",
            "maxLength": 500,
            "minLength": 0
          }
        }
      }
    },
    "securitySchemes": {
      "OAUTH2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://{hostname}/api/access/v1/oauth/token",
            "scopes": {
              "AI_GOVERNANCE": "Grants full permissions to manage AI Governance operations for external systems",
              "AI_GOVERNANCE_READ": "Allows read-only access to AI Governance entities",
              "AI_GOVERNANCE_WRITE": "Grants permissions to create and modify AI Governance entities"
            }
          }
        }
      }
    }
  }
}
```