---
title: "Contentstack"
description: "Contentstack"
url: "https://www.contentstack.com/docs/developers/sdks/content-delivery-sdk/swift/reference/contentstack"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-09-13"
---

# Contentstack

## Contentstack

Create a new Stack instance with stack’s apikey, deliveryToken, environment name and config.

## stack(apiKey:deliveryToken:environment:region:host:apiVersion:branch:config:)

Create a new Stack instance with stack’s API key, delivery token, environment name and config.

```
let stack = Contentstack.stack(apiKey: "<API_KEY>", deliveryToken: "<DELIVERY_TOKEN>", environment: "<ENVIRNOMENT>")
```

stack apiKey.

stack delivery token.

environment name in which to perform action.

Contentstack region

Name of Contentstack api server.

API version of Contentstack api server.

Config of stack.

## Contentstack | Swift Delivery SDK | Contentstack

Contentstack lets you create a new Stack instance using your API key, delivery token, environment, and config in the Swift SDK.