Rotate tokens with a refresh token
Rotates the access/refresh token pair. The refresh token travels in the
x-refresh-token header; the request body is empty ({}). Returns a
new accessToken, refreshToken and expiresIn (seconds).
POST
/
api
/
v1
/
auth
/
validate
Rotate tokens with a refresh token
curl --request POST \
--url https://api.musterbox.com/api/v1/auth/validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-refresh-token: <x-refresh-token>' \
--data '{}'import requests
url = "https://api.musterbox.com/api/v1/auth/validate"
payload = {}
headers = {
"x-refresh-token": "<x-refresh-token>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-refresh-token': '<x-refresh-token>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({})
};
fetch('https://api.musterbox.com/api/v1/auth/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.musterbox.com/api/v1/auth/validate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"x-refresh-token: <x-refresh-token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.musterbox.com/api/v1/auth/validate"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-refresh-token", "<x-refresh-token>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.musterbox.com/api/v1/auth/validate")
.header("x-refresh-token", "<x-refresh-token>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.musterbox.com/api/v1/auth/validate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-refresh-token"] = '<x-refresh-token>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body{
"accessToken": "<string>",
"refreshToken": "<string>",
"expiresIn": 123
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123
},
"message": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123
},
"message": "<string>"
}Authorizations
Player access token returned by login/refresh.
Headers
The refresh token issued at login or by a previous rotation.
Body
application/json
The body is of type object.
Last modified on September 10, 2026
⌘I
Rotate tokens with a refresh token
curl --request POST \
--url https://api.musterbox.com/api/v1/auth/validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-refresh-token: <x-refresh-token>' \
--data '{}'import requests
url = "https://api.musterbox.com/api/v1/auth/validate"
payload = {}
headers = {
"x-refresh-token": "<x-refresh-token>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-refresh-token': '<x-refresh-token>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({})
};
fetch('https://api.musterbox.com/api/v1/auth/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.musterbox.com/api/v1/auth/validate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"x-refresh-token: <x-refresh-token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.musterbox.com/api/v1/auth/validate"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-refresh-token", "<x-refresh-token>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.musterbox.com/api/v1/auth/validate")
.header("x-refresh-token", "<x-refresh-token>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.musterbox.com/api/v1/auth/validate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-refresh-token"] = '<x-refresh-token>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body{
"accessToken": "<string>",
"refreshToken": "<string>",
"expiresIn": 123
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123
},
"message": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123
},
"message": "<string>"
}
