Canto

App · 25 actions

Search, tag and organize images, videos and documents in Canto's digital asset library, and upload new files to it.

Actions

ActionWhat it does
Add asset to albumPut an asset in an album.
Add keywordAdd one of your account's keywords to an asset.
Add tagAdd a tag to an asset.
Create albumCreate an album, at the top of the library or inside a folder.
Create folderCreate a folder, at the top of the library or inside another folder.
Get albumGet an album's details: its name, path, description and number of assets.
Get assetGet an asset's details: its name, size, tags, keywords, approval status, custom fields, versions and links.
Get download linkGet a link that downloads an asset's original file without signing in, until it expires.
Get folder treeGet the folders and albums inside a folder.
Get library treeGet the library's folders and albums, with the folders and albums inside each.
Get preview linkGet a link to a preview image of an asset, such as a photo's smaller copy or a document's first page.
Get upload statusList recent uploads with their status (Initial, Processing or Done) and, once done, the new asset's ID and type.
List album assetsList the assets in an album, optionally filtered, a page at a time.
List custom fieldsList your account's custom fields, with each one's type and choices.
Move album to trashMove an album to Canto's trash.
Move asset to trashMove an asset to Canto's trash, where an admin can restore it.
Move folder to trashMove a folder, with the folders and albums in it, to Canto's trash.
Remove asset from albumTake an asset out of an album.
Remove keywordRemove a keyword from an asset.
Remove tagRemove a tag from an asset.
Rename assetChange an asset's name.
Search assetsFind assets in the library by words, type, tag, keyword, approval status, owner or upload date, a page at a time.
Set custom fieldSet one of your account's custom fields on an asset, or add or remove a value of a multiple-choice or label field.
Update asset detailsChange an asset's description or copyright.
Upload fileAdd a file to the library, optionally in an album.

Add asset to album

Put an asset in an album. It stays in any other albums it's in.

Inputs

Albumalbum_idtextRequired
The album.
Asset typeschemetextRequired
The asset's type as Canto files it. A trigger or an earlier step gives it as scheme.One of: image, video, audio, document, presentation, other.
Assetasset_idtextRequired
The asset. Choose one of the newest, or use the id from a trigger or an earlier step.

Outputs

dataobject
The response from Canto.
Example output
{
  "data": {
    "success": true
  }
}

Add keyword

Add one of your account's keywords to an asset. The keyword must already exist in Canto.

Inputs

Asset typeschemetextRequired
The asset's type as Canto files it. A trigger or an earlier step gives it as scheme.One of: image, video, audio, document, presentation, other.
Assetasset_idtextRequired
The asset. Choose one of the newest, or use the id from a trigger or an earlier step.
KeywordkeywordtextRequired
The keyword, exactly as your account's keyword list has it.

Outputs

dataobject
The response from Canto.
Example output
{
  "data": {
    "success": true
  }
}

Add tag

Add a tag to an asset. A tag the asset already has is left as it is.

Inputs

Asset typeschemetextRequired
The asset's type as Canto files it. A trigger or an earlier step gives it as scheme.One of: image, video, audio, document, presentation, other.
Assetasset_idtextRequired
The asset. Choose one of the newest, or use the id from a trigger or an earlier step.
TagtagtextRequired
The tag, any text.

Outputs

dataobject
The response from Canto.
Example output
{
  "data": {
    "success": true
  }
}

Create album

Create an album, at the top of the library or inside a folder. Albums hold assets.

Inputs

NamenametextRequired
The new album's name, up to 80 characters, without \ / : * ? " < > or |.
In folderparent_foldertext
The folder to create it in. Leave empty for the top of the library.
Descriptiondescriptiontext
A description of the album, up to 400 characters.

Outputs

dataobject
The response from Canto.
Example output
{
  "data": {
    "created": "example",
    "description": "example",
    "id": "example",
    "idPath": "example",
    "name": "example",
    "namePath": "example",
    "owner": "example",
    "scheme": "example",
    "size": "example",
    "time": "example",
    "url": {
      "detail": "example"
    }
  }
}

Create folder

Create a folder, at the top of the library or inside another folder. Folders hold albums and other folders.

Inputs

