View an archive of Notion Developers updates prior to September 2023
OAuth token response now includes workspace ID and owner info
We now return a workspace_id field and an owner in the token response at the very end of the OAuth authorization flow.
workspace_id is the ID of the workspace where the integration was authorized. As a reminder, this is not intended to be unique across tokens; in future iterations of our authorization flow users may be able to authorize your integration multiple times in the same workspace.
owner contains information about who can view and share the integration. Because all integrations today can be viewed and shared by all members in the space, owner is just an object that looks like { "workspace": true } for now.
To summarize, the OAuth token response now looks like this: