Create a trigger
Creates a custom trigger event definition — the contract automations subscribe to. Body carries { title, description?, payloadSchema }; the server mints triggerEventId and hardcodes provider: "brew_api". Integration triggers (clerk, stripe, shopify, …) are provisioned by the corresponding integration only.
payloadSchema.fields MUST declare { key: "email", type: "string", required: true } so downstream automations can resolve a recipient. Returns 201 with the bare trigger row.
Authorizations
Send your Brew API key as Authorization: Bearer brew_xxx.
Headers
Optional idempotency key for safe retries. Reusing the same key with the same request body returns the original response for 24 hours.
1 - 100Body
Response
Created. The bare trigger row.
1 - 2561 - 120brew_api, clerk, stripe, shopify, stytch, supabase, workos, revenuecat, custom 2000