For AI agents: read the documentation index. Documentation pages are available as Markdown by appending .md to their URL, or requesting Accept: text/markdown.

Namera Docs

wallets.getPasskeyOwner

Read the public passkey owner descriptor.

namera.wallets.getPasskeyOwner() read the public passkey owner descriptor.

Usage

Install @namera-ai/sdk and set NAMERA_API_KEY on your backend. IDs and responses below are illustrative fixtures; replace IDs with your own resources.

index.ts
import { namera } from "./client";
const result = await namera.wallets.getPasskeyOwner("0199dfe1-0000-7000-8000-000000000004");
if (!result.success) throw new Error(result.error.message);

console.log(result.data);

Returns

API methods return a Promise<NameraResult<T, E>>. When success is true, data contains the value described below and error is null. On failure, data is null and error describes the failure.

The JSON example shows the complete successful data, with illustrative values. Date-time values use ISO strings in JSON; bigint values use decimal strings. See Handling Results and Errors for the error shape.

Returns walletId and owner. Managed accounts return owner: null. A passkey descriptor includes signing-key ID, uncompressed public key, credential ID, RP ID, and origin; it contains no signing capability.

{
  "walletId": "0199dfe1-0000-7000-8000-000000000004",
  "owner": {
    "signingKeyId": "0199dfe1-0000-7000-8000-000000000016",
    "publicKeyHex": "0x0411111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111",
    "credentialId": "dGVzdA",
    "rpId": "app.example.com",
    "origin": "https://app.example.com"
  }
}

Parameters

walletId

Type: string. Required. Account UUID, not its address. Obtain it from account creation or listing.

index.ts
import { namera } from "./client";
const result = await namera.wallets.getPasskeyOwner("0199dfe1-0000-7000-8000-000000000004"); 
if (!result.success) throw new Error(result.error.message);

console.log(result.data);

Behavior and errors

Requires wallet:read for workspace-wide API-key access. WALLET_NOT_FOUND means the account is missing or outside the workspace. Use the descriptor together with independently reviewed account and installation configuration when validating a passkey approval.