Add Track to Queue
curl --request POST \
--url http://localhost:1234/api/spotify/queue/add-track/{track_uri} \
--header 'api-key: <api-key>'const options = {method: 'POST', headers: {'api-key': '<api-key>'}};
fetch('http://localhost:1234/api/spotify/queue/add-track/{track_uri}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'http://localhost:1234/api/spotify/queue/add-track/{track_uri}';
const options = {method: 'POST', headers: {'api-key': '<api-key>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "http://localhost:1234/api/spotify/queue/add-track/{track_uri}"
headers = {"api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:1234/api/spotify/queue/add-track/{track_uri}"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}val client = OkHttpClient()
val request = Request.Builder()
.url("http://localhost:1234/api/spotify/queue/add-track/{track_uri}")
.post(null)
.addHeader("api-key", "<api-key>")
.build()
val response = client.newCall(request).execute()HttpResponse<String> response = Unirest.post("http://localhost:1234/api/spotify/queue/add-track/{track_uri}")
.header("api-key", "<api-key>")
.asString();Endpoints
Add Track to Queue
Add a song to the Spotify queue
POST
/
api
/
spotify
/
queue
/
add-track
/
{track_uri}
Add Track to Queue
curl --request POST \
--url http://localhost:1234/api/spotify/queue/add-track/{track_uri} \
--header 'api-key: <api-key>'const options = {method: 'POST', headers: {'api-key': '<api-key>'}};
fetch('http://localhost:1234/api/spotify/queue/add-track/{track_uri}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'http://localhost:1234/api/spotify/queue/add-track/{track_uri}';
const options = {method: 'POST', headers: {'api-key': '<api-key>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "http://localhost:1234/api/spotify/queue/add-track/{track_uri}"
headers = {"api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:1234/api/spotify/queue/add-track/{track_uri}"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}val client = OkHttpClient()
val request = Request.Builder()
.url("http://localhost:1234/api/spotify/queue/add-track/{track_uri}")
.post(null)
.addHeader("api-key", "<api-key>")
.build()
val response = client.newCall(request).execute()HttpResponse<String> response = Unirest.post("http://localhost:1234/api/spotify/queue/add-track/{track_uri}")
.header("api-key", "<api-key>")
.asString();Request Headers
string
required
Must match the API key set in the Spoofify environment variables
Path Parameters
string
required
The URI of the track on Spotify you want to play.The URI can be obtained via Search for Track
JSON Response
⌘I

