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": {
    "06c08022-219c-4825-a066-664a1fa58cd8": {
      "id": 1488,
      "slug": "home2",
      "name": "Home2",
      "is_folder": false,
      "parent_id": 0,
      "published": true,
      "position": -10,
      "uuid": "06c08022-219c-4825-a066-664a1fa58cd8",
      "is_startpage": false
    },
    "b2fd29bf-54f2-4b01-8436-75e50cc8eac0": {
      "id": 1487,
      "slug": "de/home1",
      "name": "Home1",
      "is_folder": false,
      "parent_id": 1486,
      "published": false,
      "position": 0,
      "uuid": "b2fd29bf-54f2-4b01-8436-75e50cc8eac0",
      "is_startpage": false
    },
    "476a71f9-ce15-4293-87db-81aeff8902a4": {
      "id": 1486,
      "slug": "de",
      "name": "de",
      "is_folder": true,
      "parent_id": 0,
      "published": false,
      "position": 0,
      "uuid": "476a71f9-ce15-4293-87db-81aeff8902a4",
      "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": {
    "3669e99a-e417-42b7-b3b7-6838e9f2de1a": {
      "id": 1490,
      "slug": "de/home1",
      "name": "Home1",
      "is_folder": false,
      "parent_id": 1489,
      "published": false,
      "position": 0,
      "uuid": "3669e99a-e417-42b7-b3b7-6838e9f2de1a",
      "is_startpage": false
    },
    "3d2405dd-c0ff-4ef0-a7af-158e9b53d41f": {
      "id": 1489,
      "slug": "de",
      "name": "de",
      "is_folder": true,
      "parent_id": 0,
      "published": false,
      "position": 0,
      "uuid": "3d2405dd-c0ff-4ef0-a7af-158e9b53d41f",
      "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/5c0ba609-e6d0-4031-b594-02742799c94b?token=wANpEQEsMYGOwLxwXQ76Ggtt" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"

Response

Body

{
  "link": {
    "id": 1495,
    "slug": "test",
    "name": "Test",
    "is_folder": false,
    "parent_id": 0,
    "published": true,
    "position": -20,
    "uuid": "5c0ba609-e6d0-4031-b594-02742799c94b",
    "is_startpage": false
  }
}

Documentation