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

# Get actions state

Authentication: required

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

## Paths

- `GET` `/api/endpoint/action/state`
- `GET` `/s/{space_id}/api/endpoint/action/state`

#### 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.

## Description

Get a response actions state, which reports whether encryption is enabled.

## Response

OK

`application/json`

- `body` (object)
  - `data` (object)
    - `canEncrypt` (boolean)
## Code examples

#### Console

```console
GET kbn:/api/endpoint/action/state
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/endpoint/action/state" \
  -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
{
  "body": {
    "data": {
      "canEncrypt": false
    }
  }
}
```

