<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rahul Sharma</title>
    <description>The latest articles on DEV Community by Rahul Sharma (@rahul_sharma_15bd129bc69e).</description>
    <link>https://dev.to/rahul_sharma_15bd129bc69e</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3476785%2F7115035a-75f6-4d9a-926e-0da2af1b4b40.png</url>
      <title>DEV Community: Rahul Sharma</title>
      <link>https://dev.to/rahul_sharma_15bd129bc69e</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rahul_sharma_15bd129bc69e"/>
    <language>en</language>
    <item>
      <title>CF7 to JetEngine/JetFormBuilder API: Why There Is No Direct Connection and the Right Way to Bridge Them</title>
      <dc:creator>Rahul Sharma</dc:creator>
      <pubDate>Fri, 27 Nov 2026 13:22:03 +0000</pubDate>
      <link>https://dev.to/rahul_sharma_15bd129bc69e/cf7-to-jetenginejetformbuilder-api-why-there-is-no-direct-connection-and-the-right-way-to-bridge-4jm3</link>
      <guid>https://dev.to/rahul_sharma_15bd129bc69e/cf7-to-jetenginejetformbuilder-api-why-there-is-no-direct-connection-and-the-right-way-to-bridge-4jm3</guid>
      <description>&lt;p&gt;You have a Contact Form 7 form. Your data destination is a JetEngine Custom Content Type (CCT), or you want to trigger a JetFormBuilder custom action. You open the "Contact Form to Any API" plugin and try to paste a JetEngine API endpoint into it.&lt;/p&gt;

&lt;p&gt;Then you realize it is not that simple.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"Contact Form to Any API" is a CF7 plugin, not a JetEngine plugin.&lt;/strong&gt; Its entire design logic revolves around Contact Form 7 submission events and field structures. JetEngine and JetFormBuilder are Crocoblock products with their own form system, submission action chain, and REST API endpoint architecture. There is no native "plug and play" interface between the two.&lt;/p&gt;

&lt;p&gt;But this does not mean CF7 data cannot reach JetEngine. It just takes a different path.&lt;/p&gt;

&lt;p&gt;If no request appears in the plugin's logs at all, the problem may be earlier in the pipeline. For a deeper breakdown of that scenario, see this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-data-not-reaching-api/" rel="noopener noreferrer"&gt;Contact Form 7 data not reaching the API&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why You Cannot Simply Treat JetEngine as "Just Another API"
&lt;/h2&gt;

&lt;p&gt;"Contact Form to Any API" works by intercepting CF7 submissions and sending an HTTP request to whatever URL you configure in the plugin settings. Technically, you &lt;strong&gt;can&lt;/strong&gt; paste a JetEngine CCT REST API endpoint into this plugin.&lt;/p&gt;

&lt;p&gt;The problem is &lt;strong&gt;data format and trigger timing&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;JetEngine CCT REST API endpoints (formatted as &lt;code&gt;/wp-json/jet-cct/{cct-slug}&lt;/code&gt;) expect JSON data that matches the CCT field structure. CF7 field names are typically &lt;code&gt;your-name&lt;/code&gt;, &lt;code&gt;your-email&lt;/code&gt;, and so on. You would need to manually construct a JSON payload in the plugin that exactly matches JetEngine's expected structure, and ensure every field name maps precisely.&lt;/p&gt;

&lt;p&gt;More importantly, JetEngine CCT creation endpoints typically require authentication (such as a WordPress Application Password). While "Contact Form to Any API" supports Basic Auth, you must handle Base64 encoding yourself, and whether JetEngine's REST API accepts this authentication method depends on your WordPress configuration.&lt;/p&gt;

&lt;p&gt;This can work, but it is a &lt;strong&gt;hand-built, fragile pipeline&lt;/strong&gt;, not an integration.&lt;/p&gt;

&lt;p&gt;For a deeper dive into JSON structure mapping and field naming conventions, read this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-json-mapping/" rel="noopener noreferrer"&gt;Contact Form 7 JSON mapping&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Real Question: Why Are You Doing This?
&lt;/h2&gt;

&lt;p&gt;Before discussing "how," ask a more fundamental question: &lt;strong&gt;You are already using JetEngine and JetFormBuilder. Why is your form still CF7?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;JetFormBuilder is the form builder within the Crocoblock ecosystem. It natively supports submitting data to JetEngine CCTs through the "Insert/Update Custom Content Type Item" action, and it natively supports REST API requests as a post-submit action. If you are already using JetEngine, replacing CF7 with JetFormBuilder to build your forms is the most direct way to eliminate this integration problem.&lt;/p&gt;

&lt;p&gt;If you cannot or do not want to switch form plugins (for example, your CF7 forms have existed for a long time, or you have other CF7-specific extensions), you need a bridge layer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Path One: Use CF7 Hooks to Manually Push to JetEngine REST API
&lt;/h2&gt;

&lt;p&gt;If you insist on using CF7 and do not want to introduce a third-party bridge plugin, you can write a custom hook that sends a POST request to JetEngine's CCT REST API when CF7 submits.&lt;/p&gt;

&lt;p&gt;JetEngine's CCT creation endpoint format is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://yoursite.com/wp-json/jet-cct/{cct-slug}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You need to use &lt;code&gt;wp_remote_post&lt;/code&gt; to send the request, carrying authentication information in the headers. JetEngine's CCT REST API typically uses WordPress Application Passwords for Basic Auth authentication.&lt;/p&gt;

&lt;p&gt;A simplified code framework looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nf"&gt;add_action&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'wpcf7_before_send_mail'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'push_cf7_to_jetengine_cct'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;push_cf7_to_jetengine_cct&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$contact_form&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nv"&gt;$submission&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;WPCF7_Submission&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;get_instance&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nv"&gt;$submission&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="nv"&gt;$data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$submission&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;get_posted_data&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="nv"&gt;$payload&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="s1"&gt;'name'&lt;/span&gt;    &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'your-name'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s1"&gt;'email'&lt;/span&gt;   &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'your-email'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s1"&gt;'message'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'your-message'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="nv"&gt;$response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;wp_remote_post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'https://yoursite.com/wp-json/jet-cct/your-cct-slug'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="s1"&gt;'headers'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="s1"&gt;'Authorization'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'Basic '&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nf"&gt;base64_encode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'username:application_password'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s1"&gt;'Content-Type'&lt;/span&gt;  &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'application/json'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s1"&gt;'body'&lt;/span&gt;    &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;wp_json_encode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$payload&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s1"&gt;'timeout'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="c1"&gt;// Check wp_remote_retrieve_response_code($response) for debugging&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The advantage of this approach is &lt;strong&gt;complete control&lt;/strong&gt; with no third-party dependency. The disadvantage is that &lt;strong&gt;you must maintain the code&lt;/strong&gt;, and you must handle errors, retries, and logging yourself. If JetEngine's API structure changes (for example, a CCT field is adjusted), you need to update the code accordingly.&lt;/p&gt;

&lt;p&gt;For a comprehensive breakdown of authentication errors and how they interact with API endpoints, see this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-api-authentication-error/" rel="noopener noreferrer"&gt;Contact Form 7 API authentication errors&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Path Two: Replace CF7 with JetFormBuilder (If You Are in the JetEngine Ecosystem)
&lt;/h2&gt;

&lt;p&gt;This is the cleanest solution, provided your project allows switching form plugins.&lt;/p&gt;

&lt;p&gt;JetFormBuilder has a built-in "Insert/Update Custom Content Type Item" post-submit action. You do not need to write any code. Simply select this action in the form's Post Submit Actions, then map form fields to CCT fields. Data goes directly into JetEngine without passing through an HTTP request, without authentication issues, and without field format mismatches.&lt;/p&gt;

&lt;p&gt;If your form logic is more complex, JetFormBuilder also supports custom actions, using the &lt;code&gt;do_action()&lt;/code&gt; method to directly call &lt;code&gt;wp_remote_post&lt;/code&gt; to communicate with external APIs, and it can write API responses back into the form context for use by subsequent actions. This means you can complete both "save to CCT" and "call external API" in the same submission flow without needing two plugins.&lt;/p&gt;

&lt;h2&gt;
  
  
  Path Three: Use Bit Flows or Bit Integrations as a Bridge
&lt;/h2&gt;

&lt;p&gt;If you must keep CF7 but do not want to write code, third-party automation plugins are the compromise.&lt;/p&gt;

&lt;p&gt;Bit Flows provides Contact Form 7 to JetEngine integration. Its trigger is CF7's "On Form Submit," and its actions include "Create Custom Content Type Item." You can map fields in a visual interface without dealing with REST API authentication details.&lt;/p&gt;

&lt;p&gt;Bit Integrations offers a similar CF7 to JetEngine action, but note that its JetEngine actions primarily target &lt;strong&gt;registering Post Types, CCTs, or Taxonomies&lt;/strong&gt;, not adding items to existing CCTs. Check carefully whether the specific action it supports meets your needs before choosing it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common Pitfalls You Will Encounter During Debugging
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;JetEngine CCT REST API authentication issues.&lt;/strong&gt; WordPress Application Passwords may be disabled in certain server environments or blocked by security plugins. Test your CCT endpoint with Basic Auth in a browser or Postman to successfully create an item before connecting it to the CF7 hook.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;JetFormBuilder REST API endpoint special character issues.&lt;/strong&gt; If you go the JetFormBuilder REST API endpoint route, there is a known pitfall: quotes, angle brackets, backslashes, and other special characters cause Internal Server Errors in the REST API context. If your form allows users to input free text, you need to apply additional sanitization before sending, or use JetFormBuilder's Formless Actions Endpoints plugin for more controllable endpoint configuration.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What "Contact Form to Any API" can and cannot do here.&lt;/strong&gt; What it can do: send a manually constructed JSON to a URL. What it cannot do: understand JetEngine's data model, automatically map fields, or handle JetEngine's authentication flow. If you choose Path One, you are essentially using this plugin as an "HTTP request launcher," not as an "integration solution."&lt;/p&gt;

&lt;h2&gt;
  
  
  Beyond the Bridge: One Form, Multiple Destinations
&lt;/h2&gt;

&lt;p&gt;Once your CF7-to-JetEngine bridge works, you might want to send the same submission to other tools: a CRM, an email marketing platform, or a help desk system.&lt;/p&gt;

&lt;p&gt;A good connector plugin supports multiple API integrations from a single form submission. You can push data to a JetEngine CCT, add a HubSpot contact, and send an SMS via Twilio, all from one CF7 submission. For a cost comparison, see this article on &lt;a href="https://www.contactformtoapi.com/zapier-vs-contact-form-to-api-plugin-cost-comparison/" rel="noopener noreferrer"&gt;Zapier vs a dedicated API plugin&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;"Contact Form to Any API" does not support JetEngine or JetFormBuilder as native destinations.&lt;/strong&gt; It is a CF7-exclusive plugin. The JetEngine ecosystem has its own form and integration system.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The cleanest solution is to replace CF7 with JetFormBuilder.&lt;/strong&gt; If you are already using JetEngine, JetFormBuilder natively supports CCT submission without any bridge.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If you must keep CF7, the path is a hook plus JetEngine CCT REST API.&lt;/strong&gt; Use the &lt;code&gt;wpcf7_before_send_mail&lt;/code&gt; hook to send a POST request to &lt;code&gt;/wp-json/jet-cct/{slug}&lt;/code&gt;, handling Basic Auth and JSON mapping yourself.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If you do not want to write code, use Bit Flows.&lt;/strong&gt; It provides field mapping and CCT creation actions from CF7 to JetEngine, removing the low-level REST API details.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Before deciding, confirm whether your form plugin really needs to be CF7.&lt;/strong&gt; On a site already using JetEngine, introducing CF7 and then finding a way to bridge the data is usually more complex and more fragile than simply building the form with JetFormBuilder.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>contactform7</category>
      <category>jetformbuilder</category>
      <category>api</category>
    </item>
    <item>
      <title>CF7 API Integration Breaking on Multisite: A Complete Troubleshooting Guide</title>
      <dc:creator>Rahul Sharma</dc:creator>
      <pubDate>Wed, 25 Nov 2026 05:58:19 +0000</pubDate>
      <link>https://dev.to/rahul_sharma_15bd129bc69e/cf7-api-integration-breaking-on-multisite-a-complete-troubleshooting-guide-526g</link>
      <guid>https://dev.to/rahul_sharma_15bd129bc69e/cf7-api-integration-breaking-on-multisite-a-complete-troubleshooting-guide-526g</guid>
      <description>&lt;p&gt;You have a WordPress multisite network. The "Contact Form to Any API" plugin works perfectly on your main site. Forms submit. API requests fire. Data reaches your CRM.&lt;/p&gt;

&lt;p&gt;But on a subsite, something breaks. The form submits, but no API request appears in the logs. Or the plugin's admin menu does not appear at all. Or the request fires but uses the wrong configuration.&lt;/p&gt;

&lt;p&gt;Multisite introduces a layer of complexity that single-site installations do not have. Plugin activation scope, configuration inheritance, and PHP version drift across subsites can all cause API integrations to fail in ways that are difficult to diagnose.&lt;/p&gt;

&lt;p&gt;This guide walks through the exact reasons multisite integrations break and how to fix them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Multisite Breaks API Integrations
&lt;/h2&gt;

&lt;p&gt;WordPress multisite networks share a single codebase and database across multiple sites. Plugins are installed once, but activation and configuration can vary per site or across the network.&lt;/p&gt;

&lt;p&gt;For the "Contact Form to Any API" plugin, this creates three specific failure modes:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Activation scope.&lt;/strong&gt; If the plugin is network-activated, it is available on all sites. If it is activated only on the main site, subsites cannot access it. The plugin's own changelog includes entries for "Fix – Multi-site installation error" and "Fix – Multisite installation bug fix and update," confirming that multisite activation has been a recurring issue.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Configuration inheritance.&lt;/strong&gt; Each site in the network has its own database tables for plugin settings. If you configure an API integration on the main site, that configuration does not automatically propagate to subsites. Each subsite needs its own integration setup.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;PHP version drift.&lt;/strong&gt; This is the most insidious cause. On a multisite network, plugins are installed once and shared by every site. WordPress checks the PHP version of the main site before allowing an update. If the main site runs PHP 8.3 and a subsite runs PHP 8.2, the plugin update proceeds, but the subsite loads the updated files and may produce a fatal error.&lt;/p&gt;

&lt;p&gt;If no request appears in the plugin's logs at all on a subsite, the problem may be earlier in the pipeline. For a deeper breakdown of that scenario, see this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-data-not-reaching-api/" rel="noopener noreferrer"&gt;Contact Form 7 data not reaching the API&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure #1: The Plugin Is Not Activated on the Subsite
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see:&lt;/strong&gt; The "CF7 to Any API" menu does not appear in the subsite's WordPress admin. Forms submit, but no API integration settings are available.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt; Multisite has two activation modes: network activation and per-site activation. If the plugin was activated only on the main site, subsites do not see it. Even if it is network-activated, some plugins require per-site configuration to function correctly on each subsite.&lt;/p&gt;

&lt;p&gt;A WordPress support thread about a similar CF7-related plugin described exactly this: the plugin was activated on the network but did not appear in the subsite's dashboard. The recommended solution was to enable "Network Activate" for the plugin.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; In the WordPress Network Admin dashboard, navigate to Plugins.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; Locate "Contact Form to Any API." Check if it shows "Network Active" or just "Active."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; If it is not network-activated, click "Network Activate." This makes the plugin available on all subsites.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4:&lt;/strong&gt; Navigate to each subsite's admin dashboard and verify that the "CF7 to Any API" menu appears. If it does, you need to configure the integration settings separately on each subsite.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; Network activation does not copy settings from the main site to subsites. Each subsite has its own integration configuration stored in its own database tables.&lt;/p&gt;

