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

# Get uptime settings

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

## Paths

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

## Description

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

You must have `read` privileges for the uptime feature in the Observability section of the Kibana feature privileges.

## Authentication

- Api key: `Authorization: <value>`
  These APIs use key-based authentication. You must create an API key and use the encoded value in the request header. For example: `Authorization: ApiKey base64AccessApiKey`
- Basic: `Authorization: Basic <credentials>`

## Response

Indicates a successful call

`application/json`

Type: `object`

## Code examples

#### Console

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

#### curl

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

## Response examples

#### Get uptime settings response example1

```json
{
  "heartbeatIndices": "heartbeat-8*",
  "certExpirationThreshold": 30,
  "certAgeThreshold": 730,
  "defaultConnectors": [
      "08990f40-09c5-11ee-97ae-912b222b13d4",
      "db25f830-2318-11ee-9391-6b0c030836d6"
  ],
  "defaultEmail": {
      "to": [],
      "cc": [],
      "bcc": []
  }
}
```

