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

> Extract a TKG from your content and embed a structure-based watermark.

DeepStamp proves that a piece of content originated from you, even after it has been rewritten or translated. Embedding extracts a Temporal Knowledge Graph (TKG) from your content and hides a watermark seeded by that structure.

> [!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/embed

### Request Body

Provide either `content` or `url`, not both.

**content** `string`

Raw text to fingerprint. Maximum 50,000 characters.

**url** `string`

URL of the source document to fingerprint.

**content\_type** `string` (default: news)

Category of the content. One of `news`, `report`, `legal`, `internal`. This also selects the default scoring weights used at detection time.

**metadata** `object`

Your own identifiers, stored with the fingerprint and echoed back on every match.

**Metadata fields**

**author\_id** `string`

Internal author identifier

**published\_at** `string`

ISO 8601 publish timestamp

**source\_id** `string`

Upstream source identifier, such as a CMS article id

```bash cURL theme={null}
curl -X POST "https://api.factagora.com/api/v1/fingerprint/embed" \
  -H "Authorization: Bearer fa_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "The European Central Bank raised interest rates by 25 basis points on Thursday, citing persistent core inflation in the eurozone.",
    "content_type": "news",
    "metadata": {
      "author_id": "editor_jane",
      "published_at": "2024-06-15T08:00:00Z",
      "source_id": "article_12345"
    }
  }'
```

### Response

**watermarked\_content** `string`

Your content with the TKG-seeded zero-width watermark embedded. Distribute this version, not the original.

**fingerprint\_id** `string`

Unique fingerprint identifier (`fp_*`). Store it alongside your internal article id.

**tkg\_snapshot** `object`

The structure extracted from your content.

**Snapshot fields**

**entities** `array`

Distinct entities found in the content

**timeseries** `array`

Normalized time anchors (`YYYY`, `YYYY-MM`, or `YYYY-MM-DD`)

**relations** `array`

Causal or temporal relations as `from` / `rel` / `to` triples

**argument\_map** `array`

Premise → evidence → conclusion chains

**embed\_timestamp** `string`

ISO 8601 timestamp of when the fingerprint was embedded.

```json 200 theme={null}
{
  "watermarked_content": "The European Central Bank raised interest rates by 25 basis points...",
  "fingerprint_id": "fp_l1p8OPCwGhvu",
  "tkg_snapshot": {
    "entities": ["European Central Bank", "Interest rate", "Goldman Sachs"],
    "timeseries": ["2024-06-15"],
    "relations": [
      { "from": "European Central Bank", "rel": "raises", "to": "Interest rate" }
    ],
    "argument_map": [
      {
        "premise": "Persistent core inflation in the eurozone",
        "evidence": "ECB policy meeting decision",
        "conclusion": "Interest rates raised by 25 basis points"
      }
    ]
  },
  "embed_timestamp": "2024-06-15T08:01:23.456Z",
  "meta": { "executionTimeMs": 1234 }
}
```

Detection is covered in [DeepStamp Detect](https://docs.factagora.com/api-reference/fingerprint-detect.md).


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