NamenametextRequired
The new folder's name, up to 80 characters, without \ / : * ? " < > or |.
In folderparent_foldertext
The folder to create it in. Leave empty for the top of the library.
Descriptiondescriptiontext
A description of the folder, up to 400 characters.

Outputs

dataobject
The response from Canto.
Example output
{
  "data": {
    "created": "example",
    "description": "example",
    "id": "example",
    "idPath": "example",
    "name": "example",
    "namePath": "example",
    "owner": "example",
    "scheme": "example",
    "size": "example",
    "time": "example",
    "url": {
      "detail": "example"
    }
  }
}

Get album

Get an album's details: its name, path, description and number of assets.

Inputs

Albumalbum_idtextRequired
The album.

Outputs

dataobject
The response from Canto.
Example output
{
  "data": {
    "created": "example",
    "description": "example",
    "id": "example",
    "idPath": "example",
    "name": "example",
    "namePath": "example",
    "owner": "example",
    "scheme": "example",
    "size": "example",
    "time": "example",
    "url": {
      "detail": "example"
    }
  }
}

Get asset

Get an asset's details: its name, size, tags, keywords, approval status, custom fields, versions and links.

Inputs

Asset typeschemetextRequired
The asset's type as Canto files it. A trigger or an earlier step gives it as scheme.One of: image, video, audio, document, presentation, other.
Assetasset_idtextRequired
The asset. Choose one of the newest, or use the id from a trigger or an earlier step.

Outputs

dataobject
The response from Canto.
Example output
{
  "data": {
    "additional": {},
    "altText": "example",
    "approvalStatus": "example",
    "copyright": "example",
    "created": "example",
    "default": {},
    "description": "example",
    "dpi": "example",
    "expirationDate": "example",
    "height": "example",
    "id": "example",
    "keyword": [
      "example"
    ],
    "lastUploaded": "example",
    "metadata": {},
    "name": "example",
    "owner": "example",
    "ownerName": "example",
    "scheme": "example",
    "size": "example",
    "tag": [
      "example"
    ],
    "termsAndConditions": "example",
    "time": "example",
    "url": {
      "HighJPG": "example",
      "LowJPG": "example",
      "PNG": "example",
      "detail": "example",
      "directUrlOriginal": "example",
      "directUrlPreview": "example",
      "download": "example",
      "metadata": "example",
      "preview": "example"
    },
    "versionHistory": [
      {
        "comment": "example",
        "created": "example",
        "currentVersion": true,
        "no": "example",
        "ownerName": "example",
        "time": "example",
        "versionId": "example"
      }
    ],
    "width": "example"
  }
}

Get a link that downloads an asset's original file without signing in, until it expires.

Inputs

Asset typeschemetextRequired
The asset's type as Canto files it. A trigger or an earlier step gives it as scheme.One of: image, video, audio, document, presentation, other.
Assetasset_idtextRequired
The asset. Choose one of the newest, or use the id from a trigger or an earlier step.
Link works forexpirestext
How long the link works. Canto's default is 1 day.One of: 3600 (1 hour), 86400 (1 day), 604800 (7 days).

Outputs

dataobject
The response from Canto.
Example output
{
  "data": {
    "url": "example"
  }
}

Get folder tree

Get the folders and albums inside a folder.

Inputs

Folderfolder_idtextRequired
The folder.
Sort bysort_bytext
What to sort by. Canto's default is the date its settings show assets by.One of: time (Date), name, scheme (Type), owner, size (File size).
Ordersort_directiontext
The order. Canto's default is newest first.One of: descending (Newest, last or largest first), ascending (Oldest, first or smallest first).
Levelslevelsnumber
How many levels deep to go. Leave empty for everything inside.At least 1.

Outputs

dataobject
The response from Canto.
Example output
{
  "data": {
    "results": [
      {
        "children": [
          {}
        ],
        "created": "example",
        "description": "example",
        "id": "example",
        "idPath": "example",
        "name": "example",
        "namePath": "example",
        "owner": "example",
        "ownerName": "example",
        "scheme": "example",
        "size": "example",
        "time": "example",
        "url": {
          "detail": "example"
        }
      }
    ],
    "sortBy": "example",
    "sortDirection": "example"
  }
}

Get library tree

Get the library's folders and albums, with the folders and albums inside each.

