Skip to main content

Blog · Spoke

API Key Expired and Your Automation Stopped: How to Fix It

Automation stopped working due to an expired API key? Fix 401 errors in n8n, Make, and Zapier and catch credential expiry before it breaks workflows.

By Dima K. Published

API Key Expired and Your Automation Stopped: How to Fix It

You woke up, glanced at your phone, and three of your biggest clients’ CRM integrations are throwing authorization errors. The logs are not screaming. The data just stopped moving. A single string of text reached the end of its life and took three months of retainer work into a queue with it. No email from the provider. No warning. You found out by accident.

That is the cruel part of an expired credential. It is the most predictable failure there is, and it gives you the least warning. Here is how to find which key died and get the data moving again before a client sends that Friday-evening message.

Replace the credential, in the right order

The fix for an authorization error is a manual re-auth. There is an order to it so it actually stays fixed.

Open your builder, whether that is n8n, Make, or Zapier, and find the connection settings. Do not paste the same key back in. Go to the source service (Shopify, Salesforce, whatever broke) and generate a fresh one. Before you paste it, check the scopes. Providers tighten their security requirements without much announcement. If your old key had read access and the service now wants read and write for that node, it shows as expired even when it technically is not. Make the new key with the right permissions, swap it in, run one manual test. Test passes, and you have just cleared most of the cases that bring people to this page.

Five places a key dies quietly

1. It expired versus the provider rotated it. Sometimes a service force-rotates keys for security, which looks like an expiry but hits everyone at once.

“I had an active n8n API key per environment which worked just fine and was used at least once a day. But just now (starting Feb 19.) the API keys all expired at once.”octionic on n8n Community Forum, 2025-02-19

Check the provider’s status page or developer updates. A notice about a security patch or a mandatory login update means your setup is fine and the service changed the rules. When the request never reaches the run, this can look a lot like an n8n webhook not firing, except the cause sits upstream.

2. The login refresh died in the background. If you used the click-to-approve method instead of a plain key, the refresh token can quietly expire on its own. Check whether the refresh token has its own expiry date. Some services make you re-approve the app every 30 or 90 days. When the break stays invisible until a scheduled run fails, it overlaps with automations that stop without an error.

3. Your server IP moved. Here is one most people check last and should check earlier: did your server IP change? Especially if you recently moved your n8n instance to a new host. Go to the provider’s API settings and look for an allowed-addresses list. If your new IP is not on it, the key is rejected at the door no matter how valid it is. Security-conscious providers block anything that does not come from a trusted address, key or no key.

4. You are not expired, you are throttled. The 401-versus-429 confusion.

“AI-powered automation workflows in Zapier, Make, or n8n can suddenly stop working due to errors like 401 Unauthorized, 429 rate limits, or mysterious timeouts.”

Antigravity Lab, 2025

Sometimes the tool tells you that you are not authorized when it means you are talking too fast. Read the header response in the failed run. See “Retry-After,” and you are being throttled, not expired. APIs throw a generic authorization error when the real problem is you hit your monthly request cap. Useless alert: 401 Unauthorized: invalid_client. Useful one: Workflow stopped, rate limit hit on HubSpot API. Check your monthly request cap and the Retry-After header.

5. Valid in the UI, invalid at runtime. The most maddening case. The “Test Connection” button says success and the workflow fails when it actually runs. Check whether you store keys in environment variables. Update the variable in your OS while the builder still reads a cached secret, and the run fails while the test passes. If the workflow still will not start after you replace the credential, line it up against n8n workflows not triggering.

Watching for the next one

This gets you running again. It does nothing about the next expiry, which is already on a calendar somewhere you cannot see. You cannot always stop a key from dying. You can stop it from being a surprise. NoCrash watches the actual data moving through your workflows from the outside, and the moment a key dies and the runs go quiet, you get a plain-language ping, not an authorization error buried three days deep in a log a client found first. Start free at nocrash.io and wire up your busiest workflow first. So set that watch today. Future-you, reading a quiet morning message instead of an angry Slack, will be glad you did.

— NoCrash

Common questions

Frequently asked

What's the difference between an expired API key and a rotated one?
An expired key reached its natural end-of-life set by you or the provider. A rotated key was deactivated prematurely by the service provider, usually due to a security update. You must generate a fresh one in both cases.
How do I find out which credential broke without trial-and-error?
Open your execution logs and look for the specific node that failed. If the error code is 401, it is almost always the credential attached to that specific service, not a bug in your logic.
Can I get warned before a credential expires?
Some providers like Google or AWS send emails, but many smaller tools do not. You have to manually track dates in a spreadsheet unless you use a tool that watches the heartbeat of your outgoing requests.
What's the most common cause across n8n, Make, and Zapier?
The most common cause is "OAuth Token Expiry," where the refresh token was invalidated because the user changed their password or the service reached its 50-token-per-app limit.
How do I prevent this from happening next time?
You can't always stop a key from expiring, but you can stop it from being a surprise. Using a dedicated tool like NoCrash allows you to watch the actual data outcome. If a key dies, you get a ping immediately instead of finding out from a client three days later.

Stop finding out from your customers.

One morning message telling you what ran clean and what didn’t. Free forever on 3 things to watch.