Contact Form To API sends each Contact Form 7 submission to Capsule CRM through Capsule’s API. Create an integration, enter the endpoint and request headers, choose your form, and map its fields in JSON. Submit a test entry, then check the plugin’s API Logs and your Capsule account.
This approach keeps your current form and avoids manual copying. Contact Form 7 does not connect to Capsule natively, so an API request links them. Manual entry takes time and invites mistakes. Before you start, confirm that your Capsule account lets you create an API token. You also need WordPress admin access, Contact Form To API installed, and a published Contact Form 7 form.
This guide suits teams that want to keep their existing form. Capsule’s native contact form or a no-code connector may suit teams that need basic lead capture.
How to Automate Contact Form 7 with Capsule CRM Using Contact Form To API
Follow these steps in order. Keep Capsule’s API references nearby. Capsule can change its API details, so verify current instructions before you publish.
Step 1: Sign In to Your Capsule CRM Account
Sign in to Capsule CRM with an account that can manage API access. Open your Capsule workspace and confirm that your team can create people or organisations. Capsule stores both record types as parties. Contact Form To API needs valid credentials before it can create a record. Keep the account open while you collect the endpoint and token details.
Step 2: Open Contact Form To API in WordPress
Sign in to WordPress with an administrator account. Find Contact Form To API in the dashboard menu, then open its integration area. Choose Add New Integration to start the Capsule connection. The menu label may appear as Contact Form to Any API on some installations. Open the matching plugin screen if your menu uses that name. Configure the connection before you edit your live form. Contact Form To API will use this screen for the endpoint, headers, and payload.
Step 3: Create a New Integration
Choose Add New Integration in Contact Form To API. Give the connection a clear title, such as Capsule Integration or Capsule Website Leads. Add the form name if you plan to connect several forms. A useful title helps you find the right settings later.
Step 4: Copy the Capsule CRM API Endpoint URL
Open Capsule’s Writing to the API guide. Confirm the current endpoint for creating parties. Capsule’s current API v2 endpoint is:
https://api.capsulecrm.com/api/v2/parties
Copy the URL exactly. Do not add an account subdomain or another path. This endpoint creates Capsule party records. Capsule uses that term for people and organisations. Contact Form To API sends each submission to the URL you enter.
Step 5: Add the API Endpoint URL in Contact Form To API
Open the integration settings in Contact Form To API. Paste https://api.capsulecrm.com/api/v2/parties into API Endpoint URL. Set the request method to POST because Capsule uses POST to create a new party. Check the spelling, protocol, and path before you save. An incorrect URL can send requests to the wrong resource or make them fail. Do not paste your token into the URL. Add it in the request headers in Step 7.
Step 6: Locate the Request Headers in Capsule CRM
Open Capsule’s authentication guide. For a one-site integration, create a personal API token if your account allows it.
Capsule lists token settings under My Preferences → API Authentication Tokens. Its API expects a Bearer token in the Authorization header. Capsule’s write guide also recommends JSON values for Content-Type and Accept.
Check Capsule’s current documentation before you copy the token or header details.
Step 7: Add Request Headers in Contact Form To API
Open Request Headers in Contact Form To API. Add these three headers:
Authorization: Bearer YOUR_CAPSULE_TOKEN
Content-Type: application/json
Accept: application/json
Replace YOUR_CAPSULE_TOKEN with the token from Capsule. Keep the word Bearer and one space before the token. The other two headers tell Capsule to read and return JSON.
Save the settings and keep the token private.
Step 8: Continue to the Next Step
Click Next in Contact Form To API to move from request settings to form selection.
Review the endpoint, request method, and headers before you continue. Contact Form To API needs a data source before you map fields.
Do not skip form selection. The selected form determines which field values the plugin can place in the request.
Step 9: Select Your Contact Form 7 Form
Choose the Contact Form 7 form that should create Capsule contacts. Select your live inquiry form or a dedicated test form. Check the field tag names in the Contact Form 7 editor. Your JSON payload must use those exact names, including hyphens and underscores. Use a form that collects the details your team needs. For a person record, separate first-name and last-name fields make mapping clearer.
Step 10: Configure JSON Payload Field Mapping
Open JSON Payload in Contact Form To API. Set Request Body Type to Raw JSON (application/json).
Capsule expects a top-level party object with a type field.
For a person record, map your Contact Form 7 tags to Capsule’s person fields.
This example uses the tags your-first-name, your-last-name, and your-email:
{
"party": {
"type": "person",
"firstName": "[your-first-name]",
"lastName": "[your-last-name]",
"emailAddresses": [
{
"type": "Work",
"address": "[your-email]"
}
]
}
}
Check each tag against your form. Then compare the JSON structure with Capsule’s Create party reference. Save the payload after you confirm every field name and value.
Step 11: Submit a Test Entry
Submit a test entry through the selected Contact Form 7 form. Use your own test details and an email address you can check. Do not test with real customer information.
A success message on the form does not prove that Capsule created a record. Review the API log and search Capsule for your test contact.
If the JSON fails, revisit Step 10. If authentication fails, revisit Step 7.
Step 12: Verify API Logs and CRM Data
Open the Logs tab in Contact Form To API. Find the entry for your test submission, then inspect its request and Capsule’s response.
The Contact Form To API API logs documentation explains the log view and response details. Next, sign in to Capsule and search for the test contact. Compare the name and email with the values you submitted. If the request failed, use the log details to return to the right step.
If a field looks wrong, revisit Step 10. Start accepting real inquiries only after both systems show the expected result.
How Contact Form To API Handles the Contact Form 7 and Capsule CRM Workflow
Contact Form 7 collects a visitor’s details. Contact Form To API reads the selected form values and builds the configured request. Capsule’s API receives that request and creates a party record.
The data moves through three parts: Contact Form 7 → Contact Form To API → Capsule CRM.
Contact Form To API sends the request during the form-submission workflow. Capsule then manages the contact record inside your CRM. Think of the plugin as a bridge, not a second CRM. It does not manage your business contacts after delivery.
The plugin can keep API logs and, on supported settings or plans, saved entries. Review those controls before you send personal data. The setup also requires someone who can manage API credentials and read basic JSON. Contact Form To API gives that person settings for the URL, headers, and payload.
This approach suits teams that want to keep existing Contact Form 7 forms and control the request. Capsule’s native contact form or a no-code connector may feel simpler if you only need basic lead capture. Compare the setup effort with the need to preserve your existing workflow.
Key Contact Form To API Features Used in This Integration
This integration uses a small set of Contact Form To API settings. Each setting controls one part of the request:
- API endpoint: Enter Capsule’s party-creation URL to choose the destination.
- Request method: Choose POST so Capsule creates a new party.
- Request headers: Send the Bearer token and JSON content details.
- JSON payload: Use Capsule’s party structure and add Contact Form 7 tags.
- Field mapping: Match each placeholder with a tag from the selected form.
- Test submissions: Send sample values before you collect real inquiries.
- API Logs: Review the request and Capsule’s response after each test.
Together, these settings route form data to Capsule without custom PHP. Contact Form To API does not decide which records your team should create. Capsule’s API checks whether the request follows its current rules. Use Capsule’s documentation as the source for exact fields and payload structure.
The plugin also supports multiple API integrations for workflows with more than one destination. Check the current plan details before you add extra endpoints. Keep each destination’s endpoint, credentials, and payload separate. A configuration for one API may not match another API’s requirements.
How to Test and Monitor the Capsule CRM Integration
A proper test checks both the outgoing request and the CRM record. Submit a test entry through the Contact Form 7 form you selected. Use recognizable sample details, such as a name that includes “Test” and an email address you control. Avoid personal details from real leads.
Open the Logs tab in Contact Form To API. Review the request and response for that submission. The logs can show the data the plugin sent and the response Capsule returned. If the request fails, check the endpoint, headers, and JSON payload before you test again. Change one setting at a time so you can identify the cause.
Then search for the test person in Capsule. Compare the email, name, and any other mapped values with your form entry. A successful request alone does not confirm that every field landed correctly. Check the actual party record.
Run a separate test after you change form tags, JSON fields, credentials, or Capsule custom fields. Review the plugin’s current log-retention settings before you process customer information. Remove test records or label them according to your team’s data policy.
Troubleshooting Contact Form 7 to Capsule CRM Integration
Use the API Logs to find where a request failed. Check one cause at a time and submit a fresh test after each change.
| Symptom | Likely cause | Fix |
|---|---|---|
| No contact appears in Capsule. | The endpoint or selected form does not match your setup. | Check the parties endpoint, selected Contact Form 7 form, and POST method in Contact Form To API. |
| Capsule rejects the request. | The token or Authorization header contains an error. | Check the token and Bearer prefix. Confirm the header value. Create a new token if Capsule revoked the old one. |
| Capsule returns a payload error. | The JSON lacks the party wrapper, uses invalid syntax, or names fields incorrectly. |
Compare the payload with Capsule’s Create party reference. Check commas, quotation marks, braces, and the type value. |
| Capsule creates a contact with missing details. | A JSON placeholder does not match a Contact Form 7 tag. | Copy the exact tag name from the form editor. Map it to the correct Capsule property. |
| The API log shows a failed request. | The endpoint, method, headers, or payload conflicts with Capsule’s current requirements. | Read the response. Compare your settings with Capsule’s current docs. Change one setting at a time. |
| Capsule creates duplicate test contacts. | Each successful POST creates a new party. | Search for the test record before each test. Label or remove test records under your team’s data policy. |
Do not guess from a form’s confirmation message. The API Logs show the request result, while Capsule confirms whether the record exists. Capsule can change its response details. Use its current docs instead of old error messages.
Best Practices When Using Contact Form To API
- Keep the Capsule token private. Do not place it in a public form, a page, or a screenshot. Limit WordPress administrator access to people who manage the integration. If someone exposes the token, revoke it in Capsule and create another one.
- Check Capsule’s current documentation before you save the endpoint, authentication method, headers, and payload. Use HTTPS and the correct create-party URL. Keep the JSON small while you test. Add only the fields your sales team needs.
- Test before you publish the integration. Confirm the outgoing request in the Contact Form To API’s Logs tab. Then confirm the matching party inside Capsule. Do not treat a form confirmation message as proof of CRM delivery.
- Review logs on a regular schedule. Check the plugin’s settings for saved entries and log retention. Re-test the workflow after you change a Contact Form 7 tag, field, form, token, or Capsule custom field. Keep a short record of the last successful test and the settings you changed.
Other API Integrations You Can Create with Contact Form To API
Capsule CRM is one destination for Contact Form 7 submissions. Contact Form To API connects forms to CRMs and internal applications. It also supports databases, customer portals, and other API-driven systems. Each destination has its own endpoint, authentication rules, and payload format.
Use the destination’s documentation to build a separate request. Do not reuse Capsule’s token or JSON body for another API. Keep each integration’s settings clear so one change does not break another connection. Review other API integrations for examples of the plugin’s general setup.
The same careful process applies to every destination. Choose the correct endpoint, add the required headers, map the form fields, and test the response. Confirm the record or data in the destination before you rely on the workflow.
Conclusion
To automate Contact Form 7 with Capsule CRM, collect a token and enter the party endpoint. Add the required headers and map your form fields in JSON. Configure each part in Contact Form To API. Select the right form, submit a test, and verify API Logs and the Capsule record. The 12-step process keeps your existing form and sends its submissions through Capsule’s API.
Check the API references whenever Capsule changes its requirements. After launch, review logs and re-test whenever you change the form, token, or payload.
Start your Capsule integration with Contact Form To API.
FAQs About Contact Form To API and Capsule CRM
1. Can I connect Contact Form 7 to Capsule CRM using Contact Form To API?
Yes. Contact Form To API sends Contact Form 7 submissions to third-party APIs, including Capsule’s API. Create an integration and enter Capsule’s endpoint and Bearer token headers. Select your form, then map its fields in JSON. Submit a test entry and check both the plugin’s API Logs and Capsule. You can keep your existing form and avoid manual copying.
2. How do I configure the Capsule CRM API endpoint?
Use https://api.capsulecrm.com/api/v2/parties for Capsule’s party endpoint. Paste that URL into Contact Form To API’s API Endpoint URL field. Set the request method to POST for new party records. Capsule’s Writing to the API guide documents this endpoint. Check the current reference before you save. This URL creates party records, not opportunities or other record types.
3. Can I add Capsule CRM request headers in the plugin?
Yes. Add Authorization: Bearer YOUR_CAPSULE_TOKEN in Contact Form To API’s Request Headers. Replace the placeholder with a token from Capsule. Add Content-Type: application/json and Accept: application/json as well. The plugin includes these headers with each request. Capsule’s authentication guide explains Bearer tokens. Keep the token private and confirm current instructions before you publish.
4. Can I map Contact Form 7 fields using JSON?
Yes. Contact Form To API lets you place Contact Form 7 tags inside a JSON payload. Capsule expects a party object with a record type and matching contact fields. Map each tag to the correct Capsule property, such as firstName or emailAddresses. Check Capsule’s current Create party documentation and submit a test before you use the integration with real leads.
5. How can I check whether my API request succeeded?
Submit a test entry through your selected Contact Form 7 form. Open the Logs tab in Contact Form To API and review the request and Capsule’s response. Then search Capsule for the test contact and compare its fields with your submission. A form confirmation alone does not prove that Capsule created the record. Check both systems before you rely on the integration.
6. Where can I find API Logs?
Open Contact Form To API in your WordPress dashboard and choose the Logs tab. The plugin’s documentation describes the request data and API response in each log entry. Menu labels can differ between plugin versions. Restrict access because logs may contain submitted contact details. Remove tokens or personal information before you share a screenshot with support.
7. Do I need custom coding for this integration?
You do not need custom PHP for the standard setup. Configure the endpoint, POST method, headers, and JSON payload in Contact Form To API. You do need to recognize your Contact Form 7 tags and follow Capsule’s JSON structure. Ask a developer to review workflows that need custom data transformations. Do the same when your rules exceed the plugin’s settings.








