postman 在Notion API中创建/检索数据库的问题

pxyaymoc  于 8个月前  发布在  Postman
关注(0)|答案(1)|浏览(113)

在Notion API中创建/检索数据库时出现问题。
我正在尝试使用概念API来获取数据库ID,以便在Stack AI中使用。
问题是当我得到我的数据库时,响应和页面一样是完全空的,但总体上API auth工作正常,因为我可以调用所有用户。
这是一个从数据库检索的API请求:https://www.notion.so/8b98602edb594430bf5b7ded36e30078?v=1e840ea228274c6d8c84f085b527a6b3
我使用的数据库ID来自此链接1e840ea228274c6d8c84f085b527a6b3我做错了什么吗?

它总是回答:

{
    "object": "error",
    "status": 404,
    "code": "object_not_found",
    "message": "Could not find database with ID: 1e840ea2-2827-4c6d-8c84-f085b527a6b3. Make sure the relevant pages and databases are shared with your integration.",
    "developer_survey": "https://notionup.typeform.com/to/bllBsoI4?utm_source=postman"
}

当我创建一个新的数据库时,它说:
页面ID出错
但是,我认为在此调用中不必提供页面ID。

qpgpyjmq

qpgpyjmq1#

您可能没有与集成共享数据库:
为此,您必须在concept中打开数据库,单击右上角的...,然后从Add Connections菜单中添加集成。
以下是一些详细信息:https://developers.notion.com/docs/create-a-notion-integration#step-2-share-a-database-with-your-integration
创建数据库时得到的错误与此类似,但现在它要求您为数据库提供页父级。有关请求示例,请参阅文档:https://developers.notion.com/reference/create-a-database

相关问题