Varyng fastcgi_cache_valid times

Hello!

We’ve configured a site following this guide: https://rtcamp.com/wordpress-nginx/tutorials/single-site/fastcgi-cache-with-purging/

The thing is that we use WP API to serve content to an App. How can we configure fastcgi_cache to have different fastcgi_cache_valid times depending the URL?

I mean, we would like to cache the site for 10 minutes and the jsons from the API for only 1 minute.

Thanks!

fgilio