# WhatsApp Flows Error "Specify Endpoint Uri in Flow JSON" - Simple Fix
Author: Prashant Jangid
Author URL: https://www.heltar.com/blogs/author/prashant-jangid
Published: 2025-03-03
Category: Troubleshoot
Category URL: https://www.heltar.com/blogs/category/troubleshoot
Tags: WhatsApp API Error
Tag URLs: WhatsApp API Error (https://www.heltar.com/blogs/tag/whatsapp-api-error)
URL: https://www.heltar.com/blogs/whatsapp-flows-error-specify-endpoint-uri-in-flow-json-simple-fix-cm7sz0e71000ycf4flg49qinx

When using the WhatsApp API to clone a Flow, you might encounter the error: Specify Endpoint Uri in Flow JSON.

You provided endpoint\_uri and clone\_flow\_id which corresponds to a Flow with Flow JSON version below 3.0.

This occurs when the endpoint\_uri parameter is included in a request for cloning a Flow that uses Flow JSON version below 3.0. The API requires using data\_channel\_uri instead of endpoint\_uri in such cases.

## Why Does This Error Occur?

WhatsApp API has different requirements for specifying the endpoint URI depending on the Flow JSON version:

1. **Flow JSON version 3.0 and above –** Use endpoint\_uri in the API request.

2. **Flow JSON version below 3.0 –** Use data\_channel\_uri inside the Flow JSON instead of endpoint\_uri.


If endpoint\_uri is specified while cloning a Flow that uses an older JSON version, the API rejects the request.

## **How to Fix It?**

To resolve this, update your request to comply with the correct JSON version requirements:

### 1\. If Using Flow JSON Version 3.0 and Above

Include endpoint\_uri normally:

```
{
  "clone_flow_id": "1234567890",
  "endpoint_uri": "https://example.com/api",
  "other_parameters": "value"
}
```

### 2\. If Using Flow JSON Version Below 3.0

Remove endpoint\_uri from the request and specify data\_channel\_uri in the Flow JSON:

```
{
  "clone_flow_id": "1234567890",
  "flow_json": {
    "data_channel_uri": "https://example.com/api"
  },
  "other_parameters": "value"
}
```

For more troubleshooting insights related to WhatsApp Business API, check out [heltar.com/blogs](http://heltar.com/blogs).


---
This blog is powered by Superblog. Visit https://superblog.ai to know more.
---

