Retrieve an asset specified by its assetPath
Details
This endpoint returns the asset itself or an image thumbnail representing the asset. It is always important to set the Content-Type
and Content-Length
headers.
The Content-Length
header should be the number of bytes of the asset.
The body of the result should be the octet stream of the binary data for the specified asset.
The Content-Type header should be appropriate for the type of asset being returned. The Content-Type
s supported are:
Asset Type | Asset Format | MIME Type | |
---|---|---|---|
Audio | MOD | audio/x-mod | |
Image | JPEG | image/jpeg | |
Image | PNG | image/png | |
Video | 3G2 | video/3gpp2 | |
Video | 3GP | video/3gpp | |
Video | 3GPP | video/3gpp | |
Video | ASF | video/x-ms-asf | |
Video | AVI | video/x-msvideo | |
Video | DAT | DAT files can be of any video format. The underlying format should be used. | |
Video | DIVX | video/divx | |
Video | DV | video/x-dv | |
Video | F4V | video/x-f4v | |
Video | FLV | video/x-flv | |
Video | M2TS | video/mp2t | |
Video | M4V | video/x-m4v | |
Video | MKV | video/webm | |
Video | MOV | video/quicktime | |
Video | MP4 | video/mp4 | |
Video | MPE | video/mpeg4-generic | |
Video | MPEG MPEG4 | video/mpeg4-generic | |
Video | MPG | video/mpeg4-generic | |
Video | MTS | video/mts | |
Video | NSV | video/x-nsv | |
Video | OGM | video/ogg | |
Video | OGV | video/ogg | |
Video | QT | video/quicktime | |
Video | TOD | video/x-tod | |
Video | TS | video/MP2T | |
Video | VOB | video/x-ms-vob | |
Video | WMV | video/x-ms-wmv |
thumbnail Query Parameter
When true, a thumbnail of the asset should be returned. Recommended values:
- When the asset is an image, this should be a smaller version of the image
- When a non-imagable format, it should be an icon of the format type.
Implementors can choose to ignore this flag, but it will degrade the user’s experience while searching for an asset. Spredfast will also halt the tranfer of thumbnails if they do not transfer within a reasonable amount of time.
Responses and Response Schema
200 (Success)
The asset itself.
400 (Generic Error)
Field Name | Type | Description |
---|---|---|
error* | string Example: ASSET_NOT_FOUND | Name of the error or code. This should be a short string or number which will make sense to the middleware or connected DAM. |
message* | string Example: The asset does not exist, please select another asset. | The message that will be relayed to the user in Khoros Marketing. This should be a human-understandable description of what happened and ideally what steps the user can take next. |
401 (Authentication Failure)
Authentication method is invalid or has become de-authenticated.
401 (Not Found)
Specified resource path was not found or does not exist.
500 (Unexpected Error)
Field Name | Type | Description |
---|---|---|
error* | string Example: ASSET_NOT_FOUND | Name of the error or code. This should be a short string or number which will make sense to the middleware or connected DAM. |
message* | string Example: The asset does not exist, please select another asset. | The message that will be relayed to the user in Khoros Marketing. This should be a human-understandable description of what happened and ideally what steps the user can take next. |