---
title: "Build the caller company's supplier network graph"
method: POST
path: "/api/network-companies/graph"
tags: ["Companies", "Network", "Graph"]
---

# Build the caller company's supplier network graph

`POST /api/network-companies/graph`

## Request

- Base URL: `https://api.retraced.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.retraced.com/api/network-companies/graph`
- Auth: none declared

Builds the caller company's graph: a node for each production process of the company and of each company it links to, carrying its facility processes, with no positions and no links. A company has one graph — when it already has one, nothing is written. Answers the graph `id` with 201 in the `{ data, metadata }` envelope; read the graph with `GET /graph` (legacy answered the whole graph view).

## Response `201`

Default Response

- object
  - `metadata` object, required
    - `success` boolean, required: True when the request succeeded.
  - `data` object, required
    - `id` string, required

## Other responses

- `401`: Default Response
- `403`: Default Response

## Changes

> 108 revisions in range; 2 not diffed.

- **2026-10-18** `4a6f524fc97b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/retraced/apis/api-reference/changes/api/network-companies/graph/post.md)

---

[API](https://skmtc.dev/retraced/apis/api-reference.md) - [All operations](https://skmtc.dev/retraced/apis/api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/retraced/apis/api-reference/revisions/83309c4abd20?raw)