Inputs

Sort bysort_bytext
What to sort by. Canto's default is the date its settings show assets by.One of: time (Date), name, scheme (Type), owner, size (File size).
Ordersort_directiontext
The order. Canto's default is newest first.One of: descending (Newest, last or largest first), ascending (Oldest, first or smallest first).
Levelslevelsnumber
How many levels deep to go. Leave empty for the whole tree.At least 1.

Outputs

dataobject
The response from Canto.
Example output
{
  "data": {
    "results": [
      {
        "children": [
          {}
        ],
        "created": "example",
        "description": "example",
        "id": "example",
        "idPath": "example",
        "name": "example",
        "namePath": "example",
        "owner": "example",
        "ownerName": "example",
        "scheme": "example",
        "size": "example",
        "time": "example",
        "url": {
          "detail": "example"
        }
      }
    ],
    "sortBy": "example",
    "sortDirection": "example"
  }
}

Get a link to a preview image of an asset, such as a photo's smaller copy or a document's first page.

Inputs

Asset typeschemetextRequired
The asset's type as Canto files it. A trigger or an earlier step gives it as scheme.One of: image, video, audio, document, presentation, other.
Assetasset_idtextRequired
The asset. Choose one of the newest, or use the id from a trigger or an earlier step.
Sizesizenumber
The preview's longer side in pixels. Canto gives its largest preview when this is bigger. Leave empty for 800.At least 1.

Outputs

dataobject
The response from Canto.
Example output
{
  "data": {
    "url": "example"
  }
}

Get upload status

List recent uploads with their status (Initial, Processing or Done) and, once done, the new asset's ID and type.

Inputs

Hourshoursnumber
How many hours back to look, 1 to 24. Canto's default is 1.From 1 to 24.

Outputs

dataobject
The response from Canto.
Example output
{
  "data": {
    "found": 1,
    "results": [
      {
        "id": "example",
        "name": "example",
        "scheme": "example",
        "status": "example",
        "time": "example"
      }
    ]
  }
}

List album assets

List the assets in an album, optionally filtered, a page at a time.

Inputs

Albumalbum_idtextRequired
The album.
Search forkeywordtext
Words to look for, as in Canto's search box. Separate words any of which may match with |, and words that must all match with +.
Search insearch_intext
Look for the words only in this field. Leave empty to look everywhere.One of: filename (File name), description, comment (Comments), keywords, author, tags.
Asset typestypeslist
Only these types of asset. Leave empty for every type.One or more of: image, video, audio, document, presentation, other.
Tagtagstext
Only assets with this tag.
Keywordkeywordstext
Only assets with this keyword.
Approval statusapprovaltext
Only assets with this approval status. Works when approvals are turned on in Canto.One of: approved, pending, restricted, expired.
Ownerownertext
Only assets this person uploaded.
Uploaded fromuploaded_fromdate and time
Only assets uploaded at or after this time.
Uploaded touploaded_todate and time
Only assets uploaded at or before this time.
Sort bysort_bytext
What to sort by. Canto's default is the date its settings show assets by.One of: time (Date), name, scheme (Type), owner, size (File size).
Ordersort_directiontext
The order. Canto's default is newest first.One of: descending (Newest, last or largest first), ascending (Oldest, first or smallest first).
Start atstartnumber
How many assets to skip: 0 for the first page, or the next_start a previous step returned.At least 0.
Limitlimitnumber
How many assets to return, up to 1,000. Canto's default is 100.From 1 to 1000.

Outputs

dataobject
The response from Canto.
Example output
{
  "data": {
    "found": 1,
    "next_start": 1,
    "results": [
      {
        "additional": {},
        "approvalStatus": "example",
        "default": {},
        "dpi": "example",
        "height": "example",
        "id": "example",
        "keyword": [
          "example"
        ],
        "name": "example",
        "owner": "example",
        "ownerName": "example",
        "relatedAlbums": [
          {
            "id": "example",
            "idPath": "example",
            "scheme": "example"
          }
        ],
        "scheme": "example",
        "size": "example",
        "tag": [
          "example"
        ],
        "time": "example",
        "url": {
          "HighJPG": "example",
          "LowJPG": "example",
          "PNG": "example",
          "detail": "example",
          "directUrlOriginal": "example",
          "directUrlPreview": "example",
          "download": "example",
          "metadata": "example",
          "preview": "example"
        },
        "width": "example"
      }
    ]
  }
}

