Tutorials

Graph API v21 Removed on 21 Jan 2027: Upgrade Your WhatsApp API

Meta removes Graph API v21.0 on 21 January 2027. How to find the version your WhatsApp integration is pinned to, upgrade it, test it, and avoid broken sends.

StartMessaging Team
Graph API v21 Removed on 21 Jan 2027: Upgrade Your WhatsApp API

Kabir maintains the order-notification service for a Hyderabad grocery app. It was written in a sprint in late 2024, it calls Meta’s WhatsApp Cloud API directly, and every request URL in it starts with https://graph.facebook.com/v21.0/. Nobody has touched it since, because it works. On the morning of 21 January 2027 it will stop working. The line in Meta’s changelog is short: Graph API v21 removed 2027-01-21, and a call to a removed version does not quietly fall forward to a newer one. Order confirmations, delivery updates and the “your rider is here” message all go through that one client.

The graph api v21 deprecation is not a WhatsApp policy change, it is a plain platform version retirement, which makes it easy to miss. It matters only if your code talks to Meta directly. If you send through a WhatsApp CRM and API such as StartMessaging, you call the provider’s endpoint and the provider deals with Meta’s versions. This guide is for teams in Kabir’s position: how to find which version you are pinned to, how to upgrade, how to test, and what else is moving in the same window.

What Meta Is Removing and When

Meta versions the Graph API, and the WhatsApp Cloud API lives on the Graph API. Each version is supported for a fixed period and then removed. Meta’s Graph API changelog lists the dates; the two that matter right now are below.

DateWhat happensStatus
24 Sep 2026Graph API v20.0 removedDone
21 Jan 2027Graph API v21.0 deprecated and removedConfirmed in Meta’s changelog
Jan 2027Facebook Platform SDK v21.0 deprecatedConfirmed in Meta’s changelog
31 Dec 2026Deadline to move from paid_messaging_account_id to messaging_account_idConfirmed, account-model docs
H1 2027Account-model phase 2: a new Graph API version requires messaging_account_id for multi-account setupsConfirmed, date range only

Removal means requests that name v21.0 in the path stop being served. Read Meta’s changelog for the exact error your integration will see rather than relying on a guess; what matters operationally is that the call fails, so the message is not sent.

Who is affected

You are affected if any of these is true:

  • Your backend builds request URLs with v21.0 (or an older version) hard-coded or held in a config value.
  • Your Meta app’s default API version is set to v21.0 and some calls omit the version, so they inherit it.
  • Your webhook subscription was created against v21.0 and delivers payloads in that version’s format.
  • A library or plugin you depend on pins v21.0 internally.

You are not affected by this change if you never call graph.facebook.com yourself. StartMessaging customers send with POST https://waba-api.startmessaging.com/api/v1/messages and a bearer token; the platform keeps its own Meta integration on supported versions. We do not publish dates for our internal upgrades, but the contract you code against is the documented API reference, and any change to it is announced there first.

How to Find the Version You Are Pinned To

Teams rarely know their Graph API version off the top of their heads. It is usually in three places, and all three need checking because they can disagree.

1. Request URLs in code and config

Search the codebase and every environment’s config for the version segment:

grep -rnE "graph\.facebook\.com/v[0-9]+\.[0-9]+" --include=*.{js,ts,py,php,go,java,rb,yml,yaml,json,env} .
grep -rnE "GRAPH_API_VERSION|META_API_VERSION|FB_API_VERSION" .

The first finds hard-coded URLs, the second finds the usual names for a version variable. Check infrastructure too: environment variables in your hosting dashboard, secrets managers and CI pipelines often hold the version separately from the code.

2. The app’s default version

In the Meta App Dashboard, the app settings show the API version the app defaults to. Calls that do not name a version in the path use that default. If it says v21.0, an unversioned call breaks on 21 January just like a hard-coded one.

3. The webhook subscription

Webhook payloads are delivered in the version the subscription was set up with. A subscription created two years ago may still be on an old version even after you upgrade outbound calls. Meta’s webhooks documentation explains where to see and change the subscription’s version for your app.

A quick live check confirms what a call actually resolves to. Meta returns the version it served in a response header:

curl -s -D - -o /dev/null \
  "https://graph.facebook.com/v21.0/YOUR_PHONE_NUMBER_ID?fields=display_phone_number" \
  -H "Authorization: Bearer $META_ACCESS_TOKEN" | grep -i "facebook-api-version"

The header shows the version that handled the request. Run the same call without a version in the path to see what your app default is.

The Upgrade Path

The upgrade itself is usually small. The risk is in the parts you did not know depended on the old version, which is why the order of operations matters.

Step 1: pick the target version

Choose the newest generally available version listed in the changelog, not the next one up from v21. Skipping versions is allowed, and jumping only one version ahead just moves the same deadline forward by a few months.

Step 2: read the changelog entries for WhatsApp

For each version between your current one and the target, read the WhatsApp Business Platform entries in Meta’s changelog. Most version bumps change nothing for the messages endpoint. Where something does change, it is usually a field renamed, a parameter made required, or an error code added. We are not going to list per-version changes here because Meta’s changelog is the authoritative record and it is updated after publication; check it rather than a blog post.

Two things in the 2026 to 2027 window are worth reading carefully because they are not just version bumps:

  • The account model. Meta has split WhatsApp Accounts and Messaging Accounts. The paid_messaging_account_id field must be replaced by messaging_account_id by 31 December 2026, and a Graph API version in the first half of 2027 will require messaging_account_id for businesses with several messaging accounts on one number. If your code touches billing or account endpoints, plan this change into the same release.
  • Marketing messages. From 13 April 2027 new Messaging accounts cannot send marketing templates on the Cloud API, and from 13 October 2027 no account can. That is an endpoint change, not a version change, covered in the Marketing Messages API developer guide.

