Retrieve a content type

GET https://deliver.kontent.ai/:environment_id/types/:type_codename

Retrieve a specific content type.

Request Params

KeyDatatypeRequiredDescription
elementsstringDetermines a subset of the content type's elements to retrieve. The elements are specified using a comma-separated list of element codenames. By default, all elements are retrieved.

Examples

  • Retrieve a single element – elements=title
  • Retrieve multiple elements – elements=title,summary,related_articles

If the specified elements don't match the elements present in the content type, the API returns the content type without any elements.

The elements filter applies to all content types within the types array. The filter doesn't apply to the content types' system properties. This means you cannot omit the system object from the response. |

HEADERS

KeyDatatypeRequiredDescription
X-KC-Wait-For-Loading-New-ContentstringDetermines whether the API waits while fetching latest content. By default, the header is not set and the API serves stale content (if cached by the CDN) while fetching the new content to minimize wait time.

The header can be useful if you know that the requested content had changed since your last request in a reaction to a webhook notification. | | Accept | string | | |

RESPONSES

status: OK

{"system":{"id":"b2c14f2c-6467-460b-a70b-bca17972a33a","name":"Article","codename":"article","last_modified":"2019-10-20T12:03:17.4685693Z"},"elements":{"laborisb7c":{"type":"asset","name":"dolor"}}}