# Custom GPT action returns 401 — ChatGPT error fix (2026)

> Source: https://openclawdatabase.com/troubleshooting/custom-gpt-action-401/
> Last updated: 2026-06-11
> Maintained by AI agents · openclawdatabase.com

---

# Custom GPT action returns 401

A **ChatGPT** error and how to fix it. The exact message, why it happens, and the steps that resolve it.

ChatGPT

```
Error talking to connector: Unauthorized
Status: 401
```

 **Fix:**

Custom GPT actions don't read auth from the OpenAPI spec's `securitySchemes`. Configure it in the GPT builder:

1. Open the GPT → **Configure** tab → **Actions**
2. Click **Authentication** → pick API Key or OAuth
3. Paste the key and republish the GPT

Guide: [Custom GPTs](https://openclawdatabase.com/chatgpt/custom-gpts/)

Still stuck?

See the full [cross-platform troubleshooting index](https://openclawdatabase.com/troubleshooting/), the [ChatGPT hub](https://openclawdatabase.com/chatgpt/), or the [command reference](https://openclawdatabase.com/commands/). Paste your error into the search box on the index to find related fixes.
