Notion API Key: How to Get, Store and Check Your Token
For your own script or a paste-a-token tool, create a personal access token in the Developer portal; for a team automation, a workspace owner creates an internal connection. Store the key in an environment variable, check it with GET /v1/users/me, and know how to rotate or revoke it.