ActiveCampaign n8n error 301 on create contact: causes and fixes
A 301 from the ActiveCampaign node means the request went to a URL that redirects, so start with the API URL in your n8n credential. Copy it from Settings, then Developer, and check the scheme and path. Zapier 403 and cURL error 28 behind Cloudflare have different causes, covered below.
Sohail Hussain9 min readShort answer
- A 301 on every n8n ActiveCampaign operation means the request went to an address that redirects. Re-copy the API URL from Settings, then Developer in ActiveCampaign, and paste it into the n8n credential as a bare https host with no path.
- If cURL against that URL returns 200 and n8n still returns 301, swap the node for an HTTP Request node and update n8n.
- Zapier 403, Make List Contacts failures and cURL error 28 are separate problems with separate fixes, covered below.
You searched for something like "ActiveCampaign n8n error 301 create contact", or you hit one of its neighbors: a Zapier 403 on Facebook lead ads, a Make List Contacts module that broke, or cURL error 28: Operation timed out after 1000 milliseconds from Gravity Forms behind Cloudflare. They look related because they all end in "ActiveCampaign integration failed", but the causes differ.
The report behind the 301 is an n8n GitHub issue: version 1.102.4 returned 301 on any operation while 1.20 worked. I can't tell from that thread why the newer node behaves differently, so the steps below work whichever version you run.
Why it happens
301 Moved Permanently is not an ActiveCampaign error message. It is a web server telling the client to request a different address. In n8n, the usual outcomes are that the redirect isn't followed, or that it is followed and something is lost on the way.
Causes, most common first:
- The API URL in the credential is wrong or stale. Common slips:
http://instead ofhttps://, a trailing slash, a pasted/api/3path, or the web app address (youraccount.activehosted.com) instead of the API address (youraccount.api-us1.com). - The credential belongs to a user who no longer exists. ActiveCampaign says each user in your account has their own API URL and Key, and deleting that user breaks integrations built on their credentials. That usually shows up as an auth error rather than a redirect, but rule it out.
- A proxy between n8n and the internet. A reverse or outbound proxy that rewrites or redirects external requests can produce a 301 that ActiveCampaign never sent.
- A node-level regression. If everything above is clean, the node itself is the suspect. I can't confirm which versions are patched as of November 2026.
Fix the API URL in the n8n credential
- In ActiveCampaign, click Settings (gear icon), then Developer. ActiveCampaign's help page for this says to click the Developer option and copy your API URL and Key into your third-party application.
- In n8n, open the ActiveCampaign credential and replace the API URL with the copied value. Use the form
https://{your-account}.api-us1.com(theus1part varies by account). - Remove anything after the host: no trailing slash, no
/api/3. The node builds the API path itself. - Save, run the credential test, then run one Create Contact operation.
To take n8n out of the picture, run this from a terminal:
curl -i -H "Api-Token: YOUR_API_KEY" \
"https://youraccount.api-us1.com/api/3/contacts?limit=1"
A 200 with JSON means the URL and key are good. A 301 or 302 prints a Location: header, which is the address the server wants you to use.
Check the key's owner
If the key came from a teammate who has since left, the integration can break even with a correct URL. Generate the URL and key from a user who will stay.
If the URL is right and n8n still returns 301
- Update n8n to the latest release and read the comments on the GitHub issue for a workaround.
- Check whether n8n runs behind a reverse proxy or outbound proxy that redirects requests to external hosts.
- Replace the node temporarily with an HTTP Request node:
POST https://youraccount.api-us1.com/api/3/contacts, headerApi-Token, and a JSON body like this:
{
"contact": {
"email": "jane@example.com",
"firstName": "Jane"
}
}
If that works, your account and key are fine and the problem is confined to the ActiveCampaign node. The HTTP Request node is also a sensible long-term fallback if you can't wait for a node fix.
Zapier 403 on Facebook lead ads while the API returns 200
A 403 Forbidden is not a redirect. The request arrived and was refused. People on Zapier's community forum report Facebook lead ads failing with 403 even though a direct API call returned 200. The thread doesn't give a confirmed root cause, so narrow it down:
- Check which step returns the 403. If the Facebook trigger fails, the problem is the Facebook connection or lead access permissions, not ActiveCampaign.
- Reconnect the ActiveCampaign account in Zapier. Zapier's help article says to enter your API URL and API Key in the connection dialog.
- Confirm the key belongs to a user who still exists and can create contacts.
- Compare the failing Zap's payload with your manual test. Empty email values and unusual field mappings are worth ruling out.
Also keep rate limits in mind: Zapier's help article notes an ActiveCampaign API rate limit of 5 requests per second per account. A burst of lead-ad submissions alongside other automations can approach that.
Make: List Contacts module failing after an API change
The report for Make is thin: the List Contacts module started erroring after a change on the ActiveCampaign side. I won't guess at the mechanism. What usually clears this class of problem:
- Reconnect the ActiveCampaign connection in Make with the current API URL and key.
- Delete the module and add it again, so you get the current version instead of a stale copy in an old scenario.
- Remove optional filters and field selections, run once, then add them back one at a time. The one that breaks the call is the one that changed.
- Open the failed run's execution details and read the raw response. The error body from ActiveCampaign says more than Make's summary.
Gravity Forms to ActiveCampaign: cURL error 28 behind Cloudflare
cURL error 28: Operation timed out after 1000 milliseconds means the WordPress server waited one second for a response and gave up. That is very short. WordPress's default request timeout is 5 seconds, so the add-on or a snippet is setting a tight one. In the Cloudflare community thread on this, people report the failure only with the Cloudflare proxy (orange cloud) on.
To confirm Cloudflare is involved, set the site's DNS record to DNS only (grey cloud) briefly and submit a test form. If it works, keep the proxy and fix it properly:
- In the Cloudflare dashboard, open the security events log and look for blocks or challenges on
/wp-admin/admin-ajax.phparound the submission time. - Add a WAF custom rule with the action Skip for requests where the URI path equals
/wp-admin/admin-ajax.php. Don't skip it for the whole site. - Check that no rate limiting rule or Bot Fight Mode setting catches the same path.
If the timeout persists, raise it. A plain http_request_timeout filter is ignored when a plugin sets its own timeout, so override the request args:
add_filter( 'http_request_args', function ( $args, $url ) {
if ( strpos( $url, 'api-us1.com' ) !== false ) {
$args['timeout'] = 15;
}
return $args;
}, 10, 2 );
Put it in a small plugin or your child theme's functions.php. Fifteen seconds is generous; lower it once forms submit reliably.
Limits of the snippet
This only affects requests made through the WordPress HTTP API. If the add-on calls cURL directly, the filter does nothing.
Telling the four problems apart
| Symptom | Likely cause | First thing to check |
|---|---|---|
301 on every n8n operation | Redirect on the API URL | API URL format in the credential |
403 in Zapier only | Permission or block | Which step fails; reconnect; key owner |
| Make List Contacts errors | Stale module or connection | Re-add module; reconnect; raw response |
| cURL error 28, 1000 ms | Short client timeout, proxy in path | Grey-cloud test; security events log |
Checklist before you try again
- The API URL is
https://{your-account}.api-us1.comwith no path and no trailing slash. - The URL and key were copied from Settings > Developer by a user who still exists.
- The same
curlcall returns200from the machine that runs n8n. - No proxy sits between n8n and ActiveCampaign, or it passes external hosts through untouched.
- Cloudflare has a Skip rule for
/wp-admin/admin-ajax.phponly, if WordPress is involved.
If nothing works
Contact ActiveCampaign support. Their API help page asks for the full API request URL including parameters, your POST data if relevant, the expected response, and the actual response received. Add the exact error text, a UTC timestamp, the tool and version (for example n8n 1.102.4), and whether the same call works from cURL. For n8n-only failures, also add a comment to the GitHub issue with your version.
Subject: API returns 301 on every operation from n8n (cURL works / does not work)
Account URL: https://{your-account}.api-us1.com
Tool and version: n8n {version}, ActiveCampaign node
Request: POST /api/3/contacts
Actual response: 301 (Location header: {value, if any})
Expected response: 201 with the created contact
Timestamp (UTC): {YYYY-MM-DD HH:MM}
Already tried: re-copied API URL and key from Settings > Developer,
tested with curl (result: {200/301}), replaced node with HTTP Request.
Common questions
Why did it work on n8n 1.20 and break on 1.102.4?
The thread doesn't say. Something the old node tolerated, such as a trailing slash or odd URL form, may no longer pass. Re-copy the URL and test with cURL to find out.
Does deleting an ActiveCampaign user break my integrations?
Yes, if the integration uses that user's credentials. ActiveCampaign says there is no account-default API key, so you must update affected integrations with another user's URL and key.
Is the Zapier 403 an ActiveCampaign outage?
Unlikely if a direct API call returns 200. Find which step returns the 403 first; a failing Facebook trigger points at Facebook permissions, not ActiveCampaign.
Should I turn Cloudflare off for my whole site?
No. Test with DNS only to confirm the cause, then add a narrow Skip rule for /wp-admin/admin-ajax.php and turn the proxy back on.
If you push data into ActiveCampaign from other systems via webhooks, our guide to email APIs and webhooks covers retries and failure handling, and the webhook glossary entry explains the basics.
Explore: Email Marketing Strategy
Related Articles
"Existing contact details NOT updated": CSV import fixes
"Existing contact details NOT updated" means the import matched contacts already in your list and skipped them because the update option was off. Tick the update-existing box and re-import. If the whole file failed, save it as UTF-8 CSV, delete blank rows, paste values only, and check the delimiter and email column.
ActiveCampaign 502 Bad Gateway and Tags Failed to Load: Fixes
"Bad gateway Error code 502" in ActiveCampaign means Cloudflare, the proxy in front of the app, got no valid response from ActiveCampaign's servers. That is usually their side. Check the status page, retry in a clean browser session, clear cookies, then send support the Ray ID if it persists.
ActiveCampaign campaign stuck on "Pending review": what to do
A campaign stuck on "Pending review" in ActiveCampaign is being held on the vendor's side, and you can't release it from your account. Escalate by email, check the status page, ask any reseller or agency contact to push it through, and keep a backup sender ready for urgent mail.
"Stage not on allowlist": Apollo to HubSpot sync fix
The error "Stage not on allowlist" means the contact's Apollo stage is not on the list of stages permitted to push to HubSpot. Open the HubSpot integration in Apollo, go to the Sync tab, and add that stage under "Stages for push contacts". Lifecycle stage mapping is a separate setting.
Ready to supercharge your email marketing?
Start sending smarter emails with AI-powered campaigns. No credit card required.
Get Started Free