younifyd
Menu

Get Datasource By Id

Retrieve a Single Data Source

GET/v2/cdn/datasources/{id}

Use it in a workflow

  1. Add a step and choose the Storyblok Delivery connector.
  2. Pick the Get Datasource By Id action (under Data sources).
  3. Fill in the fields below, then reference the result from later steps as {{getDatasourceById.response.data}}.

Request

Path parameters

idstringrequired

The data source’s ID.

Query parameters

versionstring

The content version to retrieve: `draft` or `published`. Default is `published`. Retrieving `draft` requires a preview access token.

One ofdraftpublishedDefault "published"

cvinteger

Cached version Unix timestamp. Learn more in the [Caching concept](https://www.storyblok.com/docs/concepts/caching).

Response

Returns 200 with an object. Read it in later steps with {{getDatasourceById.response.data.<field>}}.

datasourceobject
idintegerrequired

Data source ID.

namestringrequired

Data source name.

slugstringrequired

Data source `slug`.

dimensionsarray<object>required6 fields

An array listing the dimensions defined for the data source.

created_atstring (date-time)

Creation timestamp. Supports ISO 8601.

updated_atstring (date-time)

Latest update timestamp. Supports ISO 8601.

cvinteger

Cached version Unix timestamp. Learn more in the [Caching concept](https://www.storyblok.com/docs/concepts/caching).

json
{
  "datasource": {
    "id": 123,
    "name": "Background Color",
    "slug": "background-color",
    "dimensions": [
      {
        "id": 1,
        "name": "Width",
        "entry_value": "a language code",
        "datasource_id": 1123,
        "created_at": "2025-07-09T14:35:26.851Z",
        "updated_at": "2025-07-09T14:35:26.851Z"
      }
    ],
    "created_at": "2025-07-09T14:35:26.851Z",
    "updated_at": "2025-07-09T14:35:26.851Z"
  },
  "cv": 1541863983
}

Need more? See the Storyblok Delivery guide for connection setup and behaviour shared by every action.