Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Optional jobId webhook URL templating

Stefan Terdell188fe5620389
diff --git a/apps/api/src/services/webhook.ts b/apps/api/src/services/webhook.ts
index fc5962b72..183785465 100644
--- a/apps/api/src/services/webhook.ts
+++ b/apps/api/src/services/webhook.ts
@@ -2,7 +2,7 @@ import { supabase_service } from "./supabase";
export const callWebhook = async (teamId: string, jobId: string,data: any) => {
try {
- const selfHostedUrl = process.env.SELF_HOSTED_WEBHOOK_URL;
+ const selfHostedUrl = process.env.SELF_HOSTED_WEBHOOK_URL?.replace("{{JOB_ID}}", jobId);
const useDbAuthentication = process.env.USE_DB_AUTHENTICATION === 'true';
let webhookUrl = selfHostedUrl;