&lt;p&gt;For a deeper dive into API authentication errors and how they appear in logs, read this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-api-authentication-error/" rel="noopener noreferrer"&gt;Contact Form 7 API authentication errors&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure #2: The Integration Is Configured on the Main Site but Not on the Subsite
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see:&lt;/strong&gt; The form submits on the subsite. The plugin's menu appears. But no API request fires, or the request uses the wrong endpoint.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt; Multisite does not share plugin settings across sites by default. If you configured an API integration on &lt;code&gt;main.example.com&lt;/code&gt;, the subsite &lt;code&gt;sub.example.com&lt;/code&gt; has no knowledge of that configuration. It needs its own integration setup with its own endpoint URL, headers, and field mappings.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; On the subsite's admin dashboard, navigate to "CF7 to Any API" and create a new integration.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; Configure the endpoint URL, authentication headers, and JSON payload separately for the subsite. You cannot reuse the main site's configuration.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; If you have many subsites with identical configurations, consider using a plugin like "Multisite Plugin Manager" to streamline the setup, or write a small script to programmatically copy settings across sites.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Alternative approach:&lt;/strong&gt; If the API integration should be identical across all subsites, you can use a shared configuration stored in a custom database table or a network option. This requires custom development but avoids maintaining separate configurations for each site.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure #3: PHP Version Mismatch Across Subsites
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see:&lt;/strong&gt; The plugin's admin menu appears on the subsite, but form submissions fail. The browser console may show a 500 error or a 404 on the CF7 REST API endpoint. The plugin's logs are empty.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt; This is specific to multisite and became more common after Contact Form 7 version 6.2 required PHP 8.3. On a multisite network, plugins are installed once and shared. WordPress checks the PHP version of the main site before allowing updates. If the main site runs PHP 8.3 and a subsite runs PHP 8.2, the update proceeds. The subsite then loads the updated plugin files, which require PHP 8.3, and produces a fatal error.&lt;/p&gt;

&lt;p&gt;A real-world case documented this exact scenario: a client network updated CF7 to 6.2 on a main site running PHP 8.3, but subdomains were configured on the server to run older PHP versions. The subsites loaded the same 6.2 files and produced fatal errors. Setting the subdomains to PHP 8.3 fixed it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; In your hosting control panel (Plesk, cPanel, or similar), check the PHP version assigned to each domain and subdomain in the network. Do not assume they match.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; Set all subdomains to the same PHP version as the main site. For Contact Form 7 6.2 and later, this must be PHP 8.3 or higher.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; After aligning PHP versions, test a form submission on each subsite.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4:&lt;/strong&gt; Check the subsite's &lt;code&gt;wp-content/debug.log&lt;/code&gt; file for fatal errors. If the log shows a PHP version error, the fix has not been applied correctly.&lt;/p&gt;

&lt;p&gt;For a comprehensive breakdown of authentication errors and how they interact with server configuration, see this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-api-authentication-error/" rel="noopener noreferrer"&gt;Contact Form 7 API authentication errors&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure #4: The Subsite's REST API Endpoint Is Broken
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see:&lt;/strong&gt; The form submits, but the AJAX spinner spins forever. The browser console shows a 404 error on &lt;code&gt;/wp-json/contact-form-7/v1/contact-forms/[id]/feedback&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt; Multisite can break CF7's REST API endpoints. The endpoint URL may resolve to the wrong site or the wrong path. A WordPress support thread documented this exact issue: "Im getting the same error on multisite: /wp-json/contact-form-7/v1/contact-forms/61789/refill 404 because its looking in the wrong directory for the plugin jQuery."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; In the subsite's admin, navigate to Settings → Permalinks. Click "Save Changes" without making any changes. This flushes the rewrite rules and regenerates the REST API endpoints.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; Check if the form submits correctly. If it still fails, navigate to the subsite's CF7 form editor and re-save the form. This can refresh the form's REST API registration.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; If the problem persists, deactivate and reactivate the "Contact Form to Any API" plugin on the subsite. This forces WordPress to re-register the plugin's hooks and REST routes.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Debugging Checklist for Multisite Failures
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;th&gt;What It Reveals&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Check plugin activation scope&lt;/td&gt;
&lt;td&gt;Is it Network Active or per-site Active?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Verify the plugin menu appears on the subsite&lt;/td&gt;
&lt;td&gt;Is the plugin available to the subsite?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Check integration settings on the subsite&lt;/td&gt;
&lt;td&gt;Is the endpoint URL and payload configured?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Check PHP version for each subdomain&lt;/td&gt;
&lt;td&gt;Do all sites run the same PHP version?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Check &lt;code&gt;wp-content/debug.log&lt;/code&gt; on the subsite&lt;/td&gt;
&lt;td&gt;Are there fatal errors?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Flush permalinks on the subsite&lt;/td&gt;
&lt;td&gt;Is the REST API endpoint working?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;Check the plugin's API Logs on the subsite&lt;/td&gt;
&lt;td&gt;Was a request sent? What response code?&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Beyond Multisite: One Form, Multiple Destinations
&lt;/h2&gt;

&lt;p&gt;Once your multisite integration works, you might want to send the same submission to other tools: a CRM, an email marketing platform, or a help desk system.&lt;/p&gt;

&lt;p&gt;A good connector plugin supports multiple API integrations from a single form submission. You can create a CRM contact, send an SMS via Twilio, and create a Zendesk ticket, all from one CF7 submission. For a cost comparison, see this article on &lt;a href="https://www.contactformtoapi.com/zapier-vs-contact-form-to-api-plugin-cost-comparison/" rel="noopener noreferrer"&gt;Zapier vs a dedicated API plugin&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Multisite does not share plugin settings across sites.&lt;/strong&gt; Each subsite needs its own integration configuration, even if the settings are identical to the main site.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Network activation is required for subsites to access the plugin.&lt;/strong&gt; If the plugin is only activated on the main site, subsites cannot use it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;PHP version drift across subdomains is a silent killer.&lt;/strong&gt; A plugin update that works on the main site can break subsites running older PHP versions. Check every subdomain, not just the main domain.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;REST API endpoints can break on subsites.&lt;/strong&gt; Flushing permalinks or re-saving the form often fixes this.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The plugin's changelog confirms multisite bugs have existed.&lt;/strong&gt; Entries for "Multi-site installation error" and "Multisite installation bug fix" indicate that this has been a recurring issue. Always use the latest version.&lt;/p&gt;

&lt;p&gt;With network activation, per-site configuration, consistent PHP versions, and flushed permalinks, your CF7 API integrations will work reliably across every site in your multisite network.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>contactform7</category>
      <category>multisite</category>
      <category>apiintegration</category>
    </item>
    <item>
      <title>CF7 to Airtable Linked Record Field Not Populating: A Complete Troubleshooting Guide</title>
      <dc:creator>Rahul Sharma</dc:creator>
      <pubDate>Mon, 16 Nov 2026 11:14:22 +0000</pubDate>
      <link>https://dev.to/rahul_sharma_15bd129bc69e/cf7-to-airtable-linked-record-field-not-populating-a-complete-troubleshooting-guide-1ajm</link>
      <guid>https://dev.to/rahul_sharma_15bd129bc69e/cf7-to-airtable-linked-record-field-not-populating-a-complete-troubleshooting-guide-1ajm</guid>
      <description>&lt;p&gt;You have connected Contact Form 7 to Airtable through the "Contact Form to Any API" plugin. Standard fields populate correctly: the Name, Email, and Message columns fill in as expected. But the linked record field the one that should connect this new record to an existing record in another table stays empty.&lt;/p&gt;

&lt;p&gt;Or worse, Airtable returns an &lt;code&gt;INVALID_RECORD_ID&lt;/code&gt; error, even though you are certain the record ID is correct.&lt;/p&gt;

&lt;p&gt;This is one of the most common and confusing failures in Airtable integrations. The problem is not authentication. It is not the endpoint URL. It is the payload format for linked record fields, which is fundamentally different from every other field type.&lt;/p&gt;

&lt;p&gt;This guide explains exactly why linked record fields fail and how to format the payload correctly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Linked Record Fields Are Different
&lt;/h2&gt;

&lt;p&gt;Airtable's linked record field does not store text. It stores an array of record IDs from the target table. Each ID is a string like &lt;code&gt;recXE6yQpMi1NyWRx&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The confusion arises because Airtable's API accepts the record ID in &lt;strong&gt;two different formats&lt;/strong&gt; depending on context:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For the Web API (which the plugin uses):&lt;/strong&gt; The value must be an array of record ID strings: &lt;code&gt;["recXE6yQpMi1NyWRx"]&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For Airtable's scripting environment or certain middleware tools:&lt;/strong&gt; The value is an array of objects: &lt;code&gt;[{"id": "recXE6yQpMi1NyWRx"}]&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;If you use the object format in a Web API request which is what the plugin sends Airtable rejects the request with &lt;code&gt;INVALID_RECORD_ID&lt;/code&gt;, even though the ID itself is correct.&lt;/p&gt;

&lt;p&gt;This is the single most common reason linked record fields fail to populate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure #1: The Payload Uses the Wrong Array Format
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see:&lt;/strong&gt; Airtable returns an &lt;code&gt;INVALID_RECORD_ID&lt;/code&gt; error, or the linked record field is created but empty.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt; You are sending the record ID as an object (&lt;code&gt;[{"id": "recXXX"}]&lt;/code&gt;) instead of a plain string array (&lt;code&gt;["recXXX"]&lt;/code&gt;). The Web API expects the string array format.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In the plugin's JSON Payload configuration, the linked record field must be formatted as a simple array of strings:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"fields"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"Your_Linked_Field_Name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"recXE6yQpMi1NyWRx"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Not:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"fields"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"Your_Linked_Field_Name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"recXE6yQpMi1NyWRx"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The second format is used in Airtable's scripting API and in some middleware tools, but it is not valid for direct Web API calls.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to verify:&lt;/strong&gt; After updating the payload format, submit a test form. Check the plugin's API Logs. A 200 OK response with the linked field populated means the format is correct.&lt;/p&gt;

&lt;p&gt;If no request appears in the logs at all, the problem is earlier in the pipeline. For a deeper breakdown of that scenario, see this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-data-not-reaching-api/" rel="noopener noreferrer"&gt;Contact Form 7 data not reaching the API&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure #2: The Record ID Is Not Actually Correct
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see:&lt;/strong&gt; Airtable returns &lt;code&gt;INVALID_RECORD_ID&lt;/code&gt;. You are certain the ID is correct, but the API disagrees.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt; The record ID you are using may belong to a different table, or the record may have been deleted. Airtable record IDs are table-specific. A valid ID from Table A will fail if used in a linked field pointing to Table B.&lt;/p&gt;

&lt;p&gt;Additionally, if you are passing the record ID through a CF7 hidden field, verify that the value is not being truncated or altered by form processing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; In Airtable, open the target table (the table the linked field points to). Click on the record you want to link. The record ID is visible in the URL or in the record detail panel. It starts with &lt;code&gt;rec&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; Copy the ID exactly. Do not add spaces, quotes, or brackets inside the string.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; If the ID is coming from a CF7 field, test the form with a hardcoded record ID first. Replace the CF7 tag with the literal ID:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"fields"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"Linked_Record"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"recXE6yQpMi1NyWRx"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the hardcoded version works but the CF7 tag version does not, the problem is with how the field value is being passed or formatted.&lt;/p&gt;

&lt;p&gt;For a deeper dive into JSON structure mapping and field value formatting, read this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-json-mapping/" rel="noopener noreferrer"&gt;Contact Form 7 JSON mapping&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure #3: The Linked Field Name Is Wrong
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see:&lt;/strong&gt; The record is created, but the linked field is empty. No error is returned.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt; Airtable silently ignores fields that do not exist on the table. If the field name in your payload does not match the exact field name in Airtable including capitalization and spacing the value is discarded.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; In Airtable, open the table and check the exact field name. Copy it exactly as shown.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; Update the JSON Payload key to match. The key must be the field name, not the field ID, unless you are using field IDs explicitly.&lt;/p&gt;

&lt;p&gt;For example, if the field is named &lt;code&gt;Linked Project&lt;/code&gt;, your payload must use &lt;code&gt;"Linked Project"&lt;/code&gt;, not &lt;code&gt;"linked_project"&lt;/code&gt; or &lt;code&gt;"LinkedProject"&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; Submit a test form and verify the link populates.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure #4: The Plugin Is Sending the Wrong Content-Type
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see:&lt;/strong&gt; Airtable returns a 400 Bad Request error with a message about invalid request format.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt; Airtable's API requires &lt;code&gt;Content-Type: application/json&lt;/code&gt;. If the plugin is configured to send form-encoded data or another content type, Airtable rejects the request.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In the plugin's Request Headers configuration, ensure the following header is present:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="n"&gt;Content&lt;/span&gt;&lt;span class="err"&gt;-&lt;/span&gt;&lt;span class="n"&gt;Type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;application&lt;/span&gt;&lt;span class="err"&gt;/&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This header must be set explicitly. Some API integrations default to a different content type, which causes Airtable to reject the payload before it even evaluates the linked record field.&lt;/p&gt;

&lt;p&gt;For a comprehensive breakdown of authentication headers and content types across different APIs, see this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-api-authentication-error/" rel="noopener noreferrer"&gt;Contact Form 7 API authentication errors&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Debugging Checklist
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;th&gt;What It Reveals&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Check the plugin's API Logs&lt;/td&gt;
&lt;td&gt;Was a request sent? What response code and body?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Verify the payload format for the linked field&lt;/td&gt;
&lt;td&gt;Is it &lt;code&gt;["recXXX"]&lt;/code&gt; or &lt;code&gt;[{"id": "recXXX"}]&lt;/code&gt;?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Test with a hardcoded record ID&lt;/td&gt;
&lt;td&gt;Isolates CF7 field mapping issues from format issues&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Verify the record ID against the target table&lt;/td&gt;
&lt;td&gt;Is the ID valid for the linked table?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Check the field name exact match&lt;/td&gt;
&lt;td&gt;Does the payload key match the Airtable field name?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Verify Content-Type header&lt;/td&gt;
&lt;td&gt;Is it &lt;code&gt;application/json&lt;/code&gt;?&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Beyond the Link: One Form, Multiple Destinations
&lt;/h2&gt;

&lt;p&gt;Once your Airtable linked record integration works, you might want to send the same submission to other tools: a CRM, an email marketing platform, or a project management board.&lt;/p&gt;

&lt;p&gt;A good connector plugin supports multiple API integrations from a single form submission. You can create an Airtable record with linked fields, add a HubSpot contact, and create a Monday.com item, all from one CF7 submission. For a cost comparison, see this article on &lt;a href="https://www.contactformtoapi.com/zapier-vs-contact-form-to-api-plugin-cost-comparison/" rel="noopener noreferrer"&gt;Zapier vs a dedicated API plugin&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Airtable's Web API expects linked record values as a string array:&lt;/strong&gt; &lt;code&gt;["recXXX"]&lt;/code&gt;, not &lt;code&gt;[{"id": "recXXX"}]&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The object format is for Airtable's scripting environment, not the Web API.&lt;/strong&gt; Using it in the plugin payload causes &lt;code&gt;INVALID_RECORD_ID&lt;/code&gt; errors.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The record ID must belong to the target table.&lt;/strong&gt; A valid ID from a different table will fail.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Field names must match exactly.&lt;/strong&gt; Airtable silently ignores fields that do not exist on the table.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Start with a hardcoded record ID.&lt;/strong&gt; Once the link works with a literal ID, replace it with the CF7 tag to isolate mapping issues.&lt;/p&gt;

&lt;p&gt;With the correct array format, a valid record ID from the target table, and an exact field name match, your CF7 submissions will populate Airtable linked record fields reliably.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>contactform7</category>
      <category>apiintegration</category>
      <category>wordpressdevelopment</category>
    </item>
    <item>
      <title>CF7 to Monday.com Item Not Appearing in Board: A Complete Troubleshooting Guide</title>
      <dc:creator>Rahul Sharma</dc:creator>
      <pubDate>Thu, 12 Nov 2026 06:20:41 +0000</pubDate>
      <link>https://dev.to/rahul_sharma_15bd129bc69e/cf7-to-mondaycom-item-not-appearing-in-board-a-complete-troubleshooting-guide-48fb</link>
      <guid>https://dev.to/rahul_sharma_15bd129bc69e/cf7-to-mondaycom-item-not-appearing-in-board-a-complete-troubleshooting-guide-48fb</guid>
      <description>&lt;p&gt;You have connected Contact Form 7 to Monday.com through a connector plugin. The API logs show a successful 200 OK response. The item ID is returned. Everything looks correct.&lt;/p&gt;

