> ## 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

> 워터마크와 인과 구조로 저장된 모든 fingerprint와 대조해 점수를 냅니다.

탐지는 숨겨진 워터마크와 텍스트의 인과 구조를 함께 사용해, 후보 콘텐츠를 저장된 모든 fingerprint와 대조합니다. 단어가 전부 바뀌어도 재사용을 잡아냅니다.

> [!NOTE]
>
> **DeepStamp는 제품명이고, API 경로는 아직 `fingerprint`입니다.** 엔드포인트는 `/api/v1/fingerprint/embed`와 `/api/v1/fingerprint/detect`이며 응답에도 `fingerprint_id`가 사용됩니다. `/api/v1/deepstamp/*` 엔드포인트는 없습니다.

## POST /api/v1/fingerprint/detect

### 요청 본문

`content`, `url`, `fingerprint_id` 중 정확히 하나만 보냅니다. `content`와 `url`로 들어온 질의는 즉시 추출만 하고 저장하지 않습니다.

**content** `string`

검사할 원문 텍스트. 보통 확인하려는 기사 본문입니다. 최대 50,000자.

**url** `string`

검사할 문서의 URL.

**fingerprint\_id** `string`

이미 삽입해 둔 fingerprint id(`fp_*`)를 다시 채점합니다. 저장된 스냅샷을 재사용하므로 재추출이 없고, 주기적인 모니터링에 가장 저렴한 방식입니다.

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

반환할 매칭 개수. 범위: 1–50.

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

결과에 포함될 최소 종합 점수입니다. 공통 신호가 전혀 없는 후보는 이 값과 무관하게 항상 제외됩니다. `match_found`는 두 조건을 모두 통과한 매칭이 하나 이상일 때만 true입니다.

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

최신순으로 훑을 저장된 fingerprint의 최대 개수. 범위: 1–5000.

**weights** `object`

사용자 지정 가중치. `entity`, `time`, `causal`의 합이 1.0이어야 합니다. 생략하면 content\_type별 기본값이 적용됩니다. 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`

대조할 fingerprint 범위를 좁힙니다.

**Filter fields**

**author\_id** `string`

해당 작성자의 fingerprint만

**date\_from** `string`

`embed_timestamp` 하한(`YYYY-MM-DD`, 포함)

**date\_to** `string`

`embed_timestamp` 상한(`YYYY-MM-DD`, 포함)

**content\_type** `string`

특정 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
  }'
```

### 응답

**match\_found** `boolean`

`min_score`를 통과한 후보가 하나 이상이면 true입니다.

**confidence\_score** `number`

최상위 매칭의 종합 점수입니다. 매칭이 없으면 `0`.

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

질의의 fingerprint id입니다. `content`나 `url` 질의의 경우 즉시 추출 과정에서 발급된 값이며 저장되지 않습니다.

**matches** `array`

종합 점수 내림차순으로 정렬된 상위 K개 후보입니다.

**Match fields**

**fingerprint\_id** `string`

매칭된 fingerprint id

**content\_type** `string`

삽입 시점에 기록된 content\_type

**metadata** `object`

삽입 시점에 저장된 metadata. null일 수 있음

**embed\_timestamp** `string`

해당 후보가 fingerprint된 시각

**score** `number`

가중 종합 점수

**similarity\_breakdown** `object`

신호별 점수: `entity_match`, `timeseries_match`, `causal_pattern_match`

**overlap** `object`

점수의 근거가 된 공통 개체·시점·`from|rel|to` 관계 목록

**watermark\_match** `boolean`

입력에 이 후보와 85% 이상 일치하는 워터마크가 있으면 true. 사실상 확정적인 출처 증거

**watermark\_correlation** `number`

비트 단위 상관도. 워터마크가 없으면 null

**meta** `object`

**Meta fields**

**scanned** `number`

필터 적용 후 실제로 채점된 fingerprint 수

**executionTimeMs** `number`

응답 시간(밀리초)

**weights** `object`

이번 요청에 실제 적용된 가중치

**watermark\_detected** `boolean`

입력에서 워터마크를 찾아 저장된 fingerprint와 일치했으면 true

```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
  }
}
```

삽입은 [DeepStamp Embed](https://docs.factagora.com/ko/api-reference/fingerprint-embed.md)에서 다룹니다.


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