How to filter fields on API response

Hello the fields field you can find it here the documentation.
Link: Mongolite User Manual

But this won’t return you an array of slugs anyway.

If you want to have custom bees you have to create in the “config” folder an “api” folder with your custom files inside that return the data as you want.