Step 3: make the version a single config value

If the version is hard-coded in several places, fix that first. One environment variable, read by one HTTP client, used by every call:

# .env
META_GRAPH_VERSION=v24.0
# what every request should look like
curl -X POST "https://graph.facebook.com/${META_GRAPH_VERSION}/${PHONE_NUMBER_ID}/messages" \
  -H "Authorization: Bearer ${META_ACCESS_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
    "messaging_product": "whatsapp",
    "to": "919800000000",
    "type": "template",
    "template": { "name": "order_shipped", "language": { "code": "en" } }
  }'

The version string above is an example; use the one you chose in step 1. With the version in one place, the next retirement becomes a one-line change.

Step 4: update the app default and the webhook subscription

Change the app’s default version in the dashboard and update the webhook subscription version. Do the webhook last and on a staging app first, because payload shapes can differ between versions and your parser may depend on a field that moved.

A Test Plan That Catches the Quiet Failures

Kabir’s service sends five kinds of messages. A test plan that only sends one template proves very little. Cover each of these on staging with a test number, then again in production at low volume before switching all traffic.

TestWhat to checkWhy it fails quietly
Template send, each category you use200 response and a delivered status webhookA new required field rejects only some templates
Template with media headerMedia uploads and rendersMedia endpoints are versioned too
Interactive reply buttons and listsButton payloads arrive in webhooksPayload field names can change between versions
Free-form reply inside 24 hoursMessage deliveredUsually fine, still check
Status webhooks (sent, delivered, read, failed)Parser handles every statusWebhook version mismatch breaks parsing, not sending
Error pathA deliberate bad request returns an error your code logsError codes and shapes change between versions
Phone number and template read endpointsAdmin tools still workEasy to forget, often run by a cron job

Log the facebook-api-version response header for a week after the switch. If anything still reports v21.0, something in the stack is still pinned.

Roll out with a switch

Because the version is now a config value, you can roll forward with an environment change and roll back the same way. Switch one environment, watch delivery rates and webhook parse errors for a day, then switch the next. Do not do this in the last week of January. Kabir’s team scheduled theirs for the first week of December, well clear of year-end sales traffic.

What This Means If You Use a Provider

Most Indian businesses on WhatsApp do not call Meta directly. They use a provider’s dashboard and API. Whether this deadline is your problem depends on that relationship, and the Meta Tech Provider vs BSP guide explains the models.

  • You call the provider’s API. The provider calls Meta. Version upgrades are the provider’s job. Ask them, in writing, whether they are off v21.0 and on what date. A provider that cannot answer is a provider to watch.
  • You call Meta directly with a provider’s help. Some BSPs give you a Meta access token and let you call the Cloud API yourself. Then the version is yours to manage, exactly as above.
  • You run a plugin. Shopify, WooCommerce and CRM plugins that send WhatsApp messages often pin a version inside the plugin. Check the plugin’s changelog or ask the vendor.

On StartMessaging, your integration targets our versioned REST API, so a Meta version retirement does not require a code change on your side. Your WhatsApp Business Account, templates, quality rating and messaging tier stay where they are regardless of which Graph API version any platform uses; they belong to the account and the number.

The Rest of the 2027 Calendar

Graph API v21 is the first WhatsApp developer deadline of 2027, not the last. The full list, with what to do for each, is in the WhatsApp Business API in India 2027 hub. The short version for anyone maintaining a direct integration:

DateChangeAction
31 Dec 2026messaging_account_id replaces paid_messaging_account_idUpdate account and billing calls
31 Dec 2026India accounts must bill in INRMigrate billing
21 Jan 2027Graph API v21.0 removedThis guide
13 Apr 2027New accounts cannot send marketing on Cloud APIRoute marketing to the Marketing Messages API
H1 2027New version requires messaging_account_id for multi-account setupsSame release as the version upgrade if possible
13 Oct 2027Cloud API stops sending marketing messagesFinish the migration

If you are touching the client for the version upgrade anyway, folding the account-model change into the same release saves a second round of testing.

Frequently Asked Questions

Q: What happens to WhatsApp messages sent on Graph API v21 after 21 January 2027?

A: Requests that name v21.0 stop being served once Meta removes the version, so the message is not sent and your code receives an error. Meta does not automatically forward a removed version to a newer one, which is why an untouched integration fails on the day.

Q: How do I check which Graph API version my WhatsApp integration uses?

A: Search your code and config for graph.facebook.com/v, check the default API version in your Meta app settings, check the webhook subscription version, and inspect the facebook-api-version header on a live response. All four can differ, so check all of them.

Q: Do I need to change anything if I use StartMessaging’s WhatsApp API?

A: No. You call https://waba-api.startmessaging.com/api/v1 with a bearer token, and the platform maintains its own connection to Meta on supported versions. Any change to the API you code against is published in the API reference before it takes effect.

Q: Which Graph API version should I upgrade to?

A: The newest generally available version in Meta’s changelog. Moving only one version ahead brings the next removal date closer, and skipping intermediate versions is allowed as long as you read the WhatsApp changelog entries for each one you pass.


Kabir’s team moved the grocery app’s notification client to a single version variable in early December, upgraded it, switched the webhook subscription on staging first, and logged the version header for a week. On 21 January the order confirmations kept going out. If you would rather not track Meta’s version calendar at all, build on StartMessaging’s WhatsApp CRM and its documented REST API, connect your own WhatsApp Business Account, and let the platform handle Meta’s versions. Start a free trial or compare plans on the pricing page.

S

StartMessaging Team

StartMessaging Team

Related posts