&lt;p&gt;But when you open the board in Monday.com, the item is not there.&lt;/p&gt;

&lt;p&gt;This is one of the most confusing integration failures because the API tells you it succeeded. The request was valid. The item was created. But it is invisible to you.&lt;/p&gt;

&lt;p&gt;This guide explains exactly why this happens and how to fix it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Monday.com Says "Success" When the Item Is Invisible
&lt;/h2&gt;

&lt;p&gt;Monday.com's API creates items at the account level, not at the board level. The &lt;code&gt;create_item&lt;/code&gt; mutation accepts a &lt;code&gt;board_id&lt;/code&gt; and returns the created item's ID and URL. But the item's visibility depends on two factors that the API response does not validate:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Permission scope of the API token.&lt;/strong&gt; If the API token belongs to a user who does not have access to the board, or if the token's permissions are limited, the item is created but is not visible to anyone viewing the board through a different user account.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Column ID and value format.&lt;/strong&gt; If the &lt;code&gt;columnValues&lt;/code&gt; payload contains incorrect column IDs or value formats, Monday may accept the request but silently ignore the column values, creating an item with empty fields that does not appear in filtered views.&lt;/p&gt;

&lt;p&gt;The first is the most common cause. A Monday.com community response confirmed this directly: "The solution was a permission issue. The API key used wasn't from the same user which I was using to view the board. The solution is to add permissions or create an API Key from the user I want to see the items."&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure #1: The API Token Belongs to a Different User
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see:&lt;/strong&gt; The API returns a successful response with an item ID. The item URL works when accessed directly. But the board view does not show the item.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt; Monday.com's API token is tied to a specific user account. If you generated the token from User A, but you are viewing the board as User B, and User B does not have permission to see items created by User A, the item is invisible in your view. This is not a bug. It is how Monday's permission model works.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Option A: Generate the API token from the user who will view the board.&lt;/strong&gt; If your team views the board as &lt;code&gt;admin@company.com&lt;/code&gt;, generate the API token while logged in as &lt;code&gt;admin@company.com&lt;/code&gt;. This ensures the item is created under the same account context.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Option B: Grant the token's user access to the board.&lt;/strong&gt; If you must use a service account token, add that service account as a board member with edit permissions. Navigate to the board, click "Invite," and add the user associated with the API token.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to verify:&lt;/strong&gt; After generating a new token from the correct user, submit a test form. Check the board while logged in as that same user. The item should appear.&lt;/p&gt;

&lt;p&gt;If no request appears in the plugin's logs at all, the problem is earlier in the pipeline. For a deeper breakdown of that scenario, see this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-data-not-reaching-api/" rel="noopener noreferrer"&gt;Contact Form 7 data not reaching the API&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure #2: The Column IDs in the Payload Are Wrong
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see:&lt;/strong&gt; The item appears in the board, but all column values are empty. Or the item is created in the wrong group and does not appear in the filtered view you are checking.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt; Monday's &lt;code&gt;create_item&lt;/code&gt; mutation requires column IDs, not column display names. If your payload uses &lt;code&gt;"status": {"label": "Done"}&lt;/code&gt; but the actual column ID is &lt;code&gt;"status_mm37gbqg"&lt;/code&gt;, Monday ignores the value.&lt;/p&gt;

&lt;p&gt;The same applies to group IDs. If you do not specify a &lt;code&gt;group_id&lt;/code&gt;, the item goes to the board's top group. If you are checking a different group, the item appears to be missing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Retrieve the correct column IDs.&lt;/strong&gt; Use Monday's &lt;code&gt;get_board_info&lt;/code&gt; tool or query the board via GraphQL to list all columns and their IDs. The column ID is not the same as the column title.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Update your JSON payload.&lt;/strong&gt; For a status column, the format is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"status_mm37gbqg"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"label"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Working on it"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For a text column, the format is a plain string:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"text_col"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Hello"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For a date column:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"date_col"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"date"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2024-05-10"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 3: Specify the group ID if needed.&lt;/strong&gt; If you want the item in a specific group, add &lt;code&gt;groupId&lt;/code&gt; to your payload. Otherwise, it goes to the top group.&lt;/p&gt;

&lt;p&gt;For a deeper dive into JSON structure mapping and column value formatting, read this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-json-mapping/" rel="noopener noreferrer"&gt;Contact Form 7 JSON mapping&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure #3: The Payload Structure Is Wrong for Monday's GraphQL API
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see:&lt;/strong&gt; Monday returns a 400 Bad Request error, or the item is created with no name and no column values.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt; Monday.com uses GraphQL, not REST. The connector plugin may be configured to send a REST-style JSON body, which Monday's API does not accept. The &lt;code&gt;create_item&lt;/code&gt; mutation expects a specific GraphQL structure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Monday's GraphQL &lt;code&gt;create_item&lt;/code&gt; mutation requires three parameters at minimum:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;board_id&lt;/code&gt;: The numeric ID of the board&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;item_name&lt;/code&gt;: The name of the item (a plain string)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;column_values&lt;/code&gt;: A JSON string containing column ID to value mappings&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Your payload sent through the plugin should be structured as a GraphQL query. If your connector plugin supports raw JSON payloads, the body must include the &lt;code&gt;query&lt;/code&gt; and &lt;code&gt;variables&lt;/code&gt; fields:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"query"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"mutation ($boardId: ID!, $itemName: String!, $columnValues: JSON) { create_item(board_id: $boardId, item_name: $itemName, column_values: $columnValues) { id } }"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"variables"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"boardId"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;18412502536&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"itemName"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"[your-name] - Website Inquiry"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"columnValues"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"{\"status_mm37gbqg\": {\"label\": \"New\"}}"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Critical detail:&lt;/strong&gt; The &lt;code&gt;columnValues&lt;/code&gt; parameter is a JSON string nested inside the GraphQL variables. This "JSON-in-JSON" pattern is specific to Monday's API and is the source of many payload errors.&lt;/p&gt;

&lt;p&gt;If your connector plugin does not support GraphQL queries, you may need to use a plugin that does, or configure a middleware service to translate the request.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure #4: The Board ID Is Wrong or the Token Lacks Board Access
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see:&lt;/strong&gt; Monday returns a 404 Not Found error, or a 403 Forbidden error. No item is created.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt; The &lt;code&gt;board_id&lt;/code&gt; in your payload must be the numeric ID of the target board. If you use the board's URL slug instead of its ID, the request fails. Additionally, the API token must have access to that specific board.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Get the correct board ID.&lt;/strong&gt; Open the board in Monday.com. The URL contains the board ID: &lt;code&gt;https://yourcompany.monday.com/boards/18412502536&lt;/code&gt;. The numeric portion is the board ID.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Verify token access.&lt;/strong&gt; In Monday.com, navigate to the board and check the board's members. The user associated with the API token must be listed as a member with at least edit permissions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: Test with a minimal payload.&lt;/strong&gt; Hardcode the &lt;code&gt;board_id&lt;/code&gt; and &lt;code&gt;item_name&lt;/code&gt; values. Submit a test form. If the item appears, the issue is column values or permissions. If it still fails, the token or board ID is wrong.&lt;/p&gt;

&lt;p&gt;For a comprehensive breakdown of API authentication errors and how they appear in logs, see this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-api-authentication-error/" rel="noopener noreferrer"&gt;Contact Form 7 API authentication errors&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Debugging Checklist
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;th&gt;What It Reveals&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Check the plugin's API Logs&lt;/td&gt;
&lt;td&gt;Was a request sent? What response code and body?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Verify the API token's user&lt;/td&gt;
&lt;td&gt;Is it the same user viewing the board?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Check board membership&lt;/td&gt;
&lt;td&gt;Is the token's user a member of the board?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Verify column IDs&lt;/td&gt;
&lt;td&gt;Are they the IDs from &lt;code&gt;get_board_info&lt;/code&gt;, not display names?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Check the payload structure&lt;/td&gt;
&lt;td&gt;Is it a GraphQL query, not a REST body?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Test with minimal payload&lt;/td&gt;
&lt;td&gt;Hardcode &lt;code&gt;board_id&lt;/code&gt; and &lt;code&gt;item_name&lt;/code&gt; only&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Beyond the Board: One Form, Multiple Destinations
&lt;/h2&gt;

&lt;p&gt;Once your Monday.com integration works, you might want to send the same submission to other tools: a CRM, an email marketing platform, or a help desk system.&lt;/p&gt;

&lt;p&gt;A good connector plugin supports multiple API integrations from a single form submission. You can create a Monday item, add a HubSpot contact, and send an SMS via Twilio, all from one CF7 submission. For a cost comparison, see this article on &lt;a href="https://www.contactformtoapi.com/zapier-vs-contact-form-to-api-plugin-cost-comparison/" rel="noopener noreferrer"&gt;Zapier vs a dedicated API plugin&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The API can return success while the item is invisible.&lt;/strong&gt; Monday's &lt;code&gt;create_item&lt;/code&gt; response does not validate visibility. The item is created at the account level, and its visibility depends on the API token's user permissions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Generate the API token from the user who views the board.&lt;/strong&gt; If your team views the board as &lt;code&gt;admin@company.com&lt;/code&gt;, create the token while logged in as that user.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Column IDs must be exact.&lt;/strong&gt; Use &lt;code&gt;get_board_info&lt;/code&gt; to retrieve the correct IDs. Display names do not work.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Monday uses GraphQL, not REST.&lt;/strong&gt; The payload must be a GraphQL query with &lt;code&gt;columnValues&lt;/code&gt; as a JSON string nested inside the variables.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Start with a minimal payload.&lt;/strong&gt; Hardcode &lt;code&gt;board_id&lt;/code&gt; and &lt;code&gt;item_name&lt;/code&gt;. Once the item appears, add column values one at a time.&lt;/p&gt;

&lt;p&gt;With the correct API token, verified board permissions, and a properly structured GraphQL payload, your CF7 submissions will create visible items in your Monday.com board reliably.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>contactform7</category>
      <category>mondaycrm</category>
      <category>apiintegration</category>
    </item>
    <item>
      <title>CF7 to HubSpot Deal Not Created: Why It Happens and How to Fix It</title>
      <dc:creator>Rahul Sharma</dc:creator>
      <pubDate>Fri, 06 Nov 2026 12:24:16 +0000</pubDate>
      <link>https://dev.to/rahul_sharma_15bd129bc69e/cf7-to-hubspot-deal-not-created-why-it-happens-and-how-to-fix-it-3omc</link>
      <guid>https://dev.to/rahul_sharma_15bd129bc69e/cf7-to-hubspot-deal-not-created-why-it-happens-and-how-to-fix-it-3omc</guid>
      <description>&lt;p&gt;You have connected Contact Form 7 to HubSpot. Contacts appear in your CRM. Companies are created. But deals? They never show up.&lt;/p&gt;

&lt;p&gt;This is one of the most common frustrations with CF7-to-HubSpot integrations. The contact gets created. The deal does not. And the reason is not a bug in your plugin or a missing field mapping. It is a fundamental architectural fact about how HubSpot works.&lt;/p&gt;

&lt;p&gt;HubSpot's form submission APIs are &lt;strong&gt;contact-centric&lt;/strong&gt;. They are designed to create or update contacts. They do not create deals. Even if you include deal fields in a form submission, HubSpot's API ignores them.&lt;/p&gt;

&lt;p&gt;This guide explains exactly why deals fail to create and walks through the verified solutions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why HubSpot Does Not Create Deals from Form Submissions
&lt;/h2&gt;

&lt;p&gt;HubSpot's native form handling and its Forms API are built around contacts. When a form is submitted, HubSpot creates or updates a contact record. It may also create a company if the contact's email domain matches an existing company or if specific settings are enabled. But deals are not part of the default form submission flow.&lt;/p&gt;

&lt;p&gt;A HubSpot community moderator confirmed this directly: "Out of the box form submissions do not create deals." Even if you put deal fields on a form definition, the submissions endpoint is designed to create or update the contact record only, then expose those values so you can act on them with workflows or other APIs afterward.&lt;/p&gt;

&lt;p&gt;This means that regardless of which WordPress plugin you use "Contact Form to Any API," the official HubSpot plugin, or any other integration a standard form submission will not create a deal automatically.&lt;/p&gt;

&lt;p&gt;If no contact appears in HubSpot at all, the problem may be earlier in the pipeline. For a deeper breakdown of that scenario, see this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-data-not-reaching-api/" rel="noopener noreferrer"&gt;Contact Form 7 data not reaching the API&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure #1: You Are Targeting the Contacts Endpoint, Not the Deals Endpoint
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see:&lt;/strong&gt; Contacts appear in HubSpot. Deals never appear. The plugin's API logs show a successful 200 or 201 response, because the contact creation succeeded.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt; The "Contact Form to Any API" plugin requires you to specify the API endpoint manually. If you are using the HubSpot Contacts endpoint (&lt;code&gt;/crm/v3/objects/contacts&lt;/code&gt;), the plugin creates a contact and nothing else. There is no deal creation because the endpoint does not handle deals.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You have two options. The first is to target the Deals endpoint directly. HubSpot's Deals API accepts a POST request to &lt;code&gt;/crm/v3/objects/deals&lt;/code&gt; with a properties object.&lt;/p&gt;

&lt;p&gt;Your payload would look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"properties"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"dealname"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"[your-name] - Website Inquiry"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"dealstage"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"appointmentscheduled"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"pipeline"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"default"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Critical detail:&lt;/strong&gt; You must use the &lt;strong&gt;internal ID&lt;/strong&gt; of a deal stage, not its display label. The internal ID for "Appointment Scheduled" might be &lt;code&gt;appointmentscheduled&lt;/code&gt;, but you should verify this in your HubSpot deal pipeline settings.&lt;/p&gt;

&lt;p&gt;The second option is to create the contact via the plugin and then use a HubSpot workflow to create the deal. This is the approach HubSpot recommends for most users.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure #2: The Deal Stage or Pipeline ID Is Wrong
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see:&lt;/strong&gt; HubSpot returns a 400 Bad Request error. The response mentions an invalid dealstage or pipeline.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt; HubSpot's Deals API requires internal IDs for &lt;code&gt;dealstage&lt;/code&gt; and &lt;code&gt;pipeline&lt;/code&gt;, not human-readable names. If you use &lt;code&gt;dealstage: "New"&lt;/code&gt; but the internal ID is &lt;code&gt;appointmentscheduled&lt;/code&gt;, the request fails.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; In HubSpot, navigate to Settings → Objects → Deals → Pipelines.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; Click on your pipeline and locate the stage you want to use. The internal ID is displayed alongside the stage name.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; Update your JSON payload to use the internal ID:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"properties"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"dealname"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"[your-name] - Website Inquiry"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"dealstage"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"appointmentscheduled"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"pipeline"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"default"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you omit &lt;code&gt;pipeline&lt;/code&gt;, HubSpot uses the default pipeline. If you omit &lt;code&gt;dealstage&lt;/code&gt;, HubSpot may reject the request or use a default stage depending on your account configuration.&lt;/p&gt;

&lt;p&gt;For a deeper dive into JSON structure mapping and payload construction, read this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-json-mapping/" rel="noopener noreferrer"&gt;Contact Form 7 JSON mapping&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure #3: The Workflow That Should Create Deals Is Not Firing
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see:&lt;/strong&gt; Contacts are created. The workflow you set up to create deals is either not enrolling contacts or not completing the deal creation action.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt; HubSpot workflows that create deals from form submissions require specific enrollment triggers and actions. If the enrollment criteria do not match the contact's properties, the workflow never runs. If the "Create record" action is missing or misconfigured, the deal is never created.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; In HubSpot, navigate to Automation → Workflows.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; Check your deal-creation workflow. The enrollment trigger should be "Contact submitted form X" or "Contact property [specific field] is known."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; Verify the workflow contains a "Create record" action targeting Deals. The action should map contact properties to deal properties.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4:&lt;/strong&gt; Check the workflow's action log. If contacts are enrolling but the action fails, the log will show the error. If contacts are not enrolling, the enrollment criteria are too narrow.&lt;/p&gt;

