API Reference
Biometric Pix

Validate the enrollment challenge

POST/biometric/enrollments/{enrollmentId}/challenge/validate
Base URL: https://okto.mimicr.dev · provider: https://demo-pix.oktopay.eu

Sends 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

enrollmentIdstringrequired

Enrollment id.

Example: "5e32e193-4d02-4f86-aa16-f0920559df4f"

Body

application/json
fidoAssertionobjectrequired

WebAuthn credential returned by navigator.credentials.create() (enrollment) or navigator.credentials.get() (payment). In Mimicr, signatures are not verified cryptographically.

Show child attributes
idstringrequired

Credential id (base64url). Must equal rawId (4123).

Example: "H5iUFpBYHpzrUELsjPLbOPsb7oUVBDEP1GKTptFA-D3"
rawIdstringrequired

Credential raw id (base64url).

Example: "H5iUFpBYHpzrUELsjPLbOPsb7oUVBDEP1GKTptFA-D3"
typestring

Credential type.

Example: "public-key"
responseobjectrequired

Authenticator response. Enrollment requires attestationObject; payment requires authenticatorData and signature.

Show child attributes
clientDataJSONstringrequired

Client data (base64url).

attestationObjectstring

Attestation (enrollment only).

authenticatorDatastring

Authenticator data (payment only).

signaturestring

Assertion signature (payment only).

userHandlestring

User handle (payment, optional).

Responses

201Enrollment active.
enrollmentIdstring

Enrollment id.

statusstring

Status.

Example: "enrolled"
400Validation or business error. Okto also answers "not found" errors with 400 and an error list.
errorsobject[]required

Errors of the request.

Show child attributes
codeintegerrequired

Okto error code (see the error catalog).

Example: 2001
messagestringrequired

Fixed message of the code.

Example: "The tax id is invalid."
detailedMessagestringrequired

What exactly went wrong.

Example: "taxId must be a valid CPF"
401Invalid access token (code 2000).
errorsobject[]required

Errors of the request.

Show child attributes
codeintegerrequired

Okto error code (see the error catalog).

Example: 2001
messagestringrequired

Fixed message of the code.

Example: "The tax id is invalid."
detailedMessagestringrequired

What exactly went wrong.

Example: "taxId must be a valid CPF"
403Missing Authorization header (code 2000, "Full authentication is required to access this resource").
errorsobject[]required

Errors of the request.

Show child attributes
codeintegerrequired

Okto error code (see the error catalog).

Example: 2001
messagestringrequired

Fixed message of the code.

Example: "The tax id is invalid."
detailedMessagestringrequired

What exactly went wrong.

Example: "taxId must be a valid CPF"