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": {
    "a6ed284f-f592-4be2-ab57-7222df4f3f26": {
      "id": 1877,
      "slug": "home2",
      "name": "Home2",
      "is_folder": false,
      "parent_id": 0,
      "published": true,
      "position": -370,
      "uuid": "a6ed284f-f592-4be2-ab57-7222df4f3f26",
      "is_startpage": false
    },
    "53bd1ca0-b85b-4730-8dd6-8420a09b5a78": {
      "id": 1875,
      "slug": "de",
      "name": "de",
      "is_folder": true,
      "parent_id": 0,
      "published": false,
      "position": -360,
      "uuid": "53bd1ca0-b85b-4730-8dd6-8420a09b5a78",
      "is_startpage": false
    },
    "7d0d6d94-1c97-4ce9-b665-db38e678d8c2": {
      "id": 1876,
      "slug": "de/home1",
      "name": "Home1",
      "is_folder": false,
      "parent_id": 1875,
      "published": false,
      "position": 0,
      "uuid": "7d0d6d94-1c97-4ce9-b665-db38e678d8c2",
      "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": {
    "8c0a96a8-d458-4085-a6cf-3c2bf90559af": {
      "id": 1878,
      "slug": "de",
      "name": "de",
      "is_folder": true,
      "parent_id": 0,
      "published": false,
      "position": -360,
      "uuid": "8c0a96a8-d458-4085-a6cf-3c2bf90559af",
      "is_startpage": false
    },
    "9ecab8dc-a80e-47b8-a242-ba4f47459f50": {
      "id": 1879,
      "slug": "de/home1",
      "name": "Home1",
      "is_folder": false,
      "parent_id": 1878,
      "published": false,
      "position": 0,
      "uuid": "9ecab8dc-a80e-47b8-a242-ba4f47459f50",
      "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/58da65f9-9e5d-4720-b95c-0254159c490e?token=wANpEQEsMYGOwLxwXQ76Ggtt" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"

Response

Body

{
  "link": {
    "id": 1884,
    "slug": "test",
    "name": "Test",
    "is_folder": false,
    "parent_id": 0,
    "published": true,
    "position": -380,
    "uuid": "58da65f9-9e5d-4720-b95c-0254159c490e",
    "is_startpage": false
  }
}

Documentation