younifyd
Menu

Get All Content Types

Get all content types

GET/spaces/{spaceId}/environments/{environmentId}/content_types

Use it in a workflow

  1. Add a step and choose the Contentful connector.
  2. Pick the Get All Content Types action (under Contentful Content Management API).
  3. Fill in the fields below, then reference the result from later steps as {{getAllContentTypes.response.data}}.

Request

Path parameters

spaceIdstringrequired

ID of the space

environmentIdstringrequired

ID of the environment

Query parameters

limitinteger

Maximum number of items to return

Default 100

skipinteger

Number of items to skip

Default 0

Response

Returns 200 with an object. Read it in later steps with {{getAllContentTypes.response.data.<field>}}.

itemsarray<object>
descriptionstring

Description of the content type

displayFieldstring

ID of the field to use as the display field

fieldsarray<object>required11 fields
namestringrequired

Name of the content type

sysobjectrequired8 fields
limitinteger

Maximum number of content types returned

skipinteger

Number of content types skipped

sysobject
typestring

One ofArray

totalinteger

Total number of content types

json
{
  "items": [
    {
      "fields": [
        {
          "id": "string",
          "localized": false,
          "name": "string",
          "required": false,
          "type": "Symbol",
          "items": {},
          "linkType": "Entry",
          "defaultValue": {},
          "omitted": false,
          "disabled": false,
          "validations": [
            {
              "size": null,
              "linkContentType": null,
              "linkMimetypeGroup": null,
              "in": null,
              "regexp": null,
              "unique": null,
              "range": null,
              "dateRange": null,
              "assetImageDimensions": null,
              "assetFileSize": null,
              "assetFileType": null,
              "enabledNodeTypes": null
            }
          ]
        }
      ],
      "name": "string",
      "sys": {
        "id": "string",
        "type": "string",
        "space": {
          "sys": {
            "id": "string",
            "type": "string",
            "linkType": "string"
          }
        },
        "createdBy": {
          "sys": {
            "id": "string",
            "type": "string",
            "linkType": "string"
          }
        },
        "version": 0,
        "environment": {
          "sys": {
            "id": "string",
            "type": "string",
            "linkType": "string"
          }
        },
        "updatedBy": {
          "sys": {
            "id": "string",
            "type": "string",
            "linkType": "string"
          }
        },
        "updatedAt": "2025-01-01T00:00:00Z"
      },
      "description": "string",
      "displayField": "string"
    }
  ],
  "limit": 0,
  "skip": 0,
  "sys": {
    "type": "Array"
  },
  "total": 0
}

Need more? See the Contentful guide for connection setup and behaviour shared by every action.

Was this page helpful?