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

# Get a saved object

deprecated

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

## Paths

- `GET` `/api/saved_objects/{type}/{id}`
- `GET` `/s/{space_id}/api/saved_objects/{type}/{id}`

#### Path parameters

- `id` (string) — required
  An identifier for the saved object.
- `type` (string) — required
  Valid options include `visualization`, `dashboard`, `search`, `index-pattern`, `config`.

## Description

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

Retrieve a single Kibana saved object by identifier.

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

## Responses

#### `200`

Indicates a successful call.

`application/json`

Type: `object`

#### `400`

Bad request.

`application/json`

- `error` (enum)
  Values: `Bad Request`
- `message` (string)
- `statusCode` (enum)
  Values: `400`
## Code examples

#### Console

```console
GET kbn:/api/saved_objects/TYPE/ID
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/saved_objects/${TYPE}/${ID}" \
  -H "Authorization: ApiKey ${API_KEY}"
```

