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

Spaces

markdownView as Markdown

Manage your Assets spaces.

Create a space

POSThttps://am-api.contentstack.com/api/spaces

The Create a space request creates a new space in your organization. A space is the top-level container for your assets, folders, and workspaces.

Set default_locale to the language every asset in the space starts in. Other languages inherit from it until an asset is localized into them, so choose it to match the language your team authors in.

Hide Parameters

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.

organization_uidoptionalstring

REQUIRED when using authtoken authentication. You must explicitly provide this header. It is optional with Authorization Bearer token authentication, where the organization_uid is derived from the token.

Body Parameters

titlerequiredstring

The title of the space.

descriptionoptionalstring

A description of the space.

default_localeoptionalstring

The master locale of the space, such as en-us.

Sample Request
12345
{
  "title": "string",
  "description": "string",
  "default_locale": "string"
}
Sample Response
Status|201 Created
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
{
  "notice": "string",
  "space": {
    "_id": "string",
    "uid": "string",
    "title": "string",
    "description": "string",
    "org_uid": "string",
    "owner_uid": "string",
    "default_locale": "string",
    "object_type": "string",
    "tags": [
      "string"
    ],
    "users_count": 0,
    "meta_info": {
      "storage": 0,
      "assets_count": 0,
      "folders_count": 0,
      "last_modified_at": "2019-08-24T14:15:22Z",
      "workspaces": {
        "property1": {
          "assets_count": 0,
          "storage": 0,
          "folders_count": 0
        },
        "property2": {
          "assets_count": 0,
          "storage": 0,
          "folders_count": 0
        }
      }
    },
    "settings": {
      "ai_metadata": {
        "enabled": true,
        "auto_populate_tags": true,
        "tags_max_count": 1,
        "tags_confidence_level": 0.1,
        "auto_populate_alt_text": true,
        "alt_text_field_uid": "string"
      },
      "ai_vault": {
        "vault_uid": "string",
        "vault_name": "string",
        "max_assets": 0,
        "created_at": "2019-08-24T14:15:22Z"
      }
    },
    "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 spaces

GEThttps://am-api.contentstack.com/api/spaces

Update a space

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

Get a space

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

Delete a space

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

The Get all spaces request fetches a paginated list of all spaces in your organization.

Sample Response
Status|200 OK
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
{
  "count": 0,
  "spaces": [
    {
      "_id": "string",
      "uid": "string",
      "title": "string",
      "description": "string",
      "org_uid": "string",
      "owner_uid": "string",
      "default_locale": "string",
      "object_type": "string",
      "tags": [
        "string"
      ],
      "users_count": 0,
      "meta_info": {
        "storage": 0,
        "assets_count": 0,
        "folders_count": 0,
        "last_modified_at": "2019-08-24T14:15:22Z",
        "workspaces": {
          "property1": {
            "assets_count": 0,
            "storage": 0,
            "folders_count": 0
          },
          "property2": {
            "assets_count": 0,
            "storage": 0,
            "folders_count": 0
          }
        }
      },
      "settings": {
        "ai_metadata": {
          "enabled": true,
          "auto_populate_tags": true,
          "tags_max_count": 1,
          "tags_confidence_level": 0.1,
          "auto_populate_alt_text": true,
          "alt_text_field_uid": "string"
        },
        "ai_vault": {
          "vault_uid": "string",
          "vault_name": "string",
          "max_assets": 0,
          "created_at": "2019-08-24T14:15:22Z"
        }
      },
      "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 a space request updates the details of a specific space, such as its title, description, or settings.

Sample Request
123456789101112
{
  "title": "string",
  "description": "string",
  "settings": {
    "ai_vault": {
      "vault_uid": "string",
      "vault_name": "string",
      "max_assets": 0,
      "created_at": "2019-08-24T14:15:22Z"
    }
  }
}
Sample Response
Status|200 OK
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
{
  "notice": "string",
  "space": {
    "_id": "string",
    "uid": "string",
    "title": "string",
    "description": "string",
    "org_uid": "string",
    "owner_uid": "string",
    "default_locale": "string",
    "object_type": "string",
    "tags": [
      "string"
    ],
    "users_count": 0,
    "meta_info": {
      "storage": 0,
      "assets_count": 0,
      "folders_count": 0,
      "last_modified_at": "2019-08-24T14:15:22Z",
      "workspaces": {
        "property1": {
          "assets_count": 0,
          "storage": 0,
          "folders_count": 0
        },
        "property2": {
          "assets_count": 0,
          "storage": 0,
          "folders_count": 0
        }
      }
    },
    "settings": {
      "ai_metadata": {
        "enabled": true,
        "auto_populate_tags": true,
        "tags_max_count": 1,
        "tags_confidence_level": 0.1,
        "auto_populate_alt_text": true,
        "alt_text_field_uid": "string"
      },
      "ai_vault": {
        "vault_uid": "string",
        "vault_name": "string",
        "max_assets": 0,
        "created_at": "2019-08-24T14:15:22Z"
      }
    },
    "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 space request fetches the details of a specific space using its uid.

Sample Response
Status|200 OK
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
{
  "space": {
    "_id": "string",
    "uid": "string",
    "title": "string",
    "description": "string",
    "org_uid": "string",
    "owner_uid": "string",
    "default_locale": "string",
    "object_type": "string",
    "tags": [
      "string"
    ],
    "users_count": 0,
    "meta_info": {
      "storage": 0,
      "assets_count": 0,
      "folders_count": 0,
      "last_modified_at": "2019-08-24T14:15:22Z",
      "workspaces": {
        "property1": {
          "assets_count": 0,
          "storage": 0,
          "folders_count": 0
        },
        "property2": {
          "assets_count": 0,
          "storage": 0,
          "folders_count": 0
        }
      }
    },
    "settings": {
      "ai_metadata": {
        "enabled": true,
        "auto_populate_tags": true,
        "tags_max_count": 1,
        "tags_confidence_level": 0.1,
        "auto_populate_alt_text": true,
        "alt_text_field_uid": "string"
      },
      "ai_vault": {
        "vault_uid": "string",
        "vault_name": "string",
        "max_assets": 0,
        "created_at": "2019-08-24T14:15:22Z"
      }
    },
    "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 space request deletes a specific space using its uid. Deleting a space also removes the assets, folders, and workspaces it contains.

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

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

organization_uidoptionalstring

REQUIRED when using authtoken authentication. You must explicitly provide this header. It is optional with Authorization Bearer token authentication, where the organization_uid is derived from the token.

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.

organization_uidoptionalstring

REQUIRED when using authtoken authentication. You must explicitly provide this header. It is optional with Authorization Bearer token authentication, where the organization_uid is derived from the token.

Body Parameters

titleoptionalstring

The updated title of the space.

descriptionoptionalstring

The updated description of the space.

settingsoptionalobject

The space settings you can update with PUT /api/spaces/{space_uid}. Only ai_vault is accepted here.

settings.ai_vaultoptionalobject

The AI vault settings.

settings.ai_vault.vault_uidoptionalstring
settings.ai_vault.vault_nameoptionalstring
settings.ai_vault.max_assetsoptionalinteger
settings.ai_vault.created_atoptionalstring (date-time)
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.

organization_uidoptionalstring

REQUIRED when using authtoken authentication. You must explicitly provide this header. It is optional with Authorization Bearer token authentication, where the organization_uid is derived from the token.

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.

organization_uidoptionalstring

REQUIRED when using authtoken authentication. You must explicitly provide this header. It is optional with Authorization Bearer token authentication, where the organization_uid is derived from the token.