twin memory

Me

What an API key is - its organisation, project, and whether it writes - checked before naming any end user.

GET /v1/meAuth: any key

Says what the key in Authorization is. It names no end user, so a client can check a key before it has one: the n8n credential's Test and memory.me() in the Python SDK both call it. Makes no model call.

Headers

Authorizationstringrequired

Bearer tm_…. A read key or a key that writes. A claude.ai or ChatGPT sign-in is not a key, and gets a 401 here.

X-Request-Idstring

Your id for this request, echoed on the response.

Response

kindstring

key for an API key.

orgstring

The organisation the key belongs to.

projectstring

The project the key belongs to. Its end users are this project's.

key_idstring

The key's id, as the console lists it. Never the key itself.

writesboolean

Whether the key may add, forget and correct, or only read.

Errors

401unauthorized

No bearer, or one this service did not issue.

Request
curl https://api.twinmemory.dev/v1/me \
  -H "Authorization: Bearer $TWIN_MEMORY_API_KEY"
200 OK
{
  "kind": "key",
  "org": "o7k2m9qx4ab",
  "project": "production",
  "key_id": "key_3f9a1c2b7d4e",
  "writes": true
}