API Test

Authentication Request

1 min

Add Authentication Request

Click on and enter the request step name e.g. Authenticate with Spotify API.

placeholder

Expand the Request section, from the drop-down change the request method to POST and enter the following URL:

text
https://accounts.spotify.com/api/token

In the Payload body section enter the following:

text
grant_type=client_credentials

Next, add two request headers with the following key/value pairings:

Expand the Validation section and add the following extraction:

This will parse the JSON payload that is received from the Spotify API, extract the access token and store it as a custom variable.

Add payload token

Last Modified ·