Skip to main content
vercel.createDrain creates a drain with filters and a delivery destination.
automations/create-drain.automation.ts

Input

  • name: the drain name shown in Vercel.
  • projects: "all" or "some". When you choose "some", pass the selected Vercel project IDs in projectIds.
  • schemas: schema versions keyed by event family, such as log, trace, or analytics.
  • teamId: the target team. OAuth connections default to the team where the integration is installed.
You can also set Vercel’s typed delivery, filter, sampling, source, and transforms options.

Output

Returns the created Vercel drain, including its ID, status, schemas, delivery configuration, and source.

Provider behavior

You can use an OAuth or access-token Vercel connection. This action creates provider state, so Automate.ax does not treat it as replay-safe. Vercel rejects unsupported schema, delivery, and project combinations.