Skip to main content
POST
/
api
/
v1
/
notion
/
bulk-duplicate-check
Bulk check for duplicates
curl --request POST \
  --url https://{deployment}/api/v1/notion/bulk-duplicate-check \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --header 'X-Notion-Token: <api-key>' \
  --data '
{
  "notion_id": "26f...",
  "lookup_properties": [
    "Email"
  ],
  "records": [
    {
      "Email": "a@b.com"
    }
  ]
}
'
{
  "success": true,
  "total": 123,
  "existing_count": 123,
  "unique_count": 123,
  "results": [
    {
      "index": 123,
      "lookup_key": "<string>",
      "exists": true,
      "match_count": 123,
      "matched_page_ids": [
        "<string>"
      ],
      "record": {}
    }
  ],
  "unique_records": [
    {}
  ],
  "duplicate_records": [
    {}
  ]
}

Authorizations

X-API-KEY
string
header
required

Your deployment's API key (MMK_API_KEY).

X-Notion-Token
string
header
required

Your Notion integration token / internal token. Supplied by the caller (not stored server-side).

Body

application/json
records
object[]
required
lookup_properties
string[]
required
database_id
string
data_source_id
string
notion_id
string

Response

Existence per record + unique/duplicate splits

success
boolean
total
integer
existing_count
integer
unique_count
integer
results
object[]
unique_records
object[]
duplicate_records
object[]