> ## Documentation Index
> Fetch the complete documentation index at: https://docs.factagora.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DeepStamp Detect

> Score content against every stored fingerprint using the watermark and the causal structure.

Detection scores candidate content against every stored fingerprint, using both the hidden watermark and the causal structure of the text. It catches reuse even when every word has been changed.

> [!NOTE]
>
> **DeepStamp is the product name; the API paths still say `fingerprint`.** Endpoints are `/api/v1/fingerprint/embed` and `/api/v1/fingerprint/detect`, and responses return `fingerprint_id`. There is no `/api/v1/deepstamp/*` endpoint.

## POST /api/v1/fingerprint/detect

### Request Body

Provide exactly one of `content`, `url`, or `fingerprint_id`. Content and URL queries are extracted on the fly and are never stored.

**content** `string`

Raw text to scan, typically the article you want to check. Maximum 50,000 characters.

**url** `string`

URL of the document to scan.

**fingerprint\_id** `string`

An already-embedded fingerprint id (`fp_*`) to re-score against the registry. This reuses the stored snapshot instead of re-extracting, which makes it the cheapest option for scheduled monitoring.

**top\_k** `number` (default: 5)

Number of matches to return. Range: 1–50.

**min\_score** `number` (default: 0.3)

Minimum combined score for a candidate to be reported. Candidates with no shared signal at all are always excluded, whatever this value is. `match_found` is true only when at least one match clears both gates.

**candidate\_limit** `number` (default: 1000)

Upper bound on how many stored fingerprints are scanned, newest first. Range: 1–5000.

**weights** `object`

Custom scoring weights. `entity`, `time`, and `causal` must sum to 1.0. When omitted, content-type defaults apply: news `0.5 / 0.2 / 0.3`, legal `0.3 / 0.1 / 0.6`, report `0.4 / 0.3 / 0.3`, internal `0.5 / 0.2 / 0.3`.

**filters** `object`

Restrict which stored fingerprints are considered.

**Filter fields**

**author\_id** `string`

Only this author's fingerprints

**date\_from** `string`

Inclusive lower bound on `embed_timestamp` (`YYYY-MM-DD`)

**date\_to** `string`

Inclusive upper bound on `embed_timestamp` (`YYYY-MM-DD`)

**content\_type** `string`

Only one content type

```bash cURL theme={null}
curl -X POST "https://api.factagora.com/api/v1/fingerprint/detect" \
  -H "Authorization: Bearer fa_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "ECB hiked rates 25bp Thursday due to stubborn inflation.",
    "top_k": 5,
    "min_score": 0.3
  }'
```

### Response

**match\_found** `boolean`

True when at least one candidate cleared `min_score`.

**confidence\_score** `number`

The top match's combined score, or `0` when nothing matched.

**query\_fingerprint\_id** `string`

The query's fingerprint id. For `content` and `url` queries this is minted during on-the-fly extraction and is not persisted.

**matches** `array`

Top-K candidates, ranked by combined score descending.

**Match fields**

**fingerprint\_id** `string`

Matched fingerprint id

**content\_type** `string`

Content type recorded at embed time

**metadata** `object`

Metadata stored at embed time, may be null

**embed\_timestamp** `string`

When the candidate was fingerprinted

**score** `number`

Weighted combined score

**similarity\_breakdown** `object`

Per-signal scores: `entity_match`, `timeseries_match`, `causal_pattern_match`

**overlap** `object`

The shared entities, time anchors, and `from|rel|to` triples behind the score

**watermark\_match** `boolean`

True when the input carries a watermark correlating 85% or higher with this candidate. This is near-certain provenance evidence

**watermark\_correlation** `number`

Bit-level correlation, null when no watermark was detected

**meta** `object`

**Meta fields**

**scanned** `number`

How many stored fingerprints were scored after filters

**executionTimeMs** `number`

Response time in milliseconds

**weights** `object`

The weights actually applied to this request

**watermark\_detected** `boolean`

True when a watermark was found in the input and matched a stored fingerprint

```json 200 theme={null}
{
  "match_found": true,
  "confidence_score": 0.87,
  "query_fingerprint_id": "fp_tmpQueryId01",
  "matches": [
    {
      "fingerprint_id": "fp_l1p8OPCwGhvu",
      "content_type": "news",
      "metadata": { "author_id": "editor_jane", "source_id": "article_12345" },
      "embed_timestamp": "2024-06-15T08:01:23.456Z",
      "score": 0.87,
      "similarity_breakdown": {
        "entity_match": 0.92,
        "timeseries_match": 1.0,
        "causal_pattern_match": 0.78
      },
      "overlap": {
        "entities": ["european central bank", "interest rate", "goldman sachs"],
        "timeseries": ["2024-06-15"],
        "relations": ["european central bank|raises|interest rate"]
      },
      "watermark_match": false,
      "watermark_correlation": null
    }
  ],
  "meta": {
    "scanned": 156,
    "executionTimeMs": 342,
    "weights": { "entity": 0.5, "time": 0.2, "causal": 0.3 },
    "watermark_detected": false
  }
}
```

Embedding is covered in [DeepStamp Embed](https://docs.factagora.com/api-reference/fingerprint-embed.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.