API Reference
Create the enrollment challenge
/biometric/enrollments/{enrollmentId}/challenge/createhttps://okto.mimicr.dev · provider: https://demo-pix.oktopay.euReturns 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
Enrollment id.
"5e32e193-4d02-4f86-aa16-f0920559df4f"Body
application/jsonPlatform.
BROWSERANDROIDIOS"BROWSER"Responses
201Challenge.
Enrollment id.
Challenge (base64url).
Relying party.
Show child attributes
Relying party name.
Relying party id.
User.
Show child attributes
User id.
Name.
Display name.
Accepted algorithms.
Show child attributes
Type.
COSE algorithm.
Timeout in ms.
60000Attestation preference.
Credentials to exclude.
Authenticator requirements.
Extensions.
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"