# Index Brevo list additions in PostgreSQL

Upsert a row per Brevo list-addition notification, keyed by timestamp, list IDs, and recipients so re-delivery is safe. Prepare a PostgreSQL table with external\_id text as the unique key and name text for the contact addresses. Keep the table private.

[Use template](https://dashboard.fasthook.io/workflow/new?templateKey=brevo-list-additions-to-postgresql&templateName=Index+Brevo+list+additions+in+PostgreSQL)

**Required accounts**

- Brevo
- PostgreSQL

## Workflow steps

### 1. Trigger · Marketing List Addition

**Brevo**. Receive Brevo marketing list\_addition events.

### 2. Transformation · Normalize the membership notification

**FastHook**. Run JavaScript to prepare data for the next workflow step.

### 3. Action · Upsert the membership record

**PostgreSQL**. Insert a row or update mapped columns when a unique key already exists. Use a stable key for repeatable delivery.

## Set up your workflow

1. **Copy the template** Open the template in FastHook to create an editable Workflow Draft.
2. **Connect your accounts** Connect your accounts for Brevo, PostgreSQL.
3. **Review the Workflow** Review the Steps, field mappings, routes, and provider settings.
4. **Activate** Activate the Workflow when the Draft is ready, then verify a test run.

## Questions about this template

### Does the template copy someone else's credentials?

No. FastHook creates a disconnected Draft. Connect your own Brevo, PostgreSQL accounts before activation.

### Can I change the Steps and mappings?

Yes. The copied Workflow is an editable Draft. Review every Step, input, mapping, and route before you activate it.

### What is copied into my workspace?

FastHook recreates the Trigger configuration, Action Steps, routes, and mappings with new IDs. Provider accounts, credentials, and secrets are never copied.

### When does the Workflow start running?

Only after you connect the required accounts, finish the configuration, and explicitly activate the Draft.

## Related integrations

- [PostgreSQL integrations](https://www.fasthook.io/apps/postgresql/integrations)
- [Brevo integrations](https://www.fasthook.io/apps/brevo/integrations)
