Questions tagged [notion-api]

Questions related to the Notion API. The API is REST-based and the officially supported SDK is written in TypeScript.

The Notion API is a JSON-based REST API for working with the Notion application.

It allows you to work with and manipulate data in Databases, Pages, and Properties in your Notion workspace(s).

You can find documentation for the API on Notion's Developer Portal.

The official client is written in TypeScript.

299 questions
1
vote
0 answers

How to fix 'Make sure relevant pages are shared with integration' error when accessing Notion DB with serverless function?

I am using a serverless function deployed on Netlify to fetch data from a Notion database with an Internal Integration Token and trying to fetch the data with: const promise = fetch('
1
vote
0 answers

Call external service from within Notion

I would like to call a third party API from within a Notion database. Basically I would like the request to be sent based on the update of a status, e.g. if I change the status from "ready" to "in progress" I would like to automatically send an API…
Sasa
  • 11
  • 1
1
vote
0 answers

Notion column_list empty columns

Building a Nextjs app with Notion as Headless CMS. When i fetch the blocks, all of them work good except column_list, which renders the column children but not getting their content. This is how i render the blocks: export const getBlocks = async…
Ilir
  • 488
  • 5
  • 20
1
vote
1 answer

Is there a way thru Notion API to create a database entry based on a page template?

I am thinking of using Notion API to populate a database thousands of records based on an existing page template. Please help… I read Notion’s API documentation site but found no topic about using templates. I also searched the internet but could…
Rhia
  • 11
  • 1
  • 1
1
vote
1 answer

How to add new or existing multi-select tags when creating a page in Notion API?

I can't figure out how to add multi-select tags when creating a page in Notion API. Single select tags are extremely easy to add: "City": { "select": { "name": "New York", } } But my attempts to add multi-select tags end up…
Ruslan
  • 393
  • 1
  • 14
1
vote
0 answers

Update page does not update properties

When making the call according to the following documentation https://developers.notion.com/reference/patch-page, it does not update the properties despite returning code 200 try the following curl: curl --location --request PATCH…
1
vote
0 answers

How to create a new database on Notion API with the new "Status" property?

Notion API HTTP requests are not working when I add a new "Status" propoerty for a new database creation. I've been trying for a while to figure out why, sending Notion a simple HTTP POST request with a "Status" breaks it. If I just replace "Status"…
1
vote
0 answers

Notion OAuth using launchWebAuthFlow “Uncaught TypeError: Cannot read properties of null (reading 'postMessage’)"

I am trying to create a Chrome extension that uses the current Notion OAuth authentication. When I pass the following authentication URL to launchWebAuthFlow, it will open with Identity api scope approval ui and ask me to login to…
1
vote
1 answer

Notion API from Vercel Edge Runtime responds 400

From API routes of Next.js on Vercel Edge Runtime, Notion API, eg: Retrieve a database or Query a database, responds 400 invalid_request_url as follows: {"object":"error","status":400,"code":"invalid_request_url","message":"Invalid request…
otoyo
  • 13
  • 2
1
vote
1 answer

How do I expose integration actions via Notion API?

I'm building a Chrome extension that will leverage the Notion API through an integration. Part of this extension requires users enter OAuth flows for different platforms. I would like to create a menu within Notion for my users, accessible through…
1
vote
0 answers

Update Data from notion Database page to Google by App script

I Try to run this script in google sheet to get update data from notion Database function updatePage() { let token = 'secret_hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh'; let pageId = '77777777777777777777777777777777'; let props = { "properties":…
1
vote
1 answer

Notion Database ID Not Working in Make Integration

I have a databse in Notion that I'm trying to integrate with my Google Calendar via a 2 way sync in Make. I set up the integration from this example: https://www.youtube.com/watch?v=ooEFXonGCsA though mine is a bit different, the main issue is that…
k.e.
  • 11
  • 1
1
vote
1 answer

Trying to query with filter Status Notion API Database

import { Client } from "@notionhq/client"; export default async function handler(req, res) { const notion = new Client({ auth: process.env.NOTION_API_KEY }); const database = await notion.databases.query({ database_id:…
Wice
  • 11
  • 1
1
vote
0 answers

Notion database does not send name of linked page

I am using Notion API to fetch data from Notio. I am using Notion-Version": "2022-06-28" The code below is my request readUrl = f"https://api.notion.com/v1/databases/{self.db_id}/query" res = requests.request("POST", readUrl,…
Elvin Jafarov
  • 1,341
  • 11
  • 25
1
vote
1 answer

Unable to generate Access Token for Notion API using OAuth

I'm attempting to use the Notion API and authorizing with their OAuth flow: https://developers.notion.com/docs/authorization It's a standard OAuth flow. Nothing out of the ordinary. I'm able to generate the code but I always get a invalid_client…
Chad Hutchins
  • 474
  • 3
  • 9