curl --request GET \
--url https://app.base44.com/api/billing/topup/presets \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.base44.com/api/billing/topup/presets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.base44.com/api/billing/topup/presets', 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.base44.com/api/billing/topup/presets",
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: Bearer <token>"
],
]);
$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.base44.com/api/billing/topup/presets"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.base44.com/api/billing/topup/presets")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/billing/topup/presets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"presets": {
"message_credits": [
{
"credits": 0,
"total_cents": 0
},
{
"credits": 50,
"total_cents": 1500
},
{
"credits": 100,
"total_cents": 3000
}
],
"integration_credits": [
{
"credits": 0,
"total_cents": 0
},
{
"credits": 1000,
"total_cents": 1500
},
{
"credits": 2000,
"total_cents": 3000
}
]
},
"currency": "usd"
}List top-up packs
Lists the top-up credit amounts you can buy for your workspace, with their prices. Top-up credits are extra message and integration credits on top of your plan.
Message credits come in packs of 50 and integration credits in packs of 1,000. You can buy up to 8 packs of each type in one purchase, and every pack costs the same. Send the credits values you want to Create top-up checkout or Buy top-up with saved card.
Any member of the workspace can list the packs, but only the workspace owner can buy them. The workspace needs a paid plan other than Enterprise. Listing doesn’t check whether the plan is past due, but buying does. A workspace whose plan is paid through the App Store or Google Play can’t buy top-ups, and one billed through Wix can buy them only where Base44 has turned on Wix top-ups. A read-only token is refused, and workspace API keys aren’t accepted.
curl --request GET \
--url https://app.base44.com/api/billing/topup/presets \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.base44.com/api/billing/topup/presets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.base44.com/api/billing/topup/presets', 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.base44.com/api/billing/topup/presets",
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: Bearer <token>"
],
]);
$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.base44.com/api/billing/topup/presets"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.base44.com/api/billing/topup/presets")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/billing/topup/presets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"presets": {
"message_credits": [
{
"credits": 0,
"total_cents": 0
},
{
"credits": 50,
"total_cents": 1500
},
{
"credits": 100,
"total_cents": 3000
}
],
"integration_credits": [
{
"credits": 0,
"total_cents": 0
},
{
"credits": 1000,
"total_cents": 1500
},
{
"credits": 2000,
"total_cents": 3000
}
]
},
"currency": "usd"
}Authorizations
Personal access token, sent as Authorization: Bearer <token>. Each operation lists the permission it needs: read_only or full_access. A full-access token can call every operation. A read-only token can call only the operations that list read_only; anything else returns 403 read_only_credential_route_not_allowed.
Response
The amounts you can buy and their prices.
The amounts you can buy of each credit type, with their prices.
Show child attributes
Show child attributes
Currency of every price, and the currency you pay in. ils when the workspace's plan is billed in shekels, usd otherwise.
usd, ils "usd"
Was this page helpful?