Get Signed URL
Retrieve the signed URL for a private asset to access it. Learn more about private assets in the Assets concept.
https://api.storyblok.com/v2/cdn/assets/meQuery parameters
Section titled “Query parameters”- token required string
An asset token configured in the space
- filename required string
Complete URL of the asset
Response properties
Section titled “Response properties”- asset object
asset object received in the response of a get signed URL request.
Show asset object child properties
- alt string
Alt text for the asset (default language)
- asset_folder_id number
ID of the folder containing this asset
- content_length number
The content length in bytes
- content_type string
The content type (e.g., image/png)
- copyright string
Copyright text for the asset (default language)
- created_at string
Creation date (Format: yyyy-MM-dd’T’HH:mm:ssZ)
- expire_at string
Date when the asset should expire (Format: yyyy-MM-dd’T’HH:mm:ssZ)
- filename string
Full path of the asset, including the file name
- focus string
The focus point of the image (only for image assets)
- is_private boolean
Defines if the asset should be inaccessible to the public
- signed_url string
The signed URL for the asset
- title string
Title of the asset
-
Examples
Section titled “Examples”curl "https://api.storyblok.com/v2/cdn/assets/me?token=cNGPp8cvuCfoAZB3g3eHrAtt&filename=https%3A%2F%2Fa.storyblok.com%2Ff%2F44203%2Fx%2F5231aa9c8a%2Ffavicon.ico"// Using the Universal JavaScript Client:// https://github.com/storyblok/storyblok-js-clientStoryblok.get('cdn/assets/me', { "filename": "https://a.storyblok.com/f/44203/x/5231aa9c8a/favicon.ico"}) .then(response => { console.log(response) }).catch(error => { console.log(error) })$client = new \Storyblok\Client('YOUR_STORYBLOK_SPACE_ACCESS_TOKEN');
$client->get('assets/me', [ "filename" => "https =>//a.storyblok.com/f/44203/x/5231aa9c8a/favicon.ico"])->getBody();HttpResponse<String> response = Unirest.get("https://api.storyblok.com/v2/cdn/assets/me?token=cNGPp8cvuCfoAZB3g3eHrAtt&filename=https%3A%2F%2Fa.storyblok.com%2Ff%2F44203%2Fx%2F5231aa9c8a%2Ffavicon.ico") .asString();var client = new RestClient("https://api.storyblok.com/v2/cdn/assets/me?token=cNGPp8cvuCfoAZB3g3eHrAtt&filename=https%3A%2F%2Fa.storyblok.com%2Ff%2F44203%2Fx%2F5231aa9c8a%2Ffavicon.ico");var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);import requests
url = "https://api.storyblok.com/v2/cdn/assets/me"
querystring = {"token":"cNGPp8cvuCfoAZB3g3eHrAtt","filename":"https://a.storyblok.com/f/44203/x/5231aa9c8a/favicon.ico"}
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.get('assets/me', {:params => { "filename" => "https =>//a.storyblok.com/f/44203/x/5231aa9c8a/favicon.ico"}})let (data, _) = try await URLSession.shared.data(from: URL(string: "https://api.storyblok.com/v2/cdn/assets/me?token=cNGPp8cvuCfoAZB3g3eHrAtt&filename=https%3A%2F%2Fa.storyblok.com%2Ff%2F44203%2Fx%2F5231aa9c8a%2Ffavicon.ico")!)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", "cNGPp8cvuCfoAZB3g3eHrAtt") } }}
val response = client.get("assets/me") { url { parameters.append("filename", "https://a.storyblok.com/f/44203/x/5231aa9c8a/favicon.ico") }}
println(response.body<JsonElement>())Get in touch with the Storyblok community