&lt;p&gt;A HubSpot community user described this exact problem: contacts were created from form submissions, but deals were not. The moderator confirmed that a workflow was required and asked the user to check the action log for enrollment or execution errors.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure #4: The Contact Has No Associated Company
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see:&lt;/strong&gt; Deals are created for some contacts (those with business email domains) but not others (those with Gmail, Yahoo, or other free email providers).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt; If your deal-creation workflow or HubSpot's automatic company association settings depend on the contact having a company, freemail contacts will not trigger deal creation. HubSpot's "Automatically create and associate companies with contacts" setting may block company creation for free email domains.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Option A:&lt;/strong&gt; Create a second workflow that enrolls contacts without an associated company and creates the company first. Then the deal-creation workflow can run.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Option B:&lt;/strong&gt; Modify your deal-creation workflow to not require a company association. The deal can be created directly from the contact record without a company link.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Option C:&lt;/strong&gt; Use the "Contact Form to Any API" plugin to call the Deals API directly, bypassing HubSpot's workflow logic entirely. This gives you full control over when a deal is created, regardless of the contact's email domain.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Debugging Checklist
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;th&gt;What It Reveals&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Check the plugin's API Logs&lt;/td&gt;
&lt;td&gt;Was a request sent? To which endpoint?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Verify the endpoint URL&lt;/td&gt;
&lt;td&gt;Does it target &lt;code&gt;/deals&lt;/code&gt; or &lt;code&gt;/contacts&lt;/code&gt;?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Check the dealstage internal ID&lt;/td&gt;
&lt;td&gt;Is it the ID, not the display name?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Check HubSpot workflow enrollment&lt;/td&gt;
&lt;td&gt;Are contacts enrolling in the deal-creation workflow?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Check the workflow action log&lt;/td&gt;
&lt;td&gt;Did the "Create record" action execute successfully?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Test with a business email&lt;/td&gt;
&lt;td&gt;Does the deal create when the contact has a company domain?&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For a comprehensive breakdown of API authentication and error handling across different integrations, see this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-api-authentication-error/" rel="noopener noreferrer"&gt;Contact Form 7 API authentication errors&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Beyond Deals: One Form, Multiple Destinations
&lt;/h2&gt;

&lt;p&gt;Once your deal creation works, you might want to send the same submission to other HubSpot objects or external tools.&lt;/p&gt;

&lt;p&gt;A good connector plugin supports multiple API integrations from a single form submission. You can create a HubSpot contact, a deal, and send an SMS via Twilio, all from one CF7 submission. For a cost comparison, see this article on &lt;a href="https://www.contactformtoapi.com/zapier-vs-contact-form-to-api-plugin-cost-comparison/" rel="noopener noreferrer"&gt;Zapier vs a dedicated API plugin&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;HubSpot form submissions do not create deals automatically.&lt;/strong&gt; The Forms API and contact endpoints are contact-centric. Deals require either a direct API call to the Deals endpoint or a HubSpot workflow.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Deals API requires internal IDs for dealstage and pipeline.&lt;/strong&gt; Using display names instead of IDs causes 400 errors.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Workflows are the native HubSpot solution.&lt;/strong&gt; Create a workflow that enrolls contacts from form submissions and uses the "Create record" action to create deals.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Freemail contacts may not trigger company-based workflows.&lt;/strong&gt; If your workflow requires a company association, Gmail and Yahoo contacts may be skipped.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Direct API calls to the Deals endpoint give you full control.&lt;/strong&gt; Use the plugin to POST to &lt;code&gt;/crm/v3/objects/deals&lt;/code&gt; with the correct properties and IDs, bypassing HubSpot's workflow logic entirely.&lt;/p&gt;

&lt;p&gt;With the right endpoint, correct internal IDs, and a properly configured workflow or direct API call, your CF7 submissions will create deals in HubSpot reliably.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>contactform7</category>
      <category>hubspot</category>
      <category>apiintegration</category>
    </item>
    <item>
      <title>CF7 Form Data Validation Before Sending to API: A Complete Implementation Guide</title>
      <dc:creator>Rahul Sharma</dc:creator>
      <pubDate>Mon, 02 Nov 2026 05:09:00 +0000</pubDate>
      <link>https://dev.to/rahul_sharma_15bd129bc69e/cf7-form-data-validation-before-sending-to-api-a-complete-implementation-guide-3ba9</link>
      <guid>https://dev.to/rahul_sharma_15bd129bc69e/cf7-form-data-validation-before-sending-to-api-a-complete-implementation-guide-3ba9</guid>
      <description>&lt;p&gt;You have a Contact Form 7 form connected to an external API. The form submits. The plugin fires the API request. And then the API rejects it—because the email domain is blocked, the phone number format is wrong for that specific service, or the field value violates a business rule the API enforces.&lt;/p&gt;

&lt;p&gt;The user sees a generic success message. The API log shows a failure. And you have no way to tell the user what went wrong before the request was even sent.&lt;/p&gt;

&lt;p&gt;This is the validation gap. CF7 validates what it knows: required fields, email format, file size. It does not know your API's rules. Bridging that gap requires custom validation that runs &lt;strong&gt;before&lt;/strong&gt; the API request fires.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why CF7's Built-in Validation Is Not Enough
&lt;/h2&gt;

&lt;p&gt;Contact Form 7 provides default validation for common field types. A required field must be filled. An email field must contain a valid email address. A file upload must be within size limits .&lt;/p&gt;

&lt;p&gt;But API integrations have rules CF7 does not enforce:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The email must belong to a business domain, not a free provider&lt;/li&gt;
&lt;li&gt;The phone number must match the format expected by the CRM&lt;/li&gt;
&lt;li&gt;The company name must exist in your ERP's customer database&lt;/li&gt;
&lt;li&gt;The budget field must be within a range the sales team can handle&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If the API rejects the submission, the user has already seen a success message (or the form hangs, depending on the plugin's response handling). The validation happened too late.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Solution: Validate Before the API Call Fires
&lt;/h2&gt;

&lt;p&gt;The key insight is that validation must happen at the CF7 submission stage, &lt;strong&gt;before&lt;/strong&gt; the connector plugin sends data to the API. CF7 provides hooks that fire during its own validation process, giving you a chance to inject custom rules.&lt;/p&gt;

&lt;h3&gt;
  
  
  Approach 1: Custom Validation Filters (Legacy Method)
&lt;/h3&gt;

&lt;p&gt;CF7 implements validation as a filter. The hook name follows the pattern &lt;code&gt;wpcf7_validate_[field_type]&lt;/code&gt;. For a text field, it is &lt;code&gt;wpcf7_validate_text&lt;/code&gt;. For a required text field, it is &lt;code&gt;wpcf7_validate_text*&lt;/code&gt; .&lt;/p&gt;

&lt;p&gt;A validation filter receives two parameters: the result object and the form tag. You check the field value and call &lt;code&gt;$result-&amp;gt;invalidate()&lt;/code&gt; if it fails your custom rule.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nf"&gt;add_filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'wpcf7_validate_text*'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'validate_business_email_domain'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;validate_business_email_domain&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$result&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$tag&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$tag&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="s1"&gt;'your-email'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nv"&gt;$result&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nv"&gt;$email&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;isset&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$_POST&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'your-email'&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="nf"&gt;sanitize_email&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$_POST&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'your-email'&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt; &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nv"&gt;$free_providers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'gmail.com'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'yahoo.com'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'hotmail.com'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'outlook.com'&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;
    &lt;span class="nv"&gt;$domain&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;substr&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;strrchr&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$email&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"@"&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;in_array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$domain&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$free_providers&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nv"&gt;$result&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;invalidate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$tag&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Please use your business email address.'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nv"&gt;$result&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This validation runs during CF7's submission process. If it fails, CF7 marks the submission as invalid and does not proceed to the mail-sent stage—which means the connector plugin never fires the API request.&lt;/p&gt;

&lt;h3&gt;
  
  
  Approach 2: Schema-Woven Validation (Modern Method)
&lt;/h3&gt;

&lt;p&gt;CF7 5.9 and later use Schema-Woven Validation (SWV), a rule-based system that provides both client-side and server-side validation from a single schema . The &lt;code&gt;wpcf7_swv_create_schema&lt;/code&gt; action lets you add custom rules.&lt;/p&gt;

&lt;p&gt;The advantage of SWV is that validation rules are defined once and enforced on both the frontend and the backend. Client-side validation gives instant feedback. Server-side validation prevents bypass via direct POST requests.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nf"&gt;add_action&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'wpcf7_swv_create_schema'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$schema&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$contact_form&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nv"&gt;$rule&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;wpcf7_swv_create_rule&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'required'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="s1"&gt;'field'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'company-name'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s1"&gt;'error'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'Company name is required for business inquiries.'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;]);&lt;/span&gt;
    &lt;span class="nv"&gt;$schema&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;add_rule&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$rule&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For conditional rules, SWV supports &lt;code&gt;all&lt;/code&gt; and &lt;code&gt;any&lt;/code&gt; composite rules. An &lt;code&gt;all&lt;/code&gt; rule requires every sub-rule to pass. An &lt;code&gt;any&lt;/code&gt; rule requires at least one . This is useful for validation that depends on multiple field values.&lt;/p&gt;

&lt;h2&gt;
  
  
  Validating Against the API Before Submitting
&lt;/h2&gt;

&lt;p&gt;Sometimes the validation rule itself lives in the API. For example, you want to check if a phone number is already registered in your CRM before creating a new lead.&lt;/p&gt;

&lt;p&gt;You can make a lightweight validation request to the API inside your validation filter. The filter runs synchronously, so the user waits for the result.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nf"&gt;add_filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'wpcf7_validate_tel*'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'check_phone_against_api'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;check_phone_against_api&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$result&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$tag&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$tag&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="s1"&gt;'your-phone'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nv"&gt;$result&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nv"&gt;$phone&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;isset&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$_POST&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'your-phone'&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="nf"&gt;sanitize_text_field&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$_POST&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'your-phone'&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt; &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="nv"&gt;$response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;wp_remote_get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'https://api.example.com/check-phone?number='&lt;/span&gt; &lt;span class="mf"&gt;.&lt;/span&gt; &lt;span class="nb"&gt;urlencode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$phone&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="s1"&gt;'timeout'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s1"&gt;'headers'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'Authorization'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'Bearer YOUR_TOKEN'&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="p"&gt;]);&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nf"&gt;is_wp_error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$response&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nv"&gt;$body&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;json_decode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;wp_remote_retrieve_body&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$response&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="k"&gt;empty&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$body&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'exists'&lt;/span&gt;&lt;span class="p"&gt;]))&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nv"&gt;$result&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;invalidate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$tag&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'This phone number is already registered.'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nv"&gt;$result&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Caution:&lt;/strong&gt; This adds latency to form submission. If the API is slow or unreachable, the form submission may time out. Use short timeouts and consider caching results where possible.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conditional Validation: Only Validate When Necessary
&lt;/h2&gt;

&lt;p&gt;Not every field needs validation on every submission. A budget field might only be required when the inquiry type is "Sales." A company name might only be required for business accounts.&lt;/p&gt;

&lt;p&gt;CF7's SWV supports conditional logic through composite rules . But for simpler cases, the legacy filter approach with conditional checks works reliably.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nf"&gt;add_filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'wpcf7_validate_text'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'conditionally_require_company'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;conditionally_require_company&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$result&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$tag&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$tag&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="s1"&gt;'company-name'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nv"&gt;$result&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nv"&gt;$inquiry_type&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;isset&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$_POST&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'inquiry-type'&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="nv"&gt;$_POST&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'inquiry-type'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nv"&gt;$company&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;isset&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$_POST&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'company-name'&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="nb"&gt;trim&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$_POST&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'company-name'&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt; &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;''&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$inquiry_type&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s1"&gt;'Business'&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="k"&gt;empty&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$company&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nv"&gt;$result&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;invalidate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$tag&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Company name is required for business inquiries.'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nv"&gt;$result&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This pattern is more flexible than SWV for complex conditions that reference multiple fields or external data.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Critical Timing Question: Before or After the API Call?
&lt;/h2&gt;

&lt;p&gt;The connector plugin fires the API request at a specific point in CF7's submission lifecycle. If your validation filter runs &lt;strong&gt;before&lt;/strong&gt; that point, a failed validation prevents the API call. If it runs &lt;strong&gt;after&lt;/strong&gt;, the API call fires regardless.&lt;/p&gt;

&lt;p&gt;CF7's validation filters (&lt;code&gt;wpcf7_validate_*&lt;/code&gt;) run during the validation phase, before the &lt;code&gt;wpcf7_before_send_mail&lt;/code&gt; action. The "Contact Form to Any API" plugin hooks into the submission process at a later stage. This means custom validation filters will block the API call if they fail.&lt;/p&gt;

&lt;p&gt;If you need to validate &lt;strong&gt;after&lt;/strong&gt; the API responds (for example, checking if the API accepted the data), you are working with a different problem: surfacing the API's response to the user. That requires a separate solution involving the &lt;code&gt;wpcf7mailsent&lt;/code&gt; event or custom response handling.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Debugging Checklist for Validation Issues
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;th&gt;What It Reveals&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Submit a test form with invalid data&lt;/td&gt;
&lt;td&gt;Does CF7 show your custom error message?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Check if the API request fired&lt;/td&gt;
&lt;td&gt;If validation failed, the API call should not fire&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Verify the hook name&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;wpcf7_validate_text*&lt;/code&gt; for required, &lt;code&gt;wpcf7_validate_text&lt;/code&gt; for optional&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Check field name match&lt;/td&gt;
&lt;td&gt;The &lt;code&gt;$tag-&amp;gt;name&lt;/code&gt; must match your CF7 field name exactly&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Test with valid data&lt;/td&gt;
&lt;td&gt;Does the form submit and the API call fire?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Check for plugin conflicts&lt;/td&gt;
&lt;td&gt;Other CF7 extensions may alter validation behavior&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For a deeper breakdown of what happens when validation fails and no API request appears in the logs, see this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-data-not-reaching-api/" rel="noopener noreferrer"&gt;Contact Form 7 data not reaching the API&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;CF7's built-in validation does not know your API's rules.&lt;/strong&gt; Required, email format, and file size are not enough. Custom validation filters bridge the gap.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Validation must run before the API call fires.&lt;/strong&gt; CF7's &lt;code&gt;wpcf7_validate_*&lt;/code&gt; filters run during the validation phase, blocking submission if they fail.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SWV is the modern approach.&lt;/strong&gt; Schema-Woven Validation provides client-side and server-side enforcement from a single rule definition.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conditional validation prevents unnecessary friction.&lt;/strong&gt; Only require fields when the form data actually demands them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;API-side validation adds latency.&lt;/strong&gt; If you check against the API inside a validation filter, use short timeouts and cache results where possible.&lt;/p&gt;

&lt;p&gt;With custom validation filters that run before the connector plugin fires, your form rejects invalid data at the source. The user gets a clear error message. The API never sees the bad request. And your CRM stays clean.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>contactform7</category>
      <category>api</category>
      <category>apiintegration</category>
    </item>
    <item>
      <title>CF7 to Salesforce Custom Object Not Created: A Complete Troubleshooting Guide</title>
      <dc:creator>Rahul Sharma</dc:creator>
      <pubDate>Fri, 30 Oct 2026 10:19:29 +0000</pubDate>
      <link>https://dev.to/rahul_sharma_15bd129bc69e/cf7-to-salesforce-custom-object-not-created-a-complete-troubleshooting-guide-4hl2</link>
      <guid>https://dev.to/rahul_sharma_15bd129bc69e/cf7-to-salesforce-custom-object-not-created-a-complete-troubleshooting-guide-4hl2</guid>
      <description>&lt;p&gt;You have configured the "Contact Form to Any API" plugin to send Contact Form 7 submissions to a custom object in Salesforce. You have set up OAuth, entered your credentials, and mapped the fields. And yet, when a user submits the form, no record appears in your custom object.&lt;/p&gt;

&lt;p&gt;This is a common and frustrating problem. Writing to custom objects is fundamentally different from writing to standard objects like Leads. The error messages are often vague, and the root cause is usually one of four specific configuration mistakes.&lt;/p&gt;

&lt;p&gt;This guide walks through the exact reasons custom object creation fails and how to fix each one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Custom Objects Are Different from Standard Objects
&lt;/h2&gt;