List custom fields

List your account's custom fields, with each one's type and choices.

Inputs

None.

Outputs

dataobject
The response from Canto.
Example output
{
  "data": {
    "fields": [
      {
        "id": "example",
        "name": "example",
        "type": "example",
        "values": [
          "example"
        ]
      }
    ]
  }
}

Move album to trash

Move an album to Canto's trash. Its assets stay in the library.

Inputs

Albumalbum_idtextRequired
The album.

Outputs

dataobject
The response from Canto.
Example output
{
  "data": {
    "deleteFail": [
      "example"
    ],
    "permissionFail": [
      "example"
    ],
    "status": "example"
  }
}

Move asset to trash

Move an asset to Canto's trash, where an admin can restore it.

Inputs

Asset typeschemetextRequired
The asset's type as Canto files it. A trigger or an earlier step gives it as scheme.One of: image, video, audio, document, presentation, other.
Assetasset_idtextRequired
The asset. Choose one of the newest, or use the id from a trigger or an earlier step.

Outputs

dataobject
The response from Canto.
Example output
{
  "data": {
    "success": true
  }
}

Move folder to trash

Move a folder, with the folders and albums in it, to Canto's trash.

Inputs

Folderfolder_idtextRequired
The folder.

Outputs

dataobject
The response from Canto.
Example output
{
  "data": {
    "deleteFail": [
      "example"
    ],
    "permissionFail": [
      "example"
    ],
    "status": "example"
  }
}

Remove asset from album

Take an asset out of an album. The asset stays in the library.

Inputs

Albumalbum_idtextRequired
The album.
Asset typeschemetextRequired
The asset's type as Canto files it. A trigger or an earlier step gives it as scheme.One of: image, video, audio, document, presentation, other.
Assetasset_idtextRequired
The asset. Choose one of the newest, or use the id from a trigger or an earlier step.

Outputs

dataobject
The response from Canto.
Example output
{
  "data": {
    "success": true
  }
}

Remove keyword

Remove a keyword from an asset. Removing one it doesn't have does nothing.

Inputs

Asset typeschemetextRequired
The asset's type as Canto files it. A trigger or an earlier step gives it as scheme.One of: image, video, audio, document, presentation, other.
Assetasset_idtextRequired
The asset. Choose one of the newest, or use the id from a trigger or an earlier step.
KeywordkeywordtextRequired
The keyword to remove.

Outputs

dataobject
The response from Canto.
Example output
{
  "data": {
    "success": true
  }
}

Remove tag

Remove a tag from an asset. Removing a tag it doesn't have does nothing.

Inputs

Asset typeschemetextRequired
The asset's type as Canto files it. A trigger or an earlier step gives it as scheme.One of: image, video, audio, document, presentation, other.
Assetasset_idtextRequired
The asset. Choose one of the newest, or use the id from a trigger or an earlier step.
TagtagtextRequired
The tag to remove.

Outputs

dataobject
The response from Canto.
Example output
{
  "data": {
    "success": true
  }
}

Rename asset

Change an asset's name.

Inputs

Asset typeschemetextRequired
The asset's type as Canto files it. A trigger or an earlier step gives it as scheme.One of: image, video, audio, document, presentation, other.
Assetasset_idtextRequired
The asset. Choose one of the newest, or use the id from a trigger or an earlier step.
New namenametextRequired
The new name, usually with the file's extension, such as poster.jpg.

Outputs

dataobject
The response from Canto.
Example output
{
  "data": {
    "success": true
  }
}

Search assets

Find assets in the library by words, type, tag, keyword, approval status, owner or upload date, a page at a time.

Inputs

