Biometric Authentication Integration

Integrate Biometric Authentication in v2 for returning clients

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 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, pass the existing clientId during workflow creation.

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


Minimum viable integration

StepOperation
1create-access-token-v2
2create-workflow-v2
3Upload capture data
4create-sdk-session (SDK only)
5start-workflow
6get-workflow-status
7get-workflow-report

API-only flow

  1. Create workflow
  2. Upload required files
  3. Start workflow
  4. Monitor workflow status
  5. Retrieve reports

SDK flow

  1. Create workflow
  2. Create SDK session
  3. Complete capture in the SDK
  4. Start workflow
  5. Monitor workflow status
  6. Retrieve reports

Optional: replace polling with webhooks. After each webhook event, call Get workflow status to retrieve the latest workflow state.


1. Create workflow

Call Create workflow.

Returning client

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

New or linked client

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

Requirements

  • Set workflow to your workflow name
  • Provide either clientId or partnerClientId
  • Do not provide both
  • Store workflowId and clientId from the response

API reference: Create workflow


2. Choose how capture is provided

ApproachWhen to useWhat you implement
API-onlyYou control capture in your applicationUpload files directly through the API
Mobile SDKFourthline hosts capture on mobileCreate SDK session with target: Mobile
Web SDKFourthline hosts capture in the browserCreate SDK session with target: Web

See:


3. Required uploads (API-only)

Skip this section when capture is performed through the Mobile SDK or Web SDK.

Required uploads depend on your configuration.

The most common Biometric Authentication configuration requires:

UploadDocument typePurpose
Live selfieSelfieImageCompare the client against a previously verified identity
Existing identityExisting clientIdProvides the reference identity for comparison

Some configurations may require additional metadata or reference information.

Upload files using Upload client document.

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


4. SDK integration

After creating the workflow:

  1. Call Create SDK session
  2. Provide:
    • workflowId
    • target (Mobile or Web)
  3. Pass the returned validationCode from your backend to the SDK
  4. Let the client complete capture
  5. Start the workflow
  6. Monitor workflow status

API reference: Create SDK session

Biometric Authentication SDK flow


5. Monitor status

Use the same two-layer status model as Workflows integration.

LayerFieldValues
WorkflowworkflowStatusnew, pending, completed, failed, timed_out
Productproducts[].status where name is IdentityVerificationIdentity Verification product statuses

Webhooks

Webhook events contain details.status but do not contain workflowStatus.

After receiving a webhook:

  1. Call Get workflow status
  2. Retrieve the latest workflow state
  3. Check the Identity Verification product status

6. Retrieve reports

After the workflow reaches completed:

NeedEndpoint
JSON reportGet JSON report
ZIP reportGet ZIP report
PDF reportGet PDF report
XML reportGet XML report

Get workflow status returns products\[].status while the JSON report returns products\[].productStatus. Use the appropriate field for the endpoint you are calling. See Workflow reports.


API-only integration

After creating the workflow and uploading required files:

  1. Call Start workflow
  2. Expect HTTP 202 with an empty response body
  3. Poll Get workflow status
  4. Retrieve reports when processing completes

Biometric Authentication API flow

For authentication, workflow creation, and reporting concepts, see API v2 integration.


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 workflowMissing required uploads or workflow already startedCheck workflow status and upload any missing files
invalid_data product statusMissing or invalid metadataCorrect the data and create a new workflow if required
Selfie mismatch status (3105, etc.)Selfie does not match the reference identityCreate a new workflow and collect a fresh selfie. Biometric comparisons cannot be retried within the same workflow

For additional scenarios, see API v2 integration — Handle common errors.


Support

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