&lt;p&gt;Salesforce standard objects like &lt;code&gt;Lead&lt;/code&gt; or &lt;code&gt;Contact&lt;/code&gt; have well-documented, predictable API names. Custom objects do not share this predictability.&lt;/p&gt;

&lt;p&gt;Every custom object and every custom field in Salesforce has an &lt;strong&gt;API name&lt;/strong&gt; that ends with &lt;code&gt;__c&lt;/code&gt; (two underscores followed by the letter c). This suffix is not optional. If you omit it, Salesforce rejects the request with an &lt;code&gt;INVALID_FIELD&lt;/code&gt; error, even though the field exists in the UI.&lt;/p&gt;

&lt;p&gt;This is the single most common reason custom object creation fails.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure #1: The Endpoint URL Is Missing the &lt;code&gt;__c&lt;/code&gt; Suffix
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see:&lt;/strong&gt; Salesforce returns a 404 Not Found error, or the request succeeds but creates a record in the wrong place.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt; The endpoint URL for a custom object must include the &lt;code&gt;__c&lt;/code&gt; suffix. If your custom object is named &lt;code&gt;Project_Request&lt;/code&gt;, the API endpoint must be:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/services/data/v63.0/sobjects/Project_Request__c/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you omit the &lt;code&gt;__c&lt;/code&gt;, Salesforce looks for a standard object named &lt;code&gt;Project_Request&lt;/code&gt;, which does not exist.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In the plugin's API Endpoint URL field, verify the URL ends with &lt;code&gt;__c/&lt;/code&gt;. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://yourdomain.my.salesforce.com/services/data/v63.0/sobjects/Project_Request__c/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace &lt;code&gt;yourdomain&lt;/code&gt; with your Salesforce instance URL and &lt;code&gt;Project_Request&lt;/code&gt; with your actual custom object name.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to verify:&lt;/strong&gt; After submitting a test form, check the plugin's API Logs. A 404 error means the endpoint is wrong. A 201 Created response means the record was created successfully. For a deeper breakdown of what empty logs mean, see this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-data-not-reaching-api/" rel="noopener noreferrer"&gt;Contact Form 7 data not reaching the API&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure #2: The Field Names Are Missing the &lt;code&gt;__c&lt;/code&gt; Suffix
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see:&lt;/strong&gt; Salesforce returns an &lt;code&gt;INVALID_FIELD&lt;/code&gt; error with a message like: "No such column 'Project_Type' on sobject of type Project_Request__c".&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt; Just like the object name, every custom field's API name ends with &lt;code&gt;__c&lt;/code&gt;. If your custom field is labeled "Project Type" in the Salesforce UI, its API name might be &lt;code&gt;Project_Type__c&lt;/code&gt;. In your JSON payload, you must use the API name, not the label.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; In Salesforce, navigate to Setup → Object Manager → Your Custom Object → Fields &amp;amp; Relationships. For each field you want to map, copy the &lt;strong&gt;API Name&lt;/strong&gt; exactly as shown, including &lt;code&gt;__c&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; In the plugin's JSON payload, use the API name, not the label:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"Name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"[your-name]"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"Project_Type__c"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"[project-type]"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"Budget__c"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"[budget-range]"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; Verify the field names match exactly. One missing underscore means a failed request.&lt;/p&gt;

&lt;p&gt;For a deeper dive into JSON structure mapping and field naming conventions, read this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-json-mapping/" rel="noopener noreferrer"&gt;Contact Form 7 JSON mapping&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure #3: The User Lacks Permission to Create Records on the Custom Object
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see:&lt;/strong&gt; Salesforce returns a 403 Forbidden error, or an &lt;code&gt;INSUFFICIENT_ACCESS&lt;/code&gt; error. The API call authenticated successfully but was rejected.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt; Creating a custom object does not automatically grant permission to write to it. As a Salesforce administrator, you can see the object in Setup. But API access requires explicit permission on the object and on every custom field you want to populate.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; In Salesforce, navigate to Setup → Users → Profiles (or Permission Sets).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; Find the profile or permission set associated with the user whose credentials the plugin uses.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; Grant the following permissions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Object Permissions:&lt;/strong&gt; Create, Read, Edit on the custom object&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Field-Level Security:&lt;/strong&gt; Edit access on every custom field you are mapping&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step 4:&lt;/strong&gt; Save the permissions. Wait a few minutes for Salesforce to propagate the changes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to verify:&lt;/strong&gt; After updating permissions, submit a test form. A 201 response means the record was created.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure #4: The OAuth Token Does Not Have the Correct Scope
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see:&lt;/strong&gt; Salesforce returns a 401 Unauthorized error, or the token works for standard objects but fails for custom objects.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt; Salesforce OAuth tokens are scoped. The &lt;code&gt;api&lt;/code&gt; scope grants access to standard objects, but custom objects may require additional permissions or a different scope configuration.&lt;/p&gt;

&lt;p&gt;The "Contact Form to Any API" plugin's PRO version with the OAuth Add-on handles Salesforce's OAuth 2.0 flow, including automatic token refresh. If you are using the free version without the OAuth Add-on, token management may be incomplete.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; Verify you are using the PRO version with the OAuth Add-on. The free version does not support automatic token renewal, which means expired tokens will cause failures.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; In the plugin's Auth Master settings, confirm the OAuth scopes include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;api&lt;/code&gt; (Access and manage your data)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;refresh_token&lt;/code&gt; and &lt;code&gt;offline_access&lt;/code&gt; (for automatic token refresh)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; Re-authorize the connection. In the plugin, click Authorize again to generate a fresh token with the correct scopes.&lt;/p&gt;

&lt;p&gt;For a comprehensive breakdown of authentication errors across different APIs, see this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-api-authentication-error/" rel="noopener noreferrer"&gt;Contact Form 7 API authentication errors&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Debugging Checklist
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;th&gt;What It Reveals&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Check plugin API Logs&lt;/td&gt;
&lt;td&gt;Was a request sent? What response code?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Verify endpoint URL ends with &lt;code&gt;__c/&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Custom object endpoint format&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Verify field API names end with &lt;code&gt;__c&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Field naming convention&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Check user permissions on the object&lt;/td&gt;
&lt;td&gt;Object-level create/edit access&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Check field-level security&lt;/td&gt;
&lt;td&gt;Edit access on each mapped field&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Verify OAuth token scopes&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;api&lt;/code&gt;, &lt;code&gt;refresh_token&lt;/code&gt;, &lt;code&gt;offline_access&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Beyond Custom Objects: One Form, Multiple Destinations
&lt;/h2&gt;

&lt;p&gt;Once your custom object integration works, you might want to send the same submission to other Salesforce objects or external tools.&lt;/p&gt;

&lt;p&gt;A good connector plugin supports multiple API integrations from a single form submission. You can create a custom object record, a standard Lead, and send an SMS via Twilio, all from one CF7 submission. For a cost comparison, see this article on &lt;a href="https://www.contactformtoapi.com/zapier-vs-contact-form-to-api-plugin-cost-comparison/" rel="noopener noreferrer"&gt;Zapier vs a dedicated API plugin&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Every custom object and custom field API name ends with &lt;code&gt;__c&lt;/code&gt;.&lt;/strong&gt; Omitting this suffix is the most common cause of &lt;code&gt;INVALID_FIELD&lt;/code&gt; and 404 errors.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Creating the object does not grant write permission.&lt;/strong&gt; You must explicitly grant Create/Edit permissions on the object and Edit access on every custom field.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The endpoint URL must target the custom object by its API name.&lt;/strong&gt; &lt;code&gt;/sobjects/Your_Object__c/&lt;/code&gt; is the correct format.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;OAuth scopes must include &lt;code&gt;api&lt;/code&gt; and refresh capabilities.&lt;/strong&gt; Without proper scopes, the token may work for standard objects but fail for custom ones.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use the PRO version with the OAuth Add-on for Salesforce.&lt;/strong&gt; The free version does not handle automatic token refresh, which is essential for long-term reliability.&lt;/p&gt;

&lt;p&gt;With the correct &lt;code&gt;__c&lt;/code&gt; suffixes, proper permissions, and valid OAuth scopes, your CF7-to-Salesforce custom object integration will create records reliably.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>contactform7</category>
      <category>salesforce</category>
      <category>customobjects</category>
    </item>
    <item>
      <title>CF7 API Response Not Showing to User: Why It Happens and How to Fix It</title>
      <dc:creator>Rahul Sharma</dc:creator>
      <pubDate>Thu, 29 Oct 2026 09:35:18 +0000</pubDate>
      <link>https://dev.to/rahul_sharma_15bd129bc69e/cf7-api-response-not-showing-to-user-why-it-happens-and-how-to-fix-it-672</link>
      <guid>https://dev.to/rahul_sharma_15bd129bc69e/cf7-api-response-not-showing-to-user-why-it-happens-and-how-to-fix-it-672</guid>
      <description>&lt;p&gt;You have configured the "Contact Form to Any API" plugin to send form submissions to an external service. The API returns a meaningful response a success confirmation, a validation error, a duplicate email warning, or a custom message. And yet, the user sees nothing. The form submits, the default CF7 success message appears, and the API's response is buried in the plugin's admin logs.&lt;/p&gt;

&lt;p&gt;This is not a bug. It is a documented limitation of the plugin's architecture. But it creates a frustrating user experience, especially when the API rejects the submission for a reason the user needs to know about.&lt;/p&gt;

&lt;p&gt;This guide explains why API responses are hidden from users and walks through the verified workarounds to surface them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the Plugin Hides API Responses from Users
&lt;/h2&gt;

&lt;p&gt;The "Contact Form to Any API" plugin hooks into Contact Form 7's submission process at the &lt;code&gt;wpcf7_mail_sent&lt;/code&gt; action. This means the API request fires &lt;strong&gt;after&lt;/strong&gt; CF7 has already decided the submission was successful and displayed its default success message.&lt;/p&gt;

&lt;p&gt;From the plugin's perspective, the API call is a side effect of a successful form submission. The plugin logs the request and response for administrative review, but it does not inject that response into CF7's frontend message system. The plugin's official documentation describes the Logs feature as showing "your API response" for admin review, not for user display.&lt;/p&gt;

&lt;p&gt;The developer confirmed this limitation directly: the plugin was "created after form successfully submitted" and "at the moment it is not possible to manage API side errors to display on cf7 forms".&lt;/p&gt;

&lt;p&gt;If no request appears in the logs at all, the problem may be earlier in the pipeline. For a deeper breakdown of that scenario, see this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-data-not-reaching-api/" rel="noopener noreferrer"&gt;Contact Form 7 data not reaching the API&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Consequence: Users See Success When the API Failed
&lt;/h2&gt;

&lt;p&gt;Because the API call happens after CF7's success determination, a user can see "Thank you for your message" even when the API rejected the submission entirely.&lt;/p&gt;

&lt;p&gt;This is a serious problem for workflows where the API response contains information the user needs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A duplicate email warning that should prompt the user to log in instead&lt;/li&gt;
&lt;li&gt;A validation error about a phone number format&lt;/li&gt;
&lt;li&gt;A capacity limit message for an event registration&lt;/li&gt;
&lt;li&gt;A custom confirmation number or reference ID&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The user believes their submission succeeded. The API knows it failed. And the only record of the failure is in an admin log the user cannot see.&lt;/p&gt;

&lt;h2&gt;
  
  
  Workaround 1: Hook into &lt;code&gt;wpcf7_before_send_mail&lt;/code&gt; and Inject a Custom Message
&lt;/h2&gt;

&lt;p&gt;The most direct workaround, provided by the plugin's developer in a support thread, involves changing the hook timing and using CF7's &lt;code&gt;wpcf7_display_message&lt;/code&gt; filter to replace the success message when the API returns an error.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Change the Hook from &lt;code&gt;wpcf7_mail_sent&lt;/code&gt; to &lt;code&gt;wpcf7_before_send_mail&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;In the plugin file &lt;code&gt;contact-form-to-any-api/includes/class-cf7-to-any-api.php&lt;/code&gt;, line 169, replace:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nv"&gt;$this&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;loader&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;add_action&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'wpcf7_mail_sent'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nv"&gt;$plugin_admin&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s1"&gt;'cf7_to_any_api_send_data_to_api'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nv"&gt;$this&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;loader&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;add_action&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'wpcf7_before_send_mail'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nv"&gt;$plugin_admin&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s1"&gt;'cf7_to_any_api_send_data_to_api'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This makes the API call fire &lt;strong&gt;before&lt;/strong&gt; CF7 determines success, giving you a chance to intercept the result.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Add a Filter to Check the API Response and Change the Message
&lt;/h3&gt;

&lt;p&gt;In &lt;code&gt;class-cf7-to-any-api-admin.php&lt;/code&gt;, after line 634, add logic that checks the API response and hooks into &lt;code&gt;wpcf7_display_message&lt;/code&gt; when an error condition is met:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$result&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nv"&gt;$api_response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;json_decode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$result&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;in_array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"400"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$api_response&lt;/span&gt;&lt;span class="p"&gt;)){&lt;/span&gt;
        &lt;span class="nf"&gt;add_filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'wpcf7_display_message'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'change_submission_msg'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;change_submission_msg&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$message&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$status&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'mail_sent_ok'&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="nv"&gt;$status&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
                &lt;span class="nv"&gt;$message&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'We are unable to proceed with your request. The email address you entered is already on our server.'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nv"&gt;$message&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Important caveat:&lt;/strong&gt; The developer noted that the plugin has "no plan to include such validation in our plugin" at the time of that thread. This workaround modifies core plugin files. Plugin updates will overwrite these changes. You must reapply the modification after every update, or fork the plugin.&lt;/p&gt;

&lt;h2&gt;
  
  
  Workaround 2: Use the &lt;code&gt;wpcf7mailsent&lt;/code&gt; JavaScript Event and &lt;code&gt;add_result_props&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;A cleaner approach, documented on Stack Overflow, uses CF7's &lt;code&gt;add_result_props&lt;/code&gt; method to pass the API response to a JavaScript event listener.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: In Your &lt;code&gt;functions.php&lt;/code&gt;, Hook into &lt;code&gt;wpcf7_before_send_mail&lt;/code&gt;
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nf"&gt;add_action&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'wpcf7_before_send_mail'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'send_api_and_capture_response'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;send_api_and_capture_response&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$contact_form&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nv"&gt;$submission&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;WPCF7_Submission&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;get_instance&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nv"&gt;$submission&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="c1"&gt;// Your API call logic here&lt;/span&gt;
    &lt;span class="nv"&gt;$response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;wp_remote_post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$api_url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$args&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="nv"&gt;$body&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;wp_remote_retrieve_body&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$response&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

    &lt;span class="c1"&gt;// Pass the API response to the frontend via the wpcf7mailsent event&lt;/span&gt;
    &lt;span class="nv"&gt;$submission&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;add_result_props&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="s1"&gt;'api_response'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$body&lt;/span&gt;
    &lt;span class="p"&gt;));&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 2: Listen for the Event in JavaScript
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;wpcf7mailsent&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;event&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;detail&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;api_response&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="c1"&gt;// Display the API response to the user&lt;/span&gt;
        &lt;span class="nf"&gt;alert&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;detail&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;api_response&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="c1"&gt;// Or inject it into a custom DOM element&lt;/span&gt;
        &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;.your-message-container&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;innerText&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;event&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;detail&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;api_response&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This method is &lt;strong&gt;update-safe&lt;/strong&gt; because it uses hooks and does not modify plugin core files. It requires custom PHP and JavaScript but avoids the maintenance burden of patching the plugin directly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Workaround 3: Use a Dedicated Plugin with Built-in Response Display
&lt;/h2&gt;

&lt;p&gt;A different plugin, "Contact Form 7 to API," explicitly advertises the feature you need: "Option to show the API response body as the form message". Its documentation states: "Turn on 'Show the API response body as the form message' to show a JSON message field, or a shortened copy of any other body".&lt;/p&gt;

&lt;p&gt;If displaying the API response to the user is a hard requirement, switching to a plugin with this feature built-in may be the most reliable path. The trade-off is migrating your existing integrations and field mappings to a different plugin.&lt;/p&gt;

&lt;h2&gt;
  
  
  Workaround 4: Use the Plugin's Logs for Admin-Only Visibility
&lt;/h2&gt;

