How do I get correct OAuth token?

response_type=code is the first step in “user” oAuth and you redirect the user to that page to authenticate.

You probably in fact need an App Access Token, for server to server requests

NodeJS example of getting a token