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

# ContentType

## ContentType

A [content type](/docs/headless-cms/about-content-types) is the structure or blueprint of a page or a section that your web or mobile property will display. It lets you define the overall schema of this blueprint by adding fields and setting its properties.

**Example:**

```
import { BaseContentType } from '@contentstack/delivery-sdk'
interface BlogPost extends BaseContentType {
  text: string;
  // other custom props
}
async function fetchContentType() { 
   try { 
 const contentType = await stack.contentType("blog").fetch<BlogPost>();
 console.log(contentType); 
 //Add your statements
    } catch (error) { 
  console.error("Error fetching content type:", error); 
} 
} 
fetchContentType();
```

## entry

The entry method creates an entry object for the specified entry.

```
Example:
const entry = stack.contentType("contentTypeUid").entry("entryUid");
```

UID of the entry

## fetch

The fetch method retrieves the details for the specified content type.

```
Example:
const result = await stack.contentType("contentTypeUid").fetch<BlogPost>();
```

UID of the content type

## ContentType | TypeScript Delivery SDK | Contentstack

The ContentType class in the TypeScript Delivery SDK accesses a specific content type and provides Entry and Query instances to retrieve its content.