GET /mfa/enrollments/{id} – Retrieves MFA Enrollment given the ID.
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 /mfa/enrollments/exampleMfaEnrollmentId Copy
GET /mfa/enrollments/exampleMfaEnrollmentId
GET /mfa/enrollments/exampleMfaEnrollmentId?userPoolId=us-east-1_1234test&provider=cognito-user Copy
GET /mfa/enrollments/exampleMfaEnrollmentId?userPoolId=us-east-1_1234test&provider=cognito-user
{ "id": "exampleMfaEnrollmentId", "requiredMfa": true} Copy
{ "id": "exampleMfaEnrollmentId", "requiredMfa": true}
The API Gateway event containing the request.
A Promise resolving to an API Gateway-compatible response.
GET /mfa/enrollments/{id} – Retrieves MFA Enrollment given the ID.
📥 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 a JSON-stringified MultiFactorEnrollment object.❗ Errors
400401404500Error Response Format
📦 Examples
📥 Auth0 Request
📥 Cognito Request
📤 Response Example