获取服务状态
检查 Square Cloud 平台的整体健康状况(GET /v2/service/status)。该接口公开,无需 API 密钥,结果缓存 5 分钟。
GET
/
v2
/
service
/
status
获取服务状态
curl --request GET \
--url https://api.squarecloud.app/v2/service/status \
--header 'Authorization: <api-key>'import requests
url = "https://api.squarecloud.app/v2/service/status"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.squarecloud.app/v2/service/status', 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://api.squarecloud.app/v2/service/status",
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://api.squarecloud.app/v2/service/status"
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://api.squarecloud.app/v2/service/status")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.squarecloud.app/v2/service/status")
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{
"status": "online",
"message": "All services are online.",
"checked_at": "2026-11-13T12:00:00.000Z",
"stale": false,
"services": {
"blob_storage": {
"name": "Blob Storage",
"status": "operational"
},
"cubic": {
"name": "Cubic AI",
"status": "operational"
},
"ai_gateway": {
"name": "AI Gateway",
"status": "operational"
}
},
"dependencies": {
"cloudflare": {
"name": "Cloudflare",
"status": "operational"
},
"github": {
"name": "GitHub",
"status": "operational"
},
"google": {
"name": "Google sign-in",
"status": "operational"
},
"discord": {
"name": "Discord",
"status": "operational"
},
"stripe": {
"name": "Stripe",
"status": "operational"
},
"email": {
"name": "E-mail delivery",
"status": "operational"
},
"invoicing": {
"name": "Invoice issuing (NFSe)",
"status": "operational"
},
"support": {
"name": "Support & help center",
"status": "operational"
}
},
"incidents": [],
"components": []
}
{
"status": "maintenance",
"message": "Maintenance is in progress on one or more services.",
"checked_at": "2026-11-13T12:00:00.000Z",
"stale": false,
"services": {
"blob_storage": {
"name": "Blob Storage",
"status": "maintenance",
"summary": "Blob Storage is under maintenance."
},
"cubic": {
"name": "Cubic AI",
"status": "operational"
},
"ai_gateway": {
"name": "AI Gateway",
"status": "operational"
}
},
"dependencies": {
"cloudflare": {
"name": "Cloudflare",
"status": "operational"
},
"github": {
"name": "GitHub",
"status": "operational"
},
"google": {
"name": "Google sign-in",
"status": "operational"
},
"discord": {
"name": "Discord",
"status": "operational"
},
"stripe": {
"name": "Stripe",
"status": "operational"
},
"email": {
"name": "E-mail delivery",
"status": "operational"
},
"invoicing": {
"name": "Invoice issuing (NFSe)",
"status": "operational"
},
"support": {
"name": "Support & help center",
"status": "operational"
}
},
"incidents": [
{
"type": "maintenance",
"title": "Blob Storage maintenance",
"status": "maintenance",
"started_at": "2026-11-13T10:00:00.000Z",
"ends_at": "2026-11-13T14:00:00.000Z",
"affected": [
"Blob Assets"
],
"update": "Maintenance is in progress. Uploads may be temporarily unavailable.",
"updated_at": "2026-11-13T10:05:00.000Z"
}
],
"components": [
{
"name": "Blob Assets",
"status": "maintenance"
}
]
}
服务状态返回 Square Cloud 平台的整体健康状况,与公共状态页面和内部告警所使用的信号相同。这是一个无需 API 密钥的公开路由,非常适合用于自动化的可用性检查,或在你自己的网站上构建一个小型状态组件。
该响应内容来自 5 分钟的缓存,因此对于短暂的故障,最多可能有这个时间窗口的延迟,不应将其当作实时的故障信息源。如果缓存值无法读取,该端点仍会以
status: "unknown" 成功响应,而不会使请求失败。
如需查看单个应用而非整个平台的健康状况,请参阅获取应用状态或获取所有应用状态。
此路由有 5 分钟的缓存,不会反映 status.squarecloud.app 的实时状态。
响应
Square Cloud 的当前状态:
online 表示一切运行正常,maintenance 表示当前只有维护在进行,degraded 表示存在不稳定或中断,unknown 表示无法检查状态(这并不代表发生了中断)。Square Cloud 自身的服务,以 id 为键(
blob_storage、cubic、ai_gateway)。每一项都有 name 和 status(operational、degraded、outage、maintenance 或 unknown),不处于正常运行状态时还带有 summary。{
"status": "online",
"message": "All services are online.",
"checked_at": "2026-11-13T12:00:00.000Z",
"stale": false,
"services": {
"blob_storage": {
"name": "Blob Storage",
"status": "operational"
},
"cubic": {
"name": "Cubic AI",
"status": "operational"
},
"ai_gateway": {
"name": "AI Gateway",
"status": "operational"
}
},
"dependencies": {
"cloudflare": {
"name": "Cloudflare",
"status": "operational"
},
"github": {
"name": "GitHub",
"status": "operational"
},
"google": {
"name": "Google sign-in",
"status": "operational"
},
"discord": {
"name": "Discord",
"status": "operational"
},
"stripe": {
"name": "Stripe",
"status": "operational"
},
"email": {
"name": "E-mail delivery",
"status": "operational"
},
"invoicing": {
"name": "Invoice issuing (NFSe)",
"status": "operational"
},
"support": {
"name": "Support & help center",
"status": "operational"
}
},
"incidents": [],
"components": []
}
{
"status": "maintenance",
"message": "Maintenance is in progress on one or more services.",
"checked_at": "2026-11-13T12:00:00.000Z",
"stale": false,
"services": {
"blob_storage": {
"name": "Blob Storage",
"status": "maintenance",
"summary": "Blob Storage is under maintenance."
},
"cubic": {
"name": "Cubic AI",
"status": "operational"
},
"ai_gateway": {
"name": "AI Gateway",
"status": "operational"
}
},
"dependencies": {
"cloudflare": {
"name": "Cloudflare",
"status": "operational"
},
"github": {
"name": "GitHub",
"status": "operational"
},
"google": {
"name": "Google sign-in",
"status": "operational"
},
"discord": {
"name": "Discord",
"status": "operational"
},
"stripe": {
"name": "Stripe",
"status": "operational"
},
"email": {
"name": "E-mail delivery",
"status": "operational"
},
"invoicing": {
"name": "Invoice issuing (NFSe)",
"status": "operational"
},
"support": {
"name": "Support & help center",
"status": "operational"
}
},
"incidents": [
{
"type": "maintenance",
"title": "Blob Storage maintenance",
"status": "maintenance",
"started_at": "2026-11-13T10:00:00.000Z",
"ends_at": "2026-11-13T14:00:00.000Z",
"affected": [
"Blob Assets"
],
"update": "Maintenance is in progress. Uploads may be temporarily unavailable.",
"updated_at": "2026-11-13T10:05:00.000Z"
}
],
"components": [
{
"name": "Blob Assets",
"status": "maintenance"
}
]
}
相关内容
- CLI:
squarecloud status - SDK:
api.service.status()(JavaScript)、client.service.status()(Python)、c.Service.Status()(Go)
⌘I
获取服务状态
curl --request GET \
--url https://api.squarecloud.app/v2/service/status \
--header 'Authorization: <api-key>'import requests
url = "https://api.squarecloud.app/v2/service/status"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.squarecloud.app/v2/service/status', 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://api.squarecloud.app/v2/service/status",
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://api.squarecloud.app/v2/service/status"
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://api.squarecloud.app/v2/service/status")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.squarecloud.app/v2/service/status")
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{
"status": "online",
"message": "All services are online.",
"checked_at": "2026-11-13T12:00:00.000Z",
"stale": false,
"services": {
"blob_storage": {
"name": "Blob Storage",
"status": "operational"
},
"cubic": {
"name": "Cubic AI",
"status": "operational"
},
"ai_gateway": {
"name": "AI Gateway",
"status": "operational"
}
},
"dependencies": {
"cloudflare": {
"name": "Cloudflare",
"status": "operational"
},
"github": {
"name": "GitHub",
"status": "operational"
},
"google": {
"name": "Google sign-in",
"status": "operational"
},
"discord": {
"name": "Discord",
"status": "operational"
},
"stripe": {
"name": "Stripe",
"status": "operational"
},
"email": {
"name": "E-mail delivery",
"status": "operational"
},
"invoicing": {
"name": "Invoice issuing (NFSe)",
"status": "operational"
},
"support": {
"name": "Support & help center",
"status": "operational"
}
},
"incidents": [],
"components": []
}
{
"status": "maintenance",
"message": "Maintenance is in progress on one or more services.",
"checked_at": "2026-11-13T12:00:00.000Z",
"stale": false,
"services": {
"blob_storage": {
"name": "Blob Storage",
"status": "maintenance",
"summary": "Blob Storage is under maintenance."
},
"cubic": {
"name": "Cubic AI",
"status": "operational"
},
"ai_gateway": {
"name": "AI Gateway",
"status": "operational"
}
},
"dependencies": {
"cloudflare": {
"name": "Cloudflare",
"status": "operational"
},
"github": {
"name": "GitHub",
"status": "operational"
},
"google": {
"name": "Google sign-in",
"status": "operational"
},
"discord": {
"name": "Discord",
"status": "operational"
},
"stripe": {
"name": "Stripe",
"status": "operational"
},
"email": {
"name": "E-mail delivery",
"status": "operational"
},
"invoicing": {
"name": "Invoice issuing (NFSe)",
"status": "operational"
},
"support": {
"name": "Support & help center",
"status": "operational"
}
},
"incidents": [
{
"type": "maintenance",
"title": "Blob Storage maintenance",
"status": "maintenance",
"started_at": "2026-11-13T10:00:00.000Z",
"ends_at": "2026-11-13T14:00:00.000Z",
"affected": [
"Blob Assets"
],
"update": "Maintenance is in progress. Uploads may be temporarily unavailable.",
"updated_at": "2026-11-13T10:05:00.000Z"
}
],
"components": [
{
"name": "Blob Assets",
"status": "maintenance"
}
]
}

