Skip to main content

How to add contacts automatically with a webhook

Create a webhook address in your ValiantAI Email List so a form tool, store or automation platform adds new sign-ups to one of your lists automatically.

A webhook address is a private web address that adds a contact to one of your ValiantAI email lists whenever another platform sends a sign-up to it. You create it from Library > Email List > Webhooks, copy the address, and paste it into your form tool, online store or automation platform (for example a Zapier or Make step). Each request that contains an email address adds or updates one contact in the list you chose.

Before you start

  • You need at least one email list to add contacts to. Every account starts with default lists, and you can create more when you import contacts (see How to find and manage your email contacts).

  • The other platform must be able to send an HTTP POST request with a JSON body. Most form tools and automation platforms call this a "webhook" action.

  • If you send email through Mailchimp or Klaviyo, contacts added here are stored in ValiantAI but are not the audience your campaigns go to. If you send through your own Resend account, the Email List page shows "Your contacts and domains are managed in your Resend account" instead of your lists, and the Webhooks view is not available. See Do I need the Email List if I send through Mailchimp, Klaviyo or my own Resend account?

Create a webhook address

  1. In the left sidebar, select Library, then the Email List tab.

  2. Select Webhooks at the top of the page. On a phone, open the ••• menu and select Webhooks. The page shows "Webhook addresses let other platforms add contacts to your lists automatically."

  3. Select Add Webhook. A form opens. If you have no webhooks yet, the page shows "No webhooks yet", and its New webhook button opens the same form.

  4. In Webhook name, type a name that tells you where the contacts come from, for example "Shopify checkout" or "Event sign-up form". The name is shown only inside ValiantAI, to people who use your account; the other platform never sees it.

  5. In Add contacts to list, choose the list that new contacts should join.

  6. Select Create webhook. The new webhook appears as a card.

  7. On the card, select the copy button (Copy webhook address). The address is now on your clipboard. If copying fails, ValiantAI shows "We couldn’t copy that address. Select it and copy it by hand."; select the address on the card and copy it yourself.

Each webhook adds contacts to one list. To fill two lists, create two webhooks.

What the other platform must send

Set the other platform to send a POST request to the webhook address, with the content type application/json and a JSON body that uses these field names (they are case-sensitive):

Field

Required

What it does

email

Yes

The contact's email address. Requests without a valid address are refused.

firstName

No

The contact's first name. Anything after 100 characters is cut off.

lastName

No

The contact's last name. Anything after 100 characters is cut off.

Example body:

{ "email": "[email protected]", "firstName": "Sam", "lastName": "Lee" }

Other fields in the body are ignored. Form-encoded data (the default "form" format in some tools) is not read, so the request fails with "email is required". Choose JSON instead.

When the contact is saved, the webhook answers with {"success": true, "message": "Contact added"}. Most automation platforms show this response in their test or run history.

Connecting a form tool or automation platform

The steps depend on the platform, but the pattern is the same: add a step that sends a webhook, paste the webhook address as the URL, choose POST and JSON, and map your form's fields to email, firstName and lastName.

In Zapier, for example, add an action step with the Webhooks by Zapier app, choose the POST event, set Payload Type to JSON, paste the webhook address into URL, and add email, firstName and lastName as keys in Data with the matching fields from your trigger. Zapier's own guide is at https://help.zapier.com/hc/en-us/articles/8496326446989-Send-webhooks-in-Zaps. In Make, use the HTTP app's request module with the same settings (https://www.make.com/en/help/tools/http).

Run a test from the platform after you set it up, then check the webhook card in ValiantAI (see below).

Limits

  • Each webhook accepts up to 120 requests per minute. Requests above that are refused with "Too many requests, please slow down" until the minute has passed.

  • Each request can be at most 10 KB. Larger requests are refused with "Payload too large".

  • Each request adds one contact. To add many contacts at once, upload a file instead (see How to import contacts from a CSV file).

Check that it works

Each webhook card shows the webhook's name, the list it adds to, its status (Active) and a line such as "12 added · last used 5m ago". A new webhook shows "0 added · never used" until the first request arrives. The page updates on its own, so you do not need to reload it.

Contacts added this way appear in the list you chose and on the All tab. When you open a contact the webhook created, its Added line shows the source "Added by a webhook". A contact that already existed keeps its original source.

If the card still says "never used" after a test, or contacts do not appear, see My contacts webhook isn't adding contacts.

Things to know

Contacts that already exist

If the email address is already in your contacts, the webhook does not create a duplicate. It adds the existing contact to the webhook's list, and the contact keeps its current marketing consent. A first or last name you send fills in only a name that is empty on the contact; it never replaces one that is already saved. Sending the same address twice is safe.

Marketing consent

A new contact added by a webhook is marked Not yet asked, which means ValiantAI has no record of whether the person agreed to marketing email. Not yet asked contacts receive the emails you send through ValiantAI, so only send people to a webhook when you have their permission to email them. See What do Subscribed, Not yet asked, Waiting for confirmation and Enquiry only mean?

Keep the address private

The address itself is the only key: anyone who has it can add contacts to your list. Share it only with the platforms that need it. There is no way to change the address of an existing webhook. If you think the address has leaked, create a new webhook, update your platform with the new address, then delete the old one.

Deleting a webhook

Select the delete button on the card (Delete webhook), then confirm. ValiantAI warns: "Anything still sending to this address will stop adding contacts. Contacts it already added stay." Requests to a deleted address are refused with "Invalid webhook token". Deleting a list also removes every webhook that adds contacts to that list.

Related articles

Did this answer your question?