'Notion API Error 400 invalid_json, Where am I doing wrong?

I've been trying to understand Notion APIs for a week now. I am currently trying to do authorization. But I couldn't find where I went wrong.

https://developers.notion.com/docs/authorization

Error: Error

My codes: My codes



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source