---
type: api
title: Get settings
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/v8/operation/operation-get-settings
resource: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/v8/operation/operation-get-settings
products:
  - Kibana
---

# Get settings

Authentication: required

- Server: `https://{kibana_url}`

## Paths

- `GET` `/api/fleet/settings`
- `GET` `/s/{space_id}/api/fleet/settings`

#### Path parameters

- `space_id` (string) — optional
  An identifier for the space. If `space_id` is not provided in the URL, the default space is used. Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

## Responses

#### `200`

OK

`application/json`

- `item` (object)
  - `delete_unenrolled_agents` (object)
    - `enabled` (boolean)
    - `is_preconfigured` (boolean)
  - `fleet_server_hosts` (string[]) — deprecated
  - `has_seen_add_data_notice` (boolean)
  - `id` (string)
  - `prerelease_integrations_enabled` (boolean)
#### `400`

Generic Error

`application/json`

- `error` (string)
- `message` (string)
- `statusCode` (number)
## Code examples

#### Console

```console
GET kbn:/api/fleet/settings
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/fleet/settings" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response examples

#### 200

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "item": {
    "delete_unenrolled_agents": {
      "enabled": false,
      "is_preconfigured": false
    },
    "fleet_server_hosts": [
      "string"
    ],
    "has_seen_add_data_notice": false,
    "id": "string",
    "prerelease_integrations_enabled": false
  }
}
```

#### 400

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "error": "string",
  "message": "string",
  "statusCode": 0
}
```

