r/NotionAPI • u/Every-Cup1910 • Jul 19 '25
I deleted my entire Wokspace
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 • u/Every-Cup1910 • Jul 19 '25
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 • u/aguiarti • Mar 01 '26
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 • u/fobocaster • Aug 05 '25
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:
After authorization step the template duplicated only for it's owner.
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 • u/FrozenDebugger • Apr 11 '25
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:
Removed filtering on parent types (originally was filtering for only ['workspace', 'page_id', 'block_id'])
Increased error tolerance for API calls (from 3 to 8 consecutive errors)
Improved title extraction to handle all character types including emojis
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:
Does the search API have hidden limitations that prevent it from returning all pages?
Is there a more reliable approach to enumerate ALL pages in a workspace?
Has anyone successfully implemented a complete sync that guarantees capturing every page?
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 • u/Opposite-Topic-7444 • Jun 14 '23
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 • u/Zealousideal-Cod-201 • Dec 02 '25
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 • u/sanatbiswal21 • Nov 05 '25
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 • u/[deleted] • Apr 20 '25
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.
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 • u/Longjumping_Share798 • Jul 23 '25
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 • u/Over-Professional501 • Jan 20 '26
r/NotionAPI • u/vibing_is_a_verb • Jun 04 '26
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 • u/mav_0804 • Mar 12 '26
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 • u/Fun-Turnover8984 • Mar 10 '26
r/NotionAPI • u/janduplessis • Sep 28 '21
r/NotionAPI • u/codeFreak_44 • Dec 06 '21
Hello everyone, I made a Notion to Markdown convert on top of notion-sdk-js.
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 • u/Amondupe • Jan 26 '21
A place for members of r/NotionAPI to chat with each other
r/NotionAPI • u/EdweirdTheGoose • May 24 '21
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 • u/GSargi • Feb 10 '25
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 • u/Nishantnotion • Apr 21 '24
r/NotionAPI • u/barbour9167 • Apr 22 '24
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 • u/Bushti • May 27 '24
r/NotionAPI • u/chaimaller • Jan 01 '25
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 • u/oslogrolls • Oct 19 '23
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 • u/notiondude • May 25 '23
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 • u/Nishantnotion • Apr 08 '24