Help with Spotify API Access Token

I’m working on integrating Spotify into my app using the Spotify Web SDK.

I successfully set up the OAuth2 User-Agent Flow for Spotify but I’m having trouble with the API call to retrieve the users access token.

Which I need for the Spotify web SDK to allow them to view and play their Spotify tracks directly within the app.

I’ve attached a screenshot of my current API call configuration, but I’m getting the “415 Status Code” after trying to initialize the call.

I put a random placeholder in the “code” parameters value to initialize it because its going to be dynamic. I couldn’t leave it empty or else the call wont initialize. How do I set the parameters value to be dynamic in the API editor?

Can anyone tell me what might not be set up correctly? I also want to ensure I’m getting the right token format for the SDK.

Note: I changed it to an action rather than Data and it’s still showing an error.

There are no dynamic expressions in the API connector. You can hardcode or provide a generic value to initialize, but make sure to uncheck the “private” box so that you can set this parameter in the actions.

1 Like

Ok I did that but I’m still getting Status code 415. I made sure the headers are exactly the way that Spotify has it in their documentation.