Links

Get all links

Endpoint

GET /v1/cdn/links

Parameters

Name Description
token required Public token for published or private token for draft version
starts_with Starts with slug
version Published or draft version

Request

Query Parameters

token=wANpEQEsMYGOwLxwXQ76Ggtt

cURL

curl "https://api.storyblok.com/v1/cdn/links?token=wANpEQEsMYGOwLxwXQ76Ggtt" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"

Response

Body

{
  "links": {
    "096dac30-f9c9-4632-953c-1917baf0fe46": {
      "id": 110,
      "slug": "home2",
      "name": "Home2",
      "is_folder": false,
      "parent_id": 0,
      "published": true,
      "position": -10,
      "uuid": "096dac30-f9c9-4632-953c-1917baf0fe46",
      "is_startpage": false
    },
    "9718feb6-70bc-466f-8f93-ae85c961ec41": {
      "id": 109,
      "slug": "de/home1",
      "name": "Home1",
      "is_folder": false,
      "parent_id": 108,
      "published": false,
      "position": 0,
      "uuid": "9718feb6-70bc-466f-8f93-ae85c961ec41",
      "is_startpage": false
    },
    "65c1ce97-fbbb-4395-a2eb-9e167bb10a20": {
      "id": 108,
      "slug": "de",
      "name": "de",
      "is_folder": true,
      "parent_id": 0,
      "published": false,
      "position": 0,
      "uuid": "65c1ce97-fbbb-4395-a2eb-9e167bb10a20",
      "is_startpage": false
    }
  }
}

Get all links that start with de* slug

Endpoint

GET /v1/cdn/links

Parameters

Name Description
token required Public token for published or private token for draft version
starts_with Starts with slug
version Published or draft version

Request

Query Parameters

token=wANpEQEsMYGOwLxwXQ76Ggtt
starts_with=de

cURL

curl "https://api.storyblok.com/v1/cdn/links?token=wANpEQEsMYGOwLxwXQ76Ggtt&starts_with=de" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"

Response

Body

{
  "links": {
    "c124b414-71b5-4f65-8e17-50680ecd201f": {
      "id": 112,
      "slug": "de/home1",
      "name": "Home1",
      "is_folder": false,
      "parent_id": 111,
      "published": false,
      "position": 0,
      "uuid": "c124b414-71b5-4f65-8e17-50680ecd201f",
      "is_startpage": false
    },
    "b854bf10-ad92-4dfa-aac4-37ae8438e396": {
      "id": 111,
      "slug": "de",
      "name": "de",
      "is_folder": true,
      "parent_id": 0,
      "published": false,
      "position": 0,
      "uuid": "b854bf10-ad92-4dfa-aac4-37ae8438e396",
      "is_startpage": false
    }
  }
}

Get a single link

Endpoint

GET /v1/cdn/links/:id

Parameters

Name Description
token required Public token for published or private token for draft version
id required Uuid of the link

Request

Query Parameters

token=wANpEQEsMYGOwLxwXQ76Ggtt

cURL

curl "https://api.storyblok.com/v1/cdn/links/e3768fdf-3c59-4a62-ac44-4d9170dcab41?token=wANpEQEsMYGOwLxwXQ76Ggtt" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"

Response

Body

{
  "link": {
    "id": 117,
    "slug": "test",
    "name": "Test",
    "is_folder": false,
    "parent_id": 0,
    "published": true,
    "position": -20,
    "uuid": "e3768fdf-3c59-4a62-ac44-4d9170dcab41",
    "is_startpage": false
  }
}

Documentation