---
title: "Error shown when connecting number \"For API Version 21 and above, please first call settings endpoint\""
description: "Tutorial to fix the error “For API Version 21 and above, please first call settings endpoint” when registering a number in the WhatsApp Cloud API."
url: https://help.datacrazy.io/en/articles/10670779-error-shown-when-connecting-number-for-api-version-21-and-above-please-first-call-settings-endpoint
collection: "Erros - Cloud API e Cloud API Coexistência"
updated: 2026-11-18
language: en
alternates: [pt-br, es]
---

# Error shown when connecting number "For API Version 21 and above, please first call settings endpoint"

Tutorial to fix the error “For API Version 21 and above, please first call settings endpoint” when registering a number in the WhatsApp Cloud API.

## Error when registering number

Message displayed: **"For API Version 21 and above, please first call settings endpoint"**

**Image #1** – Example of the error

![](https://staticfiles.gleap.io/gattachments/Aglk6kzxZCL2RU1ZndULFyzSYHF1QshDHEqVeCPsx7ZmXwDwnuox3Zaz5tBR07BcJZQzpd0dPfv.png)

This error happens on newer versions of the WhatsApp Cloud API (v21+), when the mandatory settings endpoint hasn’t been called yet for the number before registration (/register).

* * *

## What we need to get first

You’ll need 3 pieces of information:

-   PhoneNumberID
    
-   Connection token
    
-   Country code (ISO 3166-1 alpha-2)
    

* * *

## How to get the PhoneNumberID and the Token

They can be captured by the browser:

1.  Open the panel where the connection issue is happening
    
2.  Press **F12**
    
3.  Go to the **Network** tab
    
4.  Repeat the **Manage connection** action
    
5.  Find the request
    
6.  Inside it you’ll find:
    
    -   PhoneNumberID
        
    -   Access Token
        

On Mac:

-   Right click → Inspect
    

* * *

## Country code

The code needs to follow the **ISO 3166-1 alpha-2** standard

Example:

-   Brazil = **BR**
    

For other countries, check the list: [https://en.wikipedia.org/wiki/ISO\_3166-1\_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)

(Use the value from the "**Code**" column)

**Image #2** – Screenshot of the ISO list

![](https://staticfiles.gleap.io/gattachments/HxVwRQ88VxHKopacpOQz8Wb47meipzTOq0aXViwVH2caTPcUj55e5zmKACJEccSlqsEjZY3RYpJ.png)

* * *

## How to fix it using ReqBin

Go to: [https://reqbin.com](https://reqbin.com)

Use method **POST** with the URL:

https://graph.facebook.com/v24.0/\_phoneNumberID\_/settings?access\_token=\_token\_

Replace:

-   \_phoneNumberID\_ → with the phoneNumberID of your connection, taken from F12
    
-   \_token\_ → with the token taken from F12 (or by creating an app, check out our tracking tutorial that teaches this)
    

* * *

## JSON to send

{ "storage\_configuration": { "status": "IN\_COUNTRY\_STORAGE\_ENABLED", "data\_localization\_region": "**CodigoDoPais\_Em\_ISO\_3166\_1\_alpha\_2\_code**" } }

**Image #3** – Insert PhoneNumberID, Token and country code (e.g.: BR)

![](https://staticfiles.gleap.io/gattachments/olFd31nRhzgnpCALPqHo14qkLCISRRBxJJYWw6TVP9GiuZK3DFsC0UBfg6rHjlVHwAPS1O4T6yA.png)

* * *

## Expected result

After clicking on **SEND** in ReqBin:

If it appears in green: **200 (OK)**

This means that:

-   The configuration was applied correctly
    
-   The number can now be connected again
    

Now just repeat the connection process in the CRM.

* * *

## If there’s an error

If it returns another error:

-   Check if the PhoneNumberID is correct
    
-   Confirm if the Token is correct
    
-   Review the country code in ISO format
    

If needed:

-   **Search for the returned error**
    
-   Or **send the full context of what you're trying to do + the error you got to chatGPT**. It's important to say what you want to do, show how you did it and the error you got.  
    We also have the community to help and you can, as a last resort, open a ticket with support if needed as well.
