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": {
    "2475b0a6-c161-4b82-b19f-95302d595750": {
      "id": 210,
      "slug": "home2",
      "name": "Home2",
      "is_folder": false,
      "parent_id": 0,
      "published": true,
      "position": -10,
      "uuid": "2475b0a6-c161-4b82-b19f-95302d595750",
      "is_startpage": false
    },
    "e5248136-4d2f-4884-8a01-ce704ca46cef": {
      "id": 209,
      "slug": "de/home1",
      "name": "Home1",
      "is_folder": false,
      "parent_id": 208,
      "published": false,
      "position": 0,
      "uuid": "e5248136-4d2f-4884-8a01-ce704ca46cef",
      "is_startpage": false
    },
    "43db71fb-08c1-4964-8d2b-e7a0bfae419a": {
      "id": 208,
      "slug": "de",
      "name": "de",
      "is_folder": true,
      "parent_id": 0,
      "published": false,
      "position": 0,
      "uuid": "43db71fb-08c1-4964-8d2b-e7a0bfae419a",
      "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": {
    "c353dfd5-3435-470d-826c-47e40eb2b0ad": {
      "id": 212,
      "slug": "de/home1",
      "name": "Home1",
      "is_folder": false,
      "parent_id": 211,
      "published": false,
      "position": 0,
      "uuid": "c353dfd5-3435-470d-826c-47e40eb2b0ad",
      "is_startpage": false
    },
    "24fb97ab-32fe-4277-bc38-c297f773218b": {
      "id": 211,
      "slug": "de",
      "name": "de",
      "is_folder": true,
      "parent_id": 0,
      "published": false,
      "position": 0,
      "uuid": "24fb97ab-32fe-4277-bc38-c297f773218b",
      "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/148ee49a-ad81-4aff-b3d5-a2b4b6739e65?token=wANpEQEsMYGOwLxwXQ76Ggtt" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"

Response

Body

{
  "link": {
    "id": 217,
    "slug": "test",
    "name": "Test",
    "is_folder": false,
    "parent_id": 0,
    "published": true,
    "position": -20,
    "uuid": "148ee49a-ad81-4aff-b3d5-a2b4b6739e65",
    "is_startpage": false
  }
}

Documentation