Request

Retrieves a paginated list of content types. Optionally filter results using a search query, or retrieve specific content types by supplying one or more id parameters. The search and id parameters are mutually exclusive. When id is supplied, only the first 50 IDs are processed and pagination is disabled.

Security
Bearer
Query
environmentIdstring

The environment identifier.

Example:environmentId=main
searchstring

An optional search string used to filter content types by name or other indexed fields.

Example:search=page
idArray of strings

One or more content type IDs to retrieve. Specify multiple id query parameters to return specific content types.

Example:id=497f6eca-6276-4993-bfeb-53cbbbba6f08
rootItemIdArray of strings

One or more root item IDs used to limit content type results to a specific content hierarchy. Results include content models found under any of the specified root items and their descendants. rootItemId is ignored when id is supplied.

Example:rootItemId=497f6eca-6276-4993-bfeb-53cbbbba6f08
pageSizeinteger, (int32)

The maximum number of items to return in a non-ID list response.

Example:pageSize=10
Headers
x-sc-continuationstring

An optional opaque token returned from a previous paginated call. It is ignored when id is supplied.

Example:MXx8fDEwMA==
curl -i -X GET \
  'https://edge-platform.sitecorecloud.io/authoring/api/v1/content-types?environmentId=main&search=page&id=497f6eca-6276-4993-bfeb-53cbbbba6f08&rootItemId=497f6eca-6276-4993-bfeb-53cbbbba6f08&pageSize=10' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'x-sc-continuation: MXx8fDEwMA=='

Responses

Successful operation

Bodyapplication/json
countinteger, (int32)

Total count of content types in current request

Example:10
nextstring or null

Continuation token

Example:"token-from-previous-response"
modelsArray of objects or null(ContentModel)

List of content types

Response
{ "count": 10, "next": "token-from-previous-response", "models": [ { … } ] }