Yes, that's fairly straightforward. You should be able to figure it out by taking a look at the cy.intercept docs:
https://docs.cypress.io/api/commands/intercept
Though is it for API calls made with
cy.request()
, or calls being made by your application?