Get your free beta license ↗
API operation · databases group
GET

/databases/orphans

First published 14 Oct 20260.2.0Unchanged since publication

List unowned MariaDB databases and accounts unknown to UrbeStack

Who may call it
AdministratorResellerCustomer
Token scope, any of
databasesreadall
Answers200 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 server

Example

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 sentence
400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter
400Username '<value>' is reserved
401Authentication required
403Insufficient privileges
404User '<family>' not found
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/