WhatsApp error 2388339: "WhatsApp accounts cannot be used with this API"

The sentence says your WhatsApp Business Account is unusable. In the case we hit, the account was fine. The request named a WABA the access token was never granted.

Start free →

Made with Hermoso

This error shows up on WhatsApp Business Management calls, such as creating a message template on a WhatsApp Business Account (WABA). It stops new integrations cold, because the wording points at the account rather than at the request.

The exact error

Meta answers with code 100, error_subcode 2388339 and the sentence "WhatsApp accounts cannot be used with this API". Meta's WhatsApp error code reference does not list subcode 2388339, so there is no official explanation to look up.

What it means

Read it as "this token cannot act on this WABA". It does not mean WhatsApp has rejected your business or that your account type is unsupported. Before you open a support ticket, check which WABA your token is actually allowed to touch.

Why it happens

We spent two days on this one. The integration used Embedded Signup, Meta's onboarding flow for WhatsApp. When the flow finishes, the browser receives a message with the new WABA ID and phone number ID, and the backend exchanges a code for a system user access token. We stored the WABA ID from that finish message.

The token was granted for a different WABA. Both accounts had the same display name and the same Meta test phone numbers, so nothing on screen told them apart. Every call against the stored ID returned 2388339. The identical template create succeeded at once on the WABA the token was really granted for.

The rule we took from it: the token's grant outranks the signup message. When the two disagree, the token is right.

How to fix it

  1. Inspect the token with GET /debug_token?input_token={token}.
  2. Read granular_scopes in the response. Find the entries for whatsapp_business_management and whatsapp_business_messaging and note their target_ids. Those are the WABAs this token can act on.
  3. If the WABA ID you called is not in target_ids, switch to the one that is. That is the fix in most cases.
  4. Subscribe your app to webhooks on the correct WABA with POST /{waba-id}/subscribed_apps, and register the phone number on it, if you did either against the wrong ID.
  5. If the ID you need is genuinely missing from the grant, run the signup again and select that account, or have its admin share it with your system user.

Meta test numbers are enough to exercise the API end to end. They send to a small list of verified recipients. You only need a real number for a production sender.

How Hermoso handles it

Hermoso connects WhatsApp through Embedded Signup and sends templates and replies from your own registered numbers (see WhatsApp on Hermoso). Since we hit this error, Hermoso reads debug_token every time it resolves your WhatsApp account and checks the stored WABA against the token's target_ids. An ID outside the grant is replaced with the granted one, so a mismatched signup message can no longer strand the connection.

A WhatsApp Business Account is a Meta asset you tick when you connect, like a Page or an ad account, and Hermoso enforces that choice on the server. Before a template send, Hermoso checks that the WABA you named owns the phone number you are sending from. If they disagree, the send is refused with both accounts named and nothing goes out. When Meta writes a user-facing sentence about "this account", Hermoso prints it, and the first thing worth checking is which account the token was granted for.

Related

Every platform error we have documented is on the error reference. For app reviews and access levels, see how to get API access.

Sources

Frequently asked questions

Does error 2388339 mean my WhatsApp Business Account is banned?

Not in the case we diagnosed. The account worked fine. The request named a WABA that the access token was never granted.

How do I see which WABAs my token can use?

Call debug_token on the token and read granular_scopes. The target_ids on the WhatsApp permissions list the WABAs it can act on.

Why would Embedded Signup give me the wrong WABA ID?

In our case the finish message named one WABA while the token was granted for another with the same name and test numbers. Trust the token grant over the message.

Do I need a real phone number to test this?

No. Meta test numbers exercise the API and send to a few verified recipients. A real number is only needed for a production sender.

Skip the error hunting: connect your accounts to Hermoso free, no card.

Start free →   See pricing