---
type: api
title: Get shareable references
description: Collect references and space contexts for saved objects.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/v8/operation/operation-post-spaces-get-shareable-references
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/v8/operation/operation-post-spaces-get-shareable-references
products:
  - Kibana
---

# Get shareable references

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

## Paths

- `POST` `/api/spaces/_get_shareable_references`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/kibana/v8/authentication#apikeyauth)
- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/kibana/v8/authentication#basicauth)

## Description

Collect references and space contexts for saved objects.

## Request Body

`application/json`

- `objects` ([] object) — required
  - `id` (string) — required
  - `type` (string) — required

## Response

Indicates a successful call.

## Code Examples

#### Console

```console
POST /api/spaces/_get_shareable_references
```

#### curl

```curl
curl -X POST "https://{kibana_url}/api/spaces/_get_shareable_references" \
  -H "kbn-xsrf: true"
```

