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:
- Fetches tasks from a Notion database
- Processes them with OpenAI to categorize by status (Done, In Progress, On Hold, Key Challenges, Priorities Next Week)
- Creates a formatted weekly report in Notion with:
- H1/H2 headings with colored backgrounds (
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
- Different block formats:
text
vsrich_text
properties - Simplified structures: Single paragraph blocks, basic formatting
- HTTP Request node: Direct API calls (ran into authentication issues)
- 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
- What Notion API version does n8n’s integration actually use?
- Has anyone successfully created formatted blocks with headings/lists using the current Notion node?
- Are there specific block types that aren’t supported in the current integration?
- Should I be using a different approach entirely (different node configuration, HTTP Request, etc.)?
- 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!