I created an intergration on Notion.so
I got the interim OAuth code using the following URL Add to Notion
This above URL, after authorizing from Notion UI, gives me the following code
XXXXXXX-XXXXXXX
NOW using the code from above step to get the authorization code
POST https://api.notion.com/v1/oauth/token HTTP/1.1
Authorization: Basic XXXXXXXOnNlY3JldF9DeXp0d1A0TVNLZkZIY0XXXXXXXXX
Content-Type: application/json
Content-Length: 164
{
"grant_type": "authorization_code",
"code": "XXXXXX-XXXXX",
"redirect_uri": "http://localhost:8080/api/notion/auth/callback"
}
This Response in
{
"error": "invalid_grant"
}
What am I missing?
Thanks In advance!