Introduction
VitoDeploy's API documentation.
This documentation aims to provide all the information you need to work with our API.
Authenticating requests
To authenticate requests, include an Authorization
header with the value "Bearer YOUR-API-KEY"
.
All authenticated endpoints are marked with a requires authentication
badge in the documentation below.
You can retrieve your token by visiting here
cron-jobs
list
requires authentication
Get all cron jobs.
Example request:
curl --request GET \
--get "https://your-vito-url/api/projects/1/servers/29/cron-jobs" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/cron-jobs';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/cron-jobs"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": [
{
"id": null,
"server_id": null,
"command": "ls -la",
"user": "root",
"frequency": "* * * * *",
"status": "ready",
"created_at": null,
"updated_at": null
},
{
"id": null,
"server_id": null,
"command": "ls -la",
"user": "root",
"frequency": "* * * * *",
"status": "ready",
"created_at": null,
"updated_at": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 25,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
create
requires authentication
Create a new cron job.
Example request:
curl --request POST \
"https://your-vito-url/api/projects/1/servers/29/cron-jobs" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"command\": \"quia\",
\"user\": \"root\",
\"frequency\": \"* * * * *\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/cron-jobs';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'command' => 'quia',
'user' => 'root',
'frequency' => '* * * * *',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/cron-jobs"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"command": "quia",
"user": "root",
"frequency": "* * * * *"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": null,
"server_id": null,
"command": "ls -la",
"user": "root",
"frequency": "* * * * *",
"status": "ready",
"created_at": null,
"updated_at": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
show
requires authentication
Get a cron job by ID.
Example request:
curl --request GET \
--get "https://your-vito-url/api/projects/1/servers/29/cron-jobs/6" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/cron-jobs/6';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/cron-jobs/6"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"id": null,
"server_id": null,
"command": "ls -la",
"user": "root",
"frequency": "* * * * *",
"status": "ready",
"created_at": null,
"updated_at": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
delete
requires authentication
Delete cron job.
Example request:
curl --request DELETE \
"https://your-vito-url/api/projects/1/servers/29/cron-jobs/13" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/cron-jobs/13';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/cron-jobs/13"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
database-users
list
requires authentication
Get all database users.
Example request:
curl --request GET \
--get "https://your-vito-url/api/projects/1/servers/29/database-users" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/database-users';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/database-users"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": [
{
"id": null,
"server_id": null,
"username": "letha64",
"databases": [],
"host": "%",
"status": null,
"created_at": null,
"updated_at": null
},
{
"id": null,
"server_id": null,
"username": "hagenes.lurline",
"databases": [],
"host": "%",
"status": null,
"created_at": null,
"updated_at": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 25,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
create
requires authentication
Create a new database user.
Example request:
curl --request POST \
"https://your-vito-url/api/projects/1/servers/29/database-users" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"username\": \"qui\",
\"password\": \"xYv*3,#HQ=5<w!\",
\"host\": \"%\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/database-users';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'username' => 'qui',
'password' => 'xYv*3,#HQ=5<w!',
'host' => '%',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/database-users"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"username": "qui",
"password": "xYv*3,#HQ=5<w!",
"host": "%"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": null,
"server_id": null,
"username": "marcelle95",
"databases": [],
"host": "%",
"status": null,
"created_at": null,
"updated_at": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
show
requires authentication
Get a database user by ID.
Example request:
curl --request GET \
--get "https://your-vito-url/api/projects/1/servers/29/database-users/1" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/database-users/1';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/database-users/1"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"id": null,
"server_id": null,
"username": "brandi53",
"databases": [],
"host": "%",
"status": null,
"created_at": null,
"updated_at": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
link
requires authentication
Link to databases
Example request:
curl --request POST \
"https://your-vito-url/api/projects/1/servers/29/database-users/4/link" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"databases\": \"maiores\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/database-users/4/link';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'databases' => 'maiores',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/database-users/4/link"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"databases": "maiores"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": null,
"server_id": null,
"username": "kschmidt",
"databases": [],
"host": "%",
"status": null,
"created_at": null,
"updated_at": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
delete
requires authentication
Delete database user.
Example request:
curl --request DELETE \
"https://your-vito-url/api/projects/1/servers/29/database-users/20" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/database-users/20';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/database-users/20"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
databases
list
requires authentication
Get all databases.
Example request:
curl --request GET \
--get "https://your-vito-url/api/projects/1/servers/29/databases" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/databases';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/databases"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": [
{
"id": null,
"server_id": null,
"name": "leffler.esther",
"status": "ready",
"created_at": null,
"updated_at": null
},
{
"id": null,
"server_id": null,
"name": "rhoda.rutherford",
"status": "ready",
"created_at": null,
"updated_at": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 25,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
create
requires authentication
Create a new database.
Example request:
curl --request POST \
"https://your-vito-url/api/projects/1/servers/29/databases" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"quisquam\",
\"charset\": \"omnis\",
\"collation\": \"at\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/databases';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'quisquam',
'charset' => 'omnis',
'collation' => 'at',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/databases"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "quisquam",
"charset": "omnis",
"collation": "at"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": null,
"server_id": null,
"name": "csawayn",
"status": "ready",
"created_at": null,
"updated_at": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
show
requires authentication
Get a database by ID.
Example request:
curl --request GET \
--get "https://your-vito-url/api/projects/1/servers/29/databases/8" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/databases/8';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/databases/8"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"id": null,
"server_id": null,
"name": "sandrine43",
"status": "ready",
"created_at": null,
"updated_at": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
delete
requires authentication
Delete database.
Example request:
curl --request DELETE \
"https://your-vito-url/api/projects/1/servers/29/databases/8" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/databases/8';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/databases/8"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
firewall-rules
list
requires authentication
Get all firewall rules.
Example request:
curl --request GET \
--get "https://your-vito-url/api/projects/1/servers/29/firewall-rules" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/firewall-rules';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/firewall-rules"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": [
{
"id": null,
"name": "ut",
"server_id": null,
"type": "allow",
"protocol": "tcp",
"port": 35499,
"source": "177.130.54.250",
"mask": 24,
"note": "test",
"status": null,
"created_at": null,
"updated_at": null
},
{
"id": null,
"name": "totam",
"server_id": null,
"type": "allow",
"protocol": "tcp",
"port": 29448,
"source": "181.194.26.13",
"mask": 24,
"note": "test",
"status": null,
"created_at": null,
"updated_at": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 25,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
create
requires authentication
Create a new firewall rule.
Example request:
curl --request POST \
"https://your-vito-url/api/projects/1/servers/29/firewall-rules" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"sapiente\",
\"type\": \"allow\",
\"protocol\": \"tcp\",
\"port\": \"et\",
\"source\": \"doloribus\",
\"mask\": \"0\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/firewall-rules';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'sapiente',
'type' => 'allow',
'protocol' => 'tcp',
'port' => 'et',
'source' => 'doloribus',
'mask' => '0',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/firewall-rules"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "sapiente",
"type": "allow",
"protocol": "tcp",
"port": "et",
"source": "doloribus",
"mask": "0"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": null,
"name": "omnis",
"server_id": null,
"type": "allow",
"protocol": "tcp",
"port": 54634,
"source": "246.242.9.65",
"mask": 24,
"note": "test",
"status": null,
"created_at": null,
"updated_at": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
edit
requires authentication
Update an existing firewall rule.
Example request:
curl --request PUT \
"https://your-vito-url/api/projects/1/servers/29/firewall-rules/85" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"et\",
\"type\": \"allow\",
\"protocol\": \"tcp\",
\"port\": \"aut\",
\"source\": \"et\",
\"mask\": \"0\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/firewall-rules/85';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'et',
'type' => 'allow',
'protocol' => 'tcp',
'port' => 'aut',
'source' => 'et',
'mask' => '0',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/firewall-rules/85"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "et",
"type": "allow",
"protocol": "tcp",
"port": "aut",
"source": "et",
"mask": "0"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": null,
"name": "consequatur",
"server_id": null,
"type": "allow",
"protocol": "tcp",
"port": 879,
"source": "206.106.27.116",
"mask": 24,
"note": "test",
"status": null,
"created_at": null,
"updated_at": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
show
requires authentication
Get a firewall rule by ID.
Example request:
curl --request GET \
--get "https://your-vito-url/api/projects/1/servers/29/firewall-rules/85" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/firewall-rules/85';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/firewall-rules/85"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"id": null,
"name": "dolores",
"server_id": null,
"type": "allow",
"protocol": "tcp",
"port": 4691,
"source": "147.108.28.144",
"mask": 24,
"note": "test",
"status": null,
"created_at": null,
"updated_at": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
delete
requires authentication
Delete firewall rule.
Example request:
curl --request DELETE \
"https://your-vito-url/api/projects/1/servers/29/firewall-rules/85" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/firewall-rules/85';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/firewall-rules/85"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
general
health-check
Example request:
curl --request GET \
--get "https://your-vito-url/api/health" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/health';
$response = $client->get(
$url,
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/health"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
access-control-allow-origin: *
{
"success": true,
"version": "2.4.0"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
projects
list
requires authentication
Get all projects.
Example request:
curl --request GET \
--get "https://your-vito-url/api/projects" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": [
{
"id": 3,
"name": "Mr. Drake Nader",
"created_at": "2025-04-05T17:48:03.000000Z",
"updated_at": "2025-04-05T17:48:03.000000Z"
},
{
"id": 4,
"name": "Wilhelmine Jacobson",
"created_at": "2025-04-05T17:48:03.000000Z",
"updated_at": "2025-04-05T17:48:03.000000Z"
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 25,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
create
requires authentication
Create a new project.
Example request:
curl --request POST \
"https://your-vito-url/api/projects" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"dignissimos\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'dignissimos',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "dignissimos"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": 3,
"name": "Pattie Cole",
"created_at": "2025-04-05T17:48:03.000000Z",
"updated_at": "2025-04-05T17:48:03.000000Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
show
requires authentication
Get a project by ID.
Example request:
curl --request GET \
--get "https://your-vito-url/api/projects/1" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"id": 3,
"name": "Mr. Elias Bauch",
"created_at": "2025-04-05T17:48:03.000000Z",
"updated_at": "2025-04-05T17:48:03.000000Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
update
requires authentication
Update project.
Example request:
curl --request PUT \
"https://your-vito-url/api/projects/1" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"sunt\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'sunt',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "sunt"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": 3,
"name": "Elfrieda Jakubowski",
"created_at": "2025-04-05T17:48:03.000000Z",
"updated_at": "2025-04-05T17:48:03.000000Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
delete
requires authentication
Delete project.
Example request:
curl --request DELETE \
"https://your-vito-url/api/projects/1" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
redirects
index
requires authentication
Get all redirects.
Example request:
curl --request GET \
--get "https://your-vito-url/api/projects/1/servers/29/sites/44/redirects" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/sites/44/redirects';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/sites/44/redirects"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": [
{
"id": null,
"site_id": null,
"mode": 307,
"from": "ipsum",
"to": "http://fritsch.biz/",
"status": "ready",
"created_at": null,
"updated_at": null
},
{
"id": null,
"site_id": null,
"mode": 302,
"from": "culpa",
"to": "http://www.huels.net/aut-ut-ut-porro-non-rerum-voluptatum.html",
"status": "ready",
"created_at": null,
"updated_at": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 25,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
create
requires authentication
Create a new redirect.
Example request:
curl --request POST \
"https://your-vito-url/api/projects/1/servers/29/sites/44/redirects" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"from\": \"odit\",
\"to\": \"incidunt\",
\"mode\": 301
}"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/sites/44/redirects';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'from' => 'odit',
'to' => 'incidunt',
'mode' => 301,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/sites/44/redirects"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"from": "odit",
"to": "incidunt",
"mode": 301
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
delete
requires authentication
Delete a redirect.
Example request:
curl --request DELETE \
"https://your-vito-url/api/projects/1/servers/29/sites/44/redirects/9" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/sites/44/redirects/9';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/sites/44/redirects/9"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
server-providers
list
requires authentication
Example request:
curl --request GET \
--get "https://your-vito-url/api/projects/1/server-providers" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/server-providers';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/server-providers"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": [
{
"id": 3,
"project_id": null,
"global": true,
"name": "aut",
"provider": "hetzner",
"created_at": "2025-04-05T17:48:03.000000Z",
"updated_at": "2025-04-05T17:48:03.000000Z"
},
{
"id": 4,
"project_id": null,
"global": true,
"name": "qui",
"provider": "aws",
"created_at": "2025-04-05T17:48:03.000000Z",
"updated_at": "2025-04-05T17:48:03.000000Z"
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 25,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
create
requires authentication
Example request:
curl --request POST \
"https://your-vito-url/api/projects/1/server-providers" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"provider\": \"corrupti\",
\"name\": \"est\",
\"token\": \"rerum\",
\"key\": \"ut\",
\"secret\": \"sed\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/server-providers';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'provider' => 'corrupti',
'name' => 'est',
'token' => 'rerum',
'key' => 'ut',
'secret' => 'sed',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/server-providers"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"provider": "corrupti",
"name": "est",
"token": "rerum",
"key": "ut",
"secret": "sed"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": 3,
"project_id": null,
"global": true,
"name": "voluptas",
"provider": "vultr",
"created_at": "2025-04-05T17:48:03.000000Z",
"updated_at": "2025-04-05T17:48:03.000000Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
show
requires authentication
Example request:
curl --request GET \
--get "https://your-vito-url/api/projects/1/server-providers/1" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/server-providers/1';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/server-providers/1"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"id": 3,
"project_id": null,
"global": true,
"name": "et",
"provider": "digitalocean",
"created_at": "2025-04-05T17:48:03.000000Z",
"updated_at": "2025-04-05T17:48:03.000000Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
update
requires authentication
Example request:
curl --request PUT \
"https://your-vito-url/api/projects/1/server-providers/1" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"earum\",
\"global\": false
}"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/server-providers/1';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'earum',
'global' => false,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/server-providers/1"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "earum",
"global": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": 3,
"project_id": null,
"global": true,
"name": "architecto",
"provider": "digitalocean",
"created_at": "2025-04-05T17:48:03.000000Z",
"updated_at": "2025-04-05T17:48:03.000000Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
delete
requires authentication
Example request:
curl --request DELETE \
"https://your-vito-url/api/projects/1/server-providers/1" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/server-providers/1';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/server-providers/1"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
servers
list
requires authentication
Get all servers in a project.
Example request:
curl --request GET \
--get "https://your-vito-url/api/projects/1/servers" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": [
{
"id": null,
"project_id": null,
"user_id": null,
"provider_id": null,
"name": "Miss Bonita Vandervort IV",
"ssh_user": "vito",
"ip": "120.222.195.212",
"local_ip": "138.119.37.248",
"port": 22,
"os": "ubuntu_22",
"type": "regular",
"type_data": null,
"provider": "custom",
"provider_data": null,
"public_key": "test",
"status": "ready",
"auto_update": null,
"available_updates": 0,
"security_updates": null,
"progress": 100,
"progress_step": null,
"updates": null,
"last_update_check": null,
"created_at": null,
"updated_at": null
},
{
"id": null,
"project_id": null,
"user_id": null,
"provider_id": null,
"name": "Dr. Shanie Batz IV",
"ssh_user": "vito",
"ip": "241.88.138.163",
"local_ip": "138.226.232.93",
"port": 22,
"os": "ubuntu_22",
"type": "regular",
"type_data": null,
"provider": "custom",
"provider_data": null,
"public_key": "test",
"status": "ready",
"auto_update": null,
"available_updates": 0,
"security_updates": null,
"progress": 100,
"progress_step": null,
"updates": null,
"last_update_check": null,
"created_at": null,
"updated_at": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 25,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
create
requires authentication
Create a new server.
Example request:
curl --request POST \
"https://your-vito-url/api/projects/1/servers" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"provider\": \"fugiat\",
\"server_provider\": \"digitalocean\",
\"region\": \"itaque\",
\"plan\": \"voluptatum\",
\"ip\": \"ut\",
\"port\": \"reiciendis\",
\"name\": \"et\",
\"os\": \"vel\",
\"webserver\": \"nginx\",
\"database\": \"mysql80\",
\"php\": \"7.2\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'provider' => 'fugiat',
'server_provider' => 'digitalocean',
'region' => 'itaque',
'plan' => 'voluptatum',
'ip' => 'ut',
'port' => 'reiciendis',
'name' => 'et',
'os' => 'vel',
'webserver' => 'nginx',
'database' => 'mysql80',
'php' => '7.2',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"provider": "fugiat",
"server_provider": "digitalocean",
"region": "itaque",
"plan": "voluptatum",
"ip": "ut",
"port": "reiciendis",
"name": "et",
"os": "vel",
"webserver": "nginx",
"database": "mysql80",
"php": "7.2"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": null,
"project_id": null,
"user_id": null,
"provider_id": null,
"name": "Jeromy Mann",
"ssh_user": "vito",
"ip": "128.70.209.89",
"local_ip": "150.217.250.187",
"port": 22,
"os": "ubuntu_22",
"type": "regular",
"type_data": null,
"provider": "custom",
"provider_data": null,
"public_key": "test",
"status": "ready",
"auto_update": null,
"available_updates": 0,
"security_updates": null,
"progress": 100,
"progress_step": null,
"updates": null,
"last_update_check": null,
"created_at": null,
"updated_at": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
show
requires authentication
Get a server by ID.
Example request:
curl --request GET \
--get "https://your-vito-url/api/projects/1/servers/29" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"id": null,
"project_id": null,
"user_id": null,
"provider_id": null,
"name": "Miss Maya Schaden I",
"ssh_user": "vito",
"ip": "44.57.83.39",
"local_ip": "46.22.92.58",
"port": 22,
"os": "ubuntu_22",
"type": "regular",
"type_data": null,
"provider": "custom",
"provider_data": null,
"public_key": "test",
"status": "ready",
"auto_update": null,
"available_updates": 0,
"security_updates": null,
"progress": 100,
"progress_step": null,
"updates": null,
"last_update_check": null,
"created_at": null,
"updated_at": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
reboot
requires authentication
Reboot a server.
Example request:
curl --request POST \
"https://your-vito-url/api/projects/1/servers/29/reboot" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/reboot';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/reboot"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
upgrade
requires authentication
Upgrade server.
Example request:
curl --request POST \
"https://your-vito-url/api/projects/1/servers/29/upgrade" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/upgrade';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/upgrade"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
delete
requires authentication
Delete server.
Example request:
curl --request DELETE \
"https://your-vito-url/api/projects/1/servers/29" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
services
list
requires authentication
Get all services.
Example request:
curl --request GET \
--get "https://your-vito-url/api/projects/1/servers/29/services" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/services';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/services"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": [
{
"id": null,
"server_id": null,
"type": null,
"type_data": null,
"name": null,
"version": null,
"unit": null,
"status": null,
"is_default": null,
"created_at": null,
"updated_at": null
},
{
"id": null,
"server_id": null,
"type": null,
"type_data": null,
"name": null,
"version": null,
"unit": null,
"status": null,
"is_default": null,
"created_at": null,
"updated_at": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 25,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
show
requires authentication
Get a service by ID.
Example request:
curl --request GET \
--get "https://your-vito-url/api/projects/1/servers/29/services/169" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/services/169';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/services/169"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"id": null,
"server_id": null,
"type": null,
"type_data": null,
"name": null,
"version": null,
"unit": null,
"status": null,
"is_default": null,
"created_at": null,
"updated_at": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
start
requires authentication
Start service.
Example request:
curl --request POST \
"https://your-vito-url/api/projects/1/servers/29/services/169/start" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/services/169/start';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/services/169/start"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
stop
requires authentication
Stop service.
Example request:
curl --request POST \
"https://your-vito-url/api/projects/1/servers/29/services/169/stop" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/services/169/stop';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/services/169/stop"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
restart
requires authentication
Restart service.
Example request:
curl --request POST \
"https://your-vito-url/api/projects/1/servers/29/services/169/restart" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/services/169/restart';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/services/169/restart"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
enable
requires authentication
Enable service.
Example request:
curl --request POST \
"https://your-vito-url/api/projects/1/servers/29/services/169/enable" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/services/169/enable';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/services/169/enable"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
disable
requires authentication
Disable service.
Example request:
curl --request POST \
"https://your-vito-url/api/projects/1/servers/29/services/169/disable" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/services/169/disable';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/services/169/disable"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
delete
requires authentication
Delete service.
Example request:
curl --request DELETE \
"https://your-vito-url/api/projects/1/servers/29/services/169" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/services/169';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/services/169"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
sites
list
requires authentication
Get all sites.
Example request:
curl --request GET \
--get "https://your-vito-url/api/projects/1/servers/29/sites" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/sites';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/sites"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": [
{
"id": null,
"server_id": null,
"source_control_id": null,
"type": "laravel",
"type_data": null,
"domain": "test.com",
"aliases": null,
"web_directory": "/",
"path": "/home",
"php_version": "8.2",
"repository": null,
"branch": "main",
"status": "ready",
"port": null,
"user": "vito",
"progress": 100,
"created_at": null,
"updated_at": null
},
{
"id": null,
"server_id": null,
"source_control_id": null,
"type": "laravel",
"type_data": null,
"domain": "test.com",
"aliases": null,
"web_directory": "/",
"path": "/home",
"php_version": "8.2",
"repository": null,
"branch": "main",
"status": "ready",
"port": null,
"user": "vito",
"progress": 100,
"created_at": null,
"updated_at": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 25,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
create
requires authentication
Create a new site.
Example request:
curl --request POST \
"https://your-vito-url/api/projects/1/servers/29/sites" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"type\": \"php-blank\",
\"domain\": \"impedit\",
\"aliases\": [
\"cum\"
],
\"php_version\": \"7.4\",
\"web_directory\": \"public\",
\"source_control\": \"non\",
\"repository\": \"organization\\/repository\",
\"branch\": \"main\",
\"composer\": true,
\"version\": \"5.2.1\",
\"user\": \"voluptate\",
\"method\": \"ip-hash\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/sites';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'type' => 'php-blank',
'domain' => 'impedit',
'aliases' => [
'cum',
],
'php_version' => '7.4',
'web_directory' => 'public',
'source_control' => 'non',
'repository' => 'organization/repository',
'branch' => 'main',
'composer' => true,
'version' => '5.2.1',
'user' => 'voluptate',
'method' => 'ip-hash',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/sites"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type": "php-blank",
"domain": "impedit",
"aliases": [
"cum"
],
"php_version": "7.4",
"web_directory": "public",
"source_control": "non",
"repository": "organization\/repository",
"branch": "main",
"composer": true,
"version": "5.2.1",
"user": "voluptate",
"method": "ip-hash"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": null,
"server_id": null,
"source_control_id": null,
"type": "laravel",
"type_data": null,
"domain": "test.com",
"aliases": null,
"web_directory": "/",
"path": "/home",
"php_version": "8.2",
"repository": null,
"branch": "main",
"status": "ready",
"port": null,
"user": "vito",
"progress": 100,
"created_at": null,
"updated_at": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
show
requires authentication
Get a site by ID.
Example request:
curl --request GET \
--get "https://your-vito-url/api/projects/1/servers/29/sites/44" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/sites/44';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/sites/44"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"id": null,
"server_id": null,
"source_control_id": null,
"type": "laravel",
"type_data": null,
"domain": "test.com",
"aliases": null,
"web_directory": "/",
"path": "/home",
"php_version": "8.2",
"repository": null,
"branch": "main",
"status": "ready",
"port": null,
"user": "vito",
"progress": 100,
"created_at": null,
"updated_at": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
delete
requires authentication
Delete site.
Example request:
curl --request DELETE \
"https://your-vito-url/api/projects/1/servers/29/sites/44" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/sites/44';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/sites/44"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
load-balancer
requires authentication
Update load balancer.
Example request:
curl --request POST \
"https://your-vito-url/api/projects/1/servers/29/sites/44/load-balancer" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"method\": \"round-robin\",
\"servers\": [
\"omnis\"
]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/sites/44/load-balancer';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'method' => 'round-robin',
'servers' => [
'omnis',
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/sites/44/load-balancer"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"method": "round-robin",
"servers": [
"omnis"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
aliases
requires authentication
Update aliases.
Example request:
curl --request PUT \
"https://your-vito-url/api/projects/1/servers/29/sites/44/aliases" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"aliases\": [
\"doloremque\"
]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/sites/44/aliases';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'aliases' => [
'doloremque',
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/sites/44/aliases"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"aliases": [
"doloremque"
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
deploy
requires authentication
Run site deployment script
Example request:
curl --request POST \
"https://your-vito-url/api/projects/1/servers/29/sites/44/deploy" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/sites/44/deploy';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/sites/44/deploy"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Example response (200):
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
deployment-script
requires authentication
Update site deployment script
Example request:
curl --request PUT \
"https://your-vito-url/api/projects/1/servers/29/sites/44/deployment-script" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"script\": \"voluptatem\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/sites/44/deployment-script';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'script' => 'voluptatem',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/sites/44/deployment-script"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"script": "voluptatem"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
deployment-script
requires authentication
Get site deployment script content
Example request:
curl --request GET \
--get "https://your-vito-url/api/projects/1/servers/29/sites/44/deployment-script" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/sites/44/deployment-script';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/sites/44/deployment-script"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
env
requires authentication
Get site .env file content
Example request:
curl --request GET \
--get "https://your-vito-url/api/projects/1/servers/29/sites/44/env" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/sites/44/env';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/sites/44/env"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": {
"env": "APP_NAME=Laravel\\nAPP_ENV=production"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
env
requires authentication
Update site .env file
Example request:
curl --request PUT \
"https://your-vito-url/api/projects/1/servers/29/sites/44/env" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"env\": \"quam\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/sites/44/env';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'env' => 'quam',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/sites/44/env"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"env": "quam"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
source-controls
list
requires authentication
Example request:
curl --request GET \
--get "https://your-vito-url/api/projects/1/source-controls" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/source-controls';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/source-controls"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": [
{
"id": 5,
"project_id": null,
"global": true,
"name": "Zella Robel",
"provider": "github",
"created_at": "2025-04-05T17:48:03.000000Z",
"updated_at": "2025-04-05T17:48:03.000000Z"
},
{
"id": 6,
"project_id": null,
"global": true,
"name": "Jairo Williamson",
"provider": "github",
"created_at": "2025-04-05T17:48:03.000000Z",
"updated_at": "2025-04-05T17:48:03.000000Z"
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 25,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
create
requires authentication
Example request:
curl --request POST \
"https://your-vito-url/api/projects/1/source-controls" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"provider\": \"gitlab\",
\"name\": \"molestias\",
\"token\": \"in\",
\"url\": \"https:\\/\\/www.white.com\\/aperiam-dolor-nemo-qui-rerum-quod-quas\",
\"username\": \"consectetur\",
\"password\": \"y*P4_]ZdjE_:\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/source-controls';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'provider' => 'gitlab',
'name' => 'molestias',
'token' => 'in',
'url' => 'https://www.white.com/aperiam-dolor-nemo-qui-rerum-quod-quas',
'username' => 'consectetur',
'password' => 'y*P4_]ZdjE_:',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/source-controls"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"provider": "gitlab",
"name": "molestias",
"token": "in",
"url": "https:\/\/www.white.com\/aperiam-dolor-nemo-qui-rerum-quod-quas",
"username": "consectetur",
"password": "y*P4_]ZdjE_:"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": 5,
"project_id": null,
"global": true,
"name": "Miss Claudine Goyette",
"provider": "github",
"created_at": "2025-04-05T17:48:03.000000Z",
"updated_at": "2025-04-05T17:48:03.000000Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
show
requires authentication
Example request:
curl --request GET \
--get "https://your-vito-url/api/projects/1/source-controls/1" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/source-controls/1';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/source-controls/1"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"id": 5,
"project_id": null,
"global": true,
"name": "Mona Stark",
"provider": "github",
"created_at": "2025-04-05T17:48:03.000000Z",
"updated_at": "2025-04-05T17:48:03.000000Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
update
requires authentication
Example request:
curl --request PUT \
"https://your-vito-url/api/projects/1/source-controls/1" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"non\",
\"token\": \"sunt\",
\"url\": \"https:\\/\\/www.frami.org\\/ex-at-minus-rerum-quo-minus-ea\",
\"username\": \"natus\",
\"password\": \"A^\\\">*m{p]DI\",
\"global\": true
}"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/source-controls/1';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'non',
'token' => 'sunt',
'url' => 'https://www.frami.org/ex-at-minus-rerum-quo-minus-ea',
'username' => 'natus',
'password' => 'A^">*m{p]DI',
'global' => true,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/source-controls/1"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "non",
"token": "sunt",
"url": "https:\/\/www.frami.org\/ex-at-minus-rerum-quo-minus-ea",
"username": "natus",
"password": "A^\">*m{p]DI",
"global": true
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": 5,
"project_id": null,
"global": true,
"name": "Neha Little",
"provider": "github",
"created_at": "2025-04-05T17:48:03.000000Z",
"updated_at": "2025-04-05T17:48:03.000000Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
delete
requires authentication
Example request:
curl --request DELETE \
"https://your-vito-url/api/projects/1/source-controls/1" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/source-controls/1';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/source-controls/1"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
ssh-keys
list
requires authentication
Get all ssh keys.
Example request:
curl --request GET \
--get "https://your-vito-url/api/projects/1/servers/29/ssh-keys" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/ssh-keys';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/ssh-keys"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": [
{
"id": null,
"user": null,
"name": "Santa Goyette",
"created_at": null,
"updated_at": null
},
{
"id": null,
"user": null,
"name": "Cecil Cummings",
"created_at": null,
"updated_at": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 25,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
create
requires authentication
Deploy ssh key to server.
Example request:
curl --request POST \
"https://your-vito-url/api/projects/1/servers/29/ssh-keys" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"key_id\": \"explicabo\",
\"name\": \"deleniti\",
\"public_key\": \"sapiente\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/ssh-keys';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'key_id' => 'explicabo',
'name' => 'deleniti',
'public_key' => 'sapiente',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/ssh-keys"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"key_id": "explicabo",
"name": "deleniti",
"public_key": "sapiente"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": null,
"user": null,
"name": "Mr. Reagan Jacobson V",
"created_at": null,
"updated_at": null
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
delete
requires authentication
Delete ssh key from server.
Example request:
curl --request DELETE \
"https://your-vito-url/api/projects/1/servers/29/ssh-keys/1" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/ssh-keys/1';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/ssh-keys/1"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
storage-providers
list
requires authentication
Example request:
curl --request GET \
--get "https://your-vito-url/api/projects/1/storage-providers" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/storage-providers';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/storage-providers"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"data": [
{
"id": 5,
"project_id": null,
"global": true,
"name": "veritatis",
"provider": "ftp",
"created_at": "2025-04-05T17:48:03.000000Z",
"updated_at": "2025-04-05T17:48:03.000000Z"
},
{
"id": 6,
"project_id": null,
"global": true,
"name": "voluptas",
"provider": "dropbox",
"created_at": "2025-04-05T17:48:03.000000Z",
"updated_at": "2025-04-05T17:48:03.000000Z"
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 25,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
create
requires authentication
Example request:
curl --request POST \
"https://your-vito-url/api/projects/1/storage-providers" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"provider\": \"ab\",
\"name\": \"quo\",
\"token\": \"in\",
\"key\": \"sunt\",
\"secret\": \"molestias\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/storage-providers';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'provider' => 'ab',
'name' => 'quo',
'token' => 'in',
'key' => 'sunt',
'secret' => 'molestias',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/storage-providers"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"provider": "ab",
"name": "quo",
"token": "in",
"key": "sunt",
"secret": "molestias"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": 5,
"project_id": null,
"global": true,
"name": "asperiores",
"provider": "dropbox",
"created_at": "2025-04-05T17:48:03.000000Z",
"updated_at": "2025-04-05T17:48:03.000000Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
show
requires authentication
Example request:
curl --request GET \
--get "https://your-vito-url/api/projects/1/storage-providers/3" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/storage-providers/3';
$response = $client->get(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/storage-providers/3"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
{
"id": 5,
"project_id": null,
"global": true,
"name": "ipsum",
"provider": "local",
"created_at": "2025-04-05T17:48:03.000000Z",
"updated_at": "2025-04-05T17:48:03.000000Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
update
requires authentication
Example request:
curl --request PUT \
"https://your-vito-url/api/projects/1/storage-providers/3" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"voluptas\",
\"global\": true
}"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/storage-providers/3';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'voluptas',
'global' => true,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/storage-providers/3"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "voluptas",
"global": true
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": 5,
"project_id": null,
"global": true,
"name": "minima",
"provider": "ftp",
"created_at": "2025-04-05T17:48:03.000000Z",
"updated_at": "2025-04-05T17:48:03.000000Z"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
delete
requires authentication
Example request:
curl --request DELETE \
"https://your-vito-url/api/projects/1/storage-providers/3" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/storage-providers/3';
$response = $client->delete(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/storage-providers/3"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Example response (204):
Empty response
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.