API Reference
Create an enrollment
/biometric/enrollmentshttps://okto.mimicr.dev · provider: https://demo-pix.oktopay.euStarts an enrollment in waiting. Send the player to url, where they authorize the link in the bank; then create and validate the WebAuthn challenge to make it enrolled.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Body
application/jsonParticipant id (4412 unknown, 4133 in outage).
"07b7bd3a-fb8d-43a9-b17f-712356007bde"Player's CPF, with or without punctuation. Must be a valid CPF (2001 otherwise).
"604.184.437-34"Player name.
"Ana Ribeiro"Device data required on biometric calls. Missing fields answer 4124; Mimicr only checks that they are present.
Show child attributes
Device id.
"5439f937-165c-4213-ac50-b10ebe6cb9f9"Operating system version.
"16"Device language.
"pt"Screen size.
Show child attributes
Height in pixels.
"915"Width in pixels.
"412"Whether the device is rooted.
falseTime zone offset.
"-03:00"Screen brightness.
"150"Device uptime in ms.
"14338640"When the player's account was created.
"2022-02-22"Platform.
BROWSERANDROIDIOS"BROWSER"Your identifier, URL-safe ([A-Za-z0-9._~-], up to 100 chars). Okto generates a UUID when omitted.
"f8ccc69f-a236-4058-a9f7-d374ed1084f0"Free tags returned in responses and notifications (up to 5).
Responses
201Enrollment created.
Enrollment id.
Page where the player authorizes the enrollment in the bank.
Your identifier.
Free tags returned in responses and notifications (up to 5).
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"