&lt;p&gt;If the API response does not need to be shown to the user but you need to monitor it, the plugin's Logs tab already provides this. The documentation confirms: "You can see your API response too".&lt;/p&gt;

&lt;p&gt;This is the default behavior. It is useful for debugging and auditing but does not solve the user-facing problem. For a comprehensive breakdown of authentication errors and how they appear in logs, see this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-api-authentication-error/" rel="noopener noreferrer"&gt;Contact Form 7 API authentication errors&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Debugging Checklist for API Response Issues
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;th&gt;What It Reveals&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Check the plugin's Logs tab&lt;/td&gt;
&lt;td&gt;The exact API response for each submission&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Determine if the API call fires before or after CF7 success&lt;/td&gt;
&lt;td&gt;Check the hook in &lt;code&gt;class-cf7-to-any-api.php&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Check if the API returns errors but CF7 still shows success&lt;/td&gt;
&lt;td&gt;Compare log entries to user reports&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Decide if the response needs user visibility&lt;/td&gt;
&lt;td&gt;If yes, choose a workaround above&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Test the workaround with a forced API error&lt;/td&gt;
&lt;td&gt;Verify the custom message appears&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Beyond the Basics: What Nobody Tells You
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The hook order matters more than the payload.&lt;/strong&gt; Most debugging guides focus on JSON structure and authentication. But if the API call fires after CF7 has already committed to a success message, no amount of payload debugging will show the error to the user.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;add_result_props&lt;/code&gt; is the most sustainable approach.&lt;/strong&gt; It survives plugin updates and does not require modifying core files. The trade-off is that you must write the PHP and JavaScript yourself.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A different plugin solves this natively.&lt;/strong&gt; If user-facing API feedback is a hard requirement for your workflow, evaluate "Contact Form 7 to API" which has a dedicated option for showing the API response body as the form message.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The logs are your first diagnostic tool.&lt;/strong&gt; Before attempting any workaround, check the plugin's Logs tab. If the API response is there but the user does not see it, you have confirmed the visibility problem. If the logs are empty, the problem is earlier in the pipeline.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The plugin does not display API responses to users by default.&lt;/strong&gt; The developer confirmed this limitation in a support thread: API errors are not shown as frontend validation messages.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The API call fires after CF7's success determination.&lt;/strong&gt; This means users can see a success message even when the API rejected the submission.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The developer-provided workaround involves modifying plugin core files.&lt;/strong&gt; This is update-unsafe. You must reapply the change after every plugin update, or use the &lt;code&gt;add_result_props&lt;/code&gt; method with JavaScript instead.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A different plugin advertises built-in API response display.&lt;/strong&gt; If this feature is critical, evaluate "Contact Form 7 to API" which has a dedicated option for showing the API response body as the form message.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For admin-only visibility, the plugin's Logs tab already works.&lt;/strong&gt; Use it for debugging and auditing, but do not expect it to inform the user.&lt;/p&gt;

&lt;p&gt;With the right workaround, you can bridge the gap between the plugin's admin-focused logging and the user's need for feedback. The &lt;code&gt;add_result_props&lt;/code&gt; method is the most sustainable approach because it survives plugin updates.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>contactform7</category>
      <category>apiintegration</category>
      <category>webdev</category>
    </item>
    <item>
      <title>CF7 to WhatsApp Business API via Twilio: The Complete Implementation Guide</title>
      <dc:creator>Rahul Sharma</dc:creator>
      <pubDate>Wed, 28 Oct 2026 10:11:34 +0000</pubDate>
      <link>https://dev.to/rahul_sharma_15bd129bc69e/cf7-to-whatsapp-business-api-via-twilio-the-complete-implementation-guide-52l1</link>
      <guid>https://dev.to/rahul_sharma_15bd129bc69e/cf7-to-whatsapp-business-api-via-twilio-the-complete-implementation-guide-52l1</guid>
      <description>&lt;p&gt;You want form submissions from your Contact Form 7 to arrive as WhatsApp messages. Not emails that sit unread. Not SMS that costs per message. WhatsApp messages that your team actually sees and responds to.&lt;/p&gt;

&lt;p&gt;The "Contact Form to Any API" plugin can do this. But the setup has specific requirements that trip up most people: template approval, Base64 authentication, and Twilio's strict payload format. This guide walks through the exact configuration, the errors you will hit, and how to fix them.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Architecture: Why This Is Not Just Another API Call
&lt;/h2&gt;

&lt;p&gt;WhatsApp Business API is fundamentally different from email or SMS APIs. It enforces strict rules on who can message whom, and when.&lt;/p&gt;

&lt;p&gt;The data flow looks simple:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CF7 Form → Contact Form to Any API → Twilio Messages API → WhatsApp Message Delivered
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But the constraints are not simple. WhatsApp divides messages into two types: &lt;strong&gt;Session messages&lt;/strong&gt; and &lt;strong&gt;Template messages&lt;/strong&gt;. A session starts when a user messages your business first. Within that 24-hour window, you can send free-form replies. Outside that window, you can only send pre-approved templates. Since a CF7 form submission is business-initiated, you must use a template. There is no workaround.&lt;/p&gt;

&lt;p&gt;This is the first thing most guides gloss over. If you skip template creation, your messages will fail silently or return error 63016.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisites: What You Need Before Touching the Plugin
&lt;/h2&gt;

&lt;p&gt;Three things must be in place before you configure a single field in WordPress.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A Twilio account with WhatsApp enabled.&lt;/strong&gt; You need your Account SID and Auth Token. For production, you also need a registered WhatsApp sender. The Twilio Sandbox is for testing only and expires after three days.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;An approved WhatsApp message template.&lt;/strong&gt; This is non-negotiable. You create it in Twilio's Content Template Builder, submit it for WhatsApp review, and wait for approval. Machine review typically takes minutes. Manual review can take up to 48 hours.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A clear understanding of ContentSid and ContentVariables.&lt;/strong&gt; Twilio's modern WhatsApp API uses these parameters, not a raw &lt;code&gt;Body&lt;/code&gt; parameter. Using &lt;code&gt;Body&lt;/code&gt; outside a conversation window will fail with error 63016.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Create a Template That Will Actually Get Approved
&lt;/h2&gt;

&lt;p&gt;WhatsApp rejects templates for reasons that are not always obvious. Understanding the rejection criteria saves days of back-and-forth.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The most common rejection reasons&lt;/strong&gt; according to Twilio's documentation:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Rejection Reason&lt;/th&gt;
&lt;th&gt;What It Means&lt;/th&gt;
&lt;th&gt;Fix&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Variable at the start or end&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;{{1}}, thank you&lt;/code&gt; or &lt;code&gt;Hello {{1}}&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Add text before or after the variable&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Adjacent variables&lt;/td&gt;
&lt;td&gt;&lt;code&gt;{{1}}{{2}}&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Insert a word between them or combine&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Non-sequential variables&lt;/td&gt;
&lt;td&gt;&lt;code&gt;{{1}}, {{2}}, {{4}}&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Use sequential numbering&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Too vague&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Hi {{1}}, thanks&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Add context about why the message exists&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Newlines or tabs&lt;/td&gt;
&lt;td&gt;Extra whitespace&lt;/td&gt;
&lt;td&gt;Remove them&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Duplicate content&lt;/td&gt;
&lt;td&gt;Same template, different name&lt;/td&gt;
&lt;td&gt;Modify both name and content&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;A template that will be approved&lt;/strong&gt; looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Hello {{1}}, you have a new inquiry from {{2}}. Their message: {{3}}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This has context (new inquiry), sequential variables, and text before and after each placeholder. It will pass machine review quickly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Copy the Template SID&lt;/strong&gt; once approved. It starts with &lt;code&gt;HX&lt;/code&gt;. You will need it for the plugin payload.&lt;/p&gt;

&lt;p&gt;For a deeper dive into JSON structure mapping and variable handling, read this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-json-mapping/" rel="noopener noreferrer"&gt;Contact Form 7 JSON mapping&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Authenticate with Base64 (The Step Everyone Gets Wrong)
&lt;/h2&gt;

&lt;p&gt;Twilio uses HTTP Basic Authentication. The plugin's header field is a static textarea. PHP functions like &lt;code&gt;base64_encode()&lt;/code&gt; do not execute here. You must encode the credentials manually.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Twilio's official recommendation&lt;/strong&gt; is to use API Keys, not your Account SID and Auth Token, for production. However, the plugin's official Twilio guide uses Account SID and Auth Token for simplicity. For a production integration handling real customer data, create an API Key in Twilio Console and use that instead.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The encoding process:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Combine your credentials: &lt;code&gt;ACCOUNT_SID:AUTH_TOKEN&lt;/code&gt; (or &lt;code&gt;API_KEY_SID:API_KEY_SECRET&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Base64-encode the combined string&lt;/li&gt;
&lt;li&gt;In the plugin's Request Headers field, add:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;Authorization: Basic YOUR_BASE64_ENCODED_STRING
Content-Type: application/json
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you get a 401 error, the encoding is wrong. Verify there are no spaces before or after the encoded string.&lt;/p&gt;

&lt;p&gt;For a comprehensive breakdown of authentication options, see this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-api-authentication-error/" rel="noopener noreferrer"&gt;Contact Form 7 API authentication errors&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Build the Payload That Twilio Actually Expects
&lt;/h2&gt;

&lt;p&gt;The plugin's official Twilio WhatsApp documentation provides this structure:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"To"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"whatsapp:[phone-number]"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"From"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"whatsapp:YOUR_TWILIO_WHATSAPP_NUMBER"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"ContentSid"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"HX_YOUR_TEMPLATE_SID"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"ContentVariables"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"1"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"[your-name]"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"2"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"[your-email]"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"3"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"[your-message]"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Critical details that cause failures:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;To&lt;/code&gt; must include &lt;code&gt;whatsapp:&lt;/code&gt;&lt;/strong&gt; before the phone number. Without it, Twilio returns error 63007 (channel not found).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;From&lt;/code&gt; must be your registered WhatsApp sender&lt;/strong&gt;, not a regular SMS number. For Sandbox testing, use &lt;code&gt;whatsapp:+14155238886&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;ContentVariables&lt;/code&gt; keys must match your template's variable count.&lt;/strong&gt; If your template has three variables, your payload must have exactly three keys. A mismatch returns error 132000.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The number of variables in the template determines the number of ContentVariables entries.&lt;/strong&gt; You cannot add extra variables that do not exist in the approved template.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 4: Test with the Sandbox Before Going Live
&lt;/h2&gt;

&lt;p&gt;The Twilio Sandbox is the only way to test without a production WhatsApp sender. But it has limitations that confuse people.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sandbox limitations:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Recipients must join your sandbox by sending &lt;code&gt;join &amp;lt;code&amp;gt;&lt;/code&gt; to the sandbox number&lt;/li&gt;
&lt;li&gt;Sessions expire after three days&lt;/li&gt;
&lt;li&gt;Only pre-approved templates work (you cannot use custom templates)&lt;/li&gt;
&lt;li&gt;One message every three seconds rate limit&lt;/li&gt;
&lt;li&gt;Not available in the new Twilio Console; use the legacy Console&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;To test:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Activate the Sandbox in the legacy Twilio Console&lt;/li&gt;
&lt;li&gt;Have your phone join the sandbox&lt;/li&gt;
&lt;li&gt;Configure the plugin with &lt;code&gt;whatsapp:+14155238886&lt;/code&gt; as the &lt;code&gt;From&lt;/code&gt; value&lt;/li&gt;
&lt;li&gt;Use one of the Sandbox's pre-approved templates&lt;/li&gt;
&lt;li&gt;Submit a test form and verify the message arrives&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If the sandbox works but production fails, the issue is your production sender's status or template approval. Check that your sender's status is &lt;code&gt;ONLINE&lt;/code&gt; in Twilio Console.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Errors You Will Hit and Exactly How to Fix Them
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Error 63007: Channel Not Found
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;What it means:&lt;/strong&gt; The &lt;code&gt;From&lt;/code&gt; address is not formatted correctly or is not associated with a WhatsApp sender.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; Verify the &lt;code&gt;From&lt;/code&gt; value uses the exact format &lt;code&gt;whatsapp:+[number]&lt;/code&gt;. If using Sandbox, confirm the sandbox is activated in the same account. If using a live sender, check that the sender status is &lt;code&gt;ONLINE&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Error 63016: Outside the 24-Hour Window
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;What it means:&lt;/strong&gt; You are trying to send a free-form message outside the 24-hour customer service window, or you are using the &lt;code&gt;Body&lt;/code&gt; parameter instead of &lt;code&gt;ContentSid&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; Use &lt;code&gt;ContentSid&lt;/code&gt; and &lt;code&gt;ContentVariables&lt;/code&gt;. Never use &lt;code&gt;Body&lt;/code&gt; for business-initiated messages. This is the single most common production failure.&lt;/p&gt;

&lt;h3&gt;
  
  
  Error 63040: Template Rejected
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;What it means:&lt;/strong&gt; The template was rejected by WhatsApp, or your payload matches a rejected template.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; Check the rejection reason in Twilio Console. Common causes: vague content, non-sequential variables, placeholders at the start or end. Submit a new template with a different name. WhatsApp prevents reuse of a rejected name for 30 days.&lt;/p&gt;

&lt;h3&gt;
  
  
  Error 132000: Template Param Count Mismatch
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;What it means:&lt;/strong&gt; The number of variables in &lt;code&gt;ContentVariables&lt;/code&gt; does not match the template's variable count.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; Count the &lt;code&gt;{{1}}&lt;/code&gt;, &lt;code&gt;{{2}}&lt;/code&gt;, etc. in your approved template. Your &lt;code&gt;ContentVariables&lt;/code&gt; object must have exactly that many keys.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Debugging Checklist
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;th&gt;What It Reveals&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Check plugin API Logs&lt;/td&gt;
&lt;td&gt;Was a request sent? What response code?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Check Twilio Console &amp;gt; Monitor &amp;gt; Logs&lt;/td&gt;
&lt;td&gt;Detailed error code and message&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Verify template status&lt;/td&gt;
&lt;td&gt;Is it Approved? Pending? Rejected?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Check &lt;code&gt;From&lt;/code&gt; format&lt;/td&gt;
&lt;td&gt;Does it start with &lt;code&gt;whatsapp:&lt;/code&gt;?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Check &lt;code&gt;ContentSid&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Does it match your approved template?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Count ContentVariables&lt;/td&gt;
&lt;td&gt;Does it match the template's variable count?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;Verify Base64 encoding&lt;/td&gt;
&lt;td&gt;Is the Authorization header correctly formatted?&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Beyond the Basics: What Nobody Tells You
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;WhatsApp charges per template message, not per session message.&lt;/strong&gt; Two-way conversations (where the user replies) are cheaper. Design your template to encourage a reply. A template like "Reply YES to confirm" opens a session and reduces costs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Template approval is not permanent.&lt;/strong&gt; Templates can be paused or disabled if users repeatedly block or report your messages. Monitor template quality in Twilio Console. If a template is paused, messages using it will fail.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Sandbox is not a production environment.&lt;/strong&gt; It expires. It has rate limits. It displays the Twilio logo. Use it to validate your payload and authentication. Then move to a production sender before going live.&lt;/p&gt;

&lt;h2&gt;
  
  
  Beyond WhatsApp: One Form, Multiple Destinations
&lt;/h2&gt;

&lt;p&gt;Once your WhatsApp integration works, you might want to send the same form submission to other tools: a CRM, an email marketing platform, or a help desk system.&lt;/p&gt;

&lt;p&gt;A good connector plugin supports multiple API integrations from a single form submission. You can send a WhatsApp message via Twilio, create a CRM contact, and subscribe the user to Mailchimp, all from one CF7 submission. For a cost comparison, see this article on &lt;a href="https://www.contactformtoapi.com/zapier-vs-contact-form-to-api-plugin-cost-comparison/" rel="noopener noreferrer"&gt;Zapier vs a dedicated API plugin&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;WhatsApp Business API requires pre-approved templates.&lt;/strong&gt; There is no free-form workaround for business-initiated messages. Create and approve a template before configuring the plugin.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;ContentSid&lt;/code&gt; and &lt;code&gt;ContentVariables&lt;/code&gt; are mandatory.&lt;/strong&gt; The &lt;code&gt;Body&lt;/code&gt; parameter will fail with error 63016 outside a conversation window.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Base64 encoding must be done manually.&lt;/strong&gt; The plugin's header field does not execute PHP. Encode &lt;code&gt;ACCOUNT_SID:AUTH_TOKEN&lt;/code&gt; externally.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The &lt;code&gt;From&lt;/code&gt; value must use the &lt;code&gt;whatsapp:&lt;/code&gt; prefix.&lt;/strong&gt; Error 63007 is the result of forgetting this.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Test with Sandbox, but do not ship with it.&lt;/strong&gt; Sandbox sessions expire and templates are limited. Move to a production sender before going live.&lt;/p&gt;

