Reveal the FTP and panel login
curl --request GET \
--url https://my.server.express/api/v1/hosting/{id}/credentials \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/hosting/{id}/credentials', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/hosting/{id}/credentials"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"username": "<string>",
"password": "<string>",
"host": "<string>",
"domain": "<string>"
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Hosting
Reveal the FTP and panel login
Owner only. Returns the plaintext FTP/panel password (null if none is stored or encryption isn’t configured), the server hostname and the domain. Every call writes a REVEAL_HOSTING_CREDENTIALS audit entry. 404 also covers a subscription whose hosting account isn’t set up yet.
GET
/
v1
/
hosting
/
{id}
/
credentials
Reveal the FTP and panel login
curl --request GET \
--url https://my.server.express/api/v1/hosting/{id}/credentials \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/hosting/{id}/credentials', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/hosting/{id}/credentials"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"username": "<string>",
"password": "<string>",
"host": "<string>",
"domain": "<string>"
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Authorizations
bearerAuthapiToken
Session access token (JWT) from POST /v1/auth/login or /v1/auth/refresh. A session satisfies every API scope.
Path Parameters
The hosting service id.