API Reference
Validate the enrollment challenge
/biometric/enrollments/{enrollmentId}/challenge/validatehttps://okto.mimicr.dev · provider: https://demo-pix.oktopay.euSends the credential created by the device. The enrollment becomes enrolled and a BiometricEnrollment notification is sent. CPFs rejected by KYC answer 4131; enrollments not in waiting answer 4127.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Path parameters
Enrollment id.
"5e32e193-4d02-4f86-aa16-f0920559df4f"Body
application/jsonWebAuthn credential returned by navigator.credentials.create() (enrollment) or navigator.credentials.get() (payment). In Mimicr, signatures are not verified cryptographically.
Show child attributes
Credential id (base64url). Must equal rawId (4123).
"H5iUFpBYHpzrUELsjPLbOPsb7oUVBDEP1GKTptFA-D3"Credential raw id (base64url).
"H5iUFpBYHpzrUELsjPLbOPsb7oUVBDEP1GKTptFA-D3"Credential type.
"public-key"Authenticator response. Enrollment requires attestationObject; payment requires authenticatorData and signature.
Show child attributes
Client data (base64url).
Attestation (enrollment only).
Authenticator data (payment only).
Assertion signature (payment only).
User handle (payment, optional).
Responses
201Enrollment active.
Enrollment id.
Status.
"enrolled"400Validation or business error. Okto also answers "not found" errors with 400 and an error list.
Errors of the request.
Show child attributes
Okto error code (see the error catalog).
2001Fixed message of the code.
"The tax id is invalid."What exactly went wrong.
"taxId must be a valid CPF"401Invalid access token (code 2000).
Errors of the request.
Show child attributes
Okto error code (see the error catalog).
2001Fixed message of the code.
"The tax id is invalid."What exactly went wrong.
"taxId must be a valid CPF"403Missing Authorization header (code 2000, "Full authentication is required to access this resource").
Errors of the request.
Show child attributes
Okto error code (see the error catalog).
2001Fixed message of the code.
"The tax id is invalid."What exactly went wrong.
"taxId must be a valid CPF"