Cloud API local storage is a per-phone-number setting that keeps message data at rest in one of 14 countries. You turn it on with storage_configuration on the Settings API while the number is unregistered, then register the number again. It doesn’t keep every byte in the country. For up to 60 minutes after a message (90 on the Marketing Messages API), Meta can process its content in data centers elsewhere.
What local storage changes
Meta’s FAQ states that “Cloud API processes messages on servers in Meta data centers.” “If a business opts to use Cloud API Local Storage, message data is stored in data centers located in another designated country” (data privacy and security, accessed 2026-11-04). The page doesn’t name the country where data is stored by default. Meta pitches local storage at regulated industries “such as finance, government, or healthcare” (local storage, accessed 2026-11-04).
Data in use is the exception. “When using local storage for Cloud API, the data-in-use period is up to 60 minutes.” On the Marketing Messages API for WhatsApp it is up to 90 minutes. During that period, Meta may process message content in its data centers in other countries. “After the data-in-use period, message content is deleted from Meta data centers outside of the specified local storage region.” From then on it is “persisted only in data centers within the local storage region selected.”
Meta adds that “A limited set of metadata attributes is also stored with the message content”, protected “with tokenization and encryption”. Meta doesn’t list which attributes.
The general Cloud API retention rules still frame what is kept. “Cloud API messages at rest are encrypted”, and messages have “a maximum retention period of 30 days” to provide base features such as retransmissions. Meta’s contextual replies page (accessed 2026-11-04) adds that messages “are typically moved to long term storage after 30 days, unless you have enabled local storage”. Meta gives that move as one reason a reply’s quoted message shows as deleted or moved, as described in reply context and reactions. Meta doesn’t say what happens to that 30-day move on a local-storage number.
Supported countries
The country list sits on the registration page, not on the local storage page (registration, accessed 2026-11-04). The code is the value of data_localization_region, a “2-letter ISO 3166 country code”.
| Region | Country | Code |
|---|---|---|
| APAC | Australia | AU |
| APAC | Indonesia | ID |
| APAC | India | IN |
| APAC | Japan | JP |
| APAC | Singapore | SG |
| APAC | South Korea | KR |
| Europe | EU (Germany) | DE |
| Europe | Switzerland | CH |
| Europe | United Kingdom | GB |
| LATAM | Brazil | BR |
| MEA | Bahrain | BH |
| MEA | South Africa | ZA |
| MEA | United Arab Emirates | AE |
| NORAM | Canada | CA |
The United States and Mexico are not on the list. The EU option is one country, Germany.
Enable it on API v21.0 and newer
“Local storage can only be enabled or disabled on WhatsApp Business phone numbers when they are in an unregistered state.” A number already in use has to go offline briefly. Meta says “Downtime is typically less than five minutes and you don’t need to re-verify the business phone number.”
- If the number is registered, deregister it.
- Call the Settings API with
IN_COUNTRY_STORAGE_ENABLEDand the country code. - Register the number again with its two-step PIN, without
data_localization_region. - Read the settings back to confirm the region.
The calls below are Meta’s samples with the IDs and token replaced by placeholders. Meta’s settings and register samples have no -X POST; curl sends a POST because of -d.
curl -X POST 'https://graph.facebook.com/v26.0/PHONE_NUMBER_ID/deregister' \
-H 'Authorization: Bearer ACCESS_TOKEN'
curl 'https://graph.facebook.com/v26.0/PHONE_NUMBER_ID/settings' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ACCESS_TOKEN' \
-d '{
"storage_configuration": {
"status": "IN_COUNTRY_STORAGE_ENABLED",
"data_localization_region": "BR"
}
}'
curl 'https://graph.facebook.com/v26.0/PHONE_NUMBER_ID/register' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ACCESS_TOKEN' \
-d '{
"messaging_product": "whatsapp",
"pin": "TWO_STEP_PIN"
}'
The settings and register calls each return {"success": true}. The register step is the same call covered in phone number registration and the two-step PIN. A GET on settings confirms the result:
curl 'https://graph.facebook.com/v26.0/PHONE_NUMBER_ID/settings' \
-H 'Authorization: Bearer ACCESS_TOKEN'
{
"storage_configuration": {
"status": "IN_COUNTRY_STORAGE_ENABLED",
"data_localization_region": "BR"
}
}
The Settings API reference (accessed 2026-11-04) uses enabled and region in the request and lowercase status values in the GET response. This post follows the guide’s status and data_localization_region, which Meta’s samples send.
Change or disable it
Changing the country or disabling local storage also needs an unregistered number. “Deregistering does not turn off local storage”, so deregister, send the new setting, then register again. To disable, send "status": "IN_COUNTRY_STORAGE_DISABLED" with no region:
curl 'https://graph.facebook.com/v26.0/PHONE_NUMBER_ID/settings' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ACCESS_TOKEN' \
-d '{
"storage_configuration": {
"status": "IN_COUNTRY_STORAGE_DISABLED"
}
}'
On API v20.0 and older
Older versions pass the region in the register call itself. Meta’s path checks code_verification_status, requests and verifies a code, then registers with data_localization_region. To disable on these versions, deregister and register again without the parameter. The register call below is Meta’s sample with placeholders. Meta labels the section v20 and older, which conflicts with the v26.0 its samples call.
curl 'https://graph.facebook.com/v26.0/PHONE_NUMBER_ID/register' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ACCESS_TOKEN' \
-d '{
"messaging_product": "whatsapp",
"pin": "TWO_STEP_PIN",
"data_localization_region": "IN"
}'
What local storage doesn’t cover
The contact book is the clearest exception. When a user shares a contact card, “Meta extracts the user’s phone number from the shared contact card (vCard) and stores it in your contact book.” That contact book “is hosted on Meta data centers, regardless of your local storage configuration.” Only the phone number is kept, and the book is scoped to the business portfolio (business-scoped user IDs, accessed 2026-11-04).
The data stays “until you disable the feature, or deactivate your account”. You disable it in Meta Business Suite under Business settings, then Business info, which deletes what is stored. Meta documents the contact book on its business-scoped user ID page, the identifier covered in usernames and business-scoped user IDs.
Media uploads change behavior too. “Media files uploaded by a business phone number with local storage enabled are only accessible to that specific phone number.” A media ID from one number fails on another number in the same business, so upload per number, as in the media upload API. “Uploaded media are accessible for 30 days”.
The local storage page covers uploads only. It says nothing about downloading media your customers send, which is handled in media download URLs that expire. The page also doesn’t mention latency, pricing, webhooks, Coexistence numbers or Embedded Signup. Treat each of those as undocumented, and confirm with Meta before you promise a customer that a number running on the Business app keeps data in the region.
Z-API Omni team