# WhatsApp Flows Error 139002 - Publishing without specifying endpoint_uri is forbidden | Troubleshooting Guide
Author: Prashant Jangid
Author URL: https://www.heltar.com/blogs/author/prashant-jangid
Published: 2025-03-05
Category: Troubleshoot
Category URL: https://www.heltar.com/blogs/category/troubleshoot
Tags: WhatsApp Flows Error
Tag URLs: WhatsApp Flows Error (https://www.heltar.com/blogs/tag/whatsapp-flows-error)
URL: https://www.heltar.com/blogs/whatsapp-flows-error-139002-publishing-without-specifying-endpointuri-is-forbidden-or-troubleshooting-guide-cm7vu7eyo001tj4rqyvnw67ba

When publishing a Flow, you may encounter the following error:

**Publishing without specifying endpoint\_uri is forbidden**

This error occurs when the endpoint\_uri property is missing from your Flow JSON. In Flow JSON version 3.0 and above, this field must be set via the API before publishing.

## How to Fix the Error?

### Step 1: Check Your Flow JSON Version

- If your Flow JSON version is below 3.0, use data\_channel\_uri instead of endpoint\_uri.

- If your Flow JSON version is 3.0 or above, ensure endpoint\_uri is set using the API.


### Step 2: Set endpoint\_uri via API

For Flow JSON version 3.0 and above, you need to set endpoint\_uri using an API request before publishing.

#### Sample API Request:

```
curl -X PATCH '{BASE-URL}/{FLOW-ID}' \
--header 'Authorization: Bearer {ACCESS-TOKEN}' \
--header 'Content-Type: application/json' \
--data '{ "endpoint_uri": "https://api.example.com/webhook" }'
```

### Step 3: Save and Publish the Flow

- After setting the endpoint\_uri, save the Flow.

- Validate the Flow using the Flow Builder UI or API.

- Once validation passes, proceed with publishing.


For more troubleshooting tips 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.
---

