---
title: "Mcp Link Task"
method: POST
path: "/v1/mcp/projects/{project_id}/tasks/{task_id}/links"
tags: ["mcp"]
---

# Mcp Link Task

`POST /v1/mcp/projects/{project_id}/tasks/{task_id}/links`

## Request

- Base URL: `https://api.sonenta.dev`
- URL: `https://api.sonenta.dev/v1/mcp/projects/{project_id}/tasks/{task_id}/links`
- Auth: none declared

Cross-reference two existing tasks so they are navigable both ways (mcp:*).
For a follow-up filed in one call, prefer `link_to` on create_project_task.
Unknown `task_id`/`related_task_id` is a 404.

## Path parameters

- `project_id` string, required
- `task_id` string, required

## Request body

- McpTaskLinkIn
  - `related_task_id` string, required: The other task to link — its uuid or #number.
  - `relation` string, nullable: How they relate, from this task's side: `spawned` (this led to it), `spawned_from` (it led to this), `blocks`, `blocked_by`, or `related`. The reverse is stored on the other task automatically.
  - `note` string, nullable: Why they are linked (shown on both fiches).

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sonenta/apis/sonenta-api.md) · [All operations](https://skmtc.dev/sonenta/apis/sonenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sonenta/apis/sonenta-api/revisions/f853ea49fb05?raw)
