# GET /settings/{key}

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

UrbeStack release 0.2.35 API operation in the settings group.

Get a setting by key

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

Requires an administrator token with the settings scope. Returns key and value for any stored setting, including keys listed in secrets by GET /settings. For panel.timezone, value is the server's current time zone, including changes made outside UrbeStack. Returns 404 if the key has no stored value.

## Parameters

- `key` (path, string, matching ^[a-z][a-z0-9_]{0,31}(\.[a-z][a-z0-9_]{0,31}){0,3}$, required)

## 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/settings/panel.port" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "key": "panel.port",
  "value": 8443
}
```

## Errors

- 400: Invalid setting key
- 401: Authentication required
- 404: Setting '<key>' not found
