---
title: "Resolve Link"
method: GET
path: "/documents/{doc_id}/resolve-link"
---

# Resolve Link

`GET /documents/{doc_id}/resolve-link`

## Request

- Base URL: `https://app.wunel.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.wunel.com/documents/{doc_id}/resolve-link`
- Auth: none declared

Resolve an internal link (href from doc_id) to its target doc id, so the
editor can navigate name/path links (e.g. topics/pricing.md) in-app.

The document's own workspace wins. Failing that we look in the caller's
OTHER workspaces, so a link still opens after its target was moved across —
the one thing a cross-workspace move leaves behind. The returned
workspace_id tells the client which workspace to switch to.

## Path parameters

- `doc_id` string, required

## Query parameters

- `ref` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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