Within my 'pages' folder I have _uid.vue which does a great job of helping me create new Documents in the Prismic Documents Writers Room and have them appear on the root url.
Eg. New document of content type page called 'about' appears on /about.
However I have a different Content Type with its own unique styling and template for Official Documents like Terms, Privacy etc that is currently here.
/official/_uid.vue
However I want these to also be available on the root url.
It can be possible with triggering API query with each possible content type.
For example: for getting /terms under official content type:- trigger API query with "page", and then with "official", and see if you get results from one of the content type and the same cases will be applied in case of each UID.
Warning: It may be possible to retrieve document in multiple cases because same UID can be associated with multiple content types, so it is always recommend to fire a query with content type only.
For example: "terms" UID can be with "official" and "page" content types and have different document with each content type.
I hope it gives your answer, let me know if you have doubts.