---
title: "Link a bank row or a journal entry to a thread (p5 \"Link a row\","
method: POST
path: "/accountant/messages/{threadId}/links"
tags: ["Accountant Portal"]
---

# Link a bank row or a journal entry to a thread (p5 "Link a row",

`POST /accountant/messages/{threadId}/links`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/messages/{threadId}/links`
- Auth: HTTP bearer

`kind` row (a transaction) or entry (a journal entry), of the thread's own client (404 otherwise); each target once per thread (409 THREAD_LINK_EXISTS). It shows in GET /accountant/messages as linkedRows or linkedEntries. A thread outside the caller's clients is 403. A signed-in person only: every API key gets 404.

## Path parameters

- `threadId` string, uuid, required

## Request body

- object
  - `kind` 'row' | 'entry', required
  - `targetId` string, uuid, required

## Response `201`

Linked

- object
  - `success` true, required
  - `data` object, required
    - `id` string, uuid, required
    - `threadId` string, uuid, required
    - `kind` 'row' | 'entry', required
    - `targetId` string, uuid, required
    - `createdAt` string, date-time, required

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Resource not found
- `409`: Request conflicts with the durable onboarding state
- `422`: Request failed validation

## Changes

- **2026-11-26** `4a2098becaf9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/accountant/messages/:threadId/links/post.md)

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) - [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) - [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/4f4c2d34276b?raw)
