General
You can use the Assets Library API to access and manage assets uploaded to an account's Assets Library. The assets are organized in a folder structure resembling a file system. When configuring an API file transfer from a digital asset management (DAM) provider, it's recommended that you group all files within a dedicated folder for that vendor.
Each asset in the library is assigned a unique key. This key serves as the path file that includes the file name, similar to a typical file system path.
Note: Every asset has a publicly-accessible, CDN-cached URL. This URL is designed for use in ads, and it continues to represent the asset after any modifications, such as resizing or transcoding.
API Methods
Make sure to properly authenticate when making API calls. For information on authenticating through the Clinch API, see API Authentication.
- PutAsset
- PutAssetJSON
- DeleteAsset
- PutAssetMetadata
- GetAssetMetadata
- PutFolder
- DeleteFolder
- GetSubFoldersList
- GetAssetList
- CopyAsset
- MoveAsset
- DeleteMultipleAssets
PutAsset
| Path | PUT https://publicapi.clinch.co/{AccountId}/Assets/Asset |
| Inputs |
Required
Optional
|
| Outputs |
|
| Notes |
|
| Example |
Example request for account ID 12345, and a file named "product.jpg": POST /12345/Assets/Asset HTTP/1.1 |
PutAssetJSON
| Path | PUT https://publicapi.clinch.co/{AccountId}/Assets/AssetJSON |
| Inputs |
Required:
Optional fields:
|
| Outputs |
|
| Notes |
|
| Example |
JSON body: {
|
DeleteAsset
| Path | DELETE https://publicapi.clinch.co/{AccountId}/Assets/Asset |
| Inputs |
Required
|
| Outputs |
|
PutAssetMetadata
| Path | PUT https://publicapi.clinch.co/{AccountId}/Assets/Asset/AssetMetadata |
| Inputs |
Required
{
|
| Outputs |
|
GetAssetMetadata
| Path | GET https://publicapi.clinch.co/{AccountId}/Assets/Asset/AssetMetadata |
| Inputs |
Required
|
| Outputs |
{
|
PutFolder
| Path | PUT https://publicapi.clinch.co/{AccountId}/Assets/Folder |
| Inputs |
Required
|
| Outputs |
|
| Notes | If the folder already exists, a 400 code will be returned with the respective error. |
DeleteFolder
| Path | DELETE https://publicapi.clinch.co/{AccountId}/Assets/Folder |
| Inputs |
Required
Optional
|
| Outputs |
|
| Notes |
By default, will also delete all the assets in the folder (including subfolders).
If a folder doesn’t exist, a 400 error will be returned. |
GetSubFoldersList
| Path | GET https://publicapi.clinch.co/{AccountId}/Assets/Subfolders |
| Inputs |
Required
|
| Outputs |
{
|
| Notes |
|
GetAssetList
| Path | GET https://publicapi.clinch.co/{AccountId}/Assets/AssetList |
| Inputs |
Required
Optional
|
| Outputs |
{
|
| Notes |
|
CopyAsset
| Path | POST https://publicapi.clinch.co/{AccountId}/Assets/CopyAsset |
| Inputs |
Required
{
Optional
|
| Outputs |
|
| Notes |
|
MoveAsset
| Path | POST https://publicapi.clinch.co/{AccountId}/Assets/MoveAssets |
| Inputs |
Required
{
Optional
|
| Outputs |
|
| Notes | The MoveAsset method is equal to using the CopyAsset method, and then the DeleteAsset method. |
DeleteMultipleAssets
| Path | DELETE https://publicapi.clinch.co/{AccountId}/Assets/MultipleAssets |
| Inputs |
Required
{
|
| Outputs |
{
|