---
title: "Contentstack Management - Content Types Actions"
description: "Use the Contentstack Management Content Types action to automate fetching all the content types from a stack."
url: "https://www.contentstack.com/docs/agent-os/contentstack-management-content-types-actions"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-06-23"
---

# Contentstack Management - Content Types Actions

A [Content Type](/docs/developers/create-content-types/about-content-types) serves as the framework or blueprint for a page or section within your web or mobile platform. It allows you to establish the fundamental structure of this blueprint by incorporating fields and configuring their attributes. By using the Contentstack Management Content Types action, you can fetch all content types from a selected stack.

![Select\_Content\_Type\_Screen.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt089df8650596f528/67446b3020dd4d82e9e8ee1a/Select_Content_Type_Screen.png)

Let’s look at the action in detail.

## Get All Content Types

This action fetches all the content types present in a stack.

1.  Under the **Choose an Action** tab, select the **Get All Content Types** action.
2.  On the **Get All Content Types Configure Action** page, enter the details given below:
    1.  Click **+ Add New Account** button to connect your Contentstack account as shown in the [Connect your Contentstack Account](/docs/developers/automation-hub-connectors/contentstack-management#connect-your-contentstack-account) step.
    2.  Select a **Stack**, and **Branch** from the **Lookup** list.  
        ![Select\_Fields\_Get\_All.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt834579ce017e7995/682ae84c951e4bbe10042db0/Select_Fields_Get_All.png)
        
        **Note:** By default, the **main** branch is selected (even if the **Branch** field is empty).
        
    3.  **\[Optional\]** Enable the **Show Optional Fields** toggle button to display the **Content Type Limit**, **Customized Data (query)**, and **Skip Content Type (Pagination)** fields.
    4.  Provide your data in the **Customized Data (query)** field to filter the retrieval of content types. Enter your data in the **Key**, and **Value** fields.
    5.  You can also include the total count of the content types, global field schema, and the branch details by clicking the respective checkboxes.
        
        **Additional Resource:** Refer to the [Content Delivery API Docs](/docs/developers/apis/content-delivery-api/queries) for more information on Queries.
        
        ![Show\_Optional\_Get\_All.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/bltae714983b22a7e78/682ae84c61e0ea405e9c6ba4/Show_Optional_Get_All.png)
        
        **Note:** The **Customized Data (query)** field acts as a filter to fetch the content types that fulfill the specifications provided in the Key-Value fields.
        
3.  Once done, click **Proceed**.
4.  Click **Test Action** to test the configured action.  
    
5.  The output will be shown as follows. Click the **Save and Exit** button.  
    ![Save\_Exit\_Button.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blta7ea64f8622dfa61/666686663dcdf6470a2c9e7d/Save_Exit_Button.png)

## Get a Single Content Type

This action fetches the details of a specific content type in a stack.

1.  Under the **Choose an Action** tab, select the **Get a Single Content Type** action.
2.  On the **Get a Single Content Type Configure Action** page, enter the details given below:
    1.  Click **+ Add New Account** button to connect your Contentstack account as shown in the [Connect your Contentstack Account](/docs/developers/automation-hub-connectors/contentstack-management#connect-your-contentstack-account) step.
    2.  Select a **Stack**, **Branch**, and a **Content** **Type** from the **Lookup** list.
        
        **Note:** By default, the **main** branch is selected (even if the **Branch** field is empty).  
        
        ![Select\_Fields\_Get\_Single.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blte4827b1d6e01fcf2/682ae901a211e78168c7aa41/Select_Fields_Get_Single.png)
    3.  Optionally, enable the **Show Optional Fields** toggle button to display the optional fields. You can check the **Include global field schema** and **Include branch** boxes to include the details of the branch and the global field(s).  
        ![Show\_Optional\_Fields\_Get\_Single.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/bltb9c68e590f5f94ee/682ae901b728367183403d2b/Show_Optional_Fields_Get_Single.png)
3.  Once done, click **Proceed**.
4.  Click **Test Action** to test the configured action.
5.  The output will be shown as follows. Click the **Save and Exit** button.  
    ![Save\_and\_Exit.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt49632183cb17c41a/67446b30c21e6028ad26163f/Save_and_Exit.png)