I can't guess how to get menu items from a specific menu via API.

I use:



I get for example specific menu


But how to view menu items for this menu?

2 Answers 2


I don't see a way to do this at the moment. You can only list all menu items per application:


In addition to what Sharky said, basically you need to add in Postman what is called a Api Test which is nothing more than javascript and the Chai JS library.

enter image description here

You see the tests tab

You need to add this code in the test tab to filter out just the menu items of a given menutype. On my example site I have mainmenu and then I created using the API another site menu with menutype "menu", then added a menu item to it again via the Api.

Now I had:


  • menutitem1
  • menuitem2



  • menuitem3

With the following js code you can fetch only what you want using the tests tab of a request.

pm.test("My custom site menu only items", () => {
   const allMenuItems = pm.response.json();
   const menuTypeToFilterBy = 'menu';

   let onlySpecificMenuItems = allMenuItems['data'].filter((item) => {
       return item['attributes']['menutype'] === menuTypeToFilterBy;

   //TODO: Do whatever you want with this filtered result


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.