Spaces method and path for this operation:
post /s/{space_id}/api/links
Refer to Spaces for more information.
Creates a new links library item and returns its ID, full state, and metadata.
POST
/api/links
Create a links library item - cURL
curl \
-X POST "${KIBANA_URL}/api/links" \
-H "Authorization: ApiKey ${API_KEY}" \
-H "kbn-xsrf: true" \
-H "Content-Type: application/json" \
-d '{
"title": "Important Resources",
"description": "A collection of important links",
"links": [
{
"label": "Overview",
"type": "dashboardLink",
"destination": "dashboard-abc-123"
},
{
"label": "Elastic Documentation",
"type": "externalLink",
"destination": "https://www.elastic.co/docs"
}
],
"layout": "horizontal"
}'
POST kbn:/api/links
{
"summary": "Create a links library item",
"value": {
"title": "Important Resources",
"description": "A collection of important links",
"links": [
{
"label": "Overview",
"type": "dashboardLink",
"destination": "dashboard-abc-123"
},
{
"label": "Elastic Documentation",
"type": "externalLink",
"destination": "https://www.elastic.co/docs"
}
],
"layout": "horizontal"
}
}
Request example
{
"description": "A collection of important links",
"layout": "horizontal",
"links": [
{
"destination": "dashboard-abc-123",
"label": "Overview",
"type": "dashboardLink"
},
{
"destination": "https://www.elastic.co/docs",
"label": "Elastic Documentation",
"type": "externalLink"
}
],
"title": "Important Resources"
}
Response examples (201)
Creates a new links library item and returns its ID, full state, and metadata.
{
"data": {
"description": "A collection of important links",
"layout": "horizontal",
"links": [
{
"destination": "dashboard-abc-123",
"label": "Overview",
"options": {
"open_in_new_tab": false,
"use_filters": true,
"use_time_range": true
},
"type": "dashboardLink"
},
{
"destination": "https://www.elastic.co/docs",
"label": "Elastic Documentation",
"options": {
"encode_url": true,
"open_in_new_tab": true
},
"type": "externalLink"
}
],
"title": "Important Resources"
},
"id": "0ee9d0ea-06a0-4a30-bf4e-be4d3ca85bf3",
"meta": {
"created_at": "2026-06-03T23:33:39.979Z",
"created_by": "u_EWATCHX9oIEsmcXj8aA1FkcaY3DE-XEpsiGTjrR2PmM_0",
"managed": false,
"updated_at": "2026-06-03T23:33:39.979Z",
"updated_by": "u_EWATCHX9oIEsmcXj8aA1FkcaY3DE-XEpsiGTjrR2PmM_0",
"version": "WzEwNywxXQ=="
}
}