curl --request GET \
--url https://app.base44.com/api/billing/business-email/admin-console-url \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.base44.com/api/billing/business-email/admin-console-url"
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/business-email/admin-console-url', 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/business-email/admin-console-url",
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/business-email/admin-console-url"
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/business-email/admin-console-url")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/billing/business-email/admin-console-url")
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{
"url": "https://accounts.google.com/AccountChooser?Email=admin@acme.com&service=CPanel&continue=https%3A%2F%2Fadmin.google.com%2Fac%2Ftos"
}{
"detail": [
{
"type": "missing",
"loc": [
"query",
"domain"
],
"msg": "Field required"
}
]
}Get business email admin console link
Returns a Google sign-in link for the admin of the business email on domain. After signing in, the admin lands on the Google Admin console page where they accept Google’s terms of service. Use it when Get business email status reports the domain as TOS_SUSPENDED.
The link names the admin’s email address, and the admin signs in with their own Google password.
Only the workspace owner can get the link. A read-only token is refused, and workspace API keys aren’t accepted. Limited to 6 requests a minute per caller. Some workspaces have a different limit.
curl --request GET \
--url https://app.base44.com/api/billing/business-email/admin-console-url \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.base44.com/api/billing/business-email/admin-console-url"
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/business-email/admin-console-url', 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/business-email/admin-console-url",
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/business-email/admin-console-url"
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/business-email/admin-console-url")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/billing/business-email/admin-console-url")
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{
"url": "https://accounts.google.com/AccountChooser?Email=admin@acme.com&service=CPanel&continue=https%3A%2F%2Fadmin.google.com%2Fac%2Ftos"
}{
"detail": [
{
"type": "missing",
"loc": [
"query",
"domain"
],
"msg": "Field required"
}
]
}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.
Query Parameters
Domain whose business email the link is for, as listed in items[].domain of Get business email status.
Response
A Google sign-in link for the domain's admin.
Google sign-in link for the domain's Google admin. It names the admin's email address, and they sign in with their own Google password.
"https://accounts.google.com/AccountChooser?Email=admin@acme.com&service=CPanel&continue=https%3A%2F%2Fadmin.google.com%2Fac%2Ftos"
Was this page helpful?