Spaces

This endpoint is mostly useful for client side apps. The response contains space.version which you can use to call the story api and get the most recent published version.

As Storyblok uses a CDN in front of the API to deliver the response in the fastest way possible, you need to append the cv parameter to the story api.

Workflow

  1. First you call /v1/cdn/spaces/me to get the space.version attribute
  2. After that you append this space.version to all your subsequent calls to the endpoint /v1/cdn/stories

Get current space

Endpoint

GET /v1/cdn/spaces/me

Parameters

Name Description
token required Public token

Request

Query Parameters

token=z5QX0Qj8zdybmJ5qW81Iogtt

cURL

curl "https://api.storyblok.com/v1/cdn/spaces/me?token=z5QX0Qj8zdybmJ5qW81Iogtt" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Body

{
  "space": {
    "name": "Space A",
    "domain": "http://example.storyblok.com/",
    "version": 1511300839
  }
}

Documentation