---
title: "Get all asset relationships"
method: GET
path: "/v2/itam/asset-relationship/relations"
tags: ["Asset Relationships"]
---

# Get all asset relationships

`GET /v2/itam/asset-relationship/relations`

Returns a paginated list of all asset relationships, optionally filtered by relationship type.

## Query parameters

- `type` string — The relation type used to filter relationships. By default all relation types are returned.
- `after` string — Cursor for forward pagination. Use nextCursor from previous response.
- `before` string — Cursor for backward pagination. Use previousCursor from previous response.
- `pageSize` integer — Number of results per page. Defaults to 100, minimum 1, maximum 500.

## Response `200`

A paginated list of asset relationships

- object — Paginated response containing asset relationships
  - `results` object[] — List of asset relationships
    - `relationId` integer — Unique identifier of the relationship
    - `source` object — Target asset in the relationship
      - `id` integer — Unique identifier of the asset
      - `entityType` 'DEVICE' | 'CHECKLIST' | 'CONTACT' | 'CREDENTIAL' | 'APPS_SERVICES_DOCUMENT' | 'TECHNICIAN' | 'END_USER' | 'KB_ARTICLE' | 'LOCATION' | 'ORGANIZATION' — Type of the entity
      - `name` string — Name of the asset
      - `clientId` integer — Client identifier, if applicable
    - `target` object — Target asset in the relationship
      - `id` integer — Unique identifier of the asset
      - `entityType` 'DEVICE' | 'CHECKLIST' | 'CONTACT' | 'CREDENTIAL' | 'APPS_SERVICES_DOCUMENT' | 'TECHNICIAN' | 'END_USER' | 'KB_ARTICLE' | 'LOCATION' | 'ORGANIZATION' — Type of the entity
      - `name` string — Name of the asset
      - `clientId` integer — Client identifier, if applicable
    - `relation` object — Type of the relationship
      - `id` integer — Unique identifier of the relation type
      - `forwardLabel` string — Label for the forward direction
      - `reverseLabel` string — Label for the reverse direction
      - `systemDefault` boolean — Whether this is a system default relation
  - `pageInfo` object — Pagination information for paginated responses
    - `count` integer — Total count of results in this page
    - `nextCursor` string — Cursor for the next page. Use with 'after' parameter.
    - `previousCursor` string — Cursor for the previous page. Use with 'before' parameter.
    - `hasMore` boolean — Indicates if there are more results after this page
    - `hasPrevious` boolean — Indicates if there are results before this page

## Other responses

- `401` — Unauthorized
- `403` — Forbidden - Missing required permissions

---

[API](https://skmtc.net/ninjarmm/apis/ninjaone-public-api-2-0.md) · [All operations](https://skmtc.net/ninjarmm/apis/ninjaone-public-api-2-0/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ninjarmm/ninjaone-public-api-2-0/revisions/753f26d46650/schema)
