curl --request GET \
--url https://api.mnemom.ai/v1/api-keys/whoami \
--header 'X-Mnemom-Api-Key: <api-key>'import requests
url = "https://api.mnemom.ai/v1/api-keys/whoami"
headers = {"X-Mnemom-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Mnemom-Api-Key': '<api-key>'}};
fetch('https://api.mnemom.ai/v1/api-keys/whoami', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mnemom.ai/v1/api-keys/whoami",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Mnemom-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.mnemom.ai/v1/api-keys/whoami"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Mnemom-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.mnemom.ai/v1/api-keys/whoami")
.header("X-Mnemom-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mnemom.ai/v1/api-keys/whoami")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Mnemom-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"user_id": "<string>",
"auth_method": "cookie",
"email": "<string>",
"key_id": "<string>",
"account_id": "<string>",
"org_id": "<string>",
"scopes": [
"<string>"
],
"is_admin": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}Inspect the calling API key (caller introspection)
Returns the resolved API key’s identity: its scopes (capabilities), bound user/agent/org, and last-used metadata.
curl --request GET \
--url https://api.mnemom.ai/v1/api-keys/whoami \
--header 'X-Mnemom-Api-Key: <api-key>'import requests
url = "https://api.mnemom.ai/v1/api-keys/whoami"
headers = {"X-Mnemom-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Mnemom-Api-Key': '<api-key>'}};
fetch('https://api.mnemom.ai/v1/api-keys/whoami', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mnemom.ai/v1/api-keys/whoami",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Mnemom-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.mnemom.ai/v1/api-keys/whoami"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Mnemom-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.mnemom.ai/v1/api-keys/whoami")
.header("X-Mnemom-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mnemom.ai/v1/api-keys/whoami")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Mnemom-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"user_id": "<string>",
"auth_method": "cookie",
"email": "<string>",
"key_id": "<string>",
"account_id": "<string>",
"org_id": "<string>",
"scopes": [
"<string>"
],
"is_admin": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}Authorizations
Mnemom API key (mnm_... format)
Response
Caller identity.
Caller introspection — the principal authenticated for this request. Returned by GET /v1/api-keys/whoami. The handler is generalized across cookie, jwt, and api_key auth methods, so the API-key-specific fields (key_id, account_id, scopes) are null on cookie/JWT principals.
Authenticated principal identifier (Supabase user UUID for cookie/JWT auth; api-key-bound user UUID for api_key auth).
cookie, jwt, api_key API key id (e.g. mnk_...), or null for cookie/JWT auth.
Billing account id, or null for cookie/JWT auth.
Capability scopes (ADR-049) for api-key auth; null for cookie/JWT. e.g., ['gateway.send', 'gateway.observe'].