---
schema_version: "1"
id: 5f9a1abba6ada953ad008dd460ffa3361076fd4e1e9043055b8147ae380b4015
title: Slots
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-apis/slots.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/slots.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4778dc309b5afd71235f4ff21038cc777e2947e44b70fb76e1a435fb5ae294fd
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# Slots

Slots allow you to control, manipulate, and restrict content blocks. You can create slots, move slots to different blocks, and enforce block number and type restrictions within slots. Blocks within slots are limited to 2x recursion, with a maximum depth of 4 objects.

Add slots to the asset as an object under `slots` and to the `content` as a placeholder, where the object keys match the placeholder's data-key attribute. In this example, the partner uses slots with one initial block per slot and no number or type restrictions.

## Sample Asset with Slots

```json
{
  "name": "NTO Welcome Series Email",
  "channels": {
    "email": true,
    "web": false
  },
  "views": {
    "html": {
      "content": "<!DOCTYPE html><body><div><div>Some header content</div><div data-type=\"slot\" data-key=\"firstslot\"></div><br /><div data-type=\"slot\" data-key=\"secondslot\"></div></div></body></html>",
      "slots": {
        "firstslot": {},
        "secondslot": {}
      }
    },
    "text": {},
    "subjectline": {},
    "preheader": {}
  },
  "assetType": {
    "name": "templatebasedemail",
    "id": 207
  }
}
```

## Related Items

- [Asset Model](https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/asset-model.md)
- [Asset Model Example](https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/asset_model_examples.md)
