{ "opencollection": "1.0.0", "info": { "name": "Storyblok Content Delivery API v2 Assets API", "version": "2" }, "request": { "auth": { "type": "apikey", "key": "token", "value": "{{token}}", "placement": "query" } }, "items": [ { "info": { "name": "Assets", "type": "folder" }, "items": [ { "info": { "name": "List assets in a space", "type": "http" }, "http": { "method": "GET", "url": "https://api.storyblok.com/v2/cdn/spaces/:space_id/assets", "params": [ { "name": "space_id", "value": "12345", "type": "path", "description": "Numeric ID of the Storyblok space." }, { "name": "page", "value": "", "type": "query", "description": "Page number for paginated results, starting at 1." }, { "name": "per_page", "value": "", "type": "query", "description": "Number of results per page. Maximum 100." }, { "name": "in_folder", "value": "", "type": "query", "description": "Filter assets within a specific asset folder ID." }, { "name": "search", "value": "", "type": "query", "description": "Filter assets by filename using a partial text match." }, { "name": "content_type", "value": "", "type": "query", "description": "Filter assets by MIME type, such as image/jpeg or application/pdf." } ] }, "docs": "Returns a paginated list of assets in the space. Assets can be filtered by content type, folder, and filename search. The response includes the asset URL and metadata." }, { "info": { "name": "Sign an asset upload", "type": "http" }, "http": { "method": "POST", "url": "https://api.storyblok.com/v2/cdn/spaces/:space_id/assets", "params": [ { "name": "space_id", "value": "12345", "type": "path", "description": "Numeric ID of the Storyblok space." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Initiates the asset upload process by requesting a signed upload URL from Storyblok's asset CDN. After receiving the signed URL and form fields, upload the file directly to the CDN using a multipart POST request, then call the asset finalization endpoint." }, { "info": { "name": "Retrieve a single asset", "type": "http" }, "http": { "method": "GET", "url": "https://api.storyblok.com/v2/cdn/spaces/:space_id/assets/:asset_id", "params": [ { "name": "space_id", "value": "12345", "type": "path", "description": "Numeric ID of the Storyblok space." }, { "name": "asset_id", "value": "22222", "type": "path", "description": "Numeric ID of the asset." } ] }, "docs": "Returns the full metadata for a single asset by its numeric ID, including its CDN URL, dimensions, content type, and associated tags." }, { "info": { "name": "Delete an asset", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.storyblok.com/v2/cdn/spaces/:space_id/assets/:asset_id", "params": [ { "name": "space_id", "value": "12345", "type": "path", "description": "Numeric ID of the Storyblok space." }, { "name": "asset_id", "value": "22222", "type": "path", "description": "Numeric ID of the asset." } ] }, "docs": "Permanently deletes an asset from the space's asset library and removes it from the CDN. This action cannot be undone. Stories referencing this asset will display broken media after deletion." } ] } ], "bundled": true }