r/NotionAPI • • Jul 19 '25

I deleted my entire Wokspace

0 Upvotes

i wanted to deleted a shared page, but a select that option "danger zone"and deleted all the wokspace, is it possible to recover?


r/NotionAPI • • Mar 01 '26

Mind Maps in Notion

8 Upvotes

Hi folks,

I’m a Software Engineer using Notion for all my personal stuff, budgeting, house searching, sharing things with my wife, etc.

A big part of my use for Notion is my own personal development, and like some of you, I was missing way of creating schemes inside a Notion page specially when studying for System Design so I built https://www.notionboard.xyz

All comments, feedback is welcome, me and my wife (the product designer) have a lot of plans for it and would love your input.

Disclaimer: This post has no AI retouch, all grammar mistakes are my own, therefore all grammar feedback is very welcome lol.


r/NotionAPI • • Aug 05 '25

API issue. Integration with developer provided template

3 Upvotes

I have a configured integration with a public template. At some unknown point (suspect 2 Aug 2025) the template stopped copying to users workspace. Our service receiving authorization response with access_token and duplicated_template_id.

In API response duplicated page looks like this:

{"object"=>"block",
"id"=>"PAGE-ID-HERE",
"parent"=>{"type"=>"workspace", "workspace"=>true},
"created_time"=>"1970-01-01T00:00:00.000Z",
"last_edited_time"=>"1970-01-01T00:00:00.000Z",
"created_by"=>
  {"object"=>"user", "id"=>"00000000-0000-0000-0000-000000000002"},
"last_edited_by"=>
  {"object"=>"user", "id"=>"00000000-0000-0000-0000-000000000002"},
"has_children"=>false,
"archived"=>false,
"in_trash"=>false,
"type"=>"unsupported",
"unsupported"=>{},
"request_id"=>"REQUEST-ID-HERE"} 

Of course, when we want to fetch children of the page the API responds to us with an error:

{"object":"error","status":400,"code":"validation_error","message":"Block type copy_indicator is not supported via the API.","request_id":"REQUEST-ID-HERE"}

Did I miss some changes in API or integration settings?

What I have managed to find so far:

  1. After authorization step the template duplicated only for it's owner.

  2. During authorization step if user choose to select pages manually they may see a bunch of Untitled pages from previous attempts to make connection. There are invisible in workspace.


r/NotionAPI • • Apr 11 '25

Trouble with Notion API: How to reliably get ALL pages in a workspace?

3 Upvotes

I'm building a sync tool for Notion workspaces and running into issues where some pages aren't being returned by the API. I'm using the /search endpoint with pagination since there's no dedicated "list all pages" endpoint.

Current approach:

search_params = {
    "filter": {
        "property": "object",
        "value": "page"
    },
    "page_size": 100  # Maximum allowed
}

# Then paginate through results with cursor
response = notion.search(**search_params)

What I've tried so far:

  1. Removed filtering on parent types (originally was filtering for only ['workspace', 'page_id', 'block_id'])

  2. Increased error tolerance for API calls (from 3 to 8 consecutive errors)

  3. Improved title extraction to handle all character types including emojis

  4. Added detailed logging about which page types are being skipped

Even after these changes, I'm still missing pages that:

  • Are not database pages

  • Are not archived

  • Were not created after sync started

  • Are definitely accessible (I can see them in the UI)

Questions:

  1. Does the search API have hidden limitations that prevent it from returning all pages?

  2. Is there a more reliable approach to enumerate ALL pages in a workspace?

  3. Has anyone successfully implemented a complete sync that guarantees capturing every page?

  4. Are there certain page types or locations in the hierarchy that are known to be problematic?

Any insights from those who've dealt with similar issues would be greatly appreciated!


r/NotionAPI • • Jun 14 '23

Notion API Limits

2 Upvotes

Hey everyone, I ran into a problem with the Notion API. I'm trying to create more than 100 child blocks in a single request but it's not allowing me. The error I'm getting is:

APIResponseError body failed validation. Fix one: body.children.length should be ≤ 100, instead was 149. body.parent.page_id should be defined, instead was undefined. ...

Has anyone encountered this and found a workaround?


r/NotionAPI • • Dec 02 '25

Anyone else using Notion as a CRM and frustrated by the lack of Outlook integration?

6 Upvotes

I’m making this post just to get people’s thoughts. I use Notion as a CRM at my company, and the lack of Outlook integration has been painful. Since there is no native Outlook integration, we have been manually tracking all of our relationships, which just took up too much time. I have a decent bit of coding experience, and decided to try to improve our system. After 2 months I built an internal integration with Outlook. 

 Essentially, it pulls new emails into a Notion database where each row is a person, and all the emails appear as chronologically ordered toggle blocks within that row. I also added a “last contact date”, and email address column, and each contact is automatically linked to their company in a separate database. It also can pull in all historical emails. It’s pretty basic but it solves our manual data entry issue and saves us hours every week.

 Everyone liked it, so I made it a public integration so friends and family could try. I’m posting here to get some feedback and see what you guys think about this sort of integration. I notice a lot of people use CRM templates – but none of those are automated, so manual entry is still a problem. Would this sort of service be helpful to anyone? I feel like a lot of people deal with this issue.

