# Graph

> The Graph operations of the Hub REST API (1 operation).

URL: https://docs.synap.live/docs/reference/hub-api/graph · Generated from Synap-core/backend@c31e261ab (main)

Paths are relative to `/api/hub` on a pod.

## GET /graph/traverse

BFS traversal of the entity graph

maxDepth is clamped to 3.

Parameters:

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `userId` | query | string |  |  |
| `startEntityId` | query | string | yes |  |
| `maxDepth` | query | string |  |  |
| `relationshipTypes` | query | string |  |  |

Responses:

- `200`: Traversal results
- `400`: Bad request
- `403`: Forbidden
- `404`: Not found
- `409`: Conflict — a refusal the caller can act on
- `412`: Precondition failed
- `500`: Internal error
