# What an entity is connected to

`GET /memory/entities/{id}/neighbors` · Rivier · memory

What an entity is connected to.

- Scope: memory:read
- Mcp: rivier_personas_entity_neighbors
- Graphql: Query.memoryEntityNeighbors
- Sdk: memory.entity.neighbors
- Cli: memory entity neighbors

## Parameters

- `id` (path, required), string
- `depth` (query), integer

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X GET 'https://api.rivier.ai/memory/entities/{id}/neighbors' \
  -H 'Authorization: Bearer $KEY'
```