Search forkeywordtext
Words to look for, as in Canto's search box. Separate words any of which may match with |, and words that must all match with +.
Search insearch_intext
Look for the words only in this field. Leave empty to look everywhere.One of: filename (File name), description, comment (Comments), keywords, author, tags.
Asset typestypeslist
Only these types of asset. Leave empty for every type.One or more of: image, video, audio, document, presentation, other.
Tagtagstext
Only assets with this tag.
Keywordkeywordstext
Only assets with this keyword.
Approval statusapprovaltext
Only assets with this approval status. Works when approvals are turned on in Canto.One of: approved, pending, restricted, expired.
Ownerownertext
Only assets this person uploaded.
Uploaded fromuploaded_fromdate and time
Only assets uploaded at or after this time.
Uploaded touploaded_todate and time
Only assets uploaded at or before this time.
Sort bysort_bytext
What to sort by. Canto's default is the date its settings show assets by.One of: time (Date), name, scheme (Type), owner, size (File size).
Ordersort_directiontext
The order. Canto's default is newest first.One of: descending (Newest, last or largest first), ascending (Oldest, first or smallest first).
Start atstartnumber
How many assets to skip: 0 for the first page, or the next_start a previous step returned.At least 0.
Limitlimitnumber
How many assets to return, up to 1,000. Canto's default is 100.From 1 to 1000.

Outputs

dataobject
The response from Canto.
Example output
{
  "data": {
    "found": 1,
    "next_start": 1,
    "results": [
      {
        "additional": {},
        "approvalStatus": "example",
        "default": {},
        "dpi": "example",
        "height": "example",
        "id": "example",
        "keyword": [
          "example"
        ],
        "name": "example",
        "owner": "example",
        "ownerName": "example",
        "relatedAlbums": [
          {
            "id": "example",
            "idPath": "example",
            "scheme": "example"
          }
        ],
        "scheme": "example",
        "size": "example",
        "tag": [
          "example"
        ],
        "time": "example",
        "url": {
          "HighJPG": "example",
          "LowJPG": "example",
          "PNG": "example",
          "detail": "example",
          "directUrlOriginal": "example",
          "directUrlPreview": "example",
          "download": "example",
          "metadata": "example",
          "preview": "example"
        },
        "width": "example"
      }
    ]
  }
}

Set custom field

Set one of your account's custom fields on an asset, or add or remove a value of a multiple-choice or label field.

Inputs

Asset typeschemetextRequired
The asset's type as Canto files it. A trigger or an earlier step gives it as scheme.One of: image, video, audio, document, presentation, other.
Assetasset_idtextRequired
The asset. Choose one of the newest, or use the id from a trigger or an earlier step.
Custom fieldcustom_fieldtextRequired
The custom field, as set up in Canto's settings.
ValuevaluetextRequired
The value. A date is written YYYY-MM-DD, a rating 1 to 5, a choice as Canto lists it and a label as its color code, such as #FFFFFF.
Changemodetext
For a multiple-choice or label field, whether to add the value (the default) or remove it. Other fields are set to the value.One of: add (Add this value), remove (Remove this value).

Outputs

dataobject
The response from Canto.
Example output
{
  "data": {
    "success": true
  }
}

Update asset details

Change an asset's description or copyright.

Inputs

Asset typeschemetextRequired
The asset's type as Canto files it. A trigger or an earlier step gives it as scheme.One of: image, video, audio, document, presentation, other.
Assetasset_idtextRequired
The asset. Choose one of the newest, or use the id from a trigger or an earlier step.
Descriptiondescriptiontext
The asset's description.
Description changedescription_modetext
Whether the description replaces the one the asset has (the default) or is added to its end.One of: cover (Replace the description), append (Add to the end of the description).
Copyrightcopyrighttext
The asset's copyright notice.

Outputs

dataobject
The response from Canto.
Example output
{
  "data": {
    "success": true
  }
}

Upload file

Add a file to the library, optionally in an album. Canto adds it once it has processed the file, usually within minutes; Get upload status shows when it's done, with the new asset's ID.

Inputs

FilefiletextRequired
Upload a file, choose one from an earlier step, or enter a link to one. Up to 100 MB.
File namefile_nametext
The name for the asset, with its extension, such as poster.jpg. Leave empty to keep the file's own name. Use a name no recent upload had, as Canto recommends.
Albumalbum_idtext
The album to put the asset in. Leave empty to add it to the library only.

Outputs

dataobject
The response from Canto.
Example output
{
  "data": {
    "album_id": "example",
    "file_name": "example",
    "success": true
  }
}

On this page