---
title: "Preview API"
slug: "preview-api"
abstract: "How to use the Preview API to deliver content, including drafts and other content that is not yet approved."
---
# Preview API

The Preview API is a [GraphQL](https://doc.sitecore.com/ch/en/developers/cloud-dev/graphql-apis.html "GraphQL APIs") endpoint that exposes a preview of your content. Use the Preview API to access content that is not approved yet, including drafts. This can be useful when you want to test content in a staging environment before going to production.

> [!important]
> For production work, use the [Delivery API](https://doc.sitecore.com/ch/en/developers/cloud-dev/delivery-api.html "Delivery API"). The Preview API doesn't have the capacity for high volumes of traffic.

## Base URL

The base URL of the Preview API is:

```http
<ContentHubURL>/api/graphql

```

Where `<ContentHubURL>` is your Content Hub instance URL.

## Preview IDE

```http
<ContentHubURL>/api/graphql/preview/ide

```

Where `<ContentHubURL>` is your Content Hub instance URL.

## Endpoints

The Preview API exposes a single endpoint:

| Endpoint | HTTP Verb |
| --- | --- |
| `<ContentHubURL>/api/graphql/preview/v1` | `POST` |

## Headers

The API key you use to [authenticate](https://doc.sitecore.com/ch/en/developers/cloud-dev/authentication-1523482.html "Authentication") with the Preview API can be added to the `HTTP HEADERS` tab of your Integrated Development Environment (IDE). Use the following format, but replace the sample value with your own unique key:

```json
{
  "X-GQL-Token":"aEtSNzBsTaEtSNzBMA"
}

```