# GET /databases/status

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the databases group.

Get MariaDB status and connection settings

- Who may call it: administrator, reseller, customer
- Token scope, any of: databases, read, all
- Answers: 200 OK

The response contains status, with the MariaDB installation and runtime state, the version when recorded, and the socket and hosts applications can use to connect. It also includes whether phpMyAdmin is active and its URL. A stopped server is reported through running and state in a 200 response.

For administrators, status also reports whether MariaDB and phpMyAdmin are enabled. If MariaDB is installed and enabled, unowned lists databases with no recorded owner and unknown_accounts lists MariaDB accounts unknown to UrbeStack. The response includes server_version when available and server_error if the query fails.

For resellers and customers, status omits both enabled fields and includes prefix, the caller's username followed by an underscore.

## As a command

- [urbestack-database-list](https://urbestack.com/docs/commands/urbestack-database-list.md): Lists databases by their recorded ownership in UrbeStack.

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X GET "$API/databases/status" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "status": {
    "enabled": true,
    "hosts": [
      "text"
    ],
    "installed": true,
    "prefix": "text",
    "running": true,
    "server_error": "text",
    "server_version": "text",
    "socket": "text",
    "state": "up",
    "unknown_accounts": [
      "text"
    ],
    "unowned": [
      "text"
    ],
    "version": "0.0.1"
  }
}
```

## Errors

- 400: Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter
- 400: Username '<value>' is reserved
- 401: Authentication required
- 404: User '<family>' not found
