---
title: "Spaces"
description: "<p>Manage your Assets spaces.</p>"
url: "https://www.contentstack.com/docs/developers/apis/assets-api/spaces"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-08-21"
---

# Spaces

Manage your Assets spaces.

## Create a space

### Create a space

**POST** `/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.

#### Headers

- **authorization** (optional)
  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.
- **authtoken** (optional)
  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-version** (required)
  Enter the Assets API version. Default is 4.
- **organization_uid** (optional)
  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.

#### Sample Response

```json
{
  "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

### Get all spaces

**GET** `/api/spaces`

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

#### Query Parameters

- **skip** (optional)
  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.
- **limit** (optional)
  The limit parameter returns a specific number of items (between 0 and 100) in your response based on the value you provide.
- **include_count** (optional)
  Set to true to include the total number of spaces in the response. Default is false.

#### Headers

- **authorization** (optional)
  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.
- **authtoken** (optional)
  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-version** (required)
  Enter the Assets API version. Default is 4.
- **organization_uid** (optional)
  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.

#### Sample Response

```json
{
  "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"
    }
  ]
}
```

## Update a space

### Update a space

**PUT** `/api/spaces/{space_uid}`

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

#### URL Parameters

- **space_uid** (required)
  Enter the uid of the space that you want to retrieve.

#### Headers

- **authorization** (optional)
  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.
- **authtoken** (optional)
  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-version** (required)
  Enter the Assets API version. Default is 4.
- **organization_uid** (optional)
  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.

#### Sample Response

```json
{
  "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 a space

### Get a space

**GET** `/api/spaces/{space_uid}`

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

#### URL Parameters

- **space_uid** (required)
  Enter the uid of the space that you want to retrieve.

#### Headers

- **authorization** (optional)
  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.
- **authtoken** (optional)
  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-version** (required)
  Enter the Assets API version. Default is 4.
- **organization_uid** (optional)
  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.

#### Sample Response

```json
{
  "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"
  }
}
```

## Delete a space

### Delete a space

**DELETE** `/api/spaces/{space_uid}`

The Delete a space request deletes a specific space using its uid. Deleting a space also removes the assets, folders, and workspaces it contains.

#### URL Parameters

- **space_uid** (required)
  Enter the uid of the space that you want to retrieve.

#### Headers

- **authorization** (optional)
  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.
- **authtoken** (optional)
  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-version** (required)
  Enter the Assets API version. Default is 4.
- **organization_uid** (optional)
  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.

#### Sample Response

```json
{
  "notice": "string",
  "uid": "string",
  "deleted_at": "2019-08-24T14:15:22Z",
  "updated_by": "string"
}
```