Download a not-yet-published blob's bytes
const url = 'https://api.ebitex.io/content/delivery/v1/preview/blobs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.ebitex.io/content/delivery/v1/preview/blobs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>'Streams a draft blob’s bytes with its stored content type. This is the URL a resolved document’s media field carries when its blob has no public URL yet (not yet published) — put it straight in <img src>, the same as the field’s ordinary public URL. Never construct this URL yourself; t is a signed, self-verifying token minted only while resolving a document for preview, and expires 30 minutes after that.
Needs no Authorization header, cookie, or API key — the token is the whole credential, since this URL is meant to work in a plain browser image request on a different origin from the Content Delivery API.
Key: none — t is the credential.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “ Responses ”OK
missing_api_key or invalid_api_key: no key was sent, or it is unknown, revoked or expired.
scope_denied: the key lacks this route’s scope. origin_denied or ip_denied: a browser-safe key was used from an origin or address outside its restrictions. app_not_available: Content is not enabled for the organization.
The token is missing, malformed, expired, or names a blob that no longer exists.
Quota exceeded; Retry-After says how long to wait. too_many_failed_authentications: too many bad keys from this address.