Hello Frame.io community,
I’m currently experimenting with the new v4 API - using Postman for testing and n8n for building a full automation workflow.
My goal is to create a webhook that monitors new comments within a specific project, rather than across the entire account.
Is there a way to scope a webhook this narrowly or define more specific conditions for when it triggers? Ideally, I’d like to avoid having it fire for every comment event across all projects.
Thanks in advance for any insight!
I’d still like to know if the frame v4 API has this functionality or intends to add this in the future.
For a fix in the meantime, one way I found is that I could build a Cloudflare Worker that accepts the frame API webhook request, filters it based on an existing project ID, and then sends it to my n8n workflow - therefore greatly conserving costs and run executions.
On the free Cloudflare plan, they offer 100,000 worker events per day, which is way more than enough for my needs. Essentially, Cloudflare receives all my frame comment webhook requests and then sends what I want.
Pretty slick!
Hi, Webhooks are scoped to the workspace, not the account! If you are on a free/pro plan you only have 1 workspace by default which is why it looks to be scoped to the account level.
Yeah, my bad - I misinterpreted the word “account” for “workspace” since I only have one workspace on my team account - so I wanted to filter webhooks by project not by workspace.
My suggestion about using Cloudflare Workers to filter the webhooks still stands.
I’ll file a ticket for a future implementation to scope webhooks to a specific project for the usecases you’ve outlined here. Will look into the Cloudflare Workers as an option to include in any tutorials or guides! I’m personally a big fan of railway.app as I use that for some of my own Custom Actions within Frame.