Revalidate path question 👀

When i use revalidate path inside a server action—it automatically refetches the new data on the client, which is great

But when i call revalidate path from an api route it only triggers the invalidation when the path is next visited 👀

Is there a way to immediately trigger an invalidation from an api route

I would normally use a server action but i need to call the api route from a webhook

Thanks for your help!