Token
GET
https://api.notion.com/v1/oauth/tokenRequest
Query Params
code
string
required
A unique random code that Notion generates to authenticate with your service, generated when a user initiates the OAuth flow.
grant_type
string
required
A constant string: "authorization_code".
redirect_uri
string
required
The "redirect_uri" that was provided in the OAuth Domain & URI section of the integration's Authorization settings.
Request samples
Responses
OK(200)
Bad Request(400)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object {0}
Example
{
"access_token": "e202e8c9-0990-40af-855f-ff8f872b1ec6c",
"bot_id": "b3414d659-1224-5ty7-6ffr-cc9d8773drt601288f",
"duplicated_template_id": null,
"owner": {
"workspace": true
},
"workspace_icon": "https://website.domain/images/image.png",
"workspace_id": "j565j4d7x3-2882-61bs-564a-jj9d9ui-c36hxfr7x",
"workspace_name": "Ada's Notion Workspace"
}
Last modified: 2 years ago