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

# Contentstack

## Contentstack

Contentstack class that exposes Stack instance

## stack

The stack method provides access to the stack of your site, allowing users to retrieve and manage content within a single space.

```
import com.contentstack.sdk.*;
 
Stack stack = Contentstack.stack(context, "apiKey", "deliveryToken", "environment");
Example with Config:

import com.contentstack.sdk.*; 

Config config = new Config().setHost("api.contentstack.io");
Stack stack = Contentstack.stack(context, "apiKey", "deliveryToken", "environment");
```

The application context

API Key of your application on Contentstack

Delivery Tokens retrieves only the published entries of the environment with which it is associated

A publishing environment refers to one or more deployment servers or a content delivery destination (Webpage’s address) where you will publish your content ([entries](https://www.contentstack.com/docs/content-managers/working-with-entries/about-entries/) or [assets](https://www.contentstack.com/docs/content-managers/working-with-assets/about-assets/)).

Config instance to set environment and other configuration details.

## Contentstack

## Contentstack | Android Delivery SDK | Contentstack

Contentstack exposes the Stack instance in the Android Delivery SDK, serving as the entry point for accessing your content.