Version 1
Connector Overview: This page documents all 95 actions for the Cantoconnector v1.
API-Endpoints
GET ListallAPIendpoints
/api/v1
Rate Level: 1
View all endpoints as URI templates!
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Assets (24)
POST AddKeywords
/api/v1/keyword
Rate Level: 2
This supports adding a keyword.
BODYPARAMS
|
Parameter |
Description |
|---|---|
|
name |
REQUIRED - Name of the keyword |
|
description |
REQUIRED - Description of the keyword |
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (2)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
POST Addversioncomment
/api/v1/version/comment
Rate Level: 2
Adds a comment to a specific version of an asset.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (4)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
POST AssignContenttoAlbum
/api/v1/batch/album
Rate Level: 4
This API support batch assign contents to an album.
BODYPARAMS
|
Parameter |
Description |
|---|---|
|
scheme |
REQUIRED - "image", "video", "audio", "document", "presentation" or "other" |
|
id |
REQUIRED - Id of the content |
|
displayName |
REQUIRED - Display name of content |
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (1)
|
Option Name |
Description |
|---|---|
|
|
N/A |
PUT Attachkeywordtocontent
/api/v1/{scheme}/{contentId}/keyword/{keyword}
Rate Level: 2
Attach a keyword to content.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
REQUIRED - "image", "video", "audio", "document", "presentation" or "other" (case sensitive) scheme refers to the smart albums within your Canto application. |
|
|
REQUIRED - Id of the content |
|
|
REQUIRED - The plain text of keyword Note: An already attached keyword will result in HTTP status "200 OK". |
|
|
N/A |
PUT Attachtagtocontent
/api/v1/{scheme}/{contentId}/tag/{tag}
Rate Level: 2
Attach a tag to specific content. (A tag is just a plain text.)
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
REQUIRED - "image", "video", "audio", "document", "presentation" or "other" (case sensitive) scheme refers to the smart albums within your Canto application. |
|
|
REQUIRED - Id of the content |
|
|
REQUIRED - The plain text of tag Note: An already attached tag will result in HTTP status "200 OK". |
|
|
N/A |
PUT BatchEditContentApply
/api/v1/batch/edit
Rate Level: 4
Save the information fields of the batch edit content.
Body parameters
|
Parameter |
Description |
|---|---|
|
propertyId |
The field you want to change.
|
|
propertyValue |
Properties value, permit an empty string.
|
|
action |
Permit an empty string.
|
|
customField |
true if the field is a custom field. Otherwise false.
|
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
POST BatchEditContentGet
/api/v1/batch/edit
Rate Level: 2
Get information field values of multiple assets.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (2)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
POST BatchGetContentDetail
/api/v1/batch/content
Batch get content detail information includes- general properties, urls, default & additional fields (custom fields), version history and metadata. Take “detail” url from the array will navigate directly to the asset in Canto.
BODYPARAMS
|
Parameter |
Description |
|---|---|
|
|
The parameter is a json array, each json represent a content, limit: Max 100 contents for one request. |
|
scheme |
REQUIRED - "image", "video", "audio", "document", "presentation" or "other". (case sensitive) |
|
id |
REQUIRED - Id of the content. |
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (2)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
DELETE Batchdeletecontent
/api/v1/batch/content
Rate Level: 4
Batch deletes contents. The contents will move to trash bin.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
DELETE Batchpermanentlydeletecontent
/api/v1/batch/content/permanent
Rate Level: 4
Batch permanently deletes contents from trash bin.
BODYPARAMS
|
Parameter |
Description |
|---|---|
|
portalId |
(optional) If you want to permanently delete content on a portal, please use this value. The value is the portal id. |
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
PUT Batchshareanalbum
/api/v1/share/batch/container
This API support batch share albums only
BODYPARAMS
|
Parameter |
Description |
|---|---|
|
scheme |
REQUIRED - "album". (Folders are not supported, yet) |
|
id |
REQUIRED - Id of the album |
|
expires |
Format: "yyyy-MM-dd"
|
|
hideShareBy |
REQUIRED - "true" or "false"
|
|
allowDownloadOriginal |
REQUIRED - "true" or "false"
|
|
allowCropAndResize |
REQUIRED - "true" or "false"
|
|
allowPresets |
REQUIRED - "true" or "false"
|
|
displayMetadata |
REQUIRED - "true" or "false"
|
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
POST CreateEmbedVideo
/api/v1/segment/video/{contentId}
Rate Level: 4
This API will create a Embed Video script. This API will return immediately. After Embed Video created, you need to run Get content details API to query the embed video url.
Request Headers Content-Type:
application/x-www-form-urlencoded
Response:
if created successfully, then a JSON key "success" value is "true".
if created failed, then a JSON key "success" value is "false", and a "message" key will tell you reason. includes:
"invalid argument", "content no found", "exceed", "no-permission".
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
REQUIRED - The id of the content |
|
|
N/A |
|
|
N/A |
Options (5)
|
Option Name |
Description |
|---|---|
|
|
REQUIRED - The format of Embed Video. valid values: "hls" or "dash" |
|
|
Defines whether the output video size is responsive or fixed resolution in the embed script. true - output video resolution is fixed.
default: false |
|
|
if isFixed == true if specified, then the output video width will be it.
if isFixed == false. the this parmeter is ignored |
|
|
if isFixed == true
|
|
|
if this value is specified and the original video has a caption, the output embed video use that caption.
|
POST CreateRelatedContent
/api/v1/related
Rate Level: 4
This request creates relations on assets. You can relate multiple assets with each other. An asset can be a "primary" in a relation. You can mark multiple assets "primary" if you create relations.
BODYPARAMS
Parameter
Description
relatedName
The Label of related content.
relatedContents
Limit: Max 1000 contents for one request.
scheme
REQUIRED - "image", "video", "audio", "document", "presentation" or "other". (case sensitive)
id
REQUIRED - Id of the content.
primary
true or false.
Identifies whether it is a primary asset in the related asset.
Note:You can define multiple primary assets
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (1)
|
Option Name |
Description |
|---|---|
|
|
N/A |
PUT CreateShareLinks
/api/v1/share/batch
Rate Level: 2
This supports batch sharing of contentsss
BODYPARAMS
|
Parameter |
Description |
|---|---|
|
scheme |
"image", "video", "audio", "document", "presentation" or "other" |
|
id |
The id of the content |
|
expires |
If null, never expired. |
|
hideShareBy |
If true, the shared by user will be hidden |
|
allowDownloadOriginal |
If true, downloading Original file is available. If false, image can be downloaded as converted content. |
|
allowCropAndResize |
If true, the download page will show crop and resize options. |
|
allowPresets |
If true, can be downloaded as a preset. |
|
displayMetadata |
If true, user can view metadata. |
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
GET Getcontentdetails
/api/v1/{scheme}/{contentId}
Rate Level: 2
Get content details including general properties, urls, default & additional fields (custom fields), version history and metadata. Use the detail url from url array to get a preview.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
If true a neew json format containing more information about relations is returned. (see examples) Default: false |
|
|
It is optional and defaults to false. If true, disables the metadata section and reading the data out of the s3 bucket. |
|
|
REQUIRED - "image", "video", "audio", "document", "presentation" or "other" |
|
|
REQUIRED - The id of the content |
|
|
N/A |
GET Listthecontentofspecifiedscheme
/api/v1/{scheme}
Rate Level: 4
List the content of the specified scheme, page by page. Only brief content info supplied.
Note:
-
You can use the value "null" (enclosed by two underlines in front and at the end). If you want to search for assets which don't have a value in a field.
-
You can use the value "exists" (enclosed by two underlines in front and at the end). If you want to search for assets which have set any value in a field.
Parameters
|
Parameter Name |
Description |
||||||
|---|---|---|---|---|---|---|---|
|
|
N/A |
||||||
|
|
N/A |
||||||
|
|
N/A |
||||||
|
|
The search term(s)
|
||||||
|
|
If you want to filter by tag
Note: The | character needs to be url encoded with %7C: Example: sunset%7Cdawn |
||||||
|
|
Filter by tag(case-sensitive & whole word only)
|
||||||
|
|
Filter result by keywords.
Note: The + character needs to be url encoded with %2B: Example: home%2Boffice
|
||||||
|
|
Filter by Approval status.
Note: The | character needs to be url encoded with %7C: Example: approved%7Cpending |
||||||
|
|
FIlter by id of an owner.
Note: The | character needs to be url encoded with %7C: Example: support@canto.com%7Cnoreply@canto.com |
||||||
|
|
Filter by file size
|
||||||
|
|
Filter by time the asset was created at canto. |
||||||
|
|
Filter by file creation time. (Value is in Unix timestamp format). |
||||||
|
|
Filter by upload time. (Value is in Unix timestamp format) |
||||||
|
|
Filter by last modified time. (Value is in Unix timestamp format) |
||||||
|
|
Filte by image size.
|
||||||
|
|
Filter by image width in px. Example:
Note: This filter works only on images. |
||||||
|
|
Filter by image height in px. Example:
Note: This filter works only on images. |
||||||
|
|
Filter by resolution in DPI
|
||||||
|
|
"landscape", "portrait" or "square"
Note: The | character needs to be url encoded with %7C: Example: landscape%7Cportrait |
||||||
|
|
Filter by duration.
|
||||||
|
|
Filter by page number.
|
||||||
|
|
"standard" or "freeze" Examples:\
|
||||||
|
|
Filter by a custom field.
|
||||||
|
|
You can search inside the following fields: "filename", "description", "comment", "keywords", "author" and "tags".
|
||||||
|
|
exactMatch: "true" or "false"
|
||||||
|
|
Operator: "and", "or".
|
||||||
|
|
"name", "time", "scheme", "owner" or "size" Default is "time" |
||||||
|
|
“ascending” or “descending” |
||||||
|
|
The offset number of items to be returned. Default: 0. |
||||||
|
|
Maximum number of items to be returned. Default: 100.
|
||||||
|
|
Defines how the parameters "width" and "height" should be combined. Valid values: "or", "and" "or" means the result must have the given width OR height "and" means the result must habe the given width AND height Default: "or" |
||||||
|
|
N/A |
||||||
|
|
N/A |
DELETE RemoveContentsfromAlbum
/api/v1/batch/album
Rate Level: 4
This API support batch remove contents of an album.
BODYPARAMS
|
Parameter |
Description |
|---|---|
|
scheme |
REQUIRED - "image", "video", "audio", "document", "presentation" or "other" |
|
id |
REQUIRED - Id of the content |
|
displayName |
REQUIRED - Display name of content |
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
POST RemoveRelatedContent
/api/v1/{scheme}/{contentId}/unrelated
Rate Level: 4
This request removes related assets from the asset given by path parameters.
BODYPARAMS
|
Parameter |
Description |
|---|---|
|
unRelatedContents |
|
|
id |
REQUIRED - Id of the content. |
|
scheme |
REQUIRED - "image", "video", "audio", "document", "presentation" or "other". (case sensitive) |
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
REQUIRED - "image", "video", "audio", "document", "presentation" or "other". (case sensitive) |
|
|
REQUIRED - Id of the content |
|
|
N/A |
POST RemoveRelatedContentsFromRelatedFiles
/api/v1/unrelated
_Rate Level: 4_
This request removes related assets from the related files.
BODYPARAMS
---
|
Parameter |
Value |
Description |
|---|---|---|
|
relatedContents |
\[{
|
REQUIRED
|
|
relatedFiles |
\["{{relatedId}}"\] |
REQUIRED
|
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (1)
|
Option Name |
Description |
|---|---|
|
|
N/A |
DELETE Removekeywordfromcontent
/api/v1/{scheme}/{contentId}/keyword/{keyword}
Rate Level: 2
Remove a keyword from specified content.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
REQUIRED - "image", "video", "audio", "document", "presentation" or "other". (case sensitive) scheme refers to the smart albums within your Canto application. |
|
|
REQUIRED - Id of the content |
|
|
REQUIRED - The plain text of keyword Note: If the keyword is not attached to the asset, the result will be HTTP status "200 OK". The service will also return "200 OK" if the keyword is not defined on your canto account. |
|
|
N/A |
DELETE Removesmarttagfromcontent
/api/v1/{scheme}/{contentId}/smarttags/{smarttag}
Rate Level: 2
Remove a smart tag from specified content.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
REQUIRED - "image", "video", "audio", "document", "presentation" or "other". (case sensitive) The scheme of your content. |
|
|
REQUIRED - Id of the content |
|
|
REQUIRED - A plain text of smart tag Note: If the smart tag is not attached to the asset, the result will be HTTP status "200 OK". |
|
|
N/A |
DELETE Removetagfromcontent
/api/v1/{scheme}/{contentId}/tag/{tag}
Rate Level: 2
Remove a tag from specify content (a tag is just a plain text).
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
REQUIRED - "image", "video", "audio", "document", "presentation" or "other" (case sensitive) scheme refers to the smart albums within your Canto application. |
|
|
REQUIRED - Id of the content |
|
|
REQUIRED - A plain text of tag Note: If the tag is not attached to the asset, the result will be HTTP status "200 OK". |
|
|
N/A |
PUT Renamecontent
/api/v1/{scheme}/{contentId}/rename
Rate Level: 2
Renames an asset
BODYPARAMS
---
|
Parameter |
Description |
|---|---|
|
name |
REQUIRED - The new name of the asset |
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
REQUIRED - "image", "video", "audio", "document", "presentation" or "other". (case sensitive) |
|
|
REQUIRED - Id of the content |
|
|
N/A |
Options (1)
|
Option Name |
Description |
|---|---|
|
|
N/A |
GET Search/Filter
/api/v1/search
Rate Level: 4
General rules: If the filter field type is string (e.g. Keyword), you can search one value or multi value. Some multiple values can have both Filter conditions OR and AND. While some multiple values can only have one Filter condition: OR.
Note:
-
You can use the value "null" (enclosed by two underlines in front and at the end). If you want to search for assets which don't have a value in a field.
-
You can use the value "exists" (enclosed by two underlines in front and at the end). If you want to search for assets which have set any value in a field.
Example for OR: standard|freeze.
Example for AND: sunset+beach+people
Parameters
|
Parameter Name |
Description |
||||||
|---|---|---|---|---|---|---|---|
|
|
N/A |
||||||
|
|
N/A |
||||||
|
|
N/A |
||||||
|
|
The search term(s) use this, to make a search simply by keyword. This is nearly the same search like you do in Canto UI on right top. One value: sunset\
|
||||||
|
|
"image", "video", "audio", "document", "presentation" or "other". (case sensitive) scheme refers to the smart albums within your Canto application. Examples:\
|
||||||
|
|
If you want to filter by tag Examples:\
Note: The | character needs to be url encoded with %7C: Example: home%7Coffice |
||||||
|
|
Filter by tag(case-sensitive & whole word only)
|
||||||
|
|
Filter result by keywords. Examples:\
Note: This filter searchs by keywords, you can attach on request: Attach keyword to content Note: The + character needs to be url encoded with %2B: Example: sunset%2Bdawn
|
||||||
|
|
Filter by Approval status. Note: This filter only works, if the approval process is enabled. Examples:\
If you select Expired, you cannot select another status.\
Note: The | character needs to be url encoded with %7C: Example: approval%7Cpending |
||||||
|
|
FIlter by id of an owner. Examples:\
Note: The | character needs to be url encoded with %7C: Example: canto-support@canto.com%7Cnoreply@canto.com |
||||||
|
|
Filter by file size Example: 95073..26893954 |
||||||
|
|
Filter by time the asset was created at canto. |
||||||
|
|
Filter by file creation time. (Value is in Unix timestamp format). |
||||||
|
|
Filter by upload time. (Value is in Unix timestamp format) |
||||||
|
|
Filter by expiration time. (Value is in Unix timestamp format (milliseconds))) |
||||||
|
|
Filter by last modified time. (Value is in Unix timestamp format) |
||||||
|
|
Filter by image width in px. Example:
Note: This filter works only on images. |
||||||
|
|
Filter by image height in px. Example:
Note: This filter works only on images. |
||||||
|
|
Defines how the parameters "width" and "height" should be combined. Valid values: "or", "and" "or" means the result must have the given width OR height "and" means the result must habe the given width AND height Default: "or" |
||||||
|
|
Filte by image size. Note: This filter works only on images. |
||||||
|
|
Filter by resolution in DPI Note: This filter works only on images. |
||||||
|
|
"landscape", "portrait" or "square" Note: This filter works only on images. Examples:\
|
||||||
|
|
Filter by duration. Note: This filter works only on video or audio. |
||||||
|
|
Filter by page number. Note: This filter works only on document or presentation. |
||||||
|
|
"standard" or "freeze" Examples:\
|
||||||
|
|
Filter contents has not been reviewed from tenant created to this time Note: supported in main library and workspace. |
||||||
|
|
"name", "time", "scheme", "owner" or "size". Default: "time" |
||||||
|
|
“ascending” or “descending” Default: "descending" |
||||||
|
|
Maximum number of items to be returned. Default: 100
|
||||||
|
|
Offset number of items to be returned. Default: 0 |
||||||
|
|
Filter by a custom field. The name of the parameter needs to be the id of the custom field. (see: Get custom field list) As an example, custom field id would look similar to "meta_text_0". Filter by specified custom field with id.
|
||||||
|
|
You can search inside the following fields: "filename", "description", "comment", "keywords", "author" and "tags". If you input other values, the results will ignore it. |
||||||
|
|
Operator: "and", "or". Default: "and" |
||||||
|
|
exactMatch: "true" or "false" Default: false |
||||||
|
|
Filter by image color.
|
||||||
|
|
Filter by “not” for tagsLiteral and keywords.
|
||||||
|
|
N/A |
Authorization (3)
GET GetCantoAccountName
/api/oauth2/tenant/{refreshToken}
In case you want to know which account you are connecting to
Link description
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
REQUIRED - A valid refresh token. |
|
|
N/A |
POST ObtainAccessToken/RefreshToken
/oauth/api/oauth2/compatible/token
Note: If you use grant_type=authorization_code, you have to call {{OAUTH_BASE_URL}}/oauth/api/oauth2/authorize?response_type=code&app_id={{APP_ID}} first, to get the code.
For more information see: Canto OAuth Page
The returned accessToken will be valid for 30 days.
The refreshToken will be valid for 365 days. If you use the refreshToken, you'll get a new refreshToken and the old one will be invalid.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
REQUIRED - Your App identifier |
|
|
REQUIRED - Your App Secret |
|
|
REQUIRED - “authorization_code”, "client_credentials" or "refresh_token" If you use "client_credentials", you won't get a refresh token. If your token expires, just call this request on "client_credentials" mode, again. |
|
|
The redirect url on third party web site. If this value is not present, Canto will take the value from your App setting.
|
|
|
REQUIRED - (If grant_type is "authorization_code") The authorization code you gain on last step. See: Canto OAuth Page. Example: a631e415f0784987a6544d567472ff47 |
|
|
REQUIRED - (If grant_type is "refresh_token") The refresh token, you got on last call of this request. Note: A Refresh Token is valid for 365 days, |
|
|
The scope of the user. Valid Values: "admin", "contributor", "consumer" Note: Only supported on client_credentials mode.
Note: If you use scope, the first user in alphabetical order in this scope, will be used for login. We recommend to use param "user_id" instead. Default: admin |
|
|
The user_id of the user, who should be logged in. |
|
|
N/A |
POST ObtainAccessToken/RefreshToken(oldversion-notRFCconform)
/oauth/api/oauth2/token
Note: If you use grant_type=authorization_code, you have to call {{OAUTH_BASE_URL}}/oauth/api/oauth2/authorize?response_type=code&app_id={{APP_ID}} first, to get the code.
For more information see: Canto OAuth Page
The returned accessToken will be valid for 30 days.
The refreshToken will be valid for 365 days. If you use the refreshToken, you'll get a new refreshToken and the old one will be invalid.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
REQUIRED - Your App identifier |
|
|
REQUIRED - Your App Secret |
|
|
REQUIRED - “authorization_code”, "client_credentials" or "refresh_token" If you use "client_credentials", you won't get a refresh token. If your token expires, just call this request on "client_credentials" mode, again. |
|
|
The redirect url on third party web site. If this value is not present, Canto will take the value from your App setting.
|
|
|
REQUIRED - (If grant_type is "authorization_code") The authorization code you gain on last step. See: Canto OAuth Page. Example: a631e415f0784987a6544d567472ff47 |
|
|
REQUIRED - (If grant_type is "refresh_token") The refresh token, you got on last call of this request. Note: A Refresh Token is valid for 365 days, |
|
|
The scope of the user. Valid Values: "admin", "contributor", "consumer" Note: Only supported on client_credentials mode.
Note: If you use scope, the first user in alphabetical order in this scope, will be used for login. We recommend to use param "user_id" instead. Default: admin |
|
|
The user_id of the user, who should be logged in. |
|
|
N/A |
Download (13)
GET AdvancedDownloadOptions
/api_binary/v1/advance/image/{contentId}/download
Rate Level: 5
This API supports resize, crop, and downloads a preset image.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
Resize param Use format: ”widthxheight” |
|
|
Crop param: Use format: ”widthxheight+top+left” Note: The + character needs to be url encoded with %2B
|
|
|
Result image dpi |
|
|
Result image type {“jpg”, “png”} |
|
|
The content version. If not specified, the latest version of the content is shown. |
|
|
Preset ID. You can get the preset list by preset list API. |
|
|
Defines whether the proportions should be adhered to or not. true: Do not adhere the proportions
Default: true |
|
|
REQUIRED - The id of the content |
|
|
N/A |
POST BatchDownload
/api/v1/batch/download
Rate Level: 2
This API supports batch download with multiple Editable parameters.
BODYPARAMS
|
Parameter |
Description |
|---|---|
|
zipFileName |
REQUIRED - Target zip package name |
|
folderAlbumContents |
REQUIRED - Type and ID collection of batch download files |
|
preset |
preset id.Note that if the presetId is filled in, the reset and proportion will not take effect. |
|
quality |
The quality of downloaded image, the range is 1-100. |
|
type |
The type of downloaded image. This parameter can be written as JPEG or PNG.Note that this parameter is necessary if it is not the original download. |
|
colorMode |
The colorMode of downloaded image. This parameter can be written as RGB or CMYK.Note that when type is PNG, colormode can only be RGB.Note that this parameter is necessary if it is not the original download. |
|
resize |
[width value]x[height value] |
|
proportion |
If proportion == false, resize according to the scale of the image itself.
|
|
userAddress |
If this is a valid email address, the emailbox will receive the URL. If this attribute is not filled in, the email will be sent to the default email address of the current token user |
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (9)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
POST BatchObtainassetdownloadCloudfrontURL
/api_binary/v1/batch/directuri
Rate Level: 1
In some case, like some embedded browser which is not support redirect url, developer cannot download picture by redirect behavior, he want obtain a cloudfront url.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (2)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
GET DirectUrloriginal
/direct/{scheme}/{contentId}/{directUrlOriginalHash}/original
Rate Level: 1
Direct url to the original asset.
Note: It's not possible to download this image without knowing a random generated HashValue. You get the "Direct Url Original" containing the correct data by reading it from response of the requests:
-
"Get Content Details"
-
"Search/Filter"
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
The file name of the file. This value is returned inside the Http Headers of the response, so that a browser will download the file with given name. |
|
|
REQUIRED - The scheme of the asset |
|
|
REQUIRED - The id of the asset |
|
|
N/A |
|
|
N/A |
GET DirectUrlpreview
/direct/{scheme}/{contentId}/{directUrlPreviewHash}/m240/{dimension}
Rate Level: 1
Direct url to the preview of the asset
Returns the first page view for document content, and a smaller size image for the image content.
By default, the image is 240px (dimension means the longest size of the width and height when zooming out).
To specifiy the dimension, you could provide slash “/” and dimension number under the preview url.
For example:
|
URL |
Result |
|---|---|
|
{{SITE_BASEURL}}/direct/:scheme/:contentId/{{directUrlOriginalHash}}/m240/ |
image with dimension 240p (default size) |
|
{{SITE_BASEURL}}/direct/:scheme/:contentId/{{directUrlOriginalHash}}/m240/500 |
image with dimension 500px |
If the maximum preview size is 400, the url will only get the 400 dimension preview.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
REQUIRED - The scheme of the asset |
|
|
REQUIRED - The id of the asset |
|
|
REQUIRED - The dimension of the image, which will be returned. Supported scalings: 100, 240, 320, 500, 640, 800, 2000 |
|
|
N/A |
|
|
N/A |
GET DownloadMetadataXML
/api_binary/v1/{scheme}/{contentId}/metadata
Rate Level: 1
The “metadata” url will give you the xml file which was extracted from the original file. It has more detail than the metadata returned by the detail API and follows the original data format, not the one in general notes.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
REQUIRED - The scheme of the asset |
|
|
REQUIRED - The id of the asset |
|
|
N/A |
GET DownloadPreview
/api_binary/v1/{scheme}/{contentId}/preview/{dimension}
Rate Level: 1
An image view of the content.
Returns the first page view for document content, and a smaller size image for the image content.
By default, the image is 240px (dimension means the longest size of the width and height when zooming out).
To specifiy the dimension, you could provide slash “/” and dimension number under the preview url.
For example:
|
URL |
Result |
|---|---|
|
{{SITE_BASEURL}}/api_binary/v1/{{contentScheme}}/{{contentId}}/preview |
image with dimension 240px |
|
{{SITE_BASEURL}}/api_binary/v1/{{contentScheme}}/{{contentId}}/preview/500 |
image with dimension 500px |
If the maximum preview size is 400, the url will only get the 400 dimension preview.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
REQUIRED - The scheme of the asset |
|
|
REQUIRED - The id of the asset |
|
|
The dimension of the image, which will be returned. Default: 240 |
|
|
N/A |
GET DownloadasHighJPG
/api_binary/v1/{scheme}/{contentId}/HighJPG
Rate Level: 1
Download an image as jpg in high quality
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
REQUIRED - The scheme of the asset |
|
|
REQUIRED - The id of the asset |
|
|
N/A |
GET DownloadasLowJPG
/api_binary/v1/{scheme}/{contentId}/LowJPG
Rate Level: 1
Download an image as jpg in low quality (smaller filesize)
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
REQUIRED - The scheme of the asset |
|
|
REQUIRED - The id of the asset |
|
|
N/A |
GET DownloadasPNG
/api_binary/v1/{scheme}/{contentId}/PNG
Rate Level: 1
Download an image as png
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
REQUIRED - The scheme of the asset |
|
|
REQUIRED - The id of the asset |
|
|
N/A |
GET Downloadoriginalcontentfile
/api_binary/v1/{scheme}/{contentId}
Rate Level: 1
Download the original content file.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
REQUIRED - The scheme of the asset |
|
|
REQUIRED - The id of the asset |
|
|
N/A |
GET ObtainassetdownloadCloudfrontURL
/api_binary/v1/{scheme}/{contentId}/directuri/{expireTimeInSeconds}
Rate Level: 1
In some case, like some embedded browser which is not support redirect url, developer cannot download picture by redirect behavior, he want obtain a cloudfront url.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
REQUIRED - "image", "video", "audio", "document", "presentation" or "other". (case sensitive) |
|
|
REQUIRED - Id of the content |
|
|
Indicate when you would like this URL to expire. This value is per second. 1 day is equivalet to 1243600 seconds. If not specified, the default value is 1 day. |
|
|
N/A |
GET ObtainassetpreviewCloudfrontURL
/api_binary/v1/{scheme}/{contentId}/previewURI/{dimension}
Rate Level: 1
In a situation where the embedded browser does not support redirect URLs, this call can be used to obtain the Cloudfront URL directly.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
REQUIRED - "image", "video", "audio", "document", "presentation" or "other". (case sensitive) |
|
|
REQUIRED - Id of the content |
|
|
N/A |
|
|
N/A |
Export (4)
POST ExportMetadata
/api/v1/export/metadata
Rate Level: 4
Export metadata via API to a CSV. Email notification will be sent once the export is done.
By default the metadata will be sent to the email address of the API token user. If you want to send the email to another address, just define it as plain text inside the body of your request.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (1)
|
Option Name |
Description |
|---|---|
|
|
N/A |
POST ExportMetadataWithFilter
/api/v1/file/metadata
Advanced API for metadata export.It supports to customize which fields to export, and supports to narrow the range of exported data through filter.
This api will return the export results with json format.
Request Body
Sample Body:
{
"filter": {
"lastModified": "1672329600..1675872000",
"uploadedTime": "1672329600..1675872000",
"limit": 200,
"start": 0
},
"columns": ["Content ID", "File Name", "MD5", "Description"]
}
|
KEY |
VALUE |
DESTRICTION |
|---|---|---|
|
lastModified |
{{lastModified}} |
Filter by last modified time. (Value is in Unix timestamp format). Consistent with Search API. |
|
uploadedTime |
{{uploadedTime}} |
Filter by upload time. (Value is in Unix timestamp format). Consistent with Search API. |
|
limit |
{{limit}} |
Maximum number of items to be returned.
|
|
start |
{{start}} |
Offset number of items to be returned.
|
|
columns |
{{columns}} |
Customize exported/query columns.
|
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (1)
|
Option Name |
Description |
|---|---|
|
|
N/A |
POST ExportMetadataofalbum
/api/v1/album/{albumId}/export/metadata
Export metadata of an album via API to a CSV. Email notification will be sent once the export is done.
By default the metadata will be sent to the email address of the API token user. If you want to send the email to another address, just define it as plain text inside the body of your request.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
The specific album or folder id |
|
|
N/A |
Options (1)
|
Option Name |
Description |
|---|---|
|
|
N/A |
POST ExportMetadataoffolder
/api/v1/folder/{folderId}/export/metadata
Export metadata of an folder via API to a CSV. Email notification will be sent once the export is done.
By default the metadata will be sent to the email address of the API token user. If you want to send the email to another address, just define it as plain text inside the body of your request.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (1)
|
Option Name |
Description |
|---|---|
|
|
N/A |
Fields (4)
POST Createacustomfield
/api/v1/custom/field
Rate Level: 2
Creates a new custom field.
BODYPARAMS
|
Parameter |
Description |
|---|---|
|
name |
REQUIRED - Unique value. Max length: 80. |
|
description |
REQUIRED - Description. Max length: 800. |
|
type |
REQUIRED - Types include: NUMBER, TEXT, DATE, SINGLECHOICE, MULTICHOICE, URL, LABEL, RATING. |
|
values |
Options for SINGLECHOICE and MULTICHOICE type fields. |
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (3)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
DELETE Deleteacustomfield
/api/v1/custom/field/{id}
Rate Level: 2
Deletes a custom field.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
REQUIRED - The id of the custom field to delete. |
|
|
N/A |
|
|
N/A |
GET Getcustomfieldlist
/api/v1/custom/field
Rate Level: 2
Get custom field list (including type and values if any).
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
PUT Updateacustomfield
/api/v1/custom/field
Rate Level: 2
Updates a custom field.
BODYPARAMS
|
Parameter |
Description |
|---|---|
|
id |
REQUIRED - Custom field id. |
|
name |
REQUIRED - Unique value. Max length: 80. |
|
description |
REQUIRED - Description. Max length: 800. |
|
values |
Options for SINGLECHOICE and MULTICHOICE type fields. |
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (5)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
LibraryTree (14)
DELETE BatchPermanentlydeletetheFolder/Album
/api/v1/batch/folder/permanent
Deletes folder(s) or album permanently from trash bin.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
DELETE BatchdeleteFolder/Albumtotrashbin
/api/v1/batch/folder
Deletes folder(s) or album into trash bin.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
POST Createalbum
/api/v1/album/{parentFolderId}/{albumName}
Rate Level: 2
Create an album under the specified folder or on root level of the library.
\Note:\ The body is optional and only necessary if you want to set the folder name in multiple languages.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
The description of the album. Max length is 400. |
|
|
The id of the parent folder. Leave this parameter empty, if you want to create a new album on root of the library. |
|
|
REQUIRED - The name of the new album. Max length: 80. Note: Avoid using \ / : * ? \" or | in name. |
|
|
N/A |
Options (2)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
POST Createfolder
/api/v1/folder/{parentFolderId}/{folderName}
Rate Level: 2
Create a folder under specified folder or library.
\Note:\ The body is optional and only necessary if you want to set the folder name in multiple languages.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
The Description of the album. Max length: 400 |
|
|
The id of the parent folder. Leave this parameter empty, if you want to create a new folder on root of the library. |
|
|
REQUIRED - The name of the folder Max length: 80 Note: Avoid using \ / : * ? \" or | in name. |
|
|
N/A |
Options (3)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
GET GetMyCollectiondetailinfo
/api/v1/mycollections/{collectionId}
Rate Level: 1
Obtain MyCollection detail information.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
GET Getalbumdetailinfo
/api/v1/info/album/{albumId}
Rate Level: 4
Obtain specific folder/album detail information.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
The specific album id |
|
|
N/A |
GET Getfolderdetailinfo
/api/v1/info/folder/{folderId}
Rate Level: 4
Obtain specific folder/album detail information.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
true: a array named "multiLanguageData" containing information about multi-language is added to the response body. false: No multiLanguageData are added to the response body. |
|
|
N/A |
|
|
N/A |
GET Getfulllibrarytreeview
/api/v1/tree
Rate Level: 3
Get the whole tree. There’s no pagination option, if you don’t specify the layer parameter, you will get the whole tree info including each folder and each album.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
name, time, scheme, owner, size. Default: time. |
|
|
"ascending" or "descending" |
|
|
Maximum depth number of the folder or album items to be returned. Default: -1 (which means no limit.) |
|
|
N/A |
GET Getsubtreeview
/api/v1/tree/{folderId}
Rate Level: 3
Get the sub tree under specified folder. Folders and albums under the folder will be returned.
Note: Only folders can contain folder or album, album can only contain content, so please don’t specify album id.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
"name", "time", "scheme", "owner" or "size". Default: "time" |
|
|
“ascending” or “descending” |
|
|
Maximum depth number of the folder or album items to be returned. Default: -1 (which means no limit.) |
|
|
REQUIRED - Parent folder id |
|
|
N/A |
GET ListMyCollections
/api/v1/mycollections
Rate Level: 1
List my collections.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
"name","time", "type", "owner" or "size"
|
|
|
“ascending” or “descending” |
|
|
N/A |
GET Listcontentofaspecifiedalbum
/api/v1/album/{albumId}
Rate Level: 4
List content of a album, page by page. Only brief content info is returned.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
The search term(s)
|
|
|
"image", "video", "audio", "document", "presentation" or "other". (case sensitive)
Note: The | character needs to be url encoded with %7C: Example: image%7cvideo%7Caudio |
|
|
If you want to filter by tag
Note: The + character needs to be url encoded with %2B: Example: sunset%2Bbeach
|
|
|
Filter by tag(case-sensitive & whole word only)
|
|
|
Filter result by keywords.
Note: The + character needs to be url encoded with %7C: Example: home%2Boffice
|
|
|
Filter by Approval status.
Note: The | character needs to be url encoded with %7C: Example: approved%7Cpending |
|
|
FIlter by id of an owner.
Note: The | character needs to be url encoded with %7C: Example: support@canto.com%7Cnoreply@canto.com |
|
|
Filter by file size
|
|
|
Filter by time the asset was created at canto. |
|
|
Filter by file creation time. (Value is in Unix timestamp format). |
|
|
Filter by upload time. (Value is in Unix timestamp format) |
|
|
Filter by last modified time. (Value is in Unix timestamp format) |
|
|
Filte by image size.
|
|
|
Filter by resolution in DPI
|
|
|
"landscape", "portrait" or "square"
Note: The | character needs to be url encoded with %7C: Example: landscape%7Cportrait |
|
|
Filter by duration.
|
|
|
Filter by page number.
|
|
|
Filter by a custom field.
|
|
|
You can search inside the following fields: "filename", "description", "comment", "keywords", "author" and "tags".
|
|
|
exactMatch: "true" or "false"
|
|
|
Operator: "and", "or".
|
|
|
"name","time", "scheme", "owner" or "size" Default: "time" |
|
|
“ascending” or “descending” |
|
|
Offset number of items to be returned. Default: 0 |
|
|
The maximum number of items to be returned. Default: 100
|
|
|
"standard" or "freeze" Examples:\
|
|
|
The id of the album, which content will be returned. Put in "Unassigned" to get all assets which are not assigned to an album! |
|
|
N/A |
GET Searchunderafolder
/api/v1/folder/{folderId}
Rate Level: 4
List everything under a specified folder, page by page. This will return all matched sub-folder/album and all its contents.
Note:
-
You can use the value "null" (enclosed by two underlines in front and at the end). If you want to search for assets which don't have a value in a field.
-
You can use the value "exists" (enclosed by two underlines in front and at the end). If you want to search for assets which have set any value in a field.
Parameters
|
Parameter Name |
Description |
||||||
|---|---|---|---|---|---|---|---|
|
|
N/A |
||||||
|
|
N/A |
||||||
|
|
N/A |
||||||
|
|
The search term(s) use this, to make a search simply by keyword. This is nearly the same search like you do in Canto UI on right top. |
||||||
|
|
"image", "video", "audio", "document", "presentation" or "other". (case sensitive) scheme refers to the smart albums within your Canto application. Examples:\
Note: The | character needs to be url encoded with %7C: Example: image%7Cvideo%7Caudio |
||||||
|
|
If you want to filter by tag Examples:\
Note: The + character needs to be url encoded with %2B: Example: sunset%2Bbeach
|
||||||
|
|
Filter by tag(case-sensitive & whole word only)
|
||||||
|
|
Filter result by keywords. Examples:\
Note: This filter searchs by keywords, you can attach on request: Attach keyword to content Note: The + character needs to be url encoded with %7C: Example: home%2Boffice
|
||||||
|
|
Filter by Approval status. Note: This filter only works, if the approval process is enabled. Examples:\
If you select Expired, you cannot select another status.\
Note: The | character needs to be url encoded with %7C: Example: approved%7Cpending |
||||||
|
|
FIlter by id of an owner. Examples:\
Note: The | character needs to be url encoded with %7C: Example: supportlcanto.com%7Cnoreply@canto.com |
||||||
|
|
Filter by file size Example: 95073..26893954 |
||||||
|
|
Filter by time the asset was created at canto. |
||||||
|
|
Filter by file creation time. (Value is in Unix timestamp format). |
||||||
|
|
Filter by upload time. (Value is in Unix timestamp format) |
||||||
|
|
Filter by last modified time. (Value is in Unix timestamp format) |
||||||
|
|
Filter by image width in px. Example:
Note: This filter works only on images. |
||||||
|
|
Filter by image height in px. Example:
Note: This filter works only on images. |
||||||
|
|
Defines how the parameters "width" and "height" should be combined. Valid values: "or", "and" "or" means the result must have the given width OR height
Default: "or" |
||||||
|
|
Filter by image size. Note: This filter works only on images. |
||||||
|
|
Filter by resolution in DPI Note: This filter works only on images. |
||||||
|
|
"standard" or "freeze" Examples:\
|
||||||
|
|
Filter by a custom field.
|
||||||
|
|
"landscape", "portrait" or "square" Note: This filter works only on images. Examples:\
Note: The | character needs to be url encoded with %7C: Example: landscape%7Cportrait |
||||||
|
|
Filter by duration. Note: This filter works only on video or audio. |
||||||
|
|
Filter by page number. Note: This filter works only on document or presentation. |
||||||
|
|
You can search inside the following fields: "filename", "description", "comment", "keywords", "author" and "tags".
|
||||||
|
|
exactMatch: "true" or "false" Default: false |
||||||
|
|
Operator: "and", "or".
|
||||||
|
|
"name", "time", "scheme", "owner" or "size". Default: "time" |
||||||
|
|
“ascending” or “descending” Default: "descending" |
||||||
|
|
Offset number of items to be returned. Default: 0 |
||||||
|
|
Maximum number of items to be returned. Default: 100
|
||||||
|
|
The if of the folder |
||||||
|
|
N/A |
PUT Updatealbumname
/api/v1/album/{albumId}
Update specific folder/album multi-language information.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
The specific album id |
|
|
N/A |
Options (2)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
PUT Updatefoldername
/api/v1/folder/{folderId}
Update specific folder/album multi-language information.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
The specific folder id |
|
|
N/A |
Options (2)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
Reports (7)
GET Getassetpreviewreports
/api/v1/tenantreport/assetview
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
Report start time, format is yyyyMMdd |
|
|
Report end time, format is yyyyMMdd |
|
|
File type. Values: "image", "document", "video", "presentation", "other", "audio". If it is empty, all data will be queried. |
|
|
User(e-mail). If it is empty, all user data will be queried.
|
|
|
Data range, default is 100. |
|
|
Sort order of report by date.
|
|
|
Pagination marker.
|
|
|
N/A |
GET GetspecifiedcontentDownloadActivityreport
/api/v1/downloadactivity/{scheme}/{id}
Rate Level: 2
Get a specified content’s Download Activity report. The detail seen on the asset content detail page.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
“ascending” or “descending”. Default: "descending" |
|
|
The maximum number of items to be returned. Default: 100 |
|
|
This API returns results page by page. This value is from the API call response, indicates to get the next page. First time marker must be unset. |
|
|
REQUIRED - "image", "video", "audio", "document", "presentation" or "other". (case sensitive) |
|
|
REQUIRED - Content id |
|
|
N/A |
GET GetspecifiedcontentShareActivityreport
/api/v1/shareactivity/{scheme}/{id}
Rate Level: 2
Get a specified content’s Share Activity report. The detail seen on the asset content detail page.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
“ascending” or “descending”. Default: "descending" |
|
|
The maximum number of items to be returned. Default: 100 |
|
|
This API returns results page by page. This value is from the API call response, indicates to get the next page. First time marker must be unset. |
|
|
REQUIRED - "image", "video", "audio", "document", "presentation" or "other". (case sensitive) |
|
|
REQUIRED - Content id |
|
|
N/A |
GET GetspecifiedcontentUsageHistoryreport
/api/v1/usagehistory/{scheme}/{id}
Rate Level: 2
Get a specified content’s Usage history report. The detail seen on the asset content detail page.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
“ascending” or “descending” Default: "descending" |
|
|
The maximum number of items to be returned. Default: 100 |
|
|
This API returns results page by page. This value is from the API call response, indicates to get the next page. If you call this method first time, leave this param emtpy. |
|
|
REQUIRED - "image", "video", "audio", "document", "presentation" or "other". (case sensitive) |
|
|
REQUIRED - ContentId |
|
|
N/A |
GET Gettenantdownloadoruploadhistoryreports
/api/v1/tenantreport/{type}
Dependent on the path variable “type” this history provides all upload or download activities for a defined period.
Download Entries from Different Sources
In the case, a download takes place when a user is logged in to Canto, the logfile entry will contain the e-mail-
address of the downloading user, while the “location” value will contain the source, e.g., “Main Library”.
In some cases, a download can be made without any login information, e.g., when downloading from a shared link
or a public portal. In these cases, following information is given in the download history result set:
Download from Common Share Link
-
“e-mail” contains 5-digit internal ID of share link
-
“location” contains download source, like “Main Library”
Download from Album/Folder Share Link
-
“e-mail” contains string “anonymous”
-
“location” contains string “Share Link:” and >8-digit internal ID of share link
Download from a Public Portal
-
“e-mail” contains string “anonymous”
-
“location” contains string “Portal:” and name of the public portal
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
Report start time, format is yyyyMMdd |
|
|
Report end time, format is yyyyMMdd |
|
|
Sort order of report by date.
Default: descending |
|
|
Number of records returned in the result set.
|
|
|
Defines the type of history report.
|
|
|
N/A |
GET GettenantoperationLogdata
/api/v1/operationlogs
Rate Level: 4
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
Operation log start time Format: yyyyMMdd
|
|
|
Operation log end time Format: yyyyMMdd
|
|
|
N/A |
GET Getthetopdataofthespecifiedtype
/api/v1/top/{type}
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
REQUIRED - "portal", "workspace", "styleGuide", "uploadLink",
|
|
|
data range, if it is empty, all data will be queried |
|
|
REQUIRED - "keyword", "tag", "smart_tag", "commentedFiles",
|
|
|
N/A |
Settings (2)
GET GetPresetList
/api/v1/tenant/download/presets
Rate Level: 2
Before preset downloading, firstly you need to retrieve this list.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
GET Getlistofwatermarks
/api/v1/tenant/watermark/presets
Rate Level: 2
This endpoint returns a list of all registered watermark presets.
Note: Watermarks can be configured in canto UI: "Settings" --> "Configuration Options" --> "Digital Rights Management"
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Upload (7)
POST CreateUploadLinks
/api/v1/uploadlink
_Rate Level: 2_
This API support user to create an UploadLink.
BODYPARAMS
---
|
Parameter |
Description |
|---|---|
|
portalName |
REQUIRED - Upload link name |
|
description |
Upload link description |
|
emailSubject |
REQUIRED - Email subject of the receiver |
|
emailBody |
REQUIRED - Email body of the receiver |
|
isNeverExpired |
REQUIRED - The upload link is never expired |
|
displayExpireDate |
If isNeverExpired == false, it must be setted.
|
|
recipients |
REQUIRED - The details of receivers |
|
firstName |
REQUIRED - FirstName of receiver |
|
lastName |
REQUIRED - Last Name of receiver |
|
|
REQUIRED - Email of receiver |
|
importToAlbums |
OPTIONAL: An array of albums to which the assets will be assigned |
|
\- albumId |
REQUIRED - The id of the album |
|
\- pathWithName |
REQUIRED - The full album path (including the name of the album) |
|
\- portalId |
OPTIONAL - The id of the portal or workspace |
|
\- portalName |
OPTIONAL - The name of the portal or workspace |
|
removeDuplicateType |
OPTIONAL - The following modes for duplicates are supported:
|
|
defaultApprovalStatus |
OPTIONAL - The status of the asset when it is imported into the main library.
|
|
removeDuplicateWhenImport |
OPTIONAL - Automatically Remove Files in the Upload Link after Import.
|
|
duplicateCheckMode |
Mode to check for duplicates
|
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (6)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
PUT Getuploadsetting
/rest/tenant/userinterface/settings
Rate Level: 1
Before uploading a file, you need to retrive this setting.
Note: An upload setting is valid for 5 hours. You will need to retrive settings again after 5 hours to continue use.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (23)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
POST Importfromuploadlink
/api/uploadlink/import
Rate Level: 4
Import assets from an upload link.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (5)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
POST MetadataImport
/api/v1/import/metadata
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (2)
|
Option Name |
Description |
|---|---|
|
|
"true" Add Metadata\
default: "false" |
|
|
REQUIRED - This csv file is used to import metadata |
GET Metadataimportprogress
/api/v1/import/metadata/progress
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
REQUIRED - The response obtained after calling API "/api/v1/import/metadata" successfully |
|
|
N/A |
GET Queryuploadstatus
/api/v1/upload/status
Rate Level: 2
Query upload status for recently uploaded files.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
An integer of 1..24. Default: 1 |
|
|
N/A |
POST Uploadfile
/
Rate Level: 1
Upload a file directly into the Canto S3 bucket. Construct a form based on the settings retrieved.
The form and policy must be UTF-8 encoded. You can apply UTF-8 encoding to the form by specifying it in the HTML heading or as a request header.
The enclosure type (enctype) must be specified and must be set to multipart/form-data for both file uploads and text area uploads. For more information, refer to RFC 1867.
Note:
-
max upload size is: 5 GB
-
You need to call request: Get Upload Setting to get upload settings, before.
-
Please refer to Amazon document for details. http://docs.aws.amazon.com/AmazonS3/latest/dev/HTTPPOSTForms.html
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (12)
|
Option Name |
Description |
|---|---|
|
|
REQUIRED - The upload key from the upload settings |
|
|
REQUIRED - The uploadAcl value from the upload settings (in most cases "private" |
|
|
REQUIRED - The uploadAWSAccessKeyId from the upload settings. |
|
|
REQUIRED - The Policy from the upload settings |
|
|
REQUIRED - The Signature from the upload settings. |
|
|
REQUIRED - The name of the file (with extension). |
|
|
REQUIRED – Please just leave this value empty. This is for future expansion. |
|
|
REQUIRED - If you want to update an existing asset, value should be the scheme of the existing asset.
Leave this parameter emtpy if you want to upload a new asset. |
|
|
REQUIRED - If you want to update an existing asset, value should be the id of the existing asset.
Leave this parameter emtpy if you want to upload a new asset. |
|
|
REQUIRED - If the asset should be assigned to an existing album, value should be the album id of this album. Leave this parameter emtpy if the asset should not be assigned to any album. |
|
|
OPTIONAL - If you want to use a customized way to track which file is uploading, you can use this field. In the Query upload status API, it will return this field value, if you have set this value.
|
|
|
REQUIRED - The file to upload Note: This part must be the last part inside your request.\
|
User (16)
POST Addgroup
/api/v1/groups
Rate Level: 2
Creates a new group.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (3)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
POST Addnewuser
/api/v1/user
Rate Level: 2
Adds a new user.
Note: This request can only called by admin users
BODYPARAMS
ParameterDescriptionuserIdThe id of the new user. (It should be the user's email adress)firstNameThe first name of the user.lastNameThe last name of the userrolesA list of roles, the user should be assigned.
Possible values: admin|contributor, consumer, customRole
customRoleIdThe id of a custom Role.
use this parameter only, if you
groups(optional) A list of groups, the user should be assigned.properties(optional) The values of the custom fields.
key = customFieldId, value = customFieldValue
allowAccessAdobeConnector(optional) The new user will be allowed to use the Adobe Connector.
default: falseallowAccessIndesignDeprecated: old version of parameter: "allowAccessAdobeConnector"
default: false
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (7)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
POST Adduserstogroup
/api/v1/groups/{groupId}/users
Rate Level: 2
Add users to group.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
REQUIRED: The id of the group |
|
|
N/A |
Options (1)
|
Option Name |
Description |
|---|---|
|
|
N/A |
DELETE Deleteauser
/api/v1/user/{userId}
Rate Level: 2
Admin deletes an existing user.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
The id of the user to delete |
|
|
N/A |
|
|
N/A |
DELETE Deletegroup
/api/v1/groups/{groupId}
Rate Level: 2
Deletes an existing group.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
DELETE Deleteusersfromgroup
/api/v1/groups/{groupId}/users
Rate Level: 2
Delete users from group.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
REQUIRED: The id of the group |
|
|
N/A |
POST GetUsers
/api/v2/users/$query
_Rate Level: 2_
Obtain a list of users in the Canto account based on the specified user IDs.
Max user IDs for request param: 100.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (1)
|
Option Name |
Description |
|---|---|
|
|
N/A |
GET Getcurrentuserinfo
/api/v1/user
Rate Level: 1
Get the current user info, which the access token represents.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
GET Getcustomroles
/api/v1/roles
Rate Level: 1
Get the current user info, which the access token represents.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
GET Getgroupinfowithusers
/api/v1/groups/{groupId}
Rate Level: 1
Returns a group with users.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
REQUIRED: The id of the group |
|
|
N/A |
GET Getgroups
/api/v1/groups
Returns a list of all groups.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
GET Getusercustomfields
/api/v1/users/fields
Rate Level: 1
Get the current user info, which the access token represents.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
GET Getuserlist
/api/v1/user/accounts
Rate Level: 2
Obtain a list of users within your Canto account with pagination.
If you need a list containing mor detailed user information, you need to call: \Get user list (with extended information)\
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
Find the users name starting with given value. Name means first name or last name. |
|
|
true means the result should include user’s groups. Default: false. |
|
|
Specifies the number of items to be returned on one page. Default: 100 |
|
|
Specifies current page number. Default:1 |
|
|
N/A |
GET Getuserlist(withextendedinformation)
/api/v1/users
Rate Level: 2
Obtain a list of users within your Canto account with pagination.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
The following values are supported: 0 - All roles\
Default: 0 |
|
|
Find the users name starting with given value. Name means first name, last name or email. |
|
|
true means the result should include user’s groups. Default: false |
|
|
true means the result should include user’s granted portal/workspace/style guide info. Default: false |
|
|
Specifies the number of results returned Default: 100 |
|
|
Specifies current page number Default: 1 |
|
|
Specifies the query criteria to includes user custom fields. It is associated with the parameter "name". |
|
|
N/A |
PUT Updategroup
/api/v1/groups/{groupId}
Rate Level: 2
Updates an existing group.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
required |
|
|
N/A |
Options (3)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
PUT Updateuserinfo
/api/v1/user
Rate Level: 2
Update an existing user.
Note: This request can only called by admin users
BODYPARAMS
ParameterDescriptionuserIdThe id of the user to update.firstNameThe first name of the user.lastNameThe last name of the userrolesA list of roles, the user should be assigned.
Possible values: admin|contributor, consumer, customRole
customRoleIdThe id of a custom Role.
use this parameter only, if you
groups(optional) A list of groups, the user should be assigned.properties(optional) The values of the custom fields.
key = customFieldId, value = customFieldValue
allowAccessAdobeConnector(optional) The new user will be allowed to use the Adobe Connector.
default: falseallowAccessIndesignDeprecated: old version of parameter: "allowAccessAdobeConnector"
default: false
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
Options (6)
|
Option Name |
Description |
|---|---|
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |
|
|
N/A |