API Reference
Biometric Pix

Create an enrollment

POST/biometric/enrollments
Base URL: https://okto.mimicr.dev · provider: https://demo-pix.oktopay.eu

Starts 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/json
participantIdstringrequired

Participant id (4412 unknown, 4133 in outage).

Example: "07b7bd3a-fb8d-43a9-b17f-712356007bde"
taxIdstringrequired

Player's CPF, with or without punctuation. Must be a valid CPF (2001 otherwise).

Example: "604.184.437-34"
namestringrequired

Player name.

Example: "Ana Ribeiro"
riskSignalsobjectrequired

Device data required on biometric calls. Missing fields answer 4124; Mimicr only checks that they are present.

Show child attributes
deviceIdstringrequired

Device id.

Example: "5439f937-165c-4213-ac50-b10ebe6cb9f9"
osVersionstringrequired

Operating system version.

Example: "16"
deviceLanguagestringrequired

Device language.

Example: "pt"
screenDimensionsobjectrequired

Screen size.

Show child attributes
heightstring

Height in pixels.

Example: "915"
widthstring

Width in pixels.

Example: "412"
isRootedDevicebooleanrequired

Whether the device is rooted.

Example: false
userTimeZoneOffsetstringrequired

Time zone offset.

Example: "-03:00"
screenBrightnessLevelstringrequired

Screen brightness.

Example: "150"
uptimeMillisstringrequired

Device uptime in ms.

Example: "14338640"
accountCreatedAtstringrequired

When the player's account was created.

Example: "2022-02-22"
platformTypestringrequired

Platform.

BROWSERANDROIDIOS
Example: "BROWSER"
externalIdstring

Your identifier, URL-safe ([A-Za-z0-9._~-], up to 100 chars). Okto generates a UUID when omitted.

Example: "f8ccc69f-a236-4058-a9f7-d374ed1084f0"
tagsstring[]

Free tags returned in responses and notifications (up to 5).

Responses

201Enrollment created.
idstring

Enrollment id.

urlstring

Page where the player authorizes the enrollment in the bank.

externalIdstring

Your identifier.

tagsstring[]

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.
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"