API Reference
Face Match

Create a journey

POST/face-match/journey
Base URL: https://okto.mimicr.dev · provider: https://demo-pix.oktopay.eu

Creates a facial recognition journey. Send the player to url; at the end they return to redirectUrl with journeyId and a FaceMatchJourney notification arrives at faceMatchUrl.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Body

application/json
taxIdstringrequired

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

Example: "604.184.437-34"
flowstringrequired

Journey flow (4443 otherwise).

onboarding_with_docsonboarding_with_docs_and_scorealready_validated_face
Example: "onboarding_with_docs"
redirectUrlstringrequired

Return URL, http(s).

Example: "https://sua-app.dev/face-match/fim"
validateFaceIfNotEnrolledboolean

Validate the face when the player has none registered (default true).

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"

Responses

201Journey created.
idstring

Journey id.

providerIdstring

Id at the provider.

statusstring

Status: processing until the selfie, then success, rejected (4203, 4202), failed (4303) or expired (1 hour).

processingsuccessrejectedfailedexpired
urlstring

Journey page.

createdstring<date-time>

Creation time.

Example: "2026-10-21T19:09:06.127Z"
externalIdstring

Your identifier.

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"