GET /users/{userId}/authentication-methods – Retrieves all authentication methods for a user.
Headers:
Authorization: Bearer <access_token>
Content-Type: application/json or application/x-www-form-urlencoded
Body:
Path Parameters:
Query Parameters:
200 OK
400
401
404
500
{ "error": "Detailed error message here"} Copy
{ "error": "Detailed error message here"}
GET /users/exampleUserId/authentication-methods Copy
GET /users/exampleUserId/authentication-methods
{ authenticators: { "id": "authenticator_id", "type": "authenticator_type", "confirmed": boolean, "name": "authenticator_name", "authenticationMethods": { "id": "method_id", "type": "method_type", }[], "preferredAuthenticationMethod": string, "linkId": string, "phoneNumber": string, "email": string, "keyId": string, "publicKey": string, "createdAt": string, "enrolledAt": string, "lastAuthAt": string, "credentialDeviceType": string, "credentialBackedUp": boolean, "identityUserId": string, "userAgent": string, }[], } Copy
{ authenticators: { "id": "authenticator_id", "type": "authenticator_type", "confirmed": boolean, "name": "authenticator_name", "authenticationMethods": { "id": "method_id", "type": "method_type", }[], "preferredAuthenticationMethod": string, "linkId": string, "phoneNumber": string, "email": string, "keyId": string, "publicKey": string, "createdAt": string, "enrolledAt": string, "lastAuthAt": string, "credentialDeviceType": string, "credentialBackedUp": boolean, "identityUserId": string, "userAgent": string, }[], }
GET /users/exampleUserId/authentication-methods?userPoolId=us-east-1_1234test&provider=cognito-user Copy
GET /users/exampleUserId/authentication-methods?userPoolId=us-east-1_1234test&provider=cognito-user
{ "authenticators": { "preferredAuthenticationMethod": string | null, "authenticationMethods": {@link AuthMethod[]}, "availableMethods": { "softwareToken": boolean, "SMS": boolean, }, } Copy
{ "authenticators": { "preferredAuthenticationMethod": string | null, "authenticationMethods": {@link AuthMethod[]}, "availableMethods": { "softwareToken": boolean, "SMS": boolean, }, }
The API Gateway event containing the request.
A Promise resolving to an API Gateway-compatible response.
GET /users/{userId}/authentication-methods – Retrieves all authentication methods for a user.
📥 Request
Headers:
Authorization: Bearer <access_token>(required)Content-Type: application/json or application/x-www-form-urlencoded(required)Body:
Path Parameters:
Query Parameters:
📤 Response
200 OK– Returns the user's authentication methods (see examples for provider-specific responses).❗ Errors
400401404500Error Response Format
📦 Examples
📥 Auth0 Request
📤 Auth0 Response Example
📥 Cognito Request
📤 Cognito Response Example