Skip to main content
POST
/
api
/
v1
/
notion
/
bulk-delete
Bulk delete (trash) pages
curl --request POST \
  --url https://{deployment}/api/v1/notion/bulk-delete \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --header 'X-Notion-Token: <api-key>' \
  --data '
{
  "page_ids": [
    "abc123",
    "def456"
  ]
}
'
{
  "success": true,
  "total": 123,
  "successful": 123,
  "failed": 123,
  "results": [
    {
      "index": 123,
      "success": true,
      "page_id": "<string>",
      "data": {},
      "error": "<string>",
      "error_code": "<string>"
    }
  ],
  "failed_page_ids": [
    "<string>"
  ],
  "processing_time": "<string>",
  "summary": {},
  "error_message": "<string>"
}

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
page_ids
string[]
required

Page IDs to move to trash (max 100).

config
object

Optional concurrency/retry config.

Response

Per-page delete results

success
boolean
total
integer
successful
integer
failed
integer
results
object[]
failed_page_ids
string[]
processing_time
string
summary
object
error_message
string