Is AI recommending you? Ask Contentstack Canoe for free
Is AI recommending your brand? Find out with Contentstack Canoe for free
Contentstack.comAcademyLogin
CS-log-dark.svgCS-log-dark.svg
  • Changelog
  • APIs
  • SDKs

Platform

  • Solution Center
  • Marketplace
  • Changelog
  • Developers & IT
  • Business users
  • Digital leaders
  • Developer Fast Track
  • Plans & Pricing

Solutions

  • Retail
  • Travel and tourism
  • Financial services
  • Technology
  • Manufacturing
  • E-commerce
  • Localization
  • Personalization
  • Portals and knowledge bases

Resources

  • Academy
  • Docs
  • Contentstack for Developers
  • Agents Start Here
  • Product updates
  • Contentstack on Contentstack
  • Blog
  • Insights and analyst reports
  • The Forrester Wave™: Digital Experience Platforms, Q4 2025
  • Webinars
  • Glossary
  • Content generative library
  • Community

Customers

  • Case Studies
  • Customer Care
  • Contentstack Experience Awards
  • Customer support

Partners

  • Overview
  • Find a partner
  • Login

Company

  • About us
  • News
  • Customer support portal
  • Contact

Social

  • Facebook
  • LinkedIn
  • Instagram
  • GitHub
  • YouTube
  • Discord
  • X
LegalTermsPrivacyTrust Center

Cookie settings

Copyright © 2026 Contentstack Inc. All rights reserved.
/
  1. Home
  2. APIs
  3. Assets API
  4. Assets

Assets

markdownView as Markdown

Upload, retrieve, update, delete, move, trash, and restore digital assets.

Upload an asset

POSThttps://am-api.contentstack.com/api/spaces/{space_uid}/assets

The Upload an asset request adds a new asset to the specified space. Send the request as multipart/form-data with the binary file in the asset[upload] part and any metadata in the accompanying fields. The maximum file size is 5 GB.

Hide Parameters

URL Parameters

space_uidrequiredstring

Enter the uid of the space that you want to retrieve.

Query Parameters

workspaceoptionalstring

The workspace to work in. Defaults to the space’s default workspace, so a request that omits this parameter cannot see an asset held in any other workspace and fails with 404. Pass the workspace uid whenever you work outside the default, for example when a workspace is linked to a branch other than main.

Headers

authorizationoptionalstring

OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.

authtokenoptionalstring

Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.

x-cs-api-versionrequiredstring

Enter the Assets API version. Default is 4.

Body Parameters

asset[upload]requiredstring (binary)

Attach the asset file to upload. The maximum file size is 5 GB.

asset[title]optionalstring

Enter the title of the asset.

asset[description]optionalstring

Enter a description for the asset.

asset[parent_uid]optionalstring

Enter the uid of the folder in which to place the asset.

asset[tags]optionalstring

Enter a comma-separated list of tags to associate with the asset.

Sample Request
1234567
{
  "asset[upload]": "string",
  "asset[title]": "string",
  "asset[description]": "string",
  "asset[parent_uid]": "string",
  "asset[tags]": "string"
}
Sample Response
Status|201 Created
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
{
  "notice": "string",
  "asset": {
    "_id": "string",
    "uid": "string",
    "object_type": "string",
    "title": "string",
    "description": "string",
    "file_name": "string",
    "parent_uid": "string",
    "path": [
      {
        "uid": "string",
        "title": "string"
      }
    ],
    "owner_uid": "string",
    "co_owners": [
      {
        "uid": "string",
        "name": "string"
      }
    ],
    "permanent_url": "string",
    "permanent_url_slug": "string",
    "content_type": "string",
    "asset_type_uid": "string",
    "file_size": 0,
    "tags": [
      "string"
    ],
    "is_dir": true,
    "asset_id": "string",
    "url": "string",
    "locale": "string",
    "dimensions": {
      "height": 0,
      "width": 0
    },
    "status": "IN_PROGRESS",
    "version": 0,
    "org_uid": "string",
    "space_uid": "string",
    "user_defined_fields": {},
    "visual_markups": [
      {
        "type": "Hotspot",
        "title": "string",
        "description": "string",
        "url": "http://example.com",
        "coordinates": {
          "x": 0,
          "y": 0,
          "width": 0,
          "height": 0
        }
      }
    ],
    "publish_details": [
      {
        "locale": "string",
        "environment": "string",
        "time": "2019-08-24T14:15:22Z",
        "user": "string",
        "version": 0,
        "action": "string",
        "job_id": "string",
        "scheduled_at": "2019-08-24T14:15:22Z",
        "workspace_uid": "string",
        "origin": "string"
      }
    ],
    "_version_name": {
      "title": "string",
      "updated_at": "2019-08-24T14:15:22Z",
      "updated_by": "string"
    },
    "created_by": "string",
    "updated_by": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z",
    "is_deleted": true
  }
}

Get all assets

GEThttps://am-api.contentstack.com/api/spaces/{space_uid}/assets

Bulk move assets

