← Blog

·

WhatsApp API Error 190: access token expired or invalid

Updated on November 4, 2026

WhatsApp Business API error 190 means the access token used in the request has expired or is no longer valid. Meta’s guidance is simple: get a new access token. In most cases, the root cause is running production on the user access token copied from the App Dashboard, which lasts a few hours, instead of a system user token.

This guide explains how to read the error, the Cloud API token types, how to generate a long-lived token, how to rotate tokens without downtime and how authentication works on Vectalk.

What Meta says about error 190

In the Cloud API error codes table, 190 is listed among the authorization errors, with the detail “Your access token has expired” and the solution “Get a new access token”.

The response looks like this:

{
  "error": {
    "code": 190,
    "fbtrace_id": "A1b2C3d4E5f6"
  }
}

The example shows only the key fields; the real response also includes message and type, and the message text varies with the reason. Build your handling around code, as Meta itself recommends.

What about subcodes 463 and 467?

The Graph API error handling guide lists authentication subcodes that come with error 190:

SubcodeMeaningAction
463Session or token expiredGet a new token
467Invalid access token: expired, revoked or otherwise invalidGet a new token
460The user changed their passwordThe user must log in again
458The app is not installed for the userRe-authenticate the user

Heads up: the Cloud API documentation says the error_subcode field is deprecated and is not returned in Graph API v16.0 and later. If you’re on a current version, don’t count on it. Treat every 190 as “the token must be replaced” and find the cause from the type of token you’re using.

Related errors

CodeMeaning (Meta docs)How it differs from 190
0Unable to authenticate the app user; typically the token expired, was invalidated or the user changed a settingSame fix: get a new token
3Capability or permissions issueThe token is valid but lacks a permission
10Permission not granted or removedThe token is valid but the permission was withdrawn
200On some GET endpoints, returned when the call has no token (“Provide valid app ID”)The token is missing from the call: include a valid one

For 3 and 10, generating another token with the same permissions won’t help; for 200, just send the token in the header. Check permissions in the access token debugger.

Why the token expires: token types

Meta’s access tokens page describes three types:

TypeWho it’s forLifetime
User access tokenEarly testing, any developerShort: Meta warns you need to generate a new one every few hours
System user access tokenDirect developers and automated servicesLong-lived; you pick an expiration preference when generating it
Business Integration System User access tokenTech Providers and partners using Embedded SignupScoped to each onboarded customer

The token shown on the API setup screen in the App Dashboard is a user access token: Meta generates a new one on each visit. It’s fine for a first test. Put it in production and it becomes error 190 that same afternoon.

Other common causes:

  • the system user token was generated with an expiration and it has passed;
  • someone revoked the token or removed the system user;
  • the system user lost access to the app or the WhatsApp account;
  • the token was copied with an extra space, line break or quotes;
  • the production environment variable still points to the old token after a swap.

Want to try it while you read? Create a Vectalk account and send your first message through the official API. Create free account →

How to generate a long-lived token

The short version, according to Meta’s documentation:

  1. In your business portfolio settings, open System users and create a user with the Admin or Employee role.
  2. Assign your app to that user with the manage app permission.
  3. Click Generate token, select the app and choose an expiration preference.
  4. Grant the business_management, whatsapp_business_management and whatsapp_business_messaging permissions.
  5. Copy the token and store it in a secrets manager.

The full walkthrough is in our guide to the WhatsApp API permanent access token.

How to check a token before using it

Before putting a new token in production, verify it:

  • In the debugger: paste the token into the access token debugger and check type, expiration, app and permissions.
  • With a simple read call: query the phone number, which sends no message:
curl -s "https://graph.facebook.com/v26.0/PHONE_NUMBER_ID?fields=display_phone_number,verified_name" \
  -H "Authorization: Bearer $WHATSAPP_TOKEN"

If you get the number and verified name back, the token works for that number. If you get 190, it doesn’t. Our article on finding your WhatsApp Phone Number ID helps you locate the IDs, and the one on testing the WhatsApp API in Postman shows how to run this call without code.

Safe rotation: replace the token without downtime

