POST
/
public
/
v1
/
query
/
get_authenticators
Authorizations
Body
string
required
Unique identifier for a given organization.
string
required
Unique identifier for a given user.
Response
A successful response returns the following fields:array
required
A list of authenticators.
Show authenticators details
Show authenticators details
Types of transports that may be used by an Authenticator (e.g., USB, NFC, BLE).
credential field
Show credential details
Show credential details
The public component of a cryptographic key pair used to sign messages and transactions.
type fieldEnum options:
CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR, CREDENTIAL_TYPE_API_KEY_P256, CREDENTIAL_TYPE_RECOVER_USER_KEY_P256, CREDENTIAL_TYPE_API_KEY_SECP256K1, CREDENTIAL_TYPE_EMAIL_AUTH_KEY_P256, CREDENTIAL_TYPE_API_KEY_ED25519, CREDENTIAL_TYPE_OTP_AUTH_KEY_P256, CREDENTIAL_TYPE_READ_WRITE_SESSION_KEY_P256, CREDENTIAL_TYPE_OAUTH_KEY_P256, CREDENTIAL_TYPE_LOGINcurl --request POST \
--url https://api.turnkey.com/public/v1/query/get_authenticators \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <string> (see Authorizations)" \
--data '{
"organizationId": "<string>",
"userId": "<string>"
}'
import { Turnkey } from "@turnkey/sdk-server";
const turnkeyClient = new Turnkey({
apiBaseUrl: "https://api.turnkey.com",
apiPublicKey: process.env.API_PUBLIC_KEY!,
apiPrivateKey: process.env.API_PRIVATE_KEY!,
defaultOrganizationId: process.env.ORGANIZATION_ID!,
});
const response = await turnkeyClient.apiClient().getAuthenticators({
organizationId: "<string> (Unique identifier for a given organization.)",
userId: "<string> (Unique identifier for a given user.)"
});
{
"authenticators": [
{
"transports": [
"<AUTHENTICATOR_TRANSPORT_BLE>"
],
"attestationType": "<string>",
"aaguid": "<string>",
"credentialId": "<string>",
"model": "<string>",
"credential": {
"publicKey": "<string>",
"type": "<CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR>"
},
"authenticatorId": "<string>",
"authenticatorName": "<string>",
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
}
}
]
}