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

# Get actions state

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

## Paths

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

## Description

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

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

## Authentication

- Api key: `Authorization: <value>`
  You must create an API key and use the encoded value in the request header. To learn about creating keys, go to [API keys](https://www.elastic.co/docs/current/serverless/api-keys).

## Response

OK

`application/json`

- `data` (object)
  - `canEncrypt` (boolean)
    Whether the Kibana instance has encryption enabled for response actions.
## 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

#### Response actions state with encryption enabled

```json
{
  "data": {
    "canEncrypt": true
  }
}
```

