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\": \"qui\",
\"user\": \"vito\",
\"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' => 'qui',
'user' => 'vito',
'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": "qui",
"user": "vito",
"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/17" \
--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/17';
$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/17"
);
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/11" \
--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/11';
$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/11"
);
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": "lehner.eloy",
"databases": [],
"host": "%",
"status": null,
"created_at": null,
"updated_at": null
},
{
"id": null,
"server_id": null,
"username": "rlowe",
"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\": \"voluptas\",
\"password\": \":D+e=\\/;H,\",
\"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' => 'voluptas',
'password' => ':D+e=/;H,',
'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": "voluptas",
"password": ":D+e=\/;H,",
"host": "%"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": null,
"server_id": null,
"username": "fahey.joseph",
"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/19" \
--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/19';
$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/19"
);
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": "szboncak",
"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/11/link" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"databases\": \"accusantium\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/database-users/11/link';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'databases' => 'accusantium',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/database-users/11/link"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"databases": "accusantium"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": null,
"server_id": null,
"username": "smith.liliana",
"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/18" \
--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/18';
$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/18"
);
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": "joyce53",
"status": "ready",
"created_at": null,
"updated_at": null
},
{
"id": null,
"server_id": null,
"name": "eric55",
"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\": \"debitis\",
\"charset\": \"maxime\",
\"collation\": \"sed\"
}"
$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' => 'debitis',
'charset' => 'maxime',
'collation' => 'sed',
],
]
);
$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": "debitis",
"charset": "maxime",
"collation": "sed"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": null,
"server_id": null,
"name": "brekke.isabell",
"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/11" \
--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/11';
$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/11"
);
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": "vandervort.emmalee",
"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/5" \
--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/5';
$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/5"
);
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": "ea",
"server_id": null,
"type": "allow",
"protocol": "tcp",
"port": 41910,
"source": "202.183.211.242",
"mask": 24,
"note": "test",
"status": null,
"created_at": null,
"updated_at": null
},
{
"id": null,
"name": "iusto",
"server_id": null,
"type": "allow",
"protocol": "tcp",
"port": 60689,
"source": "227.149.61.57",
"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\": \"autem\",
\"type\": \"allow\",
\"protocol\": \"tcp\",
\"port\": \"quas\",
\"source\": \"blanditiis\",
\"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' => 'autem',
'type' => 'allow',
'protocol' => 'tcp',
'port' => 'quas',
'source' => 'blanditiis',
'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": "autem",
"type": "allow",
"protocol": "tcp",
"port": "quas",
"source": "blanditiis",
"mask": "0"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": null,
"name": "in",
"server_id": null,
"type": "allow",
"protocol": "tcp",
"port": 13253,
"source": "245.228.81.208",
"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\": \"earum\",
\"type\": \"allow\",
\"protocol\": \"tcp\",
\"port\": \"ab\",
\"source\": \"possimus\",
\"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' => 'earum',
'type' => 'allow',
'protocol' => 'tcp',
'port' => 'ab',
'source' => 'possimus',
'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": "earum",
"type": "allow",
"protocol": "tcp",
"port": "ab",
"source": "possimus",
"mask": "0"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": null,
"name": "repudiandae",
"server_id": null,
"type": "allow",
"protocol": "tcp",
"port": 44250,
"source": "243.200.88.169",
"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": "quam",
"server_id": null,
"type": "allow",
"protocol": "tcp",
"port": 62505,
"source": "73.254.77.244",
"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": "Amara Jaskolski",
"created_at": "2025-03-29T20:43:56.000000Z",
"updated_at": "2025-03-29T20:43:56.000000Z"
},
{
"id": 4,
"name": "Christy Kohler",
"created_at": "2025-03-29T20:43:56.000000Z",
"updated_at": "2025-03-29T20:43:56.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\": \"temporibus\"
}"
$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' => 'temporibus',
],
]
);
$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": "temporibus"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": 3,
"name": "Prof. Enrico Wehner Sr.",
"created_at": "2025-03-29T20:43:56.000000Z",
"updated_at": "2025-03-29T20:43:56.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": "Zoie Feest",
"created_at": "2025-03-29T20:43:56.000000Z",
"updated_at": "2025-03-29T20:43:56.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\": \"sit\"
}"
$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' => 'sit',
],
]
);
$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": "sit"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": 3,
"name": "Mr. Jayme Kuhlman DVM",
"created_at": "2025-03-29T20:43:56.000000Z",
"updated_at": "2025-03-29T20:43:56.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.
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": "quaerat",
"provider": "aws",
"created_at": "2025-03-29T20:43:56.000000Z",
"updated_at": "2025-03-29T20:43:56.000000Z"
},
{
"id": 4,
"project_id": null,
"global": true,
"name": "quas",
"provider": "vultr",
"created_at": "2025-03-29T20:43:56.000000Z",
"updated_at": "2025-03-29T20:43:56.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\": \"exercitationem\",
\"name\": \"similique\",
\"token\": \"nisi\",
\"key\": \"tempora\",
\"secret\": \"earum\"
}"
$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' => 'exercitationem',
'name' => 'similique',
'token' => 'nisi',
'key' => 'tempora',
'secret' => 'earum',
],
]
);
$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": "exercitationem",
"name": "similique",
"token": "nisi",
"key": "tempora",
"secret": "earum"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": 3,
"project_id": null,
"global": true,
"name": "iure",
"provider": "hetzner",
"created_at": "2025-03-29T20:43:56.000000Z",
"updated_at": "2025-03-29T20:43:56.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": "vultr",
"created_at": "2025-03-29T20:43:56.000000Z",
"updated_at": "2025-03-29T20:43:56.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\": \"porro\",
\"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' => 'porro',
'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": "porro",
"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": "aliquam",
"provider": "hetzner",
"created_at": "2025-03-29T20:43:56.000000Z",
"updated_at": "2025-03-29T20:43:56.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": "Prof. Wyatt Powlowski IV",
"ssh_user": "vito",
"ip": "33.53.217.82",
"local_ip": "227.155.11.76",
"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": "Guiseppe D'Amore",
"ssh_user": "vito",
"ip": "41.138.98.159",
"local_ip": "78.178.81.109",
"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\": \"vel\",
\"server_provider\": \"hetzner\",
\"region\": \"voluptatibus\",
\"plan\": \"ducimus\",
\"ip\": \"dolores\",
\"port\": \"ratione\",
\"name\": \"in\",
\"os\": \"cumque\",
\"webserver\": \"nginx\",
\"database\": \"mysql80\",
\"php\": \"7.4\"
}"
$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' => 'vel',
'server_provider' => 'hetzner',
'region' => 'voluptatibus',
'plan' => 'ducimus',
'ip' => 'dolores',
'port' => 'ratione',
'name' => 'in',
'os' => 'cumque',
'webserver' => 'nginx',
'database' => 'mysql80',
'php' => '7.4',
],
]
);
$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": "vel",
"server_provider": "hetzner",
"region": "voluptatibus",
"plan": "ducimus",
"ip": "dolores",
"port": "ratione",
"name": "in",
"os": "cumque",
"webserver": "nginx",
"database": "mysql80",
"php": "7.4"
};
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": "Anissa McDermott",
"ssh_user": "vito",
"ip": "212.15.34.173",
"local_ip": "142.201.95.242",
"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": "Prof. Newton Wintheiser Jr.",
"ssh_user": "vito",
"ip": "243.154.251.36",
"local_ip": "198.224.194.65",
"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\": \"harum\",
\"aliases\": [
\"voluptatem\"
],
\"php_version\": \"7.4\",
\"web_directory\": \"public\",
\"source_control\": \"amet\",
\"repository\": \"organization\\/repository\",
\"branch\": \"main\",
\"composer\": true,
\"version\": \"5.2.1\",
\"user\": \"et\",
\"method\": \"least-connections\"
}"
$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' => 'harum',
'aliases' => [
'voluptatem',
],
'php_version' => '7.4',
'web_directory' => 'public',
'source_control' => 'amet',
'repository' => 'organization/repository',
'branch' => 'main',
'composer' => true,
'version' => '5.2.1',
'user' => 'et',
'method' => 'least-connections',
],
]
);
$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": "harum",
"aliases": [
"voluptatem"
],
"php_version": "7.4",
"web_directory": "public",
"source_control": "amet",
"repository": "organization\/repository",
"branch": "main",
"composer": true,
"version": "5.2.1",
"user": "et",
"method": "least-connections"
};
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/43" \
--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/43';
$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/43"
);
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/43" \
--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/43';
$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/43"
);
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/43/load-balancer" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"method\": \"ip-hash\",
\"servers\": [
\"accusantium\"
]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/sites/43/load-balancer';
$response = $client->post(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'method' => 'ip-hash',
'servers' => [
'accusantium',
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/sites/43/load-balancer"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"method": "ip-hash",
"servers": [
"accusantium"
]
};
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/43/aliases" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"aliases\": [
\"ut\"
]
}"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/sites/43/aliases';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'aliases' => [
'ut',
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/sites/43/aliases"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"aliases": [
"ut"
]
};
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.
deployment-script
requires authentication
Update site deployment script
Example request:
curl --request PUT \
"https://your-vito-url/api/projects/1/servers/29/sites/43/deployment-script" \
--header "Authorization: Bearer YOUR-API-KEY" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"script\": \"culpa\"
}"
$client = new \GuzzleHttp\Client();
$url = 'https://your-vito-url/api/projects/1/servers/29/sites/43/deployment-script';
$response = $client->put(
$url,
[
'headers' => [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'script' => 'culpa',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
"https://your-vito-url/api/projects/1/servers/29/sites/43/deployment-script"
);
const headers = {
"Authorization": "Bearer YOUR-API-KEY",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"script": "culpa"
};
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/43/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/43/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/43/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.
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": "Amya Jones",
"provider": "github",
"created_at": "2025-03-29T20:43:56.000000Z",
"updated_at": "2025-03-29T20:43:56.000000Z"
},
{
"id": 6,
"project_id": null,
"global": true,
"name": "Jerry Donnelly",
"provider": "github",
"created_at": "2025-03-29T20:43:56.000000Z",
"updated_at": "2025-03-29T20:43:56.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\": \"bitbucket\",
\"name\": \"eligendi\",
\"token\": \"debitis\",
\"url\": \"http:\\/\\/fahey.com\\/aliquid-sapiente-labore-adipisci-eum-laborum\",
\"username\": \"rerum\",
\"password\": \"wBK}NHxV:x\"
}"
$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' => 'bitbucket',
'name' => 'eligendi',
'token' => 'debitis',
'url' => 'http://fahey.com/aliquid-sapiente-labore-adipisci-eum-laborum',
'username' => 'rerum',
'password' => 'wBK}NHxV:x',
],
]
);
$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": "bitbucket",
"name": "eligendi",
"token": "debitis",
"url": "http:\/\/fahey.com\/aliquid-sapiente-labore-adipisci-eum-laborum",
"username": "rerum",
"password": "wBK}NHxV:x"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": 5,
"project_id": null,
"global": true,
"name": "Dr. Janae Tremblay PhD",
"provider": "github",
"created_at": "2025-03-29T20:43:56.000000Z",
"updated_at": "2025-03-29T20:43:56.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": "Marguerite Aufderhar",
"provider": "github",
"created_at": "2025-03-29T20:43:56.000000Z",
"updated_at": "2025-03-29T20:43:56.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\": \"blanditiis\",
\"token\": \"non\",
\"url\": \"https:\\/\\/www.veum.com\\/eum-voluptas-non-rem-non-rerum-tempora-quam\",
\"username\": \"porro\",
\"password\": \">BW~{`#d,}=U!XxC!t]\",
\"global\": false
}"
$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' => 'blanditiis',
'token' => 'non',
'url' => 'https://www.veum.com/eum-voluptas-non-rem-non-rerum-tempora-quam',
'username' => 'porro',
'password' => '>BW~{`#d,}=U!XxC!t]',
'global' => false,
],
]
);
$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": "blanditiis",
"token": "non",
"url": "https:\/\/www.veum.com\/eum-voluptas-non-rem-non-rerum-tempora-quam",
"username": "porro",
"password": ">BW~{`#d,}=U!XxC!t]",
"global": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": 5,
"project_id": null,
"global": true,
"name": "Johan Crooks",
"provider": "github",
"created_at": "2025-03-29T20:43:56.000000Z",
"updated_at": "2025-03-29T20:43:56.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": "Dr. Virgie Reilly",
"created_at": null,
"updated_at": null
},
{
"id": null,
"user": null,
"name": "Horace Gutmann",
"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\": \"et\",
\"name\": \"provident\",
\"public_key\": \"incidunt\"
}"
$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' => 'et',
'name' => 'provident',
'public_key' => 'incidunt',
],
]
);
$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": "et",
"name": "provident",
"public_key": "incidunt"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": null,
"user": null,
"name": "Miss Penelope Sipes IV",
"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": "sit",
"provider": "ftp",
"created_at": "2025-03-29T20:43:56.000000Z",
"updated_at": "2025-03-29T20:43:56.000000Z"
},
{
"id": 6,
"project_id": null,
"global": true,
"name": "repudiandae",
"provider": "local",
"created_at": "2025-03-29T20:43:56.000000Z",
"updated_at": "2025-03-29T20:43:56.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\": \"est\",
\"name\": \"id\",
\"token\": \"repellendus\",
\"key\": \"ducimus\",
\"secret\": \"possimus\"
}"
$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' => 'est',
'name' => 'id',
'token' => 'repellendus',
'key' => 'ducimus',
'secret' => 'possimus',
],
]
);
$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": "est",
"name": "id",
"token": "repellendus",
"key": "ducimus",
"secret": "possimus"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
{
"id": 5,
"project_id": null,
"global": true,
"name": "sequi",
"provider": "dropbox",
"created_at": "2025-03-29T20:43:56.000000Z",
"updated_at": "2025-03-29T20:43:56.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": "alias",
"provider": "ftp",
"created_at": "2025-03-29T20:43:56.000000Z",
"updated_at": "2025-03-29T20:43:56.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\": \"ullam\",
\"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' => 'ullam',
'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": "ullam",
"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": "at",
"provider": "ftp",
"created_at": "2025-03-29T20:43:56.000000Z",
"updated_at": "2025-03-29T20:43:56.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.