Connecting to Notion

For an overview of connectors, please refer to the following link:

1

Create a Connector

Select the “Connectors” tab on the homepage and click the “Create” button.

2

Enter Notion Credentials

Select Notion and click the sign-in button.

After entering the information, click the Create button to complete the creation. If there are any errors, please check the connection details again.

3

Retrieve access_token from the created connector

Once created successfully, you can retrieve the connector name from the list.

Use the dedicated function to input the connector name in the Python code and retrieve the access_token.

import morph
from morph import MorphGlobalContext
from morph_lib.api import get_auth_token


@morph.func
def main(context: MorphGlobalContext):
    access_token = get_auth_token("connection_name")
    # ↓↓↓ Use the access_token for processing ↓↓↓