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=nmIoGfE13PqG0g7EAL1FKQtt

cURL

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

Response

Body

{
  "links": {
    "a1ca5927-f376-46ad-a6d6-b3b6af75c54c": {
      "id": 1401,
      "slug": "home2",
      "name": "Home2",
      "is_folder": false,
      "parent_id": 0,
      "published": true,
      "position": -3010,
      "uuid": "a1ca5927-f376-46ad-a6d6-b3b6af75c54c",
      "is_startpage": false
    },
    "28c98b7c-e5f4-4a44-816d-d3c5412a6cfe": {
      "id": 1399,
      "slug": "de",
      "name": "de",
      "is_folder": true,
      "parent_id": 0,
      "published": false,
      "position": -3000,
      "uuid": "28c98b7c-e5f4-4a44-816d-d3c5412a6cfe",
      "is_startpage": false
    },
    "6149de68-ce68-438c-b007-99f4c2fbdb8e": {
      "id": 1400,
      "slug": "de/home1",
      "name": "Home1",
      "is_folder": false,
      "parent_id": 1399,
      "published": false,
      "position": 0,
      "uuid": "6149de68-ce68-438c-b007-99f4c2fbdb8e",
      "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=OGNPrXqdffDZj4fhQagU2Att
starts_with=de

cURL

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

Response

Body

{
  "links": {
    "6a6dd5c0-af73-4c2f-aec7-edfcf6b37628": {
      "id": 1402,
      "slug": "de",
      "name": "de",
      "is_folder": true,
      "parent_id": 0,
      "published": false,
      "position": -3000,
      "uuid": "6a6dd5c0-af73-4c2f-aec7-edfcf6b37628",
      "is_startpage": false
    },
    "f4521757-55ad-4eab-94e7-cbaacddee6b4": {
      "id": 1403,
      "slug": "de/home1",
      "name": "Home1",
      "is_folder": false,
      "parent_id": 1402,
      "published": false,
      "position": 0,
      "uuid": "f4521757-55ad-4eab-94e7-cbaacddee6b4",
      "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=ZUZJ32l20age9rNkZG4eSQtt

cURL

curl "https://api.storyblok.com/v1/cdn/links/a311356f-40fd-407c-b43e-10b0d6cc7ef6?token=ZUZJ32l20age9rNkZG4eSQtt" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Body

{
  "link": {
    "id": 1408,
    "slug": "test",
    "name": "Test",
    "is_folder": false,
    "parent_id": 0,
    "published": true,
    "position": -3020,
    "uuid": "a311356f-40fd-407c-b43e-10b0d6cc7ef6",
    "is_startpage": false
  }
}

Documentation