Install a new destination
destination_createAdd a destination adapter (webhook or resend) to a project, with validated configuration, and receive its ID for campaign use.
Instructions
Install a destination adapter into the current project. connector_id must come from destination_catalog (e.g. "webhook", "resend"). config is per-adapter — the server validates it against the adapter's own schema and 400s on shape errors. Webhook config: { url: "https://...", signing_secret?: string, timeout_ms?: number }. Resend config: { from: "Name <addr@domain>", reply_to?: string, audience_limit?: number, batch_size?: number }. Returns the destination id — pass it as channel.destination_config_id on a Campaign to bind explicitly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connector_id | Yes | ||
| name | Yes | ||
| environment_id | No | ||
| config | No | ||
| filters | No |