# \#error-401

**URL:** https://community.pinecone.io/tag/error-401/72.md

[Latest](https://community.pinecone.io/latest.md) · [Categories](https://community.pinecone.io/categories.md) · [Tags](https://community.pinecone.io/tags.md)

---

## [Getting \[ERROR\] UnauthorizedException: (401)](https://community.pinecone.io/t/getting-error-unauthorizedexception-401/7793)

<div class="topic-metadata">

**Author:** [@tony](https://community.pinecone.io/u/tony)\
**Replies:** 4\
**Last updated:** [July 25, 2025, 5:51pm UTC](https://community.pinecone.io/t/getting-error-unauthorizedexception-401/7793 "2025-07-25T17:51:50Z")

</div>

I’ve been using Pinecone with no errors up until yesterday, when in the lambda logs in AWS showed the following message: \[ERROR\] UnauthorizedException: (401) Reason: Unauthorized HTTP response headers: HTTPHeaderDict({…

---

## [Invalid API Key (401) when connecting to index](https://community.pinecone.io/t/invalid-api-key-401-when-connecting-to-index/5310)

<div class="topic-metadata">

**Author:** [@david3](https://community.pinecone.io/u/david3)\
**Replies:** 3\
**Last updated:** [June 18, 2025, 1:00am UTC](https://community.pinecone.io/t/invalid-api-key-401-when-connecting-to-index/5310 "2025-06-18T01:00:14Z")

</div>

I am attempting to connect to an existing index in Pinecone. The connection appears to work when storing the documents like so: from langchain\_community.vectorstores import Pinecone as LangchainPinecone index\_name = os.…

---

## [Is API Key authentication working for free accounts?](https://community.pinecone.io/t/is-api-key-authentication-working-for-free-accounts/8002)

<div class="topic-metadata">

**Author:** [@jeffaduncan](https://community.pinecone.io/u/jeffaduncan)\
**Replies:** 2\
**Last updated:** [May 16, 2025, 6:35pm UTC](https://community.pinecone.io/t/is-api-key-authentication-working-for-free-accounts/8002 "2025-05-16T18:35:35Z")

</div>

I am using the following demo code. bash: curl https://api.pinecone.io/indexes -H “Content-Type: application/json” -H “Api-Key: $PINECONE\_API\_KEY” -H “X-Pinecone-API-Version: 2025-01” and got Invalid API Key I …

---

## [Getting 401 Unauthorized errors after migrating to serverless from gcp-starter](https://community.pinecone.io/t/getting-401-unauthorized-errors-after-migrating-to-serverless-from-gcp-starter/7797)

<div class="topic-metadata">

**Author:** [@vikgup](https://community.pinecone.io/u/vikgup)\
**Replies:** 1\
**Last updated:** [April 7, 2025, 4:46am UTC](https://community.pinecone.io/t/getting-401-unauthorized-errors-after-migrating-to-serverless-from-gcp-starter/7797 "2025-04-07T04:46:07Z")

</div>

We recently migrated from gcp-starter to serverless. Now I am seeing the following error: HTTP response headers: HTTPHeaderDict({‘x-pinecone-auth-rejected-reason’: ‘Malformed domain’, ‘www-authenticate’: ‘Malformed doma…

---

## [API KEY Error while retrieving index](https://community.pinecone.io/t/api-key-error-while-retrieving-index/6803)

<div class="topic-metadata">

**Author:** [@Nouman-Usman](https://community.pinecone.io/u/Nouman-Usman)\
**Replies:** 1\
**Last updated:** [November 15, 2024, 7:17pm UTC](https://community.pinecone.io/t/api-key-error-while-retrieving-index/6803 "2024-11-15T19:17:43Z")

</div>

pinecone.core.openapi.shared.exceptions.UnauthorizedException: (401) I keep getting this error even though I’ve double-checked my API numerous times.

---

## [HTTP response body: Invalid API Key](https://community.pinecone.io/t/http-response-body-invalid-api-key/6791)

<div class="topic-metadata">

**Author:** [@vamshiprince2301](https://community.pinecone.io/u/vamshiprince2301)\
**Replies:** 0\
**Last updated:** [October 17, 2024, 8:57am UTC](https://community.pinecone.io/t/http-response-body-invalid-api-key/6791 "2024-10-17T08:57:48Z")

</div>

please me to fix UnauthorizedException: (401) Reason: Unauthorized HTTP response headers: HTTPHeaderDict({‘x-pinecone-api-version’: ‘2024-04’, ‘X-Cloud-Trace-Context’: ‘692f0a5cac05d4b5dc15d612dad5b0b7’, ‘Date’: ‘Thu,…

---

## [Invaild api key while key was used successfully in same .py earlier in script](https://community.pinecone.io/t/invaild-api-key-while-key-was-used-successfully-in-same-py-earlier-in-script/6654)

<div class="topic-metadata">

**Author:** [@george.blueocean](https://community.pinecone.io/u/george.blueocean)\
**Replies:** 1\
**Last updated:** [September 23, 2024, 5:16pm UTC](https://community.pinecone.io/t/invaild-api-key-while-key-was-used-successfully-in-same-py-earlier-in-script/6654 "2024-09-23T17:16:09Z")

</div>

I used pinecone to upsert and index. It was created successfully. When i imported langchain\_pinecone PineconeVectorStore and called: vector\_store = PineconeVectorStore.from\_existing\_index(index\_name=index, embedding=em…

---

## [Assistant doesn't work with valid API Key](https://community.pinecone.io/t/assistant-doesnt-work-with-valid-api-key/6006)

<div class="topic-metadata">

**Author:** [@kevin1](https://community.pinecone.io/u/kevin1)\
**Replies:** 2\
**Last updated:** [June 28, 2024, 2:28pm UTC](https://community.pinecone.io/t/assistant-doesnt-work-with-valid-api-key/6006 "2024-06-28T14:28:39Z")

</div>

I’m in the beta for assistants and wanted to start by following your tutorial but they key is not accepted - even a new one isn’t UnauthorizedException: (401) Reason: Unauthorized HTTP response headers: HTTPHeaderDict({…

---

## [Error updating Pinecone: (401) - 'www-authenticate': 'Malformed domain' after migration](https://community.pinecone.io/t/error-updating-pinecone-401-www-authenticate-malformed-domain-after-migration/5664)

<div class="topic-metadata">

**Author:** [@fazetamir](https://community.pinecone.io/u/fazetamir)\
**Replies:** 2\
**Last updated:** [May 21, 2024, 8:07pm UTC](https://community.pinecone.io/t/error-updating-pinecone-401-www-authenticate-malformed-domain-after-migration/5664 "2024-05-21T20:07:30Z")

</div>

Hi, I’ve migrated from gcp-starter to aws serverless. and after the migration i can no longer connect to my index. In my account page the database keeps loading forever, and i can’t do any commands from the python mod…

---

## [401 Unauthorized Error / HTTP Response](https://community.pinecone.io/t/401-unauthorized-error-http-response/5334)

<div class="topic-metadata">

**Author:** [@ben.ferenc.burian](https://community.pinecone.io/u/ben.ferenc.burian)\
**Replies:** 1\
**Last updated:** [April 29, 2024, 1:27pm UTC](https://community.pinecone.io/t/401-unauthorized-error-http-response/5334 "2024-04-29T13:27:37Z")

</div>

Hi, I’m encountering a 401 Unauthorized error while trying to retrieve data from an API. The error indicates an ‘Unauthorized’ status, even though I’ve checked my API key and confirmed it should have the right permissio…

---

## [401 Unauthorized exception calling the API](https://community.pinecone.io/t/401-unauthorized-exception-calling-the-api/5096)

<div class="topic-metadata">

**Author:** [@it1](https://community.pinecone.io/u/it1)\
**Replies:** 12\
**Last updated:** [April 11, 2024, 6:49pm UTC](https://community.pinecone.io/t/401-unauthorized-exception-calling-the-api/5096 "2024-04-11T18:49:12Z")

</div>

All our requests to Pinecone started failing today with a 401 Unauthorized exception. The stacktrace is unhelpful: Failed to retrieve response: PineconeAuthorizationError: The API key you provided was rejected while cal…