Even a long-lived token should be rotated now and then, and always when you suspect a leak. Zero-downtime rotation follows the “two valid tokens at once, briefly” idea:

  1. Generate the new token without revoking the old one.
  2. Validate the new one with the read call above.
  3. Update your secrets manager (AWS Secrets Manager, GCP Secret Manager, Vault, your hosting provider’s variables).
  4. Reload the services that use the token, in stages.
  5. Monitor 190 and 401 errors for a few minutes.
  6. Revoke the old token only once no service is using it.

In code, read the token from one place and treat 190 as an alert, not something to retry:

async function callApi(url, payload) {
  const token = await secrets.get('WHATSAPP_TOKEN'); // secrets manager, not hard-coded
  const r = await fetch(url, {
    method: 'POST',
    headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json' },
    body: JSON.stringify(payload),
  });
  const body = await r.json();
  if (body.error?.code === 190 || body.error?.code === 0) {
    alert('WhatsApp API token invalid or expired: generate a new one and update the vault');
    throw new Error('invalid_token'); // retrying with the same token won't help
  }
  return body;
}

Good practices that prevent leaks and emergency revocations:

  • never put the token in your repository, front end or mobile app;
  • use one token per system, so you can revoke one without breaking the others;
  • grant only the permissions you need;
  • record who generated each token and when.

Our article on WhatsApp Business account security covers access and scams on the account side.

How it works with Vectalk

On Vectalk, your application doesn’t use Meta’s token. When you connect your number through the embedded signup flow, the platform imports the phone_number_id, waba_id and access token, and you authenticate your calls with a Vectalk token in the Authorization: Bearer header. According to the authentication docs:

Token typeScopeNote
Organization tokenAll instances in the organizationRequires phone_number_id in the body when sending messages
Instance tokenOne instance (one number)Required for media, templates and business profile

What changes in your error handling:

  • Vectalk tokens don’t expire on their own. They stay valid until revoked in the dashboard or through the API.
  • Authentication errors are HTTP 401 (missing, invalid or expired token), and 403 means a valid token without permission for the resource, such as an organization token calling an endpoint that requires an instance.
  • The token is shown only once, at creation, and Vectalk stores only a hash. If you lose it, create a new one.

Rotation follows the same logic: create a new token under Settings → API Tokens, update your vault, reload services and revoke the old one:

# List tokens
curl https://apis.vectalk.com.br/api/auth/api-tokens \
  -H "Authorization: Bearer $VECTALK_TOKEN"

# Revoke the old token
curl -X DELETE https://apis.vectalk.com.br/api/auth/api-tokens/TOKEN_ID \
  -H "Authorization: Bearer $VECTALK_TOKEN"

If a call through Vectalk returns a 190 coming from Meta, the problem is the credential for the Meta connection, not your Vectalk token: contact support. For other send errors, see error 131000 and our list of WhatsApp API error codes. For an overview, read the official WhatsApp API guide or create your account.

Frequently asked questions

How long does the temporary WhatsApp API token last?

Meta doesn’t publish an exact number on the tokens page. It says user access tokens expire quickly and must be regenerated every few hours. For production, use a system user token.

Is there a permanent WhatsApp API access token?

The system user token is long-lived, and Meta asks you to choose an expiration preference when you generate it. Our permanent access token guide shows the setup.

Why do I get error 190 with a token I just generated?

The usual causes are copying the token with extra characters, using a token from another app or portfolio, or a service still reading the old token from a cache or environment variable. Check the token in the debugger.

Should I retry the request after a 190?

No. Retrying with the same token will fail again. Generate a new token, update your vault and then resend the queued messages.

Do I need to manage Meta’s token on Vectalk?

Not day to day. Your application uses the Vectalk token, which doesn’t expire on its own. Vectalk authentication errors come back as HTTP 401.


Official sources checked on November 4, 2026: Cloud API error codes · Cloud API access tokens · Graph API error handling · Access token debugger · Vectalk: authentication · Vectalk: API tokens

Try the official WhatsApp API today

Create your account, generate a token and send your first message with the quick-start guide. Same payloads and webhooks as Meta's Cloud API.