On 17 November 2026 I sent one fake API key to six hosted memory APIs and wrote down what each of them answered. The vendors' documentation says which memory APIs take one key for REST and for the SDKs, so that part needed no probe. Of the nine hosted memory APIs whose documentation I read on 5 November, five document one key for the REST API, the Python SDK and the TypeScript SDK alike: Hindsight Cloud, Letta Cloud, Mem0 Platform, Supermemory and Zep. Cognee Cloud, LangSmith Deployment, Memori Cloud and Mnemoverse use one key across most of their surfaces.
Since one key for REST and the SDKs is this common, I would not choose a vendor by it. I would look at two other things: the header each API reads the key from, and the answer you get when the key is not in that header. The documentation shows the header. To see the answers I had to send requests. Three of the six APIs gave the same answer to all three ways of sending the key, and two of those three gave it even for a path that does not exist.
With an SDK you do not have to think about the header, because the SDK writes it. In a curl command or an MCP client configuration, somebody writes it by hand, and when such a call fails, the error from the API is the first thing you can look at.
As the key I used the string probe-not-a-real-key-0000000000. I sent it with curl, one request at a time, to an endpoint on each API that requires a key, in the header the vendor documents and in another common header, and I sent the same request with no key at all. As a control I also asked each host for a path that does not exist. I created no accounts and no keys, and none of the requests could change anything on the other side.
Cognee Cloud, LangSmith Deployment and Memori Cloud are missing from the test. Cognee gives each customer its own address, and the shared host I tried, api.aws.cognee.ai, answered 404 to every request, with the fake key and without it. LangSmith gives each deployment its own address. For Memori Cloud, the pages I read include no REST reference.
| API (documented header) | Fake key, documented header | Fake key, other header | No key | Made-up path |
|---|---|---|---|---|
Hindsight Cloud (Authorization: Bearer) |
401 "Authentication failed: Invalid API key format" |
X-Api-Key: 401 "Authentication failed: API key required" |
401 "Authentication failed: API key required" | 404 |
Letta Cloud (Authorization: Bearer) |
401 "Unauthorized" |
X-Api-Key: the same 401 |
the same 401 | the same 401 |
Mem0 Platform (Authorization: Token) |
401 "Invalid API key. You can find your API key on https://app.mem0.ai/dashboard/api-keys." |
Bearer: 401 "Given token not valid for any token type"; X-Api-Key: the same answer as no key |
401 "Invalid API key. You can find your API key on https://app.mem0.ai/dashboard/api-keys." | 404 |
Mnemoverse (X-Api-Key or Authorization: Bearer) |
401 "This value does not have the shape of a Mnemoverse API key (mk_live_ followed by 32 lower-case hex characters)" |
Token: 401 "Missing API key. Send X-Api-Key header." |
401 "Missing API key. Send X-Api-Key header." | 401, the key-shape message |
Supermemory (Authorization: Bearer) |
401 "Unauthorized", plus a note that the route is deprecated |
X-Api-Key: the same 401 |
the same 401 | 404 |
Zep (Authorization: Api-Key) |
401 "unauthorized" |
Bearer: the same 401 |
the same 401 | the same 401 |
The same 401 for everything
Zep and Letta gave the same 401 to a fake key in the documented header, to a key in a header they do not document, to no key, and to a path that does not exist. They check the key before they look at the path. As long as they reject your key, their 401 does not tell you whether the URL is right. Letta adds a longer sentence, "You are attempting to access a resource that you don't have permission to access", which reads like a diagnosis, but it was the same sentence in all four cases.
Supermemory gave one answer to the three ways of sending the key too, but it answered the made-up path with a 404 that points to its OpenAPI file. Even without a valid key, its 401 for the old list route carries a migration note: "POST /v3/documents/list is deprecated. Use POST /ns/{namespace}/list/documents." Someone following an older tutorial learns the new route from the error, without a search.
I know the argument for answering everything the same way: tell a caller you do not trust as little as possible. For these cases I do not think it holds. With a uniform 401, a wrong header, a missing key and a wrong path all look like a bad key, and a new key fixes none of them. A message saying that no key arrived, or that the key has the wrong form, would describe only the request, which the caller wrote. It would say nothing about any account or about which keys exist.
Answers that tell the cases apart
Hindsight Cloud answered the fake key in the documented header with "Authentication failed: Invalid API key format", and the same key in X-Api-Key, which it does not read, with "Authentication failed: API key required", exactly as if I had sent nothing. That difference is the one I would want from every API, because it tells me whether my key reached the server at all. For bearer tokens, RFC 6750 asks for the same split. A request with no credentials should get a challenge without an error code, and a rejected token gets error="invalid_token".
Mnemoverse keeps the two apart as well and names the shape it expects. A fake key in either documented header got "This value does not have the shape of a Mnemoverse API key (mk_live_ followed by 32 lower-case hex characters)". A missing key, or one sent as Token, got "Missing API key. Send X-Api-Key header."
Mem0 does half of it. A missing key and a wrong key get the same "Invalid API key", so Mem0 calls a key invalid even when it never received one. A key sent as Bearer gets a different error, "Given token not valid for any token type". If you see that one, you sent the scheme Mem0 documents for its MCP endpoint to its REST API.
Header schemes
Hindsight Cloud, Letta Cloud and Supermemory put the key after Bearer in the Authorization header, Mem0 after Token, Zep after Api-Key, and Mnemoverse either after Bearer or in a separate X-Api-Key header. Mem0 uses different schemes on its own surfaces. Its quickstart shows "Authorization: Token $MEM0_API_KEY", while its MCP page tells clients without a browser sign-in to "send your API key as a bearer token instead." Zep's project reference gives the exact form: "Type 'Api-Key' followed by a space and the project API key." Cognee Cloud, which is not in my table, documents two headers for API clients on its API keys page, X-Api-Key and X-Tenant-Id, and adds that agent plugins and MCP configs "never need the Tenant ID or User ID."
In cognee issue 5023, opened on 10 September 2026 and closed on 13 September, the problem was the scheme. Its author, borgo, wrote that a self-hosted Cognee server "accepts API keys created through POST /api/v1/auth/api-keys only through the X-Api-Key transport; the Bearer backend expects a JWT." With cognee-mcp 0.5.5, "every tool call fails with 401".
If your agent reaches memory over MCP, I would read the vendor's MCP page and not only its REST page, because the hosted MCP endpoint is where one key most often stops being enough. Cognee's cloud MCP page reads "The hosted server does not accept API keys." Letta's hosted MCP page asks for the opposite: "Create an API key in the Letta web app and send it as a bearer token".
Before the key goes into a config
My rule for debugging is to go and look before I guess. For an API key, looking means four requests, and I would rather send them before the key goes into a proxy, a CI secret or an MCP configuration than after the first 401. Three go to the same endpoint: one with no key, one with a made-up key in the header your vendor documents, and one with the same made-up key in a header it does not document. The fourth goes to a made-up path.
URL=https://api.vendor.example/v1/some-endpoint
FAKE=not-a-real-key
DOC="Authorization: Bearer $FAKE" # the header your vendor documents
OTHER="X-Api-Key: $FAKE" # a header it does not document
curl -s -w ' %{http_code}\n' "$URL"
curl -s -w ' %{http_code}\n' "$URL" -H "$DOC"
curl -s -w ' %{http_code}\n' "$URL" -H "$OTHER"
curl -s -w ' %{http_code}\n' "${URL%/*}/made-up-path" -H "$DOC"
For Mem0, DOC would be Authorization: Token $FAKE, and for Zep Authorization: Api-Key $FAKE. The key has to be fake, because a real one would succeed and tell you nothing about the errors you will see once something breaks. My probe sent the same four kinds of request to each of the six APIs, with that API's own endpoint, method and headers.
If the second answer differs from the first, the API tells a missing key from a wrong one, and when your real key fails later, its error can show whether the key arrived at all. If they are the same, as they were at four of the six, a 401 will not tell you that, so test the real configuration with a request that only a working key can pass. The third answer shows what a client that sends the wrong scheme will see. At Hindsight Cloud that was the no-key message, and at Mem0, for Bearer, a message of its own. The fourth shows which check comes first. A 404 there means the API looks at the path before the key, and a 401 means that while the key is not accepted, a wrong URL looks exactly like a wrong key.
The requests went out on 17 November 2026 from one machine, and the error texts above are copied from the answers of that day. On 19 November I repeated the no-key and documented-header requests, and the answers had not changed. I read the documentation of all nine APIs on 5 November, and RFC 6750 on 19 November, the same day I read the quoted pages and the GitHub issue again. Two of those pages had changed in between, so for them I quote the 19 November wording. Pages and error texts change, and the ones here are as they were on those days.
I work on Mnemoverse; its row in the table comes from the same fake key, sent the same three ways, as the other five.

Top comments (0)