&lt;p&gt;With an approved template, correctly encoded credentials, and a payload that matches Twilio's modern Content API, your CF7 form submissions will arrive as WhatsApp messages on your team's phones. No missed inquiries. No email delays.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>whatsapp</category>
      <category>twilio</category>
      <category>apiintegration</category>
    </item>
    <item>
      <title>CF7 GDPR Compliant API Integration: A Complete Implementation Guide</title>
      <dc:creator>Rahul Sharma</dc:creator>
      <pubDate>Tue, 27 Oct 2026 09:51:58 +0000</pubDate>
      <link>https://dev.to/rahul_sharma_15bd129bc69e/cf7-gdpr-compliant-api-integration-a-complete-implementation-guide-19hp</link>
      <guid>https://dev.to/rahul_sharma_15bd129bc69e/cf7-gdpr-compliant-api-integration-a-complete-implementation-guide-19hp</guid>
      <description>&lt;p&gt;You have connected Contact Form 7 to an external API. Leads flow into your CRM, contacts sync to your marketing platform, and data moves automatically. Everything works.&lt;/p&gt;

&lt;p&gt;But if you collect data from visitors in the EU, you have a legal obligation to ensure that data transfer is GDPR compliant. The plugin that sends the data, the API that receives it, and the way you collect consent all matter.&lt;/p&gt;

&lt;p&gt;This guide walks through the practical steps to make your CF7 API integration GDPR compliant, based on the plugin's official compliance documentation and standard GDPR requirements.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why GDPR Compliance Matters for API Integrations
&lt;/h2&gt;

&lt;p&gt;The GDPR applies whenever you process personal data of individuals in the EU. A contact form submission contains personal data: name, email, phone, message. When you send that data to an external API, you are transferring it to a third party.&lt;/p&gt;

&lt;p&gt;Article 28 of GDPR requires a contract between you (the data controller) and the API provider (the data processor). Article 32 requires appropriate technical measures to protect the data during transfer. And the data minimization principle means you should only collect what you actually need.&lt;/p&gt;

&lt;p&gt;If you skip these steps, you are exposed to regulatory fines, data breach liability, and reputational damage. "I didn't know the API provider wasn't compliant" does not hold up as a defense.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Get Explicit Consent (If Required)
&lt;/h2&gt;

&lt;p&gt;Not every form submission requires consent. A contact form processed under a pre-contractual basis (Article 6(1)(b)) may not need a checkbox. But if you are sending data to a marketing platform, a CRM for prospecting, or any system that uses the data for purposes beyond fulfilling the immediate request, you need explicit consent.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The consent text must be specific.&lt;/strong&gt; A non-compliant example: "I agree to the terms."&lt;/p&gt;

&lt;p&gt;A compliant version: "I agree to receive marketing emails from [Your Company] and understand my data will be shared with [third-party tool]. I can unsubscribe at any time."&lt;/p&gt;

&lt;p&gt;The checkbox must be &lt;strong&gt;unchecked by default&lt;/strong&gt;. The user must actively opt in. Pre-ticked boxes are not valid consent under GDPR.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Apply Data Minimization
&lt;/h2&gt;

&lt;p&gt;This is where API integrations often fail. It is tempting to map every form field to every destination. The GDPR expects you to collect and transmit only what is necessary for the stated purpose.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ask the hard question:&lt;/strong&gt; Does your CRM actually need the phone number if you are only sending emails? Does your marketing tool need the full message body if it only uses name and email?&lt;/p&gt;

&lt;p&gt;With the "Contact Form to Any API" plugin, you control field mapping individually. There are no automatic data dumps where everything gets sent whether it is needed or not. For each API endpoint, review the field mappings and strip out anything that is not essential for that specific integration.&lt;/p&gt;

&lt;p&gt;If you send the same form to multiple APIs (a CRM, a marketing tool, and a spreadsheet), review each destination separately. Each endpoint might receive data it does not actually use.&lt;/p&gt;

&lt;p&gt;For a deeper dive into JSON structure mapping and selective field inclusion, read this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-json-mapping/" rel="noopener noreferrer"&gt;Contact Form 7 JSON mapping&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Ensure Encrypted Transmission
&lt;/h2&gt;

&lt;p&gt;GDPR Article 32 requires appropriate technical measures to protect personal data. For API integrations, this means two things: encryption and authentication.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;All data sent to APIs must use HTTPS/TLS encryption.&lt;/strong&gt; TLS encrypts data while it travels between your server and the API endpoint, preventing interception. If an API endpoint only accepts HTTP, that is a red flag. Do not use it for personal data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Use Proper Authentication
&lt;/h2&gt;

&lt;p&gt;Authentication verifies that your requests are legitimate and prevents unauthorized access. The plugin supports Basic Auth, Bearer Token, and OAuth 2.0 natively.&lt;/p&gt;

&lt;p&gt;For GDPR-sensitive integrations, prefer Bearer Token or OAuth 2.0 over Basic Auth. Basic Auth sends credentials with every request, and while TLS encrypts the transmission, the credentials are still less protected than token-based methods.&lt;/p&gt;

&lt;p&gt;For a comprehensive breakdown of authentication options and their security implications, see this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-api-authentication-error/" rel="noopener noreferrer"&gt;Contact Form 7 API authentication errors&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Verify Your API Provider's GDPR Compliance
&lt;/h2&gt;

&lt;p&gt;You are responsible for the data you send to third parties. Before connecting to any external API, verify the provider's compliance posture.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Questions to ask:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Does the provider publish a GDPR compliance statement?&lt;/li&gt;
&lt;li&gt;Where are their data servers physically located?&lt;/li&gt;
&lt;li&gt;Do they offer Data Processing Agreements (DPAs)?&lt;/li&gt;
&lt;li&gt;What security certifications do they hold (SOC 2, ISO 27001)?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If the provider cannot answer these questions, find a different provider.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: Sign a Data Processing Agreement
&lt;/h2&gt;

&lt;p&gt;A DPA is a legally binding contract between you (the controller) and the API provider (the processor). Article 28 of GDPR requires this arrangement whenever a processor handles personal data on your behalf.&lt;/p&gt;

&lt;p&gt;Most major CRMs and marketing platforms offer standard DPAs. You typically sign them through the provider's settings or legal portal. If a provider does not offer a DPA, that is a serious compliance gap.&lt;/p&gt;

&lt;p&gt;The DPA should specify:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What data the processor handles&lt;/li&gt;
&lt;li&gt;Why and for how long&lt;/li&gt;
&lt;li&gt;The processor's security obligations&lt;/li&gt;
&lt;li&gt;How sub-processors are managed&lt;/li&gt;
&lt;li&gt;Data transfer safeguards if data leaves the EU&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 7: Handle Cross-Border Data Transfers
&lt;/h2&gt;

