---
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/operation/operation-post-spaces-get-shareable-references
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/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/authentication#apikeyauth)
- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/kibana/authentication#basicauth)

## Description

Collect references and space contexts for saved objects.

## Request Body

`application/json`

- `objects` ([] object · max: 1000) — required
  - `id` (string) — required
  - `type` (string) — required

## Response

Indicates a successful call.

## Code Examples

#### Console

```console
POST /api/spaces/_get_shareable_references
{
  "objects": [
    {
      "type": "dashboard",
      "id": "my-dashboard-id"
    }
  ]
}
```

#### curl

```curl
curl -X POST "https://{kibana_url}/api/spaces/_get_shareable_references" \
  -H "kbn-xsrf: true" \
  -H "Content-Type: application/json" \
  -d '{
  "objects": [
    {
      "type": "dashboard",
      "id": "my-dashboard-id"
    }
  ]
}'
```

## Response Examples

#### Get shareable references response

A response that includes the collected references and the spaces where the objects exist.

```json
{
  "objects": [
    {
      "type": "dashboard",
      "id": "my-dashboard-id",
      "spaces": [
        "default",
        "marketing"
      ],
      "inboundReferences": []
    }
  ]
}
```

