Database
Get Database Metrics
Get the metrics of your hosted database.
GET
/
v2
/
databases
/
{database_id}
/
metrics
Get Database Metrics
curl --request GET \
--url https://api.squarecloud.app/v2/databases/{database_id}/metrics \
--header 'Authorization: <authorization>'{
"status": "success",
"response": [
{
"date": "2025-08-13T12:55:01.348Z",
"cpu": 0.45,
"ram": 111.27,
"net": [
16834,
126
]
},
{
"date": "2025-08-13T12:50:01.349Z",
"cpu": 0.45,
"ram": 111.22,
"net": [
16834,
126
]
},
{
"date": "2025-08-13T12:45:01.350Z",
"cpu": 0.58,
"ram": 111.36,
"net": [
16834,
126
]
},
{
"date": "2025-08-13T12:40:01.348Z",
"cpu": 0.43,
"ram": 118.44,
"net": [
16834,
126
]
}
]
}
The API key for your account. You can find this in your account settings.
Parameters
The ID of the database.
Response
Indicates whether the call was successful..
success if successful, error if not.{
"status": "success",
"response": [
{
"date": "2025-08-13T12:55:01.348Z",
"cpu": 0.45,
"ram": 111.27,
"net": [
16834,
126
]
},
{
"date": "2025-08-13T12:50:01.349Z",
"cpu": 0.45,
"ram": 111.22,
"net": [
16834,
126
]
},
{
"date": "2025-08-13T12:45:01.350Z",
"cpu": 0.58,
"ram": 111.36,
"net": [
16834,
126
]
},
{
"date": "2025-08-13T12:40:01.348Z",
"cpu": 0.43,
"ram": 118.44,
"net": [
16834,
126
]
}
]
}
⌘I
Get Database Metrics
curl --request GET \
--url https://api.squarecloud.app/v2/databases/{database_id}/metrics \
--header 'Authorization: <authorization>'{
"status": "success",
"response": [
{
"date": "2025-08-13T12:55:01.348Z",
"cpu": 0.45,
"ram": 111.27,
"net": [
16834,
126
]
},
{
"date": "2025-08-13T12:50:01.349Z",
"cpu": 0.45,
"ram": 111.22,
"net": [
16834,
126
]
},
{
"date": "2025-08-13T12:45:01.350Z",
"cpu": 0.58,
"ram": 111.36,
"net": [
16834,
126
]
},
{
"date": "2025-08-13T12:40:01.348Z",
"cpu": 0.43,
"ram": 118.44,
"net": [
16834,
126
]
}
]
}

