Querying multiple collections is giving - Collection not found

Ah, I see. This is regex style is only to give permission to fetch multiple collections with single api keys. You can’t fetch them this way.

You can create a custom api endpoint.

sample:

<?php
$authors = cockpit('collections')->find('authors');
$posts   = cockpit('collections')->find('posts');
return compact('authors', 'posts');
1 Like