curl --request GET \
--url https://app.miget.com/api/v1/workspace/pay_per_use/sizes \
--header 'Authorization: <api-key>'import requests
url = "https://app.miget.com/api/v1/workspace/pay_per_use/sizes"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://app.miget.com/api/v1/workspace/pay_per_use/sizes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.miget.com/api/v1/workspace/pay_per_use/sizes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.miget.com/api/v1/workspace/pay_per_use/sizes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.miget.com/api/v1/workspace/pay_per_use/sizes")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.miget.com/api/v1/workspace/pay_per_use/sizes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"tier": "hobby",
"free": true,
"cpu": 123,
"ram_mb": 123,
"hourly_in_cents": 123,
"monthly_in_cents": 123
}
]List the sizes of a workload without a resource
Returns the CPU and RAM sizes an app, service or add-on on Usage Billing, or in the workspace pool, can take. Send a size’s id as size when creating or resizing one; cpu_size and ram_size are refused for such a workload. Prices are what a size costs running all the time, per replica or instance; null on an enterprise contract, which pays for its pool instead. A personal workspace that pays for nothing is also offered the free size, id free, at no charge: any number of apps sharing 750 running hours a month per account, sleeping after 15 minutes without traffic, plus one PostgreSQL service, which sleeps when idle, and one Valkey service per account. The free size of the workload named by workload is listed while the account may take it.
curl --request GET \
--url https://app.miget.com/api/v1/workspace/pay_per_use/sizes \
--header 'Authorization: <api-key>'import requests
url = "https://app.miget.com/api/v1/workspace/pay_per_use/sizes"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://app.miget.com/api/v1/workspace/pay_per_use/sizes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.miget.com/api/v1/workspace/pay_per_use/sizes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.miget.com/api/v1/workspace/pay_per_use/sizes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.miget.com/api/v1/workspace/pay_per_use/sizes")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.miget.com/api/v1/workspace/pay_per_use/sizes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"tier": "hobby",
"free": true,
"cpu": 123,
"ram_mb": 123,
"hourly_in_cents": 123,
"monthly_in_cents": 123
}
]Authorizations
Query Parameters
Response
List the sizes of a workload without a resource

