Notion Block API Version Error - "This version of the API does not support this type of block type"

Hi there,

I’m encountering a persistent API compatibility issue with the Notion integration and hoping someone has found a solution.

I’m encountering a persistent API compatibility issue with the Notion integration and hoping someone has found a solution.

What I’m Trying to Achieve

I’m building an automated weekly report system that:

  1. Fetches tasks from a Notion database
  2. Processes them with OpenAI to categorize by status (Done, In Progress, On Hold, Key Challenges, Priorities Next Week)
  3. Creates a formatted weekly report in Notion with:
  • H1/H2 headings with colored backgrounds (:bullseye: Project Status Overview, Done, In Progress, etc.)
  • Bulleted lists with emojis and bold text
  • Structured sections matching my manual report format

The Problem

Getting this error when using Notion Block → Append After operation:

javascript

"This version of the API does not support this type of block type. Please upgrade your API version."

My Setup

  • n8n version: 1.97.1 (Self Hosted)
  • Notion node version: 2.2
  • Workflow: Notion Database → OpenAI → Code Node → Notion Block Append

Block Structure I’m Using

json

{
  "type": "heading_2",
  "heading_2": {
    "text": [{
      "type": "text",
      "text": {
        "content": "Done"
      }
    }]
  }
}

What I’ve Tried

  1. Different block formats: text vs rich_text properties
  2. Simplified structures: Single paragraph blocks, basic formatting
  3. HTTP Request node: Direct API calls (ran into authentication issues)
  4. Various API versions: Tried different Notion-Version headers

Code Node Output (Working)

My data processing works perfectly - I get clean categorized tasks:

json

{
  "blocks": [
    {
      "type": "paragraph",
      "paragraph": {
        "text": [{"type": "text", "text": {"content": "Here's a summary..."}}]
      }
    },
    {
      "type": "heading_1", 
      "heading_1": {
        "text": [{"type": "text", "text": {"content": "🎯 Project Status Overview"}}]
      }
    }
    // ... more blocks
  ]
}

Questions

  1. What Notion API version does n8n’s integration actually use?
  2. Has anyone successfully created formatted blocks with headings/lists using the current Notion node?
  3. Are there specific block types that aren’t supported in the current integration?
  4. Should I be using a different approach entirely (different node configuration, HTTP Request, etc.)?
  5. Any working examples of complex block creation with the Notion integration?

Workflow JSON (Last node causing the error)

{
“nodes”: [
{
“parameters”: {
“resource”: “block”,
“blockId”: {
“__rl”: true,
“value”: “={{ $('Get This Week\‘s Weekly Report Page’).first().json.id }}”,
“mode”: “id”
},
“blockUi”: {
“blockValues”: [
{
“type”: “={{ $json.blocks }}”
}
]
}
},
“type”: “n8n-nodes-base.notion”,
“typeVersion”: 2.2,
“name”: “Update Weekly Report Page”
},
{
“parameters”: {
“jsCode”: “// Processes OpenAI outputs and creates markdown text\n// Returns: { json: { reportText: reportText } }”
},
“type”: “n8n-nodes-base.code”,
“typeVersion”: 2,
“name”: “Format Weekly Report Content”
},
{
“parameters”: {
“jsCode”: “// Converts markdown to Notion blocks\n// Creates blocks with heading_1, heading_2, bulleted_list_item, paragraph\n// Returns: { json: { blocks: blocks } }”
},
“type”: “n8n-nodes-base.code”,
“typeVersion”: 2,
“name”: “Code”
}
],
“connections”: {
“Format Weekly Report Content”: {
“main”: [
[
{
“node”: “Code”,
“type”: “main”,
“index”: 0
}
]
]
},
“Code”: {
“main”: [
[
{
“node”: “Update Weekly Report Page”,
“type”: “main”,
“index”: 0
}
]
]
}
}
}

The data processing and formatting work perfectly - it’s specifically the final Notion block creation that’s failing. Any insights on API compatibility or alternative approaches would be hugely appreciated!

Thanks in advance for any help! :folded_hands:

1 Like

From the authorization and access token URLs used in code, it appears it is using version 1.

Hi,

I am trying to automate blog creation using telegram bot to trigger with my idea and concept.

and OpenAI is generate the blog content.

I am getting an error where I am unable to create the blog page, and push an array of block content, as the error mentions the present Notion API needs an update to accept array of block.

The reason why I had to create array’s is because, there is a character limit on blocks.

Please help me with updating my Notion API. I am unable to fix it.

I am a beginner trying to learn AI workflows.