API Reference
Biometric Pix

Create the enrollment challenge

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

Returns the WebAuthn PublicKeyCredentialCreationOptions to call navigator.credentials.create(). Only after the player authorized the enrollment in the bank (4126 before).

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
platformTypestringrequired

Platform.

BROWSERANDROIDIOS
Example: "BROWSER"

Responses

201Challenge.
enrollmentIdstring

Enrollment id.

challengestring

Challenge (base64url).

rpobject

Relying party.

Show child attributes
namestring

Relying party name.

idstring

Relying party id.

userobject

User.

Show child attributes
idstring

User id.

namestring

Name.

displayNamestring

Display name.

pubKeyCredParamsobject[]

Accepted algorithms.

Show child attributes
typestring

Type.

alginteger

COSE algorithm.

timeoutinteger

Timeout in ms.

Example: 60000
attestationstring

Attestation preference.

excludeCredentialsobject[]

Credentials to exclude.

authenticatorSelectionobject

Authenticator requirements.

extensionsobject

Extensions.

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"