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

# ContentType

## ContentType

Content type defines the structure or schema of a page or a section of your web or mobile property. To create content for your application, you are required to first create a content type, and then create entries using the content type.

## removeHeader

Removes header from the stack using headerKey

```
import com.contentstack.sdk.*;

Stack stack = Contentstack.stack(apiKey, deliveryToken, environment);
ContentType contentType = stack.contentType("contentTypeUid");
contentType.removeHeader(headerKey)
```

The key of the header

## entry

An Entry is the actual piece of content created using one of the defined content types.

```
import contentstack;

Stack stack = Contentstack.stack(apiKey, deliveryToken, environment);
ContentType contentType = stack.contentType("contentTypeUid");
Call&lt;ResponseBody&gt; response = contentType.entry("entryUid").execute();
if (response.isSuccessful) { 
	System.out.println(&lt;"Response"&gt; + response)
}
```

The entry unique ID of the entry that you want to fetch

## query

Provides query instance

```
import com.contentstack.sdk.*;

Stack stack = Contentstack.stack(apiKey, deliveryToken, environment);
ContentType contentType = stack.contentType("contentTypeUid");
contentType.query()
```

## fetch

fetch all the content types available for the stack

```
import com.contentstack.sdk.*;

Stack stack = Contentstack.stack(apiKey, deliveryToken, environment);
ContentType contentType = stack.contentType("contentTypeUid");
contentType.fetch(new JSONObject(), new ContentTypesCallback() {
 @Override
public void onCompletion(ContentTypesModel model, Error error) {
   JSONArray resp = model.getResultArray();
}
});
```

key value parameters of type JSONObject

The callback of type ContentTypesCallback

## ContentType | Java Delivery SDK | Contentstack

ContentType defines the schema of a page or section in the Java Delivery SDK and is used to create and fetch entries built from it.