Jump to content

grahamgaylor

Member
  • Posts

    1
  • Joined

  • Last visited

Posts posted by grahamgaylor

  1. SOLUTION BELOW

     

    Was running into this error

     

    Quote

    ERROR: Notion Quick Add[Run Script] Client warn: request fail { code: 'unauthorized', message: 'API token is invalid.' } APIResponseError: API token is invalid.

     

    Turns out, I had assumed the NOTION_TOKEN variable that we have to set in the workflows env variables was supposed to be the token described here -  https://www.notion.so/Find-Your-Notion-Token-5da17a8df27a4fb290e9e3b5d9ba89c4. However, that is incorrect!

     

    The NOTION_TOKEN is actually the Internal Integration Token that's described here - https://developers.notion.com/docs/getting-started#step-2-share-a-database-with-your-integration. You must manually create an integration for Notion Quick Add within your workspace to get the Internal Intergration Token which should be used for the env variable NOTION_TOKEN.


    Hope this helps somebody!

     

    Thanks to @alf for the nudge in the right direction.

     

    Quote

    @itsdustme or anyone else that needs help... I just got this running as follows (m1 mac air)

     

    1. installed flow via download from github
    2. installed npm:`brew install npm`
    3. ran this in the flow directory (as mentioned above): `npm install`
    4. retrieved api key and DB id from notion.so as required and added them to the flow vars
    5. this was the part  that hung me up for a while... you have to specifically share the DB with the api integration you just created. as so: https://developers.notion.com/docs/getting-started#step-2-share-a-database-with-your-integration

    Once I did step 5 everything worked :)))))

    good luck, and thanks to the creator of this workflow!!  @Paulo

    Edited September 28, 2021 by alf

     

×
×
  • Create New...