Oauth invalid or missing in creating a GPT

Hi everyone!

First I hade problem using spotifys API since GPT said it was different roots which led me to temporary use a URL-shortener. When successful the link said CLIENT ID MISSING which led me to include that value in the “Authorization URL” as such:

https://accounts.spotify.com/authorize?client_id=YOUR_CLIENT_ID&response_type=code&redirect_uri=YOUR_ENCODED_REDIRECT_URI&scope=REQUESTED_SCOPE

Now it returns OAUTH INVALID OR MISSING.

The state value should be passed automatically in API-call? How can I fix this?

Plz help!