{
  "opencollection": "1.0.0",
  "info": {
    "name": "Storyblok Content Delivery API v2",
    "version": "2"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "token",
      "value": "{{token}}",
      "placement": "query"
    }
  },
  "items": [
    {
      "info": {
        "name": "Stories",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List multiple stories",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.storyblok.com/v2/cdn/stories",
            "params": [
              {
                "name": "token",
                "value": "your-public-token",
                "type": "query",
                "description": "The API access token for the space. Use the public token to access published content or the preview token to access draft content."
              },
              {
                "name": "version",
                "value": "",
                "type": "query",
                "description": "Content version to retrieve. Use published to get published content (default) or draft to get the latest saved draft. The draft version requires the preview API token."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number for paginated results. Starts at 1. Requesting a page higher than the last available page returns an empty array."
              },
              {
                "name": "per_page",
                "value": "",
                "type": "query",
                "description": "Number of items to return per page. Maximum is 100 for most endpoints."
              },
              {
                "name": "starts_with",
                "value": "blog/",
                "type": "query",
                "description": "Filter stories by full_slug prefix. Only stories whose full_slug starts with the given value are returned. Useful for fetching content within a specific folder."
              },
              {
                "name": "by_slugs",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of full_slug values to retrieve specific stories by their slugs."
              },
              {
                "name": "excluding_slugs",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of full_slug values to exclude from the results."
              },
              {
                "name": "with_tag",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of tag slugs to filter stories by. Multiple tags are treated as an OR condition."
              },
              {
                "name": "is_startpage",
                "value": "",
                "type": "query",
                "description": "Set to 1 to only return folder start pages. Set to 0 to exclude them. Omit to return all stories."
              },
              {
                "name": "sort_by",
                "value": "published_at:desc",
                "type": "query",
                "description": "Sort the response by a specific field and direction. Supports all default story fields and custom fields defined in the component schema. Format: field:asc or field:desc."
              },
              {
                "name": "search_term",
                "value": "",
                "type": "query",
                "description": "Full-text search term to filter stories whose content fields contain the given string."
              },
              {
                "name": "resolve_relations",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of component.field paths to resolve referenced story relations inline in the response."
              },
              {
                "name": "resolve_links",
                "value": "",
                "type": "query",
                "description": "Set to story to resolve story link fields. Set to url to resolve to the story URL string."
              },
              {
                "name": "language",
                "value": "en",
                "type": "query",
                "description": "ISO language code to return the story content in the specified language. Falls back to the default language if the translation is unavailable."
              },
              {
                "name": "fallback_lang",
                "value": "",
                "type": "query",
                "description": "Fallback language code used when the requested language translation is not available."
              },
              {
                "name": "filter_query",
                "value": "",
                "type": "query",
                "description": "Object to filter stories by custom field values using operators such as in, not_in, like, gt-int, lt-int. Keys are field paths relative to the story content object."
              },
              {
                "name": "by_uuids",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of story UUIDs to retrieve specific stories by their unique identifiers."
              },
              {
                "name": "excluding_ids",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of story IDs to exclude from the results."
              },
              {
                "name": "cv",
                "value": "",
                "type": "query",
                "description": "Cache version timestamp. Pass the current Unix timestamp to bypass CDN caching and retrieve the latest content."
              }
            ]
          },
          "docs": "Returns a paginated list of published stories from the space. Stories can be filtered by slug, tag, component type, and custom fields. The response includes the story content along with metadata such as publication dates and alternate language versions. Pagination is controlled via the page and per_page query parameters."
        },
        {
          "info": {
            "name": "Retrieve a single story by slug",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.storyblok.com/v2/cdn/stories/:slug",
            "params": [
              {
                "name": "slug",
                "value": "blog/my-first-post",
                "type": "path",
                "description": "The full_slug of the story, which is the path within the space such as home or blog/my-post."
              },
              {
                "name": "token",
                "value": "your-public-token",
                "type": "query",
                "description": "The API access token for the space. Use the public token to access published content or the preview token to access draft content."
              },
              {
                "name": "version",
                "value": "",
                "type": "query",
                "description": "Content version to retrieve. Use published to get published content (default) or draft to get the latest saved draft. The draft version requires the preview API token."
              },
              {
                "name": "resolve_relations",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of component.field paths to resolve referenced story relations inline in the response."
              },
              {
                "name": "resolve_links",
                "value": "",
                "type": "query",
                "description": "Set to story to resolve story link fields. Set to url to resolve to the story URL string."
              },
              {
                "name": "language",
                "value": "",
                "type": "query",
                "description": "ISO language code to return the story content in the specified language."
              },
              {
                "name": "cv",
                "value": "",
                "type": "query",
                "description": "Cache version timestamp to bypass CDN caching."
              }
            ]
          },
          "docs": "Returns a single published story identified by its full_slug. The slug is the path of the story within the space, such as home or blog/my-post. The response includes the full story content, metadata, and optionally resolved relations and links."
        },
        {
          "info": {
            "name": "Retrieve a single story by ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.storyblok.com/v2/cdn/stories/:id",
            "params": [
              {
                "name": "id",
                "value": "123456",
                "type": "path",
                "description": "The numeric ID of the story."
              },
              {
                "name": "token",
                "value": "your-public-token",
                "type": "query",
                "description": "The API access token for the space. Use the public token to access published content or the preview token to access draft content."
              },
              {
                "name": "version",
                "value": "",
                "type": "query",
                "description": "Content version to retrieve. Use published to get published content (default) or draft to get the latest saved draft. The draft version requires the preview API token."
              },
              {
                "name": "language",
                "value": "",
                "type": "query",
                "description": "ISO language code to return the story content in."
              },
              {
                "name": "cv",
                "value": "",
                "type": "query",
                "description": "Cache version timestamp to bypass CDN caching."
              }
            ]
          },
          "docs": "Returns a single published story identified by its numeric ID. This endpoint is useful when you have a story ID from a relation field and need to retrieve the full story object."
        }
      ]
    },
    {
      "info": {
        "name": "Datasources",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List all datasources",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.storyblok.com/v2/cdn/datasources",
            "params": [
              {
                "name": "token",
                "value": "your-public-token",
                "type": "query",
                "description": "The API access token for the space. Use the public token to access published content or the preview token to access draft content."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number for paginated results. Starts at 1. Requesting a page higher than the last available page returns an empty array."
              },
              {
                "name": "per_page",
                "value": "",
                "type": "query",
                "description": "Number of items to return per page. Maximum is 100 for most endpoints."
              },
              {
                "name": "search",
                "value": "",
                "type": "query",
                "description": "Filter datasources by name using a partial text match."
              }
            ]
          },
          "docs": "Returns a list of all datasources defined in the space. Datasources are reusable collections of key-value pairs used for options lists, translations, and configuration. Use this endpoint to discover available datasources before fetching their entries."
        },
        {
          "info": {
            "name": "List datasource entries",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.storyblok.com/v2/cdn/datasource_entries",
            "params": [
              {
                "name": "token",
                "value": "your-public-token",
                "type": "query",
                "description": "The API access token for the space. Use the public token to access published content or the preview token to access draft content."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number for paginated results. Starts at 1. Requesting a page higher than the last available page returns an empty array."
              },
              {
                "name": "per_page",
                "value": "",
                "type": "query",
                "description": "Number of items to return per page. Maximum is 100 for most endpoints."
              },
              {
                "name": "datasource",
                "value": "colors",
                "type": "query",
                "description": "The slug of the datasource to retrieve entries from."
              },
              {
                "name": "datasource_id",
                "value": "",
                "type": "query",
                "description": "The numeric ID of the datasource to retrieve entries from."
              },
              {
                "name": "dimension",
                "value": "",
                "type": "query",
                "description": "Dimension slug to retrieve dimension-specific values alongside the default values."
              },
              {
                "name": "cv",
                "value": "",
                "type": "query",
                "description": "Cache version timestamp to bypass CDN caching."
              }
            ]
          },
          "docs": "Returns the key-value entries for a specific datasource. Optionally filter by dimension to retrieve locale-specific or variant values. Results are paginated and can be filtered by datasource slug or ID."
        }
      ]
    },
    {
      "info": {
        "name": "Links",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List all links",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.storyblok.com/v2/cdn/links",
            "params": [
              {
                "name": "token",
                "value": "your-public-token",
                "type": "query",
                "description": "The API access token for the space. Use the public token to access published content or the preview token to access draft content."
              },
              {
                "name": "version",
                "value": "",
                "type": "query",
                "description": "Content version to retrieve. Use published to get published content (default) or draft to get the latest saved draft. The draft version requires the preview API token."
              },
              {
                "name": "starts_with",
                "value": "",
                "type": "query",
                "description": "Filter links by full_slug prefix to return only links in a specific folder."
              },
              {
                "name": "paginated",
                "value": "",
                "type": "query",
                "description": "Set to 1 to enable pagination on the links response. When enabled, use page and per_page parameters to control the result set."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number for paginated results. Starts at 1. Requesting a page higher than the last available page returns an empty array."
              },
              {
                "name": "per_page",
                "value": "",
                "type": "query",
                "description": "Number of items to return per page. Maximum is 100 for most endpoints."
              },
              {
                "name": "including_dates",
                "value": "",
                "type": "query",
                "description": "Set to 1 to include published_at, created_at, and updated_at timestamps in each link entry."
              },
              {
                "name": "cv",
                "value": "",
                "type": "query",
                "description": "Cache version timestamp to bypass CDN caching."
              }
            ]
          },
          "docs": "Returns a flat or tree-structured map of all story URLs in the space. This endpoint is commonly used to generate navigation menus, breadcrumbs, and sitemaps. The response is keyed by story UUID and each entry contains the slug, name, and parent information."
        }
      ]
    },
    {
      "info": {
        "name": "Default",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List all tags",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.storyblok.com/v2/cdn/tags",
            "params": [
              {
                "name": "token",
                "value": "your-public-token",
                "type": "query",
                "description": "The API access token for the space. Use the public token to access published content or the preview token to access draft content."
              },
              {
                "name": "starts_with",
                "value": "",
                "type": "query",
                "description": "Filter tags by prefix. Only tags whose name starts with the given value are returned."
              },
              {
                "name": "cv",
                "value": "",
                "type": "query",
                "description": "Cache version timestamp to bypass CDN caching."
              }
            ]
          },
          "docs": "Returns a list of all tags used in published stories within the space. Tags can be used to filter stories by calling the stories endpoint with the with_tag parameter."
        }
      ]
    }
  ],
  "bundled": true
}