Anyways, I want to make this available to the general public but I’m not sure if other people use Notion as a CRM or need more than a basic email sync that runs up your cost if you pay per email, like with Zapier. Any feedback, or ideas to make this better are appreciated! Also happy to share more details if anyone is curious.


r/NotionAPI • • Nov 05 '25

Created a Notion Database to PDF Generator tool using Google Docs!

4 Upvotes

Created an automation tool pdfoutput which helps produce PDFs on automation right from my Notion Database.

It simply requires a Google Document and Notion Database to generate PDFs swiftly.

Design Google Documents with {{placeholders}} and let the tool handle the automation to generate PDFs using Google Docs and Notion Database.
Generate any document at scale — from reports, invoices, contracts to certificates and quotes from Notion Database.


r/NotionAPI • • Apr 20 '25

Notion Client Integration with MCP Server and Tool Design Explained

3 Upvotes

The world of APIs & coding is shifting rapidly towards deeper AI model integration with MCP Servers and Tools. Its crucial to understand how the Tools have to be designed for working glitch free with variety of services and softwares.

https://youtu.be/0Lz_oXjqicE

The video above provides a 5 min explanation, and the code for the server can be found below.

https://insightbuilder.github.io/codeai_fusion/

I believe it will be helpful to you.


r/NotionAPI • • Jul 23 '25

I built a tool that turns Notion dashboards into real backend schemas so you don’t have to start your apps from scratch.

8 Upvotes

I've been using Notion to sketch out backend ideas for projects — whether it's a travel planner, a CRM, or a content tracker. It's flexible, easy to use, and great for quickly structuring ideas.

But when it came time to actually build the app, I ran into a wall.

Turning those Notion databases into a real backend schema (PostgreSQL, Firebase, Prisma, etc.) was a hassle. It meant:

  • Manually copying every field

  • Rewriting everything in SQL or Prisma

  • Guessing the right types and constraints

  • Removing mock data and re-cleaning it all for production

So I built Sketchbase — a simple tool that connects to your Notion workspace and turns your structured pages into production-ready schemas.

Here’s what it does:

  • Connects directly to your Notion workspace

  • Detects databases, fields, types, and relations

  • Lets you preview and edit your schema

  • Exports clean, validated schemas in SQL, Prisma, or JSON

  • Works with Supabase, Firebase, PostgreSQL, and more

This is especially useful for anyone who:

  • Builds MVPs in Notion

  • Works with client data in dashboards

  • Needs to move quickly from planning to production

  • Wants to skip the repetitive boilerplate

If you've ever tried to bridge the gap between Notion and your backend, this could save you hours.

I’d love your feedback.
What are your biggest pain points using Notion to plan and build apps?
Try the demo or sign up for early access here → https://www.sketch-base.com/


r/NotionAPI • • Jan 20 '26

Built a secure client portal on top of Notion - would love feedback

Thumbnail gallery
3 Upvotes

r/NotionAPI • • Jun 04 '26

Reliable way to pull every row from a database (~160) on each run — not the 25-cap search?

2 Upvotes

The goal: I'm building a daily dashboard (a Claude/Cowork artifact) that loads every contact (~160 rows) from a single Notion database at once, classifies each into "due / watch / overdue" lanes, and renders them. Notion is my source of truth and I update it daily by hand.
The core problem: I can't find a reliable way to read all rows of the Notion database programmatically. Through the Notion MCP connector I have, the only read tools are (a) a semantic search that caps at 25 results with no pagination cursor, and (b) a per-page fetch that returns one page at a time by ID. There's no exposed "query database / list all rows" tool. So I can get 25 probabilistic matches, or fetch pages one-by-one if I already know every ID — but I can't get a complete, deterministic dump of the table.
What I've already ruled out (please don't suggest these):

Paid plan — Notion's paginated query REST endpoint is free on all tiers; this isn't a paywall.
The capped search — 25 rows, no cursor, semantic/probabilistic, so it can silently miss records.
Per-page fetch loop — works but it's ~160 calls per refresh and can't reliably discover newly-added rows (discovery hits the same 25-cap).
Browser-scraping the table view — fragile (virtualized rows, live session) and can silently drop rows; unacceptable here because some records are high-priority.

What I'm after: a reliable, complete, repeatable way to pull all rows of a Notion DB into an app/agent — ideally automatic, and definitely not silently lossy.


r/NotionAPI • • Mar 12 '26

Notion2api

3 Upvotes

