Retrieve Current Space
Returns the space object for the space associated with the provided access token.
GET
https://api.storyblok.com/v2/cdn/spaces/meQuery parameters
Section titled “Query parameters”- token required string
A preview or public access token
Response properties
Section titled “Response properties”- space object
The complete space object
Examples
Section titled “Examples”curl "https://api.storyblok.com/v2/cdn/spaces/me\?token=ask9soUkv02QqbZgmZdeDAtt"// Using the Universal JavaScript Client:// https://github.com/storyblok/storyblok-js-clientStoryblok.get('cdn/spaces/me', {}) .then(response => { console.log(response) }).catch(error => { console.log(error) })$client = new \Storyblok\Client('YOUR_STORYBLOK_SPACE_ACCESS_TOKEN');
$client->get('spaces/me')->getBody();HttpResponse<String> response = Unirest.get("https://api.storyblok.com/v2/cdn/spaces/me?token=ask9soUkv02QqbZgmZdeDAtt") .asString();var client = new RestClient("https://api.storyblok.com/v2/cdn/spaces/me?token=ask9soUkv02QqbZgmZdeDAtt");var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);import requests
url = "https://api.storyblok.com/v2/cdn/spaces/me"
querystring = {"token":"ask9soUkv02QqbZgmZdeDAtt"}
payload = ""headers = {}
response = requests.request("GET", url, data=payload, headers=headers, params=querystring)
print(response.text)require 'storyblok'client = Storyblok::Client.new(token: 'YOUR_TOKEN')
client.space()let (data, _) = try await URLSession.shared.data(from: URL(string: "https://api.storyblok.com/v2/cdn/spaces/me?token=ask9soUkv02QqbZgmZdeDAtt")!)print(try JSONSerialization.jsonObject(with: data))val client = HttpClient { install(ContentNegotiation) { json() } install(DefaultRequest) { url { takeFrom("https://api.storyblok.com/v2/cdn/") parameters.append("token", "ask9soUkv02QqbZgmZdeDAtt") } }}
val response = client.get("spaces/me")
println(response.body<JsonElement>()){ "space": { "id": 123456, "name": "Storyblok", "domain": "https://www.storyblok.com/", "version": 1544117388, "language_codes": ["de", "es"] }}
Thanks! We received your feedback.
An error occurred. Please try again.
Was this page helpful?
This site uses reCAPTCHA and Google's Privacy Policy. Terms of Service apply.
Get in touch with the Storyblok community