Skip to content
FunnelGuard

Fix guide by FunnelsGuard

CRM API key expired: why your integration silently fails

DLV-098High impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Most forms send leads to a CRM (customer relationship management tool, where you keep contacts and deals) through an API. An API key or token is a secret string that proves your form tool is allowed to write to the CRM.

These credentials can stop working. OAuth access tokens expire and need a refresh token. A refresh token can be revoked. A person who set up the connection may leave, and their account gets deactivated. Someone may rotate a key for security. When that happens, the CRM answers each request with an authorisation error (usually HTTP 401 or 403), and the lead is not saved.

Why it costs you leads or sales

Your ads and SEO keep sending traffic, visitors keep filling in the form, and your reports still show form submits. But sales never see the contacts, so follow-up workflows, assignment and nurture emails never start. Every day the key is dead, new leads are lost or stuck in a log.

Where a lead is lost when the CRM token expires
  1. Visitor submits formForm looks normal
  2. Form tool calls CRM APISends the expired token
  3. CRM rejects with 401/403Authorisation error
  4. Contact createdNever happens
  5. Sales follow-upNobody knows the lead exists

The form works and the thank-you page loads, but the CRM rejects the request.

Leads reaching the CRM per weekExample numbers
Leads reaching the CRM per week (example)Week 1: 40 leads; Week 2: 42 leads; Week 3: 0 leads; Week 4: 0 leads; Week 5: 0 leads016324042000Week 1Week 2Week 3Week 4Week 5leads

Example: a site with steady form traffic. The token expires at the start of week 3 and the problem is found in week 5.

How to check if your site has it

Check whether the CRM connection is still authorised
  1. Compare form entries with CRM contacts

    Open the form plugin or tool's entries list and your CRM's contact list. Look at the newest entries on each side. If forms show leads from the last week and the CRM shows none, the connection is broken.

  2. Open the integration's status or logs

    Look for the connection page in your form tool, automation tool or CRM (often named Integrations, Connected apps, Webhooks or Logs). Search for errors like 401, 403, invalid_token, expired token, invalid_grant or unauthorized.

  3. Check who owns the credential

    If the connection was made with a personal login, check that user is still active and still has permission to create contacts. A deactivated user kills the connection.

  4. Submit a test lead

    Fill in the live form with a clearly marked test name and an email you control. Wait a few minutes and search for it in the CRM.

How to fix it

Renew the credentials for your setup
  1. Open your form plugin's CRM settings

    In plugins such as Gravity Forms, WPForms, Contact Form 7 add-ons or Elementor Pro, find the CRM or integration section. Menu names vary by plugin.

  2. Disconnect and reconnect

    Remove the old key, then generate a new one in the CRM and paste it in, or run the OAuth sign-in again with an account that is not likely to be removed.

  3. Save and test

    Submit a test entry and confirm the contact appears in the CRM.

General recovery steps for any platform
  1. Create a new credential

    In the CRM, generate a new API key, private app token or OAuth connection. Give it only the permissions needed to create and update contacts.

  2. Use a service account

    Create the credential under a dedicated integration user or shared account rather than one employee's login.

  3. Replace it everywhere it is used

    The same key may be in several tools. Search your form plugin, automations, tag manager and code for the old value.

  4. Recover missed leads

    Export entries from the form tool for the broken period and import them into the CRM. Some tools let you resend failed submissions.

Test a token against a CRM API (HubSpot example)bash
curl -i https://api.hubapi.com/crm/v3/objects/contacts?limit=1 \
  -H "Authorization: Bearer YOUR_TOKEN"
# 200 = token works, 401 = expired or invalid

How to confirm it's fixed

Confirmation checklist
  • A fresh test submission on the live form creates a contact in the CRM within a few minutes
  • The contact has the right fields, owner, source and tags
  • Any workflow or notification that should start on new contacts has run
  • The integration log shows a success status, not 401 or 403
  • Missed leads from the outage window are imported or resent

How to prevent it happening again

Prevention checklist
  • Write down every integration, its credential type and its expiry or rotation date
  • Use a dedicated service account instead of a personal login
  • Send failure notifications to a shared inbox or team chat, not one person
  • Add a calendar reminder before known expiry dates
  • Check the CRM weekly for the newest contact date
  • Run a scheduled test submission that must land in the CRM
How the silent failure unfolds
  1. Day 0

    Token expires or the connected user is removed.

  2. Day 1

    Forms still show thank-you pages. Leads pile up only in the form tool.

  3. Day 7

    Sales notice fewer new contacts but assume a slow week.

  4. Day 21

    Someone compares entries and CRM, finds the gap and reconnects.

How FunnelGuard handles this

FunnelGuard detects this issue only partly. A robot visitor submits your real form on a schedule with marked test data, and checks whether the expected contact or webhook arrives. If the test contact or webhook is missing, you get one alert, after a re-check from a second region, with a screenshot and a likely cause.

What it does not do: it does not read your CRM's credentials, see token expiry dates, or warn you before a key is about to expire. It also cannot tell an expired key from other reasons a contact is missing, such as a deleted field or a rate limit, so the alert points to a likely cause rather than a certain one. And it only covers the journeys you have set up, so leads from forms it does not test can still fail unseen.

To cover the rest by hand: keep a list of credentials with expiry dates, use a service account, send integration failure emails to a shared inbox, and check the newest CRM contact date each week. You can start with the Free plan (1 site, 2 journeys, daily checks, no card) or try a paid plan with a 3-day free trial.

A lead that never reaches the CRM

The form submits, but the CRM never receives the contact.

Questions people ask

Why are my form leads not showing up in my CRM?

A common cause is an expired, revoked or rotated API key or token, so the CRM rejects each request. Check the integration's log for 401 or 403 errors, then reconnect with a fresh credential. Other causes include deleted fields and rate limits.

How do I know if my CRM API key has expired?

Look at the integration log in your form tool or automation for errors such as 401, 403, invalid_token or invalid_grant. You can also test the key with a simple API request: a 401 response means it is no longer valid.

Do CRM API keys expire?

It depends on the CRM and the credential type. OAuth access tokens expire quickly and need refreshing, and refresh tokens or keys can be revoked, rotated or tied to a user who is deactivated. Some static keys never expire but can still be deleted.

How do I fix a CRM integration that stopped working?

Generate a new key or reconnect the OAuth sign-in in the CRM, replace it in every tool that uses it, then submit a test lead to confirm a contact is created. Afterwards import the leads from the outage window.

How can I recover leads lost while the CRM token was expired?

Export the entries from your form tool for the broken period and import them into the CRM, or use the tool's resend option if it has one. Check your email and automation logs too, as some store failed payloads.

How do I stop CRM integrations failing silently?

Use a dedicated service account, route failure alerts to a shared inbox, and run a regular test submission that must appear in the CRM. Reviewing the newest contact date weekly also helps.

Can FunnelGuard tell me when my CRM token expires?

No. FunnelGuard does not read your credentials or expiry dates. It submits a test lead on a schedule and alerts you if the expected contact or webhook is missing, so you find the break soon after it happens.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: Missing contact/webhook detected.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.