API operation · databases group
GET
/databases/orphans
First published 14 Oct 2026
0.2.0Unchanged since publicationList unowned MariaDB databases and accounts unknown to UrbeStack
Who may call it
AdministratorResellerCustomer
Token scope, any of
databasesreadallAnswers200 OK
Only administrators can call this operation. Other callers receive 403.
The operation queries MariaDB directly. It returns databases with no recorded owner, including their sizes and oldest table creation times, and accounts unknown to UrbeStack, including their grants. If MariaDB cannot be queried, the response returns 200 with empty databases and accounts arrays and includes server_error.
As a command
Run as root on the serverExample
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X GET "$API/databases/orphans" \ -H "Authorization: Bearer $TOKEN"
Response ·
200 OK{
"accounts": [
{
"grants": [
"text"
],
"host": "text",
"user": "alice"
}
],
"databases": [
{
"first_table_at": "text",
"name": "alice",
"size_bytes": 1
}
],
"server_error": "text"
}Errors
5 errors, each a status and a sentence400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter400Username '<value>' is reserved401Authentication required403Insufficient privileges404User '<family>' not foundNo error of this operation matches.
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.2.0 on 14 Oct 2026.
urbestack.com/docs/api/get-databases-orphans/