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.
Copy
import morphfrom morph import MorphGlobalContextfrom morph_lib.api import get_auth_token@morph.funcdef main(context: MorphGlobalContext): access_token = get_auth_token("connection_name") # ↓↓↓ Use the access_token for processing ↓↓↓