I built an OpenAI-compatible API wrapper for Notion AI, supports streaming and thinking panel. Open source if anyone's interested: https://github.com/maverickxone/notion2api


r/NotionAPI • • Mar 10 '26

Did someone build a PDF exporter for Notion?

Thumbnail reddit.com
2 Upvotes

r/NotionAPI • • Sep 28 '21

email to Notion - overcome the notionAPI 2000 character limit with Autom...

Thumbnail
youtube.com
1 Upvotes

r/NotionAPI • • Dec 06 '21

A notion to markdown converter (supports nested blocks)

1 Upvotes

Hello everyone, I made a Notion to Markdown convert on top of notion-sdk-js.

Features

  • converts single notion block to markdown string

  • converts list of notion blocks (nested as well) to markdown object

  • converts notion page contents to markdown object

at the moment it doesn't support video,embed and tables but will soon be added.Feel free to use it and all sort of feedback are welcomed :)

Github: https://github.com/souvikinator/notion-to-md

Feel free to drop a star ⭐ if you liked the project.


r/NotionAPI • • Jan 26 '21

r/NotionAPI Lounge

3 Upvotes

A place for members of r/NotionAPI to chat with each other


r/NotionAPI • • May 24 '21

I'm having trouble reading the blocks in my page using Notion's API (Client NPM library)

1 Upvotes

After copying the exact code from one of Notion's developer guides:

const { Client } = require('@notionhq/client');const notion = new Client({ auth: "MY CORRECT AUTH INTEGRATION TOKEN" });(async () => {const blockId = 'MY CORRECT BLOCK ID (that has content)';const response = await notion.blocks.children.list({block_id: blockId,
});console.log(response);})();

I'm always getting the output {object: 'list', results: Array(0), next_cursor: null, has_more: false}
, even though my block isn't empty (the results property shows a blank array)

How do I fix this?


r/NotionAPI • • Feb 10 '25

What's going on with Notion Integrations?

2 Upvotes

If I try to log in to my Notion integration account, I am redirected to Notion account. What's going on? There are no issues on Notion status page


r/NotionAPI • • Apr 21 '24

🩺 Taking charge of my health like a boss with my medical tracker! It's free for 48 hours.

Thumbnail
gallery
1 Upvotes

r/NotionAPI • • Apr 22 '24

Having problems with the API.... unable to

1 Upvotes

I am having problems getting the notion API to work....

Anybody else having problems?

Traceback (most recent call last):

File "C:\python_test\test1.py", line 7, in <module>

client = NotionClient(token_v2=token)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\Andrew\AppData\Local\Programs\Python\Python312\Lib\site-packages\notion\client.py", line 77, in __init__

self.session = create_session(client_specified_retry)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\Andrew\AppData\Local\Programs\Python\Python312\Lib\site-packages\notion\client.py", line 39, in create_session

retry = Retry(

^^^^^^

TypeError: Retry.__init__() got an unexpected keyword argument 'method_whitelist'


r/NotionAPI • • May 27 '24

Question: Is there an easy way using the API to querly all deleted pages?

Thumbnail
self.notion
2 Upvotes

r/NotionAPI • • Jan 01 '25

Teamspaces in Notion API?

1 Upvotes

Hi

I am creating a Notion integration and I need information about the teamspaces (id, name, etc.), and also which teamspace each page/database belongs to. Is there a way to get this data from the api?

I didn't find any endpoint which refers to teamspaces. The parent of the first pages/databases in the hierarchy is the workspace.

Thanks


r/NotionAPI • • Oct 19 '23

Table import via API: Set Title column

1 Upvotes

When importing table data via API, Notion picks an undesired text property and makes it the Title property, which provides access to the body of a Notion page. I am aware that upon manual (CSV) import, the first text property found becomes the Title property – but this seems not to apply to API imports.

How can we bring table data into Notion via API and set a specific text column as the Title property?


r/NotionAPI • • May 25 '23

Rendering Notion API response in React Native

2 Upvotes

Hi Notion API folks! I’m building a mobile app to view my Notion pages offline. I'm looking for a simple way to render the JSON response, does anyone know if there's a React Native package to do so?

So far, I’ve got a basic React Native app that fetches page content from Notion’s API via a Notion integration. I think my next step is to render the JSON. Here's a Github package for rendering in React (9gustin/react-notion-render). If I can't find something, my plan was to look for React Native markdown package, or to take the styles from this and change it to mobile components. Thoughts?

Also open to pointers in general, since I'm a bit more familiar with web development than mobile!

Why I'm building this - I store lists and important info in Notion, but when I need it most, it’s unavailable. Doesn't look like the Notion team is releasing offline support anytime soon, so thought I'd build this for myself and the community


r/NotionAPI • • Apr 08 '24

Transform Your Body, Transform Your Life. With my Fitness Tracker.

Thumbnail
gallery
1 Upvotes