How to fetch field's allowed values via Delivery API?


I have a content model which has a field that has a list of allowed values. I’m attempting to fetch this list via the Delivery API. I managed access the list by referring to the numeric order of content types and fields, but I wasn’t able to figure out how to call upon content type and field by their ID.


Help, please? :slight_smile:

Hi @teemu.tammela1,

The structure of the query you’d need for this is described in this section of our documentation, which is a bit different from the one you provided.

After you retrieve your content type as:

content_type = client.content_type 'YourID'

You’d get the validations with:


1 Like

Thanks @gabriel, I’ll give this a try.