You can send data from any Zapier workflow to Conversion using Zapier’s Webhooks by Zapier action. This guide walks through configuring a Custom Request webhook step that creates or updates a contact via the Conversion API.Documentation Index
Fetch the complete documentation index at: https://docs.conversion.ai/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you build the Zap, generate an API key in Conversion.Name the key
Use a descriptive name so you can identify which integration it belongs to. We recommend the convention
Zapier + <workflow name> (for example, Zapier — Lead Capture Form). This makes the key easy to audit and revoke later if a single Zap needs to be retired.Send a contact from a Zapier webhook
Add a Webhooks by Zapier action to your Zap and configure it as follows.Action event
Choose Custom Request.Configuration
| Field | Value |
|---|---|
| Method | POST |
| URL | https://pub-api.conversion.ai/api/v2/contacts |
| Data Pass-Through? | Leave blank |
| Data | The JSON body for the contact (see below) |
| Unflatten? | Yes |
| Basic Auth | Leave blank |
| Headers | X-API-Key: <your-api-key> and Content-Type: application/json |
| Return Raw Response? | Yes |
Data
Paste the JSON body below into the Data field, then replace the static values with mapped fields from the previous step in your Zap.emailis required to identify the contact.subscriptionStatuscontrols marketing opt-in state. Allowed values:SUBSCRIBED,UNSUBSCRIBED,NO_STATUS.fieldsaccepts any contact field key configured in your Conversion instance.
Headers
Add two headers to the webhook step:| Header | Value |
|---|---|
X-API-Key | The API key you generated in Prerequisites |
Content-Type | application/json |
Test the step
Run Zapier’s built-in test for the step. On success you’ll receive a200 response with a cnvContactId:
401, double-check that the X-API-Key header is set and the key hasn’t been revoked. See Authentication and the API Overview for the full error reference.
Related
Authentication
How API keys work and how to authenticate requests.
API Overview
Base URL, response envelope, status codes, and error codes for the Conversion API.