OpenPhn docs
Referenceauth

Identity for the current API key or session token

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

Return the bound tenant + user + scope summary.

Used by the OpenPhn MCP server on startup to validate the OPENPHN_API_KEY env var (or per-connection bearer in hosted mode).

Accepts either an API key or a session JWT — both arrive on the same Authorization: Bearer header.

GET
/v1/auth/whoami

Response Body

application/json

curl -X GET "https://loading/v1/auth/whoami"
{
  "tenant_id": "string",
  "user_id": "string",
  "email": "string",
  "scopes": [
    "string"
  ],
  "number_ids": [
    "string"
  ]
}