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
  • Product updates
  • Contentstack on Contentstack
  • Blog
  • Insights and analyst reports
  • The Forrester Wave™: Digital Experience Platforms, Q4 2025
  • Webinars
  • Podcasts
  • Glossary
  • Content generative library
  • Community
  • Headless CMS
  • Composable AXP
  • Personalization
  • CDP

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. Workspaces

Workspaces

markdownView as Markdown

Manage workspaces and their locales within a space.

Create a workspace

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

The Create a workspace request creates a new workspace within the specified space. A workspace lets you group assets and manage their locales independently of other workspaces.

Set locales at creation to declare which languages the workspace supports, so its assets can be localized into them straight away. You can change the list later with the Manage workspace locales request.

Hide Parameters

URL Parameters

space_uidrequiredstring

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

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

titlerequiredstring

The title of the workspace.

uidrequiredstring

The unique identifier of the workspace.

descriptionoptionalstring

A description of the workspace.

source_workspaceoptionalstring

The uid of an existing workspace to copy settings from.

localesoptionalobject[]

The locales to associate with the workspace.

locales[].coderequiredstring

The locale code, such as en-us.

locales[].fallbackoptionalstring

The fallback locale code.

locales[].fallback_uidoptionalstring
Sample Request
12345678910111213
{
  "title": "string",
  "uid": "string",
  "description": "string",
  "source_workspace": "string",
  "locales": [
    {
      "code": "string",
      "fallback": "string",
      "fallback_uid": "string"
    }
  ]
}
Sample Response
Status|201 Created
1234567891011121314151617181920212223242526272829303132
{
  "notice": "string",
  "workspace": {
    "_id": "string",
    "uid": "string",
    "title": "string",
    "description": "string",
    "org_uid": "string",
    "space_uid": "string",
    "object_type": "string",
    "workspace_id": "string",
    "origin_workspace": "string",
    "workspace_lineage": [
      "string"
    ],
    "workspace_uid_lineage": [
      "string"
    ],
    "locales": [
      {
        "code": "string",
        "fallback": "string",
        "fallback_uid": "string"
      }
    ],
    "is_deleted": true,
    "created_by": "string",
    "updated_by": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  }
}

Get all workspaces

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

Manage workspace locales

PUThttps://am-api.contentstack.com/api/spaces/{space_uid}/workspaces/{workspace_uid}/locales

Update workspace settings

PUThttps://am-api.contentstack.com/api/spaces/{space_uid}/workspaces/{workspace_uid}/settings

Update a workspace

PUThttps://am-api.contentstack.com/api/spaces/{space_uid}/workspaces/{workspace_uid}

Get a workspace

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

Delete a workspace

DELETEhttps://am-api.contentstack.com/api/spaces/{space_uid}/workspaces/{workspace_uid}

The Get all workspaces request fetches a paginated list of all workspaces within the specified space.

Sample Response
Status|200 OK
12345678910111213141516171819202122232425262728293031323334
{
  "count": 0,
  "workspaces": [
    {
      "_id": "string",
      "uid": "string",
      "title": "string",
      "description": "string",
      "org_uid": "string",
      "space_uid": "string",
      "object_type": "string",
      "workspace_id": "string",
      "origin_workspace": "string",
      "workspace_lineage": [
        "string"
      ],
      "workspace_uid_lineage": [
        "string"
      ],
      "locales": [
        {
          "code": "string",
          "fallback": "string",
          "fallback_uid": "string"
        }
      ],
      "is_deleted": true,
      "created_by": "string",
      "updated_by": "string",
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z"
    }
  ]
}

The Manage workspace locales request adds, updates, or removes the locales associated with a specific workspace.

Languages belong to the workspace, so the locales carried here are the languages its assets can be localized into. Each locale can name a fallback language, which is what an asset returns for a language it has not been localized into. Adding a language makes it available to localize into, and removing one takes it off the workspace.

Sample Request
1234567891011
{
  "title": "string",
  "description": "string",
  "locales": [
    {
      "code": "string",
      "fallback": "string",
      "fallback_uid": "string"
    }
  ]
}
Sample Response
Status|200 OK
1234567891011121314151617181920212223242526272829303132
{
  "notice": "string",
  "workspace": {
    "_id": "string",
    "uid": "string",
    "title": "string",
    "description": "string",
    "org_uid": "string",
    "space_uid": "string",
    "object_type": "string",
    "workspace_id": "string",
    "origin_workspace": "string",
    "workspace_lineage": [
      "string"
    ],
    "workspace_uid_lineage": [
      "string"
    ],
    "locales": [
      {
        "code": "string",
        "fallback": "string",
        "fallback_uid": "string"
      }
    ],
    "is_deleted": true,
    "created_by": "string",
    "updated_by": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  }
}

