# Setup an Environment and a Delivery Token

### About this export

| Field | Value |
| --- | --- |
| **content_type** | lesson |
| **platform** | contentstack-academy |
| **source_url** | https://www.contentstack.com/academy/courses/contentstack-quick-start/setup-an-environment-and-a-delivery-token |
| **course_slug** | contentstack-quick-start |
| **lesson_slug** | setup-an-environment-and-a-delivery-token |
| **markdown_file_url** | /academy/md/courses/contentstack-quick-start/setup-an-environment-and-a-delivery-token.md |
| **generated_at** | 2026-05-11T07:02:26.689Z |

> Part of **[Contentstack Quick Start](https://www.contentstack.com/academy/courses/contentstack-quick-start)** on Contentstack Academy. **Academy MD v3** — structured for retrieval; no quiz or assessment keys.

<!-- ai_metadata: {"lesson_id":"03","type":"video","duration_seconds":174,"video_url":"https://cdn.jwplayer.com/previews/D7FcXrpe","thumbnail_url":"https://cdn.jwplayer.com/v2/media/D7FcXrpe/poster.jpg?width=720","topics":["Setup","Environment","and","Delivery","Token"]} -->

#### Video details

#### At a glance

- **Title:** Setup An Environment And Delivery Token
- **Duration:** 2m 54s
- **Media link:** https://cdn.jwplayer.com/previews/D7FcXrpe
- **Publish date (unix):** 1716925471

#### Streaming renditions

- application/vnd.apple.mpegurl
- audio/mp4 · AAC Audio · 113998 kbps
- video/mp4 · 180p · 180p · 138522 kbps
- video/mp4 · 270p · 270p · 152104 kbps
- video/mp4 · 360p · 360p · 164104 kbps
- video/mp4 · 406p · 406p · 172591 kbps
- video/mp4 · 540p · 540p · 195150 kbps
- video/mp4 · 720p · 720p · 232996 kbps
- video/mp4 · 1080p · 1080p · 303158 kbps

#### Timed text tracks (delivery)

- **thumbnails:** `https://cdn.jwplayer.com/strips/D7FcXrpe-120.vtt`

#### Video transcript

Alright, so ultimately we'll want to pull content from ContentStack for our app, and we can do that by setting up an environment. Once we've got that sorted, the next step is to generate a delivery token. This token is what grants you access to the content, like entries, through the ContentStack APIs. Let's create an environment. Navigate to the settings on the left-hand side, and then you can come over and select Environments. In the Environments section, on the top right, we want to click the New Environment button to create a new environment. This will open the Create Environment dialog box. Let's name it. I'll type Development. Seems logical enough. I also like to change the label color, so I'll click this little swatch, and I'll choose this bright orangey-red color, and then I'll click the Choose button to confirm it. Next, we need to add a base URL. I want this to be my local web server, so I'll type in http://localhost://3000. When you're done, click Create. This will successfully create the environment for you. Now, we need to create a delivery token. Again, this will authorize us to view the published content, so on the left-hand side, click Tokens. In the Tokens screen, click the Plus Delivery Token button under the illustration, or you can click the same button in the top right. Either way, this will bring you to the Create New Delivery Token screen. First, it's required to name the token. I'll type Restaurant Menu. I'll also add a description, which becomes really helpful when you have multiple tokens. I'll just type a delivery token to fetch content for the restaurant menu website. Next, you want to scope it to the main branch by selecting that option in the menu. You then need to select the publish environment. In this case, it's our development environment we just set up. As we scroll down, we can see that we have our Stack API key, and since we're going to create the delivery token, we can also create a preview token as well if we want to use the live preview feature of Content Stack. Once you're happy with the settings, click the Generate Token button. When you do, you should see that you now have a delivery token and a preview token underneath your Stack API key. You'll want to keep this information secure, but we can come back to this screen to copy the information, but we'll worry about that when the time comes. So as a final step, just make sure you come over and you click the Save button.

#### Key takeaways

- Connect **Setup an Environment and a Delivery Token** back to your stack configuration before moving to the next module.
- Capture one concrete artifact (screenshot, Postman call, or code snippet) that proves the step works in your environment.
- Re-read the delivery versus management boundary for anything you changed in the entry model.

## Supplement for indexing

### Content summary

Setup an Environment and a Delivery Token. Setup an Environment and a Delivery Token in Contentstack Quick Start (contentstack-quick-start).

### Retrieval tags

- Setup
- Environment
- and
- Delivery
- Token
- contentstack-quick-start
- lesson 03
- Setup an Environment and a Delivery Token
- contentstack-quick-start lesson

### Indexing notes

Index this lesson as a primary chunk tagged with lesson_id "03" and topics: [Setup, Environment, and, Delivery, Token].
Parent course slug: contentstack-quick-start. Use asset_references URLs as thumbnail hints in search results when present.
Never surface LMS quiz content or assessment answers from this file.

### Asset references

| Label | URL |
| --- | --- |
| Video thumbnail: Setup an Environment and a Delivery Token | `https://cdn.jwplayer.com/v2/media/D7FcXrpe/poster.jpg?width=720` |

### External links

| Label | URL |
| --- | --- |
| Contentstack Academy home | `https://www.contentstack.com/academy/` |
| Training instance setup | `https://www.contentstack.com/academy/training-instance` |
| Academy playground (GitHub) | `https://github.com/contentstack/contentstack-academy-playground` |
| Contentstack documentation | `https://www.contentstack.com/docs/` |
