---
title: "Trace a leaked page"
method: POST
path: "/leaks/trace"
tags: ["leak"]
---

# Trace a leaked page

`POST /leaks/trace`

## Request

- Base URL: `https://localhost:4410/api/v1`
- URL: `https://localhost:4410/api/v1/leaks/trace`
- Auth: HTTP bearer

Finds the link and visit a leaked page came from, among this workspace's marked pages: a screenshot or photo (PNG or JPEG), a PDF, or the copy code read off a page. It names the link and the visit's date, never who leaked it. The file isn't kept.

## Request body

- object
  - `file_base64` string, base64
  - `copy_code` string

## Response `200`

The result.

- object
  - `matches` object[], required
    - `visit_id` string, required
    - `link_id` string, required
    - `link_label` string, nullable, required
    - `document_id` string, required
    - `document_title` string, required
    - `page` integer, nullable, required
    - `shown_to` string, required
    - `visited_at` string, date-time, required
    - `copy_code` string, required
    - `signals` string[], required
    - `confidence` 'high' | 'medium' | 'low', required
    - `sentence` string, required

## Other responses

- `default`: An RFC 9457 problem.

---

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