# Read a record's links, both ways

Everything linked to one record on any page, made boards included, each named with its status: `pointsAt` (the rows this record's own link cells name), `pointedAtBy` (every row on any page whose link column names this record — a lead lists the deals made from it), `children` (its subrecords) and `parents` (the records it is a subrecord of). Each link carries the page key and name, the row id and, for a cell link, the column id and label. Each direction answers at most 25, newest first for `pointedAtBy`, with its full count beside it (`pointedAtByCount`). A row behind this seat's wall, a page it cannot open, and a link column its policy hides are absent. Reach for this to answer 'what is this record connected to'; `expand=context` on a row read carries the same answer as `links`.

Access class: `def:read`.

## Endpoint

`GET /v1/definitions/{key}/rows/{rowId}/links`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| key | path | string | Yes |
| rowId | path | string | Yes |

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "children": [
      "string"
    ],
    "childrenCount": 1.5,
    "parents": [
      "string"
    ],
    "parentsCount": 1.5,
    "pointedAtBy": [
      {
        "column": "string",
        "columnLabel": "string",
        "key": "string",
        "name": "string",
        "pageName": "string",
        "rowId": "",
        "section": "string",
        "status": "string",
        "statusLabel": "string",
        "statusTone": "string"
      }
    ],
    "pointedAtByCount": 1.5,
    "pointsAt": [
      "string"
    ],
    "pointsAtCount": 1.5
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
