List webauthn credentials

Returns the passkeys and security keys registered to one person, newest first — which device each lives on and when it was registered.

GET /v1/iam/webauthn-credentials

Addresshttps://api.hanzo.ai/v1/iam/webauthn-credentials
MethodGET
OperationlistWebauthnCredentials
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the passkeys and security keys registered to one person, newest first — which device each lives on and when it was registered.

Yours by default. Name somebody else and you get them only if you already administer their account, which is the same authority that governs reading their user record — so this list can never show more people than the surface beside it already does.

There is no organization-wide list, by design. Scoping to the ORG would hand an org admin every member's credential rows in one answer and a SuperAdmin every tenant's, while a plain member could not read even their own (an unnamed target fails the Guard's tenant rule). One scope answers both halves cleanly: the answer is a person's, and the caller is that person unless they say otherwise and may.

Request

1 field.

FieldInTypeRequiredDescription
userquerystring—

Response

StatusBodyMeaning
200iam.listWebauthnCredentialsOutok
202Approvalheld for approval
defaultproblem-detailsrefused

200 body — 22 fields.

FieldInTypeAlwaysDescription
webauthnCredentialsbodyiam.WebauthnCredential[]—
webauthnCredentials[].aaguidbodystring—
webauthnCredentials[].attachmentbodystring—
webauthnCredentials[].attestationFormatbodystring—AttestationFormat is the statement format the authenticator attested in ("packed", "apple", "none", …), which is a DIFFERENT value from the attestation type above.
webauthnCredentials[].attestationTypebodystring—
webauthnCredentials[].backupEligiblebodyboolean—
webauthnCredentials[].backupStatebodyboolean—
webauthnCredentials[].cloneWarningbodyboolean—
webauthnCredentials[].createdAtbodystring (date-time)—
webauthnCredentials[].createdTimebodystring—
webauthnCredentials[].credentialIdbodystring—
webauthnCredentials[].deletedbodyboolean—
webauthnCredentials[].idbodystring—
webauthnCredentials[].namebodystring—
webauthnCredentials[].ownerbodystring—
webauthnCredentials[].publicKeybodystring—
webauthnCredentials[].signCountbodyinteger (uint32)—
webauthnCredentials[].transportbodystring[]—
webauthnCredentials[].updatedAtbodystring (date-time)—
webauthnCredentials[].userbodystring—
webauthnCredentials[].userPresentbodyboolean—
webauthnCredentials[].userVerifiedbodyboolean—

Failure carries the platform error shape — see Errors.

Examples

hanzo iam webauthn-credentials list
import { Configuration, IamApi } from 'hanzoai';

const api = new IamApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.listWebauthnCredentials();
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import IamApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = IamApi(client).list_webauthn_credentials()
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.IamAPI.ListWebauthnCredentials(context.Background()).Execute()
if err != nil {
	return err
}
use hanzo_client::apis::{configuration::Configuration, iam_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = iam_api::list_webauthn_credentials(&cfg, Default::default()).await?;
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.IamApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new IamApi(client).listWebauthnCredentials();
curl https://api.hanzo.ai/v1/iam/webauthn-credentials \
  -H "Authorization: Bearer $HANZO_API_KEY"

MCP reaches iam through the iam tool, which names its 44 operations with its own verbs — this one among them, under a name only MCP declares. describe explains any of them:

curl -X POST https://api.hanzo.ai/v1/mcp \
  -H "Content-Type: application/json" \
  -d '{
       "jsonrpc": "2.0",
       "id": 1,
       "method": "tools/call",
       "params": {
         "name": "describe",
         "arguments": {
           "op": "list_iam_applications"
         }
       }
     }'

IAM API · All Hanzo APIs · Interactive reference

Was this page useful?