API - GET all objects of a type

This is how I have been doing it
/rest/objects/?limit=10000&filter={“type_id”:X}

Where X is the ID of the type you want to filter.