API - GET all objects of a type

Hi guys, sorry for the basic question but im trying to get all objects of a type via API and unable to do it, how can i do it? is via a url like /rest/type/id/objects or a filter inside the call?

thanks

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.