&lt;p&gt;If your API provider stores or processes data outside the EU/EEA, you need additional safeguards. These include adequacy decisions (where the European Commission has deemed a country's data protection laws sufficient) or Standard Contractual Clauses (SCCs) for countries without adequacy status.&lt;/p&gt;

&lt;p&gt;The US has adequacy through the Data Privacy Framework for certified companies. If your API provider is US-based, verify that they are certified under this framework before sending EU personal data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 8: Set Retention Periods
&lt;/h2&gt;

&lt;p&gt;GDPR's storage limitation principle means you cannot keep personal data longer than necessary. There is no universal retention period in the regulation. It depends on your purpose.&lt;/p&gt;

&lt;p&gt;Define and document how long you keep form data. If someone inquired about a product two years ago and never responded to follow-up, do you still have a legitimate reason to keep their data? If not, delete it.&lt;/p&gt;

&lt;p&gt;The plugin's API logs should also be considered. These logs may contain personal data from API requests. Review your log retention settings and ensure they align with your data retention policy.&lt;/p&gt;

&lt;h2&gt;
  
  
  The GDPR Compliance Checklist for CF7 API Integrations
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;th&gt;GDPR Reference&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Add explicit consent checkbox (unchecked by default) for marketing/prospecting data&lt;/td&gt;
&lt;td&gt;Art. 6(1)(a), Art. 7&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Map only necessary fields to each API endpoint&lt;/td&gt;
&lt;td&gt;Art. 5(1)(c)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Ensure API endpoint uses HTTPS/TLS&lt;/td&gt;
&lt;td&gt;Art. 32&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Use Bearer Token or OAuth, not Basic Auth, for sensitive data&lt;/td&gt;
&lt;td&gt;Art. 32&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Verify API provider's GDPR statement and server locations&lt;/td&gt;
&lt;td&gt;Art. 28&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Sign a Data Processing Agreement with the provider&lt;/td&gt;
&lt;td&gt;Art. 28&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;Verify adequacy or SCCs for cross-border transfers&lt;/td&gt;
&lt;td&gt;Art. 44-49&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;Set and enforce data retention periods&lt;/td&gt;
&lt;td&gt;Art. 5(1)(e)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;Review API log retention settings&lt;/td&gt;
&lt;td&gt;Art. 5(1)(e)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Beyond GDPR: One Form, Multiple Destinations
&lt;/h2&gt;

&lt;p&gt;Once your GDPR-compliant integration works, you might want to send the same submission to other tools: a CRM, an email marketing platform, or a help desk system.&lt;/p&gt;

&lt;p&gt;A good connector plugin supports multiple API integrations from a single form submission. You can create a CRM contact, subscribe the user to Mailchimp, and send an SMS via Twilio, all from one CF7 submission. For a cost comparison, see this article on &lt;a href="https://www.contactformtoapi.com/zapier-vs-contact-form-to-api-plugin-cost-comparison/" rel="noopener noreferrer"&gt;Zapier vs a dedicated API plugin&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;GDPR compliance is not optional for EU data.&lt;/strong&gt; If you collect data from EU visitors and send it to an API, you need consent (where applicable), encryption, a DPA, and data minimization.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data minimization is where most integrations fail.&lt;/strong&gt; The plugin lets you map fields individually. Use that control. Do not send everything to every endpoint.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The plugin supports GDPR-compliant authentication.&lt;/strong&gt; Bearer Token and OAuth 2.0 are available natively. Prefer these over Basic Auth for sensitive integrations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Verify your API provider before connecting.&lt;/strong&gt; A provider without a DPA or a clear GDPR statement is a compliance risk you do not need to take.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sign the DPA before you go live.&lt;/strong&gt; It is a legal requirement, not a formality.&lt;/p&gt;

&lt;p&gt;With explicit consent, minimal field mapping, encrypted transmission, and a signed DPA, your CF7 API integration can be both functional and compliant. The plugin provides the technical tools. The compliance work is yours to complete.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>contactform7</category>
      <category>api</category>
      <category>compliance</category>
    </item>
    <item>
      <title>CF7 to Copper CRM Not Creating Leads: A Complete Troubleshooting Guide</title>
      <dc:creator>Rahul Sharma</dc:creator>
      <pubDate>Mon, 26 Oct 2026 08:57:59 +0000</pubDate>
      <link>https://dev.to/rahul_sharma_15bd129bc69e/cf7-to-copper-crm-not-creating-leads-a-complete-troubleshooting-guide-32h1</link>
      <guid>https://dev.to/rahul_sharma_15bd129bc69e/cf7-to-copper-crm-not-creating-leads-a-complete-troubleshooting-guide-32h1</guid>
      <description>&lt;p&gt;You have built a Contact Form 7 form. You have connected it to Copper CRM through the "Contact Form to Any API" plugin. You have entered your API key and mapped the fields. And yet, when a user submits the form, no lead appears in your Copper CRM.&lt;/p&gt;

&lt;p&gt;This is a frustratingly common problem. The good news? The issue is almost always one of four things, and each has a clear fix. This guide walks through the exact debugging process, common error patterns, and verified solutions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Understanding the Data Flow
&lt;/h2&gt;

&lt;p&gt;When a user submits your CF7 form with Copper lead creation enabled, here is what should happen:&lt;/p&gt;

&lt;p&gt;User submits form → Plugin captures data → POST request sent to Copper API → Lead created&lt;/p&gt;

&lt;p&gt;When it breaks, the failure happens at one of the last two stages. Your first diagnostic tool is the &lt;strong&gt;plugin's API Logs page&lt;/strong&gt;. It shows whether a request was sent, the exact JSON payload, and the response from Copper. If no request appears in the logs, the problem is on the WordPress side. For a deeper breakdown of that specific scenario, see this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-data-not-reaching-api/" rel="noopener noreferrer"&gt;Contact Form 7 data not reaching the API&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure #1: The Endpoint URL Is Wrong
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see:&lt;/strong&gt; No lead is created. The API logs show a 404 Not Found error, or a successful request that creates a Person instead of a Lead.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt; Copper separates People and Leads into distinct API endpoints. The plugin requires you to manually enter the endpoint URL. If you paste the People endpoint instead of the Leads endpoint, the plugin will create a Person record, not a Lead.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Verify your endpoint URL in the plugin settings. For creating leads, it must be:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://api.copper.com/developer_api/v1/leads
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The People endpoint is &lt;code&gt;/people&lt;/code&gt;. The Leads endpoint is &lt;code&gt;/leads&lt;/code&gt;. These are not interchangeable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to verify:&lt;/strong&gt; After submitting a test form, check your Copper account. Navigate to the Leads section. If no new lead appears, the endpoint is wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure #2: The Authentication Headers Are Missing or Incorrect
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see:&lt;/strong&gt; Copper returns a 401 Unauthorized or 403 Forbidden error. No lead is created.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt; Copper requires three specific headers for API authentication. The plugin provides a static textarea for request headers. If any of these are missing or incorrectly formatted, authentication fails.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In the plugin's Request Headers field, add all three required headers:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;X-PW-AccessToken: YOUR_API_KEY
X-PW-Application: developer_api
X-PW-UserEmail: your-login-email@example.com
Content-Type: application/json
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Key details:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;X-PW-AccessToken:&lt;/strong&gt; Your Copper API key, generated from Profile → Email Settings &amp;amp; Templates.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;X-PW-Application:&lt;/strong&gt; Must be exactly &lt;code&gt;developer_api&lt;/code&gt;. This is not your application name; it is a fixed value required by Copper.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;X-PW-UserEmail:&lt;/strong&gt; The email address you use to log in to Copper. This must match exactly.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;How to verify:&lt;/strong&gt; After saving, submit a test form. Check the plugin's API Logs. A 200 OK response means authentication succeeded.&lt;/p&gt;

&lt;p&gt;For a comprehensive breakdown of authentication errors across different APIs, see this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-api-authentication-error/" rel="noopener noreferrer"&gt;Contact Form 7 API authentication errors&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure #3: The Required "Name" Field Is Missing
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see:&lt;/strong&gt; Copper returns a 400 Bad Request error. The response mentions a missing required field.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt; Copper requires a &lt;code&gt;name&lt;/code&gt; field to create a lead. Without it, the API rejects the request.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Verify your mapping.&lt;/strong&gt; In the plugin's JSON Payload section, ensure at least one CF7 field is mapped to the Copper &lt;code&gt;name&lt;/code&gt; field.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Use a hidden field if needed.&lt;/strong&gt; If your form does not have a natural field for the lead name, add a hidden field with a default value:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[hidden lead-name default:get "Website Lead"]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 3: Check the payload structure.&lt;/strong&gt; Your JSON should look like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"[your-name]"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"[your-email]"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"category"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"work"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Copper's email field uses a nested object with &lt;code&gt;email&lt;/code&gt; and &lt;code&gt;category&lt;/code&gt; properties. The category is typically &lt;code&gt;work&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;For a deeper dive into JSON structure mapping, read this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-json-mapping/" rel="noopener noreferrer"&gt;Contact Form 7 JSON mapping&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure #4: The Payload Structure Is Incorrect
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see:&lt;/strong&gt; Copper returns a 400 Bad Request error with a message about invalid fields or unexpected structure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt; Copper's API expects a specific JSON structure. Sending flat key-value pairs instead of the expected nested format will cause the request to fail.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Start with a minimal payload.&lt;/strong&gt; Use only the required fields:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"[your-name]"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"[your-email]"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"category"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"work"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 2: Add fields one at a time.&lt;/strong&gt; Once the minimal payload works, add additional fields like &lt;code&gt;phone_numbers&lt;/code&gt;, &lt;code&gt;company_name&lt;/code&gt;, or &lt;code&gt;title&lt;/code&gt;. Test after each addition.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: Use the correct field names.&lt;/strong&gt; Copper's Lead object supports fields like &lt;code&gt;name&lt;/code&gt;, &lt;code&gt;email&lt;/code&gt;, &lt;code&gt;phone_numbers&lt;/code&gt;, &lt;code&gt;company_name&lt;/code&gt;, and &lt;code&gt;title&lt;/code&gt;. Field names must match exactly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4: Check the Content-Type header.&lt;/strong&gt; Ensure your request includes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="err"&gt;Content-Type:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;application/json&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The Debugging Checklist
&lt;/h2&gt;

&lt;p&gt;Work through this sequence every time a lead fails to create:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;th&gt;What It Tells You&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Check the plugin's API Logs&lt;/td&gt;
&lt;td&gt;Was a request sent? What response code came back?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Verify the endpoint URL&lt;/td&gt;
&lt;td&gt;Does it target &lt;code&gt;/leads&lt;/code&gt;, not &lt;code&gt;/people&lt;/code&gt;?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Check all three auth headers&lt;/td&gt;
&lt;td&gt;Are X-PW-AccessToken, X-PW-Application, and X-PW-UserEmail present?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Confirm &lt;code&gt;name&lt;/code&gt; field is mapped&lt;/td&gt;
&lt;td&gt;Is the required field present in the payload?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Test with minimal payload&lt;/td&gt;
&lt;td&gt;Hardcode a &lt;code&gt;name&lt;/code&gt; value to isolate mapping issues.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Inspect the JSON structure&lt;/td&gt;
&lt;td&gt;Is &lt;code&gt;email&lt;/code&gt; a nested object with &lt;code&gt;email&lt;/code&gt; and &lt;code&gt;category&lt;/code&gt;?&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Beyond Leads: Creating Related Records
&lt;/h2&gt;

&lt;p&gt;Once you can create leads reliably, you may want to create related records. Copper's data model connects these objects:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Lead → Person:&lt;/strong&gt; When a lead is qualified, it can be converted to a Person.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Person → Opportunity:&lt;/strong&gt; Opportunities represent deals and are associated with People.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Copper also supports an upsert endpoint for leads (&lt;code&gt;/leads/upsert&lt;/code&gt;), which matches on email and updates existing records instead of creating duplicates. This is useful if you want repeat submissions to update the same lead rather than creating multiple records.&lt;/p&gt;

&lt;h2&gt;
  
  
  Beyond Copper: One Form, Multiple Destinations
&lt;/h2&gt;

&lt;p&gt;Once your Copper integration works, you might want to send the same submission to other tools: a different CRM, an email marketing platform, or a help desk system.&lt;/p&gt;

&lt;p&gt;A good connector plugin supports multiple API integrations from a single form submission. You can create a Copper lead, add the contact to HubSpot, and send an SMS via Twilio, all from one CF7 submission. For a cost comparison, see this article on &lt;a href="https://www.contactformtoapi.com/zapier-vs-contact-form-to-api-plugin-cost-comparison/" rel="noopener noreferrer"&gt;Zapier vs a dedicated API plugin&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Copper separates People and Leads into distinct endpoints.&lt;/strong&gt; Using &lt;code&gt;/people&lt;/code&gt; instead of &lt;code&gt;/leads&lt;/code&gt; creates the wrong record type.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Three authentication headers are required.&lt;/strong&gt; &lt;code&gt;X-PW-AccessToken&lt;/code&gt;, &lt;code&gt;X-PW-Application&lt;/code&gt; (fixed value &lt;code&gt;developer_api&lt;/code&gt;), and &lt;code&gt;X-PW-UserEmail&lt;/code&gt; must all be present and correct.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The &lt;code&gt;name&lt;/code&gt; field is required for lead creation.&lt;/strong&gt; Ensure it is mapped and never empty.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The email field uses a nested structure.&lt;/strong&gt; Use &lt;code&gt;{"email": {"email": "...", "category": "work"}}&lt;/code&gt; rather than a flat string.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Start with a minimal payload.&lt;/strong&gt; Hardcode the &lt;code&gt;name&lt;/code&gt; value first. Once that works, add additional fields one at a time.&lt;/p&gt;

&lt;p&gt;With the correct endpoint, all three authentication headers, and a properly structured payload containing the required &lt;code&gt;name&lt;/code&gt; field, your CF7-to-Copper integration will create leads reliably.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>contactform7</category>
      <category>coppercrm</category>
      <category>crm</category>
    </item>
    <item>
      <title>CF7 to Keap (Infusionsoft) Not Adding Contacts: A Complete Troubleshooting Guide</title>
      <dc:creator>Rahul Sharma</dc:creator>
      <pubDate>Fri, 16 Oct 2026 07:15:43 +0000</pubDate>
      <link>https://dev.to/rahul_sharma_15bd129bc69e/cf7-to-keap-infusionsoft-not-adding-contacts-a-complete-troubleshooting-guide-5e5o</link>
      <guid>https://dev.to/rahul_sharma_15bd129bc69e/cf7-to-keap-infusionsoft-not-adding-contacts-a-complete-troubleshooting-guide-5e5o</guid>
      <description>&lt;p&gt;You have built a Contact Form 7 form. You have connected it to Keap (formerly Infusionsoft) through the "Contact Form to Any API" plugin. You have entered your API credentials and mapped the fields. And yet, when a user submits the form, no contact appears in your Keap CRM.&lt;/p&gt;

&lt;p&gt;This is a frustratingly common problem. The good news? The issue is almost always one of four things, and each has a clear fix. This guide walks through the exact debugging process, common error patterns, and verified solutions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Understanding the Data Flow
&lt;/h2&gt;

&lt;p&gt;When a user submits your CF7 form with Keap contact creation enabled, here is what should happen:&lt;/p&gt;

&lt;p&gt;User submits form → Plugin captures data → API request sent to Keap → Contact created&lt;/p&gt;

&lt;p&gt;When it breaks, the failure happens at one of the last two stages. Your first diagnostic tool is the &lt;strong&gt;plugin's API Logs page&lt;/strong&gt;. It shows whether a request was sent, the exact JSON payload, and the response from Keap. If no request appears in the logs, the problem is on the WordPress side. For a deeper breakdown of that specific scenario, see this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-data-not-reaching-api/" rel="noopener noreferrer"&gt;Contact Form 7 data not reaching the API&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure #1: The Infusionsoft Field Prefix Is Missing
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see:&lt;/strong&gt; The plugin's logs are empty, or Keap returns an error. The form submits successfully, but no contact is created.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt; Older CF7-to-Infusionsoft integrations require a specific field naming convention. Every form field that should be sent to Infusionsoft must be prefixed with &lt;code&gt;infusionsoft-&lt;/code&gt;. If your CF7 field is named &lt;code&gt;your-email&lt;/code&gt; but the integration expects &lt;code&gt;infusionsoft-email&lt;/code&gt;, the data never reaches the API.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Rename your CF7 fields.&lt;/strong&gt; In the CF7 form editor, ensure every field you want to send to Keap uses the &lt;code&gt;infusionsoft-&lt;/code&gt; prefix.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[text* infusionsoft-first-name placeholder "First Name"]
[email* infusionsoft-email placeholder "Email"]
[tel infusionsoft-phone placeholder "Phone"]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 2: Update your field mappings.&lt;/strong&gt; In the API plugin's mapping configuration, match the prefixed CF7 field names to the Keap API parameters.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: Test with a minimal form.&lt;/strong&gt; Create a simple test form with only &lt;code&gt;infusionsoft-first-name&lt;/code&gt; and &lt;code&gt;infusionsoft-email&lt;/code&gt;. Submit it and check Keap for the new contact.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Important context:&lt;/strong&gt; If you are using the "Contact Form to Any API" plugin rather than a dedicated Infusionsoft add-on, you may be building the JSON payload manually. In that case, the prefix requirement does not apply, but the field mapping to Keap's API parameters must still be exact.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure #2: OAuth Authentication Is Not Configured Correctly
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see:&lt;/strong&gt; Keap returns a 401 Unauthorized or "Developer Inactive" error. No contact is created.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt; Keap uses OAuth 2.0 for API authentication . The API token must be valid, and the refresh token must be properly managed. A common issue is that the access token expires, and the integration cannot refresh it automatically.&lt;/p&gt;

&lt;p&gt;A Keap developer described this exact problem: "I am creating a new access token manually and replacing daily because I can't seem to figure out this OAuth process for simple API calls" . Another user reported getting "Developer Inactive" errors when trying to use a refreshed token .&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Verify your OAuth credentials.&lt;/strong&gt; In Keap, navigate to Settings → API Settings. Copy your Client ID and Client Secret .&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Generate a fresh API token.&lt;/strong&gt; According to Keap's OAuth documentation, you need to generate an API token through the developer portal .&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: Configure authentication in the plugin.&lt;/strong&gt; Add the Bearer token to the Authorization header:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;Authorization: Bearer YOUR_ACCESS_TOKEN
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 4: Handle token refresh.&lt;/strong&gt; Access tokens expire. If your plugin supports OAuth token refresh, ensure the refresh token is stored and used correctly. Note that when a refresh token is used, both the access and refresh tokens are invalidated, and a new pair is provided .&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Alternative: Personal Access Tokens.&lt;/strong&gt; Keap also supports Personal Access Tokens (PAT), which are simpler for scripting integrations. You can create a PAT from Settings → API Settings .&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure #3: The API Payload Structure Is Incorrect
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see:&lt;/strong&gt; Keap returns a 400 Bad Request error. The response mentions "Field is invalid" or "Bad Request."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt; Keap's API is strict about payload structure. The contact creation endpoint expects a specific JSON format with nested objects for email addresses and phone numbers.&lt;/p&gt;

&lt;p&gt;A Keap developer reported: "The error that I am receiving is only this: &lt;code&gt;{message: 'Field is invalid'}&lt;/code&gt;. It does not even say what the 'Field' is that is throwing the error!" .&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Start with a minimal payload.&lt;/strong&gt; For Keap's REST API, a minimal contact creation payload looks like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"given_name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"[infusionsoft-first-name]"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"family_name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"[infusionsoft-last-name]"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"email_addresses"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"[infusionsoft-email]"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"field"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"EMAIL1"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 2: Use the correct field names.&lt;/strong&gt; Keap's API uses specific field identifiers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;given_name&lt;/code&gt; for first name&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;family_name&lt;/code&gt; for last name&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;email_addresses&lt;/code&gt; as an array with &lt;code&gt;email&lt;/code&gt; and &lt;code&gt;field&lt;/code&gt; properties&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;phone_numbers&lt;/code&gt; as an array with &lt;code&gt;number&lt;/code&gt; and &lt;code&gt;field&lt;/code&gt; properties&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For phone numbers, you must include the &lt;code&gt;field&lt;/code&gt; property: &lt;code&gt;"field": "PHONE1"&lt;/code&gt; .&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: Check the Content-Type header.&lt;/strong&gt; Ensure your request includes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="err"&gt;Content-Type:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;application/json&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 4: Use the correct endpoint.&lt;/strong&gt; The contact creation endpoint is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://api.infusionsoft.com/crm/rest/v1/contacts
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Note on region codes:&lt;/strong&gt; If you include an address, the &lt;code&gt;region&lt;/code&gt; field must use ISO region codes (e.g., &lt;code&gt;US-CO&lt;/code&gt; for Colorado), not plain text abbreviations .&lt;/p&gt;

&lt;p&gt;For a deeper dive into JSON structure mapping, read this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-json-mapping/" rel="noopener noreferrer"&gt;Contact Form 7 JSON mapping&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Failure #4: Duplicate Contact Detection Is Blocking Creation
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What you see:&lt;/strong&gt; No new contact appears in Keap. The API returns a 200 OK response instead of 201 Created.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why it happens:&lt;/strong&gt; Keap's API may detect that a contact with the same email address already exists and return the existing contact instead of creating a new one. This is by design, but it can appear as a failure if you are checking for a new contact.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Check the API response body.&lt;/strong&gt; A 200 response means a duplicate was found and the existing contact was returned. A 201 response means a new contact was created .&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Use the &lt;code&gt;duplicate_option&lt;/code&gt; parameter.&lt;/strong&gt; Keap's API supports a &lt;code&gt;duplicate_option&lt;/code&gt; parameter to control duplicate detection. Available values include &lt;code&gt;EmailAndName&lt;/code&gt; and &lt;code&gt;EmailAndNameAndCompany&lt;/code&gt; .&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: Verify in Keap directly.&lt;/strong&gt; Search for the contact by email address. If it already exists, the integration is working correctly — it is just updating an existing record rather than creating a new one.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Debugging Checklist
&lt;/h2&gt;

&lt;p&gt;Work through this sequence every time a contact fails to create:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;th&gt;What It Tells You&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Check the plugin's API Logs&lt;/td&gt;
&lt;td&gt;Was a request sent? What response code came back?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Verify field naming prefix&lt;/td&gt;
&lt;td&gt;Are fields prefixed with &lt;code&gt;infusionsoft-&lt;/code&gt;?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Check OAuth token&lt;/td&gt;
&lt;td&gt;Is it valid and not expired?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Inspect the JSON payload&lt;/td&gt;
&lt;td&gt;Does it use the correct nested structure?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Check for duplicates&lt;/td&gt;
&lt;td&gt;Does the contact already exist in Keap?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Test with minimal payload&lt;/td&gt;
&lt;td&gt;Hardcode values to isolate structure issues.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For a comprehensive breakdown of authentication errors across different APIs, see this guide on &lt;a href="https://www.contactformtoapi.com/contact-form-7-api-authentication-error/" rel="noopener noreferrer"&gt;Contact Form 7 API authentication errors&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Beyond Contacts: One Form, Multiple Destinations
&lt;/h2&gt;

&lt;p&gt;Once your Keap integration works, you might want to send the same submission to other tools: a different CRM, an email marketing platform, or a help desk system.&lt;/p&gt;

&lt;p&gt;A good connector plugin supports multiple API integrations from a single form submission. You can create a Keap contact, add the lead to HubSpot, and send an SMS via Twilio, all from one CF7 submission. For a cost comparison, see this article on &lt;a href="https://www.contactformtoapi.com/zapier-vs-contact-form-to-api-plugin-cost-comparison/" rel="noopener noreferrer"&gt;Zapier vs a dedicated API plugin&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Takeaways
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Field naming may require the &lt;code&gt;infusionsoft-&lt;/code&gt; prefix.&lt;/strong&gt; Older integrations expect this convention. Rename your CF7 fields accordingly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;OAuth authentication must be configured correctly.&lt;/strong&gt; Access tokens expire. Ensure your integration can refresh them, or use a Personal Access Token for simpler setups .&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Keap's API expects a specific JSON structure.&lt;/strong&gt; Use &lt;code&gt;email_addresses&lt;/code&gt; and &lt;code&gt;phone_numbers&lt;/code&gt; arrays with the correct field identifiers .&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Duplicate detection may return 200 instead of 201.&lt;/strong&gt; Check the response code and verify in Keap whether the contact already exists .&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Start with a minimal payload.&lt;/strong&gt; Hardcode a test contact first. Once that creates a record in Keap, add additional fields one at a time.&lt;/p&gt;

&lt;p&gt;With the correct field naming, valid OAuth credentials, and a properly structured payload, your CF7-to-Keap integration will create contacts reliably.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>contactform7</category>
      <category>infusionsoft</category>
      <category>apiintegration</category>
    </item>
  </channel>
</rss>
