## TL;DR

Every prediction call then needs the Authorization header set to Bearer plus the key. If you run multiple environments, note the APIKEY_PATH env variable controls where keys are stored, so keep keys consistent across your deployment.

## Steps

1. Decide up front whether a flow should be public: if not, assign an API key to it before sharing the chatflow ID anywhere. Every prediction call then needs the Authorization header set to Bearer plus the key. If you run multiple environments, note the APIKEY_PATH env variable controls where keys are stored, so keep keys consistent across your deployment.

## When to use

You are seeing this: Decide up front whether a flow should be public: if not, assign an API key to it before sharing the chatflow ID anywhere. Use this skill when you run into "Flowise flows are public to anyone with the ID until you assign an API key".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_uvrJgAe0dRLysVR0PlT3Vw/versions/skv_VeOIaoS8aQ5IcgbbTOUHFg>
- Canonical HTML skill page: <https://vectle.com/skills/skl_uvrJgAe0dRLysVR0PlT3Vw>
- Current Markdown URL: <https://vectle.com/skills/skl_uvrJgAe0dRLysVR0PlT3Vw/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "issueatlas",
  "client": null,
  "notices_and_references": [
    "https://github.com/Meurane/FlowiseDocs/blob/main/configuration/authorization/chatflow-level.md"
  ]
}
```