POSThttps://am-api.contentstack.com/api/spaces/{space_uid}/assets/bulk-move

Bulk delete assets

POSThttps://am-api.contentstack.com/api/spaces/{space_uid}/assets/bulk/delete

Get trashed assets

POSThttps://am-api.contentstack.com/api/spaces/{space_uid}/assets/trash

Restore a deleted asset

PUThttps://am-api.contentstack.com/api/spaces/{space_uid}/assets/{asset_uid}/restore

Update an asset

PUThttps://am-api.contentstack.com/api/spaces/{space_uid}/assets/{asset_uid}

Get an asset

GEThttps://am-api.contentstack.com/api/spaces/{space_uid}/assets/{asset_uid}

Delete an asset

DELETEhttps://am-api.contentstack.com/api/spaces/{space_uid}/assets/{asset_uid}

Get AI suggested metadata

GEThttps://am-api.contentstack.com/api/spaces/{space_uid}/assets/{asset_uid}/ai-suggested

List duplicate sets

GEThttps://am-api.contentstack.com/api/spaces/{space_uid}/assets/duplicates

List assets in a duplicate set

GEThttps://am-api.contentstack.com/api/spaces/{space_uid}/assets/duplicates/{uid}

Get asset locales

GEThttps://am-api.contentstack.com/api/spaces/{space_uid}/assets/{asset_uid}/locales

The Get all assets request fetches a paginated list of all assets in the specified space. Use the query parameters to filter, sort, paginate, and control what each asset returns.

Pass locale to read the assets in a specific language. Where an asset has not been localized into that language, fallback_locales decides what comes back: each asset falls back through the languages you list, in the order you list them, so a partly localized library still returns a complete set of results rather than gaps.

Sample Response
Status|200 OK
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
{
  "count": 0,
  "relation": "string",
  "assets": [
    {
      "_id": "string",
      "uid": "string",
      "object_type": "string",
      "title": "string",
      "description": "string",
      "file_name": "string",
      "parent_uid": "string",
      "path": [
        {
          "uid": "string",
          "title": "string"
        }
      ],
      "owner_uid": "string",
      "co_owners": [
        {
          "uid": "string",
          "name": "string"
        }
      ],
      "permanent_url": "string",
      "permanent_url_slug": "string",
      "content_type": "string",
      "asset_type_uid": "string",
      "file_size": 0,
      "tags": [
        "string"
      ],
      "is_dir": true,
      "asset_id": "string",
      "url": "string",
      "locale": "string",
      "dimensions": {
        "height": 0,
        "width": 0
      },
      "status": "IN_PROGRESS",
      "version": 0,
      "org_uid": "string",
      "space_uid": "string",
      "user_defined_fields": {},
      "visual_markups": [
        {
          "type": "Hotspot",
          "title": "string",
          "description": "string",
          "url": "http://example.com",
          "coordinates": {
            "x": 0,
            "y": 0,
            "width": 0,
            "height": 0
          }
        }
      ],
      "publish_details": [
        {
          "locale": "string",
          "environment": "string",
          "time": "2019-08-24T14:15:22Z",
          "user": "string",
          "version": 0,
          "action": "string",
          "job_id": "string",
          "scheduled_at": "2019-08-24T14:15:22Z",
          "workspace_uid": "string",
          "origin": "string"
        }
      ],
      "_version_name": {
        "title": "string",
        "updated_at": "2019-08-24T14:15:22Z",
        "updated_by": "string"
      },
      "created_by": "string",
      "updated_by": "string",
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z",
      "is_deleted": true
    }
  ]
}

The Bulk move assets request moves multiple assets to a target folder in a single operation.

Sample Request
123456
{
  "asset_uids": [
    "string"
  ],
  "target_folder_uid": "string"
}
Sample Response
Status|200 OK
123
{
  "notice": "string"
}

The Bulk delete assets request starts an asynchronous job to delete multiple assets. The response returns a job_id immediately, and the deletion runs in the background. Use the job_id to track the status of the job. The operation supports partial success, so some assets in the request may fail while others succeed.

Delete assets in specific locales:

{
  "assets": [
    {
      "locale": "en-us",
      "uid": "blt1234567890abcdef"
    },
    {
      "locale": "fr-fr",
      "uid": "blt2345678901bcdefg"
    }
  ]
}

undefined

Sample Request
12345678910
{
  "assets": [
    {
      "uid": "blt1234567890abcdef"
    },
    {
      "uid": "blt2345678901bcdefg"
    }
  ]
}
Sample Response
Status|200 OK
1234
{
  "notice": "Your bulk delete request is in progress. Please check bulk task queue for more details.",
  "job_id": "cs-a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}

The Get trashed assets request fetches the assets currently in the trash, also known as the bin. Pass a query payload in the request body to filter, sort, and paginate the results.

Sample Request
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
{
  "query": {
    "$and": [
      {}
    ],
    "$or": [
      {}
    ],
    "property1": {
      "$eq": null,
      "$ne": null,
      "$contains": "string",
      "$lt": null,
      "$lte": null,
      "$gt": null,
      "$gte": null,
      "$exists": true,
      "$in": [
        null
      ],
      "$nin": [
        null
      ],
      "$range": {}
    },
    "property2": {
      "$eq": null,
      "$ne": null,
      "$contains": "string",
      "$lt": null,
      "$lte": null,
      "$gt": null,
      "$gte": null,
      "$exists": true,
      "$in": [
        null
      ],
      "$nin": [
        null
      ],
      "$range": {}
    }
  },
  "search_text": "string",
  "search_terms_operator": "and",
  "search_field": "all",
  "asc": "string",
  "desc": "string",
  "limit": 0,
  "skip": 0,
  "object_type": "string",
  "ai_enrichment": "enriched",
  "filter_only_deleted_items": true,
  "include_deleted_items": true,
  "include_user_details": true,
  "fields": [
    "string"
  ],
  "spaces": [
    {}
  ],
  "ai_suggestions": {},
  "include_asset_type_schema": true,
  "contextual_locale": "string",
  "contextual_fallback_locales": [
    "string"
  ],
  "return_acl_without_filter": true,
  "include_deleted_workspace": true
}
Sample Response
Status|200 OK
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
{
  "assets": [
    {
      "_id": "string",
      "uid": "string",
      "object_type": "string",
      "title": "string",
      "description": "string",
      "file_name": "string",
      "parent_uid": "string",
      "path": [
        {
          "uid": "string",
          "title": "string"
        }
      ],
      "owner_uid": "string",
      "co_owners": [
        {
          "uid": "string",
          "name": "string"
        }
      ],
      "permanent_url": "string",
      "permanent_url_slug": "string",
      "content_type": "string",
      "asset_type_uid": "string",
      "file_size": 0,
      "tags": [
        "string"
      ],
      "is_dir": true,
      "asset_id": "string",
      "url": "string",
      "locale": "string",
      "dimensions": {
        "height": 0,
        "width": 0
      },
      "status": "IN_PROGRESS",
      "version": 0,
      "org_uid": "string",
      "space_uid": "string",
      "user_defined_fields": {},
      "visual_markups": [
        {
          "type": "Hotspot",
          "title": "string",
          "description": "string",
          "url": "http://example.com",
          "coordinates": {
            "x": 0,
            "y": 0,
            "width": 0,
            "height": 0
          }
        }
      ],
      "publish_details": [
        {
          "locale": "string",
          "environment": "string",
          "time": "2019-08-24T14:15:22Z",
          "user": "string",
          "version": 0,
          "action": "string",
          "job_id": "string",
          "scheduled_at": "2019-08-24T14:15:22Z",
          "workspace_uid": "string",
          "origin": "string"
        }
      ],
      "_version_name": {
        "title": "string",
        "updated_at": "2019-08-24T14:15:22Z",
        "updated_by": "string"
      },
      "created_by": "string",
      "updated_by": "string",
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z",
      "is_deleted": true
    }
  ],
  "count": 0,
  "relation": "eq"
}

The Restore a deleted asset request restores a soft-deleted asset from the trash, also known as the bin, back to the space.

Sample Request
12345678
{
  "title": "string",
  "description": "string",
  "tags": [
    "string"
  ],
  "user_defined_fields": {}
}
Sample Response
Status|200 OK
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
{
  "notice": "string",
  "asset": {
    "_id": "string",
    "uid": "string",
    "object_type": "string",
    "title": "string",
    "description": "string",
    "file_name": "string",
    "parent_uid": "string",
    "path": [
      {
        "uid": "string",
        "title": "string"
      }
    ],
    "owner_uid": "string",
    "co_owners": [
      {
        "uid": "string",
        "name": "string"
      }
    ],
    "permanent_url": "string",
    "permanent_url_slug": "string",
    "content_type": "string",
    "asset_type_uid": "string",
    "file_size": 0,
    "tags": [
      "string"
    ],
    "is_dir": true,
    "asset_id": "string",
    "url": "string",
    "locale": "string",
    "dimensions": {
      "height": 0,
      "width": 0
    },
    "status": "IN_PROGRESS",
    "version": 0,
    "org_uid": "string",
    "space_uid": "string",
    "user_defined_fields": {},
    "visual_markups": [
      {
        "type": "Hotspot",
        "title": "string",
        "description": "string",
        "url": "http://example.com",
        "coordinates": {
          "x": 0,
          "y": 0,
          "width": 0,
          "height": 0
        }
      }
    ],
    "publish_details": [
      {
        "locale": "string",
        "environment": "string",
        "time": "2019-08-24T14:15:22Z",
        "user": "string",
        "version": 0,
        "action": "string",
        "job_id": "string",
        "scheduled_at": "2019-08-24T14:15:22Z",
        "workspace_uid": "string",
        "origin": "string"
      }
    ],
    "_version_name": {
      "title": "string",
      "updated_at": "2019-08-24T14:15:22Z",
      "updated_by": "string"
    },
    "created_by": "string",
    "updated_by": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z",
    "is_deleted": true
  }
}

The Update an asset request updates an existing asset. Send multipart/form-data to replace the file, or a JSON body to change metadata only.

Rename an asset with title and description, and move it into another folder with parent_uid.

Classify it with tags, which replaces the whole tag list rather than appending to it, and with user_defined_fields, which carries the values for the custom fields defined on the asset type.

Change how the asset is presented with transformations, which applies image transformations, and visual_markups, which carries annotation data.

Pass version to guard against overwriting a concurrent change. The request fails with 409 if the asset moved on since you read it. Omit it only when a last-write-wins update is acceptable.

Pass locale to work in a specific language. Updating an asset in a language it has not been localized into yet creates a localized variant: from that point the variant keeps its own title, description, tags, user-defined fields, and file, and it stops inheriting changes made to the default language. Omit locale to work in the default language of the space.

Move into another folder:

{
  "parent_uid": "amf1c92a9269cfda09"
}

undefined

Replace the tag list:

{
  "tags": [
    "campaign",
    "q4",
    "approved"
  ]
}

undefined

Set custom metadata field values:

{
  "user_defined_fields": {
    "expires_on": "2027-01-31",
    "photographer": "A. Kumar",
    "usage_rights": "web-only"
  }
}

undefined

Guard against a concurrent change:

{
  "title": "Q4 hero banner v2",
  "version": 7
}

undefined

Sample Request
1234
{
  "description": "Approved for the December campaign.",
  "title": "Q4 hero banner"
}
Sample Response
Status|200 OK
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
{
  "notice": "string",
  "asset": {
    "_id": "string",
    "uid": "string",
    "object_type": "string",
    "title": "string",
    "description": "string",
    "file_name": "string",
    "parent_uid": "string",
    "path": [
      {
        "uid": "string",
        "title": "string"
      }
    ],
    "owner_uid": "string",
    "co_owners": [
      {
        "uid": "string",
        "name": "string"
      }
    ],
    "permanent_url": "string",
    "permanent_url_slug": "string",
    "content_type": "string",
    "asset_type_uid": "string",
    "file_size": 0,
    "tags": [
      "string"
    ],
    "is_dir": true,
    "asset_id": "string",
    "url": "string",
    "locale": "string",
    "dimensions": {
      "height": 0,
      "width": 0
    },
    "status": "IN_PROGRESS",
    "version": 0,
    "org_uid": "string",
    "space_uid": "string",
    "user_defined_fields": {},
    "visual_markups": [
      {
        "type": "Hotspot",
        "title": "string",
        "description": "string",
        "url": "http://example.com",
        "coordinates": {
          "x": 0,
          "y": 0,
          "width": 0,
          "height": 0
        }
      }
    ],
    "publish_details": [
      {
        "locale": "string",
        "environment": "string",
        "time": "2019-08-24T14:15:22Z",
        "user": "string",
        "version": 0,
        "action": "string",
        "job_id": "string",
        "scheduled_at": "2019-08-24T14:15:22Z",
        "workspace_uid": "string",
        "origin": "string"
      }
    ],
    "_version_name": {
      "title": "string",
      "updated_at": "2019-08-24T14:15:22Z",
      "updated_by": "string"
    },
    "created_by": "string",
    "updated_by": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z",
    "is_deleted": true
  }
}

The Get an asset request fetches the details of a specific asset using its uid. Use the query parameters to request a specific locale or version and to control the additional details the response includes.

Sample Response
Status|200 OK
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
{
  "asset": {
    "_id": "string",
    "uid": "string",
    "object_type": "string",
    "title": "string",
    "description": "string",
    "file_name": "string",
    "parent_uid": "string",
    "path": [
      {
        "uid": "string",
        "title": "string"
      }
    ],
    "owner_uid": "string",
    "co_owners": [
      {
        "uid": "string",
        "name": "string"
      }
    ],
    "permanent_url": "string",
    "permanent_url_slug": "string",
    "content_type": "string",
    "asset_type_uid": "string",
    "file_size": 0,
    "tags": [
      "string"
    ],
    "is_dir": true,
    "asset_id": "string",
    "url": "string",
    "locale": "string",
    "dimensions": {
      "height": 0,
      "width": 0
    },
    "status": "IN_PROGRESS",
    "version": 0,
    "org_uid": "string",
    "space_uid": "string",
    "user_defined_fields": {},
    "visual_markups": [
      {
        "type": "Hotspot",
        "title": "string",
        "description": "string",
        "url": "http://example.com",
        "coordinates": {
          "x": 0,
          "y": 0,
          "width": 0,
          "height": 0
        }
      }
    ],
    "publish_details": [
      {
        "locale": "string",
        "environment": "string",
        "time": "2019-08-24T14:15:22Z",
        "user": "string",
        "version": 0,
        "action": "string",
        "job_id": "string",
        "scheduled_at": "2019-08-24T14:15:22Z",
        "workspace_uid": "string",
        "origin": "string"
      }
    ],
    "_version_name": {
      "title": "string",
      "updated_at": "2019-08-24T14:15:22Z",
      "updated_by": "string"
    },
    "created_by": "string",
    "updated_by": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z",
    "is_deleted": true
  }
}

The Delete an asset request soft-deletes a specific asset using its uid.

Scope the request with locale or locales to act on specific languages rather than on the asset as a whole. Deleting an asset in a language removes the localized values for that language, which then inherits from the default language again, exactly as it did before it was localized. The localized metadata and file are discarded, and the language stays available to localize into again later.

Omit both parameters to act on the default language of the space. A soft-deleted asset goes to the bin, so it can be restored rather than being lost outright.

Sample Response
Status|200 OK
1234567
{
  "notice": "string",
  "uid": "string",
  "deleted_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z",
  "updated_by": "string"
}

The Get AI suggested metadata request returns metadata that Contentstack generates for an image: a descriptive alt text, classification tags, detected objects, faces, celebrities, text, dominant and background colors, image properties, and content safety flags.

Use it to enrich assets programmatically. The response is a suggestion, not a stored value: nothing is written to the asset. Read what you need, decide what to keep, and write it back with the Update an asset request.

The first call for an image that has not been analyzed yet analyzes it on demand, so that call can take several seconds and consumes AI credits. Later calls for the same binary read the stored result, return immediately, and consume no credits. The status field reports ready when the metadata is available and not_ingested when it is not.

Pass locale to read the metadata for a specific localized binary. Omit it to read the master locale. The locale must be configured on the workspace, otherwise the request fails with 422.

Pass workspace when the asset exists in more than one workspace. An asset copied into another workspace keeps its uid but holds a different binary there, so omitting workspace returns the metadata for the space's default workspace, which may not be the image you meant.

Confidence values run from 0 to 1. Bounding boxes are in pixels, measured from the top left corner of the image, which makes objects[].bounding_box usable for focal point cropping. Alt text carries no confidence value because it is generated rather than classified.

This request works with an authtoken and with an OAuth access token, and behaves identically for both. An OAuth app additionally needs the assets read scope. The request requires read access to the asset: a caller denied access receives 403 and no analysis is performed, so a forbidden request never consumes credits.

Sample Response
Status|200 OK
1
[object Object],[object Object]

The List duplicate sets request returns the groups of identical images found in a workspace. Two assets belong to the same set when their file contents are identical, whatever their file name, folder, or upload date.

Detection runs automatically in the background whenever an asset is uploaded, replaced, deleted, or restored, so no request is needed to start it. Only images are grouped, and only exact matches: a resized or re-exported copy is a different file and forms no set.

Sets are returned most recently changed first. Use skip and limit to page through them.

Read count on each set as the number of copies visible in the workspace, and distinct_binary_count as the number of distinct binaries behind them. A set appears only while at least two distinct binaries remain, so a set drops out of this list once it has been cleaned up.

To see the individual assets in a set, pass its uid to the List assets in a duplicate set request.

Duplicate Management can be turned off for a workspace, in which case detection pauses and no new sets are formed. Sets already detected are kept.

Sample Response
Status|200 OK
1
[object Object],[object Object]

The List assets in a duplicate set request returns the individual assets grouped into one set of identical images. Take the set uid from the List duplicate sets request.

Each localized version of an asset is returned as its own row, so a set holding one asset localized into three languages returns three rows.

Every row carries an ACL object reporting what you may do with that asset. Use ACL.delete to decide whether to offer a delete action rather than letting the delete fail.

Assets you do not have permission to read are left out of the response. count reports the rows you can see, while distinct_binary_count counts every distinct binary in the set regardless of your permissions, so a lower count means copies exist that you cannot access.

No copy in a set is marked as the original. To clean up a set, choose which asset to keep and delete the rest with the Delete an asset or Delete assets in bulk request. Deleted assets move to the bin and can be restored. Once fewer than two distinct binaries remain, the set no longer appears in List duplicate sets.

An unknown set uid, a set outside your workspace, and a set that has already been cleaned up are all answered with 404.

Sample Response
Status|200 OK
1
[object Object],[object Object]

The Get asset locales request fetches the localization status of a specific asset across all locales of the space.

Use it to see which languages hold a localized variant of the asset and which are still inheriting from the default language. This is the check to make before you localize or unlocalize, because it tells you whether a language carries its own values or is falling back.

Sample Response
Status|200 OK
123456789
{
  "locales": [
    {
      "code": "string",
      "localized": true,
      "deleted": true
    }
  ]
}
Hide Parameters

URL Parameters

space_uidrequiredstring

Enter the uid of the space that you want to retrieve.

Query Parameters

skipoptionalstring

The skip parameter skips a specific number of items in the output. For example, if there are 20 items and you want to skip the first 2 to get only the last 18 in the response body, specify 2 here.

limitoptionalstring

The limit parameter returns a specific number of items (between 0 and 100) in your response based on the value you provide.

sortoptionalstring

Enter the field name to sort the results by, such as created_at or title.

orderoptionalstring

Enter the sort order of the results. Accepted values are asc for ascending and desc for descending.

search_textoptionalstring

Enter the text to search for across the assets in the space.

search_fieldoptionalstring

Enter the field name to restrict the search_text lookup to a single field, such as title or file_name.

localeoptionalstring

Enter the locale code, such as en-us, to fetch the assets in a specific locale. Defaults to the master locale of the space.

fallback_localesoptionalstring

Enter one or more locale codes to use as fallbacks when an asset is not localized in the requested locale.

parent_uidoptionalstring

Enter the uid of the parent folder to fetch only the assets within that folder.

workspaceoptionalstring

Enter the uid of the workspace to scope the results to a single workspace.

asset_fieldsoptionalstring

Enter the names of the asset fields to include in the response. Limits the payload to only the fields you specify.

exclude_uidsoptionalstring

Enter the uid values of the assets to exclude from the response.

include_spaceoptionalstring

Set to true to include the parent space details in the response. Default is false.

include_acloptionalstring

Set to true to include the access control list (ACL) of each asset in the response. Default is false.

include_asset_type_schemaoptionalstring

Set to true to include the schema of the asset type associated with each asset. Default is false.

include_publish_detailsoptionalstring

Set to true to include the publish details of each asset in the response. Default is false.

deletedoptionalstring

Set to true to include soft-deleted assets in the response. Default is false.

Headers

authorizationoptionalstring

OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.

authtokenoptionalstring

Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.

x-cs-api-versionrequiredstring

Enter the Assets API version. Default is 4.

Hide Parameters

URL Parameters

space_uidrequiredstring

Enter the uid of the space that you want to retrieve.

Query Parameters

workspaceoptionalstring

The workspace to work in. Defaults to the space’s default workspace, so a request that omits this parameter cannot see an asset held in any other workspace and fails with 404. Pass the workspace uid whenever you work outside the default, for example when a workspace is linked to a branch other than main.

Headers

authorizationoptionalstring

OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.

authtokenoptionalstring

Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.

x-cs-api-versionrequiredstring

Enter the Assets API version. Default is 4.

Body Parameters

asset_uidsrequiredstring[]

The uid values of the assets to move.

target_folder_uidrequiredstring

The uid of the folder to move the assets to.

Hide Parameters

URL Parameters

space_uidrequiredstring

Enter the uid of the space that you want to retrieve.

Query Parameters

workspaceoptionalstring

The workspace to work in. Defaults to the space’s default workspace, so a request that omits this parameter cannot see an asset held in any other workspace and fails with 404. Pass the workspace uid whenever you work outside the default, for example when a workspace is linked to a branch other than main.

Headers

authorizationoptionalstring

OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.

authtokenoptionalstring

Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.

x-cs-api-versionrequiredstring

Enter the Assets API version. Default is 4.

Body Parameters

assetsrequiredobject[]
assets[].uidrequiredstring

The uid of the asset to delete.

assets[].localeoptionalstring

The locale of the asset to delete. Defaults to the master locale.

Hide Parameters

URL Parameters

space_uidrequiredstring

Enter the uid of the space that you want to retrieve.

Query Parameters

workspaceoptionalstring

The workspace to work in. Defaults to the space’s default workspace, so a request that omits this parameter cannot see an asset held in any other workspace and fails with 404. Pass the workspace uid whenever you work outside the default, for example when a workspace is linked to a branch other than main.

Headers

authorizationoptionalstring

OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.

authtokenoptionalstring

Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.

x-cs-api-versionrequiredstring

Enter the Assets API version. Default is 4.

Body Parameters

queryoptionalobject

A query clause that combines conditions with $and or $or, or specifies field-level conditions directly.

query.$andoptionalobject[]
query.$and[].$andoptionalobject[]
query.$and[].$oroptionalobject[]
query.$and[].$or[].$andoptionalobject[]
query.$and[].$or[].$oroptionalobject[]
query.$oroptionalobject[]
query.$or[].$andoptionalobject[]
query.$or[].$and[].$andoptionalobject[]
query.$or[].$and[].$oroptionalobject[]
query.$or[].$oroptionalobject[]
search_textoptionalstring

The text to search for.

search_terms_operatoroptionalstring

The operator to combine multiple search terms.

One of: and, or

search_fieldoptionalstring

The field to restrict the text search to.

One of: all, title, name, url, category

ascoptionalstring

The field name to sort the results by in ascending order.

descoptionalstring

The field name to sort the results by in descending order.

limitoptionalinteger

The maximum number of results to return.

skipoptionalinteger

The number of results to skip.

object_typeoptionalstring

The type of object to search.

ai_enrichmentoptionalstring

Filter the listing by AI enrichment state. enriched returns assets whose latest binary was enriched; not_enriched returns every other asset, including those uploaded before AI existed. Applies to asset searches only.

One of: enriched, not_enriched

filter_only_deleted_itemsoptionalboolean

Set to true to return only deleted items.

include_deleted_itemsoptionalboolean

Set to true to include deleted items in the results.

include_user_detailsoptionalboolean

Set to true to include user details in the results.

fieldsoptionalstring[]

The fields to include in the results.

spacesoptionalobject[]

The spaces to scope the search to.

ai_suggestionsoptionalobject

The AI-based suggestion options for the search.

include_asset_type_schemaoptionalboolean

Set to true to include the asset type schema in the results.

contextual_localeoptionalstring

The locale to use for contextual search.

contextual_fallback_localesoptionalstring[]

The fallback locales to use for contextual search.

return_acl_without_filteroptionalboolean
include_deleted_workspaceoptionalboolean

Set to true to include items from deleted workspaces.

Hide Parameters

URL Parameters

space_uidrequiredstring

Enter the uid of the space that you want to retrieve.

asset_uidrequiredstring

Enter the uid of the asset that you want to retrieve.

Query Parameters

localeoptionalstring

Enter the locale code, such as en-us, of the asset you want to restore. Defaults to the master locale of the space.

workspaceoptionalstring

The workspace to work in. Defaults to the space’s default workspace, so a request that omits this parameter cannot see an asset held in any other workspace and fails with 404. Pass the workspace uid whenever you work outside the default, for example when a workspace is linked to a branch other than main.

Headers

authorizationoptionalstring

OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.

authtokenoptionalstring

Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.

x-cs-api-versionrequiredstring

Enter the Assets API version. Default is 4.

Body Parameters

titleoptionalstring

The title to apply to the restored asset.

descriptionoptionalstring

The description to apply to the restored asset.

tagsoptionalstring[]

The tags to apply to the restored asset.

user_defined_fieldsoptionalobject
Hide Parameters

URL Parameters

space_uidrequiredstring

Enter the uid of the space that you want to retrieve.

asset_uidrequiredstring

Enter the uid of the asset that you want to retrieve.

Query Parameters

localeoptionalstring

Enter the locale code, such as en-us, of the asset you want to update. Defaults to the master locale of the space.

workspaceoptionalstring

The workspace to work in. Defaults to the space’s default workspace, so a request that omits this parameter cannot see an asset held in any other workspace and fails with 404. Pass the workspace uid whenever you work outside the default, for example when a workspace is linked to a branch other than main.

Headers

authorizationoptionalstring

OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.

authtokenoptionalstring

Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.

x-cs-api-versionrequiredstring

Enter the Assets API version. Default is 4.

Body Parameters

titleoptionalstring

The updated title of the asset.

descriptionoptionalstring

The updated description of the asset.

permanent_urloptionalstring

A permanent URL for the asset, which stays the same no matter how many times the file is replaced. Use it to reference the asset from entries or external systems without having to update the link on every upload. A permanent URL can be generated only once and cannot be changed or regenerated afterwards, so choose its slug deliberately.

parent_uidoptionalstring

The uid of the folder to move the asset to.

tagsoptionalstring[]

The tags to associate with the asset.

versionoptionalinteger

The version number of the asset you are updating.

is_editingoptionalboolean

Indicates whether an image edit is currently being applied to the asset. The service sets it to true when it accepts a set of transformations and begins processing them, and back to false once processing finishes, whether it succeeded or not.

While it is true, the asset still serves the previous file: url, file_size, and dimensions change only when the edit completes, so poll the asset if you need to know the new file is ready.

You do not need to set this yourself. Send transformations to start an edit. This field is returned only when image editing is enabled for your organization.

user_defined_fieldsoptionalobject

The values of the custom fields defined for the asset type.

visual_markupsoptionalobject[]

Clickable or hoverable regions overlaid on an image, defined as hotspots or bounding boxes. Use them to highlight an object, attach contextual information, or build a shoppable image, so that a static asset becomes an interactive one.

visual_markups[].typerequiredstring

The type of visual markup.

One of: Hotspot, BoundingBox

visual_markups[].titlerequiredstring

The title of the markup.

visual_markups[].descriptionoptionalstring

A description of the markup.

visual_markups[].urloptionalstring (uri)

An optional URL associated with the markup.

visual_markups[].coordinatesrequiredobject

The coordinates of a visual markup on an asset.

visual_markups[].coordinates.xrequirednumber

The x-coordinate of the markup.

visual_markups[].coordinates.yrequirednumber

The y-coordinate of the markup.

visual_markups[].coordinates.widthoptionalnumber

The width of the markup. Required for the BoundingBox type.

visual_markups[].coordinates.heightoptionalnumber

The height of the markup. Required for the BoundingBox type.

transformationsoptionalobject

The image transformations to apply to the asset.

Hide Parameters

URL Parameters

space_uidrequiredstring

Enter the uid of the space that you want to retrieve.

asset_uidrequiredstring

Enter the uid of the asset that you want to retrieve.

Query Parameters

localeoptionalstring

Enter the locale code, such as en-us, to fetch the asset in a specific locale. Defaults to the master locale of the space.

versionoptionalstring

Enter the version number to fetch a specific version of the asset. Defaults to the latest version.

include_publish_detailsoptionalstring

Set to true to include the publish details of the asset in the response. Default is false.

include_acloptionalstring

Set to true to include the access control list (ACL) of the asset in the response. Default is false.

deletedoptionalstring

Set to true to fetch the asset even if it is soft-deleted. Default is false.

workspaceoptionalstring

The workspace to work in. Defaults to the space’s default workspace, so a request that omits this parameter cannot see an asset held in any other workspace and fails with 404. Pass the workspace uid whenever you work outside the default, for example when a workspace is linked to a branch other than main.

Headers

authorizationoptionalstring

OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.

authtokenoptionalstring

Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.

x-cs-api-versionrequiredstring

Enter the Assets API version. Default is 4.

Hide Parameters

URL Parameters

space_uidrequiredstring

Enter the uid of the space that you want to retrieve.

asset_uidrequiredstring

Enter the uid of the asset that you want to retrieve.

Query Parameters

localeoptionalstring

Enter the locale code, such as en-us, of the asset you want to delete. Defaults to the master locale of the space.

localesoptionalstring

Enter one or more locale codes to delete the asset in multiple locales at once.

workspaceoptionalstring

Enter the uid of the workspace that contains the asset.

Headers

authorizationoptionalstring

OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.

authtokenoptionalstring

Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.

x-cs-api-versionrequiredstring

Enter the Assets API version. Default is 4.

Hide Parameters

URL Parameters

space_uidrequiredstring

Enter the uid of the space that you want to retrieve.

asset_uidrequiredstring

Enter the uid of the asset that you want to retrieve.

Query Parameters

localeoptionalstring

The locale whose binary you want the metadata for. Defaults to the master locale of the space. The locale must be configured on the workspace, otherwise the request fails with 422.

workspaceoptionalstring

The workspace the asset resolves within. Defaults to the default workspace of the space. An asset copied into another workspace keeps its uid but holds a different binary there, so pass this when the asset exists in more than one workspace.

Headers

authorizationoptionalstring

OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.

authtokenoptionalstring

Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.

x-cs-api-versionrequiredstring

Enter the Assets API version. Default is 4.

Hide Parameters

URL Parameters

space_uidrequiredstring

Enter the uid of the space that you want to retrieve.

Query Parameters

skipoptionalstring

The number of sets to skip before the first one returned. Use it with limit to page through the list.

limitoptionalstring

The maximum number of sets to return in one response.

include_countoptionalstring

Set to true to include the total number of sets alongside the page of results.

workspaceoptionalstring

The workspace to work in. Defaults to the space’s default workspace, so a request that omits this parameter cannot see an asset held in any other workspace and fails with 404. Pass the workspace uid whenever you work outside the default, for example when a workspace is linked to a branch other than main.

Headers

authorizationoptionalstring

OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.

authtokenoptionalstring

Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.

x-cs-api-versionrequiredstring

Enter the Assets API version. Default is 4.

Hide Parameters

URL Parameters

space_uidrequiredstring

Enter the uid of the space that you want to retrieve.

uidrequiredstring

Enter the uid of the duplicate set, as returned by the List duplicate sets request.

Query Parameters

skipoptionalstring

The number of assets to skip before the first one returned. Use it with limit to page through a large set.

limitoptionalstring

The maximum number of assets to return in one response.

include_countoptionalstring

Set to true to include the total number of assets alongside the page of results.

workspaceoptionalstring

The workspace to work in. Defaults to the space’s default workspace, so a request that omits this parameter cannot see an asset held in any other workspace and fails with 404. Pass the workspace uid whenever you work outside the default, for example when a workspace is linked to a branch other than main.

Headers

authorizationoptionalstring

OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.

authtokenoptionalstring

Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.

x-cs-api-versionrequiredstring

Enter the Assets API version. Default is 4.

Hide Parameters

URL Parameters

space_uidrequiredstring

Enter the uid of the space that you want to retrieve.

asset_uidrequiredstring

Enter the uid of the asset that you want to retrieve.

Query Parameters

workspaceoptionalstring

The workspace to work in. Defaults to the space’s default workspace, so a request that omits this parameter cannot see an asset held in any other workspace and fails with 404. Pass the workspace uid whenever you work outside the default, for example when a workspace is linked to a branch other than main.

Headers

authorizationoptionalstring

OAuth access token authentication. Pass the token in the authorization header as Bearer <token>. This header takes an OAuth access token. It does not take a management token, and management tokens are not supported by this API.

Authentication is required. Every request must carry either this header or the authtoken header; a request with neither is rejected.

authtokenoptionalstring

Contentstack authtoken authentication. Pass your Contentstack authtoken in the authtoken header.

This is your authtoken, not your stack api_key and not a management token. OpenAPI classifies any credential sent in a header as an API key, which is why some documentation viewers label this scheme apiKey. That label refers to the transport, not to a Contentstack API key.

Authentication is required. Every request must carry either this header or the authorization header; a request with neither is rejected.

x-cs-api-versionrequiredstring

Enter the Assets API version. Default is 4.