The Update workspace settings request changes the settings that apply to a single workspace.

Today the request carries one setting, duplicate_management.enabled, which controls whether identical images uploaded to the workspace are grouped into duplicate sets. Duplicate Management is on for every workspace unless it has been turned off, so a workspace that has never been configured behaves as though the setting were true.

Setting it to false pauses detection for the workspace. New uploads are no longer grouped, and Duplicate Management is hidden from the interface. Sets that were already detected are kept, so setting it back to true restores them.

Each settings block is replaced rather than merged, so send the block whole.

Read the value back from the response rather than assuming the value you sent was stored.

Turn Duplicate Management back on:

{
  "settings": {
    "duplicate_management": {
      "enabled": true
    }
  }
}

undefined

Sample Request
1234567
{
  "settings": {
    "duplicate_management": {
      "enabled": false
    }
  }
}
Sample Response
Status|200 OK
1
[object Object]

The Update a workspace request updates the details of a specific workspace, such as its title or description.

Sample Request
1234567891011
{
  "title": "string",
  "description": "string",
  "locales": [
    {
      "code": "string",
      "fallback": "string",
      "fallback_uid": "string"
    }
  ]
}
Sample Response
Status|200 OK
1234567891011121314151617181920212223242526272829303132
{
  "notice": "string",
  "workspace": {
    "_id": "string",
    "uid": "string",
    "title": "string",
    "description": "string",
    "org_uid": "string",
    "space_uid": "string",
    "object_type": "string",
    "workspace_id": "string",
    "origin_workspace": "string",
    "workspace_lineage": [
      "string"
    ],
    "workspace_uid_lineage": [
      "string"
    ],
    "locales": [
      {
        "code": "string",
        "fallback": "string",
        "fallback_uid": "string"
      }
    ],
    "is_deleted": true,
    "created_by": "string",
    "updated_by": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  }
}

The Get a workspace request fetches the details of a specific workspace using its uid.

Sample Response
Status|200 OK
12345678910111213141516171819202122232425262728293031
{
  "workspace": {
    "_id": "string",
    "uid": "string",
    "title": "string",
    "description": "string",
    "org_uid": "string",
    "space_uid": "string",
    "object_type": "string",
    "workspace_id": "string",
    "origin_workspace": "string",
    "workspace_lineage": [
      "string"
    ],
    "workspace_uid_lineage": [
      "string"
    ],
    "locales": [
      {
        "code": "string",
        "fallback": "string",
        "fallback_uid": "string"
      }
    ],
    "is_deleted": true,
    "created_by": "string",
    "updated_by": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  }
}

The Delete a workspace request deletes a specific workspace using its uid.

Sample Response
Status|200 OK
123456
{
  "notice": "string",
  "uid": "string",
  "updated_at": "2019-08-24T14:15:22Z",
  "updated_by": "string"
}
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.

include_countoptionalstring

Set to true to include the total number of workspaces 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.

workspace_uidrequiredstring

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

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 workspace.

descriptionoptionalstring

The updated description of the workspace.

localesoptionalobject[]

The updated list of locales associated with the workspace.

locales[].coderequiredstring

The locale code, such as en-us.

locales[].fallbackoptionalstring

The fallback locale code.

locales[].fallback_uidoptionalstring
Hide Parameters

URL Parameters

space_uidrequiredstring

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

workspace_uidrequiredstring

Enter the uid of the workspace whose settings you want to update.

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

settingsrequiredobject
settings.duplicate_managementoptionalobject

Duplicate Management settings for this workspace.

settings.duplicate_management.enabledrequiredboolean

Whether Duplicate Management is enabled for this workspace. Absent means enabled.

Hide Parameters

URL Parameters

space_uidrequiredstring

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

workspace_uidrequiredstring

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

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 workspace.

descriptionoptionalstring

The updated description of the workspace.

localesoptionalobject[]

The updated list of locales associated with the workspace.

locales[].coderequiredstring

The locale code, such as en-us.

locales[].fallbackoptionalstring

The fallback locale code.

locales[].fallback_uidoptionalstring
Hide Parameters

URL Parameters

space_uidrequiredstring

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

workspace_uidrequiredstring

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

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.

workspace_uidrequiredstring

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

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.