Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

442 B
Raw Blame
export function getWebhookUrl(publicApiUrl: string, flowId: string, simulate?: boolean): string {
    const suffix = simulate ? '/test' : ''
    const cleanUrl = publicApiUrl.replace(/\/+$/, '')
    return `${cleanUrl}/v1/webhooks/${flowId}${suffix}`
}

export function getAppWebhookUrl(publicApiUrl: string, appName: string): string {
    const cleanUrl = publicApiUrl.replace(/\/+$/, '')
    return `${cleanUrl}/v1/app-events/${appName}`
}