Get the current share token for a VPS
curl --request GET \
--url https://api.storiza.store/vps/{vmId}/share \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.storiza.store/vps/{vmId}/share', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.storiza.store/vps/{vmId}/share"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"message": "Share token retrieved successfully",
"data": {
"shareToken": "<string>"
}
}Server sharing
Get the current share token for a VPS
Returns the share token currently set on a VPS the caller owns, or null when no token has been generated.
Required API key permission: vps:read
GET
/
vps
/
{vmId}
/
share
Get the current share token for a VPS
curl --request GET \
--url https://api.storiza.store/vps/{vmId}/share \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.storiza.store/vps/{vmId}/share', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.storiza.store/vps/{vmId}/share"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"message": "Share token retrieved successfully",
"data": {
"shareToken": "<string>"
}
}Authorizations
An API key from the Storiza dashboard (API & Integrations), sent as Authorization: Bearer stz_….
Path Parameters
Minimum string length:
1Was this page helpful?