Biometric Authentication Integration

Integration Guides (API v2)

Use this guide when your workflow runs Biometric Authentication, to compare a client's live selfie against a previously verified identity.

Biometric Authentication is typically used for returning clients. A newly captured selfie is compared against an identity established during an earlier identity verification workflow.

This guide extends the Identity Verification API v2 integration.


Before you begin

Make sure you have:

Biometric Authentication results are reported under the IdentityVerification product. A workflow status of completed indicates that processing has finished, not that the biometric comparison succeeded. To determine the outcome, inspect the product status.

Returning clients

Biometric Authentication usually requires an existing Fourthline identity.

When the client previously completed Identity Verification with Fourthline, pass the existing clientId during workflow creation.

Important

If the client was not onboarded via Fourthline but you already have a verified selfie on file, you can upload it as a referenceSelfieImage. Fourthline will use this as the reference identity for the biometric comparison instead of a previously verified Fourthline case.

Note

Use partnerClientId only when your configuration supports creating or linking a client during the Biometric Authentication workflow.


1. Authenticate

Call Create access token and obtain a bearer token. Tokens are valid for 1 hour.


2. Create a workflow

Call Create workflow to create a Biometric Authentication workflow for an existing client.

In your request:

  • Set workflow to your configured Biometric Authentication workflow name.
  • Set clientId to the Fourthline client identifier from a previous successful Identity Verification.
  • Do not provide partnerClientId when using clientId.

For example:

Returning client

{
  "workflow": "BiometricsOnly",
  "clientId": "fourthline-client-uuid"
}

New or linked client

{
  "workflow": "BiometricsOnly",
  "partnerClientId": "your-partner-client-id"
}

Store the workflowId and clientId returned in the response. You need these identifiers for subsequent API requests.

If your integration uses a reference selfie instead of an existing Fourthline identity, confirm the supported configuration and required uploads with your Fourthline delivery manager.


3. Capture biometric data

Choose how to capture the client's biometric data.

Option A: Mobile SDK or Web SDK

If you use an SDK:

  1. Call Create SDK session with the workflowId and the appropriate target (Mobile or Web).
  2. Pass the returned validationCode to the SDK.
  3. Let the client complete biometric capture.

The SDK automatically starts the workflow when capture is complete. You don't need to call Start workflow.

API reference: Create SDK session

Biometric Authentication SDK flow


Option B: API-only integration

If you manage capture in your application:

  1. Capture the client's selfie.

  2. Upload the selfie using Upload client document with
    type: SelfieImage.

  3. Call Start workflow after uploading all required data.

Note

Do not call Start workflow until all required files and metadata have been uploaded.

The reference identity for comparison is determined by the clientId passed when creating the workflow — no additional upload is required for this.

Some configurations may require additional metadata or reference information.

Biometric Authentication API flow


4. Monitor workflow status

Monitor the workflow until it reaches a terminal state.

You can poll Get workflow status or receive webhooks.

If you use webhooks, call Get workflow status after receiving a notification to retrieve the latest workflow and product statuses.


5. Inspect the outcome

When the workflow reaches a terminal state, inspect the IdentityVerification product in the Get workflow status response.

Check:

  • products[].status for the product status.
  • products[].messages[].statusCode for additional information about the verification outcome.

A workflow status of completed means processing has finished. It does not necessarily mean the client was successfully onboarded.

Use the product status and associated status codes to determine the authentication outcome. See Product statuses.


6. Retrieve a report

Retrieve a report once the workflow completes.

Reports are available in JSON, ZIP, PDF, and XML formats. See Workflow reports.


Handle common errors

SymptomLikely causeWhat to do
HTTP 422 on Create workflowInvalid workflow name or client referenceVerify the workflow name and confirm the client reference
HTTP 400 on Start workflowRequired data is missing before capture is complete, for example IdentityVerification: selfie image requiredUpload the missing file, then call Start workflow again.
invalid_data product statusMissing or invalid metadataCorrect the data and create a new workflow if required
Selfie mismatch status (3105, etc.)The selfie does not match the reference identityCreate a new workflow and collect a fresh selfie. Biometric comparisons cannot be retried within the same workflow

Support

For questions about your workflow configuration or signing setup, contact your Fourthline delivery manager.