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

# Upgrade guide

> Learn how to upgrade your connections to 2026-12-01.

Notion API version `2026-12-01` changes seven behaviors. You can make each change below on `2026-03-11` first. Your requests then behave the same on both versions, so switching the `Notion-Version` header to `2026-12-01` is the last step.

| Change | Do this first on `2026-03-11` | What `2026-12-01` changes |
| :- | :- | :- |
| [Page properties in lists](#request-only-the-page-properties-you-read) | Pass `filter_properties` to Search and Query a data source | Without it, pages return only the title property |
| [Status filters](#use-group-operators-for-status-groups) | Use group operators with the `status-group-filters-2026-10-06` beta header | `equals` stops matching groups |
| [Markdown format](#send-notion-flavored-markdown) | Send `markdown_version: "v2"` | `v2` is the default, and `"v1"` returns an error |
| [Markdown edits](#replace-replace_content_range-with-update_content) | Use `update_content` | `replace_content_range` returns an error |
| [Markdown inserts](#replace-after-with-an-anchored-position) | Use `position: { "type": "after_content", "anchor": "..." }` instead of `insert_content.after` | `after` must match the start of one block |
| [Person names](#handle-a-null-person-name) | Treat `name` as optional and use `person.email` or your own fallback when it is missing | `name` is `null` for people with no name, instead of their email or "Anonymous" |
| [One-entry limits](#write-one-entry-to-a-property-limited-to-one) | Write at most one file or person to a property limited to one | More entries return a `validation_error` |

## Request only the page properties you read

On `2026-12-01`, [Search](https://developers.notion.com/reference/post-search.md) and [Query a data source](https://developers.notion.com/reference/query-a-data-source.md) return only the title in each page's `properties` unless you pass `filter_properties`. Computing every property for every page in a list is slow, and formulas, rollups, and relations are the slowest. The new default makes lists fast. Other page fields, such as `id`, `url`, and `last_edited_time`, don't change.

Shape your integration around two steps:

1. List pages with `filter_properties` set to the title plus the cheap properties your list shows, such as a status or a date.
2. Fetch expensive properties only for the pages you need. Call [Retrieve a page](https://developers.notion.com/reference/retrieve-a-page.md) with `filter_properties`, or call [Retrieve a page property item](https://developers.notion.com/reference/retrieve-a-page-property.md) for a relation, rollup, or people value with more than 25 items. See [Read every item in a page property](https://developers.notion.com/guides/data-apis/read-page-property-values.md) for a full pagination example.

This example lists 10 pages with their title and **Status**, then reads a **Total hours** rollup for each one. It sends `2026-03-11` and returns the same results on `2026-12-01`:

```javascript JavaScript theme={null}
import { Client } from "@notionhq/client";

// The SDK retries 429 and 529 responses and waits for Retry-After.
const notion = new Client({
  auth: process.env.NOTION_API_KEY,
  notionVersion: "2026-03-11",
});

// Step 1: list 10 pages with only the properties the list shows.
const list = await notion.dataSources.query({
  data_source_id: process.env.NOTION_DATA_SOURCE_ID,
  filter_properties: ["title", "Status"],
  result_type: "page",
  page_size: 10,
});
// To show the next 10, send list.next_cursor as start_cursor.

// Step 2: fetch the expensive rollup for each page you show.
for (const { id } of list.results) {
  const page = await notion.pages.retrieve({
    page_id: id,
    filter_properties: ["Total hours"],
  });
  console.log(id, JSON.stringify(page.properties["Total hours"]));
}
```

```python Python theme={null}
import os
import time

import requests

API_URL = "https://api.notion.com/v1"
HEADERS = {
    "Authorization": f"Bearer {os.environ['NOTION_API_KEY']}",
    "Notion-Version": "2026-03-11",
}


def notion(method, path, **kwargs):
    for attempt in range(5):
        response = requests.request(method, API_URL + path, headers=HEADERS, **kwargs)
        if response.status_code not in (429, 529):
            break
        time.sleep(int(response.headers.get("Retry-After", 2**attempt)))
    response.raise_for_status()
    return response.json()


# Step 1: list 10 pages with only the properties the list shows.
listing = notion(
    "POST",
    f"/data_sources/{os.environ['NOTION_DATA_SOURCE_ID']}/query",
    params={"filter_properties": ["title", "Status"]},
    json={"result_type": "page", "page_size": 10},
)
# To show the next 10, send listing["next_cursor"] as start_cursor.

# Step 2: fetch the expensive rollup for each page you show.
for summary in listing["results"]:
    page = notion(
        "GET",
        f"/pages/{summary['id']}",
        params={"filter_properties": ["Total hours"]},
    )
    print(summary["id"], page["properties"]["Total hours"])
```

```go Go theme={null}
package main

import (
	"bytes"
	"encoding/json"
	"fmt"
	"net/http"
	"net/url"
	"os"
	"strconv"
	"time"
)

const apiURL = "https://api.notion.com/v1"

type page struct {
	ID         string                     `json:"id"`
	Properties map[string]json.RawMessage `json:"properties"`
}

func notion(method, path string, query url.Values, body any, out any) error {
	var payload []byte
	if body != nil {
		var err error
		if payload, err = json.Marshal(body); err != nil {
			return err
		}
	}
	for attempt := 0; ; attempt++ {
		request, err := http.NewRequest(method, apiURL+path+"?"+query.Encode(), bytes.NewReader(payload))
		if err != nil {
			return err
		}
		request.Header.Set("Authorization", "Bearer "+os.Getenv("NOTION_API_KEY"))
		request.Header.Set("Notion-Version", "2026-03-11")
		request.Header.Set("Content-Type", "application/json")
		response, err := http.DefaultClient.Do(request)
		if err != nil {
			return err
		}
		retryable := response.StatusCode == 429 || response.StatusCode == 529
		if retryable && attempt < 4 {
			response.Body.Close()
			seconds, err := strconv.Atoi(response.Header.Get("Retry-After"))
			if err != nil {
				seconds = 1 << attempt
			}
			time.Sleep(time.Duration(seconds) * time.Second)
			continue
		}
		defer response.Body.Close()
		if response.StatusCode >= 300 {
			return fmt.Errorf("Notion API returned %s", response.Status)
		}
		return json.NewDecoder(response.Body).Decode(out)
	}
}

func main() {
	// Step 1: list 10 pages with only the properties the list shows.
	var list struct {
		Results    []page  `json:"results"`
		NextCursor *string `json:"next_cursor"`
	}
	path := "/data_sources/" + os.Getenv("NOTION_DATA_SOURCE_ID") + "/query"
	query := url.Values{"filter_properties": {"title", "Status"}}
	body := map[string]any{"result_type": "page", "page_size": 10}
	if err := notion(http.MethodPost, path, query, body, &list); err != nil {
		panic(err)
	}
	// To show the next 10, send list.NextCursor as start_cursor.

	// Step 2: fetch the expensive rollup for each page you show.
	for _, summary := range list.Results {
		var full page
		query := url.Values{"filter_properties": {"Total hours"}}
		if err := notion(http.MethodGet, "/pages/"+summary.ID, query, nil, &full); err != nil {
			panic(err)
		}
		fmt.Println(summary.ID, string(full.Properties["Total hours"]))
	}
}
```

`result_type: "page"` leaves out child data sources, which a wiki can return. To show the next 10 pages, send the response's `next_cursor` as `start_cursor`. See [Pagination](https://developers.notion.com/reference/pagination.md).

Step 2 sends one request per page, so it counts against your [rate limits](https://developers.notion.com/reference/request-limits.md). The JavaScript SDK waits for `Retry-After` and retries for you. The Python and Go examples retry 429 and 529 responses. For a full retry policy, see [Retry rate-limited requests](https://developers.notion.com/reference/request-limits.md#retry-rate-limited-requests).

Use property names or IDs from [Retrieve a data source](https://developers.notion.com/reference/retrieve-a-data-source.md). Include the title, because the response holds only the properties you name. The title's ID is `title` in data sources created in Notion. Synced data sources use a different ID, so read it from Retrieve a data source. Search skips a name or ID that doesn't exist on a page, so one Search request can name the title of each data source it might return. Query a data source returns a `validation_error` for a name or ID that isn't in the schema.

Synced pages also return `_external_object_url`, a generated property that isn't in the data source schema. The title-only default leaves it out, and `filter_properties` keeps it.

Search results that are data sources keep their full property schema. Retrieve a page keeps returning every property by default, with its existing [limits on property values](https://developers.notion.com/reference/retrieve-a-page.md#limits).

The JavaScript SDK supports `filter_properties` on Search in `@notionhq/client` v5.29.0 and later. Set `notionVersion` when you create the `Client`. Otherwise the SDK sends its own default version, `2025-09-03`.

## Use group operators for status groups

A status property sorts its options into groups, such as **To-do**, **In progress**, and **Complete**. On `2026-12-01`, `equals` and `does_not_equal` match only option names. Use `group_equals` and `group_does_not_equal` to match a group.

On `2026-03-11` and older, a name in `equals` that matches no option falls back to the group with that name. On `2026-12-01`, that filter returns a `validation_error` that names the group operator to use. When an option and a group share a name, the option wins on every version. For example, `"equals": "In progress"` returns only entries with the **In progress** option and leaves out other options in that group, such as **In review**.

Change each filter that means a group to a group operator. In the same change, send the `Notion-Beta: status-group-filters-2026-10-06` header, which turns on the group operators. Don't send the header alone, because filters that rely on the fallback then return errors. `2026-12-01` doesn't need the header, and it still accepts it. See [Status group filters beta](https://developers.notion.com/reference/filter-data-source-entries.md#status-group-filters-beta) for how the header also changes [views](https://developers.notion.com/reference/view.md).

```bash theme={null}
curl -X POST "https://api.notion.com/v1/data_sources/$NOTION_DATA_SOURCE_ID/query" \
  -H "Authorization: Bearer $NOTION_API_KEY" \
  -H "Notion-Version: 2026-03-11" \
  -H "Notion-Beta: status-group-filters-2026-10-06" \
  -H "Content-Type: application/json" \
  --data '{"filter": {"property": "Status", "status": {"group_equals": "In progress"}}}'
```

## Send Notion-flavored Markdown

On `2026-12-01`, every endpoint that takes `markdown_version` defaults to Notion-flavored Markdown (`"v2"`). That includes [Create a page](https://developers.notion.com/reference/post-page.md), [Retrieve page markdown](https://developers.notion.com/reference/retrieve-page-markdown.md), [Update page markdown](https://developers.notion.com/reference/update-page-markdown.md), and the comment endpoints. Sending `"v1"` returns a `400` `validation_error`. On `2026-03-11`, send `"v2"` on every Markdown request. [Migrate to Notion-flavored Markdown](https://developers.notion.com/guides/data-apis/migrate-to-notion-flavored-markdown.md) lists the endpoints and the syntax changes.

After you switch versions, you can keep sending `"v2"` or leave the parameter out. Notion also plans to retire enhanced Markdown (`v1`) on every version. The [changelog](https://developers.notion.com/page/changelog.md) will announce that date separately.

## Replace `replace_content_range` with `update_content`

On `2026-12-01`, [Update page markdown](https://developers.notion.com/reference/update-page-markdown.md) rejects `replace_content_range` with a `400` `validation_error` and leaves the page unchanged. Use `update_content`. Each item in `content_updates` replaces the exact Markdown in `old_str` with `new_str`. Copy `old_str` from [Retrieve page markdown](https://developers.notion.com/reference/retrieve-page-markdown.md), read in the same `markdown_version` you write with.

```bash update_content theme={null}
curl -X PATCH "https://api.notion.com/v1/pages/$NOTION_PAGE_ID/markdown" \
  -H "Authorization: Bearer $NOTION_API_KEY" \
  -H "Notion-Version: 2026-03-11" \
  -H "Content-Type: application/json" \
  --data '{
    "type": "update_content",
    "update_content": {
      "content_updates": [
        { "old_str": "Launch date: March 3", "new_str": "Launch date: March 10" }
      ]
    },
    "markdown_version": "v2"
  }'
```

```bash replace_content_range (rejected on 2026-12-01) theme={null}
curl -X PATCH "https://api.notion.com/v1/pages/$NOTION_PAGE_ID/markdown" \
  -H "Authorization: Bearer $NOTION_API_KEY" \
  -H "Notion-Version: 2026-03-11" \
  -H "Content-Type: application/json" \
  --data '{
    "type": "replace_content_range",
    "replace_content_range": {
      "content": "Launch date: March 10",
      "content_range": "Launch date...March 3"
    },
    "markdown_version": "v2"
  }'
```

## Replace `after` with an anchored position

On `2026-12-01`, `insert_content.after` must match exactly one place on the page, starting where a block starts. Include the block's Markdown syntax: write `## Action items`, not `Action items`. Notion inserts the new content after that block, at the same nesting level. An ellipsis such as `Launch...March 10` no longer selects a range, because `...` is read as literal text.

Switch to `position: { "type": "after_content", "anchor": "..." }` before you upgrade. It follows the same anchor rules on `2026-03-11` and on `2026-12-01`, and it requires `markdown_version: "v2"`. Use `before_content` to insert before a block instead. Don't keep `after` on `2026-03-11` with only part of a block: that version inserts right after the matched text, so the new content can land inside the block. It also reads a `...` in the middle of `after` as a range. Copy the exact block start from [Retrieve page markdown](https://developers.notion.com/reference/retrieve-page-markdown.md) with `markdown_version: "v2"`, and make sure it appears once on the page.

```bash theme={null}
curl -X PATCH "https://api.notion.com/v1/pages/$NOTION_PAGE_ID/markdown" \
  -H "Authorization: Bearer $NOTION_API_KEY" \
  -H "Notion-Version: 2026-03-11" \
  -H "Content-Type: application/json" \
  --data '{
    "type": "insert_content",
    "insert_content": {
      "content": "- [ ] Send the launch email",
      "position": { "type": "after_content", "anchor": "## Action items" }
    },
    "markdown_version": "v2"
  }'
```

If Notion can't place the anchor on `2026-12-01`, the request returns a `400` `validation_error` and the page doesn't change. That happens when the anchor matches nothing or more than one place, starts partway into a block, or sits inside a table, next to a column, tab, or meeting notes section, or inside a synced block copied from another page. The error message explains the problem and usually quotes your anchor. Show it to people, but don't parse it in code.

Inserts that use `position` `start` or `end`, or no position, don't change.

## Handle a `null` person name

On `2026-12-01`, a person's `name` is `null` when they have no name. On `2026-03-11`, `name` holds their email if your connection can read emails, and "Anonymous" if it can't. That placeholder can't be told apart from a real name, and the email already appears in `person.email`.

The [user object](https://developers.notion.com/reference/user.md) already allows `name` to be `null`, so you can handle it before you upgrade. When you need text to show, use `person.email` or your own fallback. Bots and people who have a name don't change. Mentions of a person keep a readable `plain_text`. Comment `display_name.resolved_name` doesn't change either: it's display text, so it still falls back to an email or "Anonymous".

## Write one entry to a property limited to one

In Notion, you can limit a files property to one file, or a people property to one person. On `2026-12-01`, [Create a page](https://developers.notion.com/reference/post-page.md) and [Update page properties](https://developers.notion.com/reference/patch-page.md) return a `400` `validation_error` when a write puts more than one entry in such a property. The page doesn't change. Relation properties with a limit already work this way on every version.

On `2026-03-11` and older, Update page properties already rejects a write that adds people or files past the limit. Other over-limit writes succeed, such as Create a page with two people, or a group added to a one-person property. Notion then shows only the first entry and hides the rest. Send at most one file or one person to these properties before you upgrade. Each item in a `files` array counts as one file.

## Webhooks

[Connection webhook](https://developers.notion.com/reference/webhooks.md) subscriptions can use `2026-12-01`. Webhook event payloads are the same as on `2026-03-11`, so this upgrade doesn't change what your endpoint receives. To keep the subscription in step with your API version:

**Step 1**

Go to the [Developer portal](https://app.notion.com/developers/connections) and select your connection.

**Step 2**

Open the **Webhooks** tab.

**Step 3**

Select **Edit subscription** on your webhook subscription.

**Step 4**

In the **API version** dropdown, select `2026-12-01`.

**Step 5**

Select **Update subscription** to save.

The **Send webhook** action in database automations works differently. It sends the page in the API version saved on the action. New actions use `2026-12-01`, and the automation editor shows an upgrade banner on actions that use an older version. On `2026-12-01`, a person in the page's properties has a `null` `name` when they have no name, as described in [Handle a `null` person name](#handle-a-null-person-name). Update your receiver before you upgrade an action.
