---
title: "GET /api/supplychain-mappings/nodes/{nodeId}/expand"
method: GET
path: "/api/supplychain-mappings/nodes/{nodeId}/expand"
tags: ["Company Chains"]
---

# GET /api/supplychain-mappings/nodes/{nodeId}/expand

`GET /api/supplychain-mappings/nodes/{nodeId}/expand`

Get company chain

## Path parameters

- `nodeId` string, required

## Query parameters

- `levels` number
- `currentDepth` number

## Response `200`

Default Response

- object
  - `metadata` object, required
    - `success` boolean, required — True when the request succeeded.
  - `data` object, required
    - `nodes` object[], required
      - `id` string, required
      - `parentId` string
      - `supplyChainId` string
      - `depth` number
      - `numberOfDescendants` number
      - `nodeType` 'root' | 'leaf' | 'intermediate' | 'parent', required
      - `companyId` string
      - `companyName` string
      - `retracedRiskScore` number
      - `country` string
      - `countryName` string
      - `imageList` unknown[]
        - unknown
      - `officialName` string
      - `displayName` string
      - `supplyChainTier` unknown, required
      - `connectionType` string
      - `facilityProcesses` object[]
        - `facilityProcessId` string
        - `facilityProcessName` string
      - `canInvite` boolean
      - `isConnected` boolean
      - `reasonCode` string
      - `addedBy` string
      - `collaborationStatus` string
      - `lastNotifiedAt` string
      - `totalUsersCount` number
      - `activeUsersCount` number
      - `invitedUsersCount` number
      - `createdByCompanyId` string
      - `createdByCompanyName` string
      - `createdByUserId` string
      - `createdAt` string
      - `updatedByCompanyId` string
      - `updatedByCompanyName` string
      - `lastUpdated` string
    - `edges` object[], required
      - `originNodeId` string
      - `destinationNodeId` string

## Other responses

- `401` — Default Response
- `403` — Default Response
- `404` — Default Response

---

[API](https://skmtc.dev/retraced/apis/api-reference.md) · [All operations](https://skmtc.dev/retraced/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/retraced/api-reference/revisions/1df37791a1bb/schema)
