Providing Data for Support Requests

Learn how to provide the Recommended Data in Your Team's Support Requests.


Recommended Data

To investigate the behavior or results of a Specific Session, FaceTec either needs to be provided with the Relevant Demo Sessions or the Exported FaceTec Data (and any 2D Images used for Matching).

While screenshots and videos are highly encouraged, they are unable to provide FaceTec with the Actual Data that is needed to fully examine and reproduce the behavior that was observed.

Performing Demo Sessions is quicker and more efficient, but Exported FaceTec Data (and any 2D Images used for Matching) are sufficient when Demo Sessions cannot be performed.

Recommended Methods for Different Scenarios
ScenarioRecommended MethodNotes
Your Team can reproduce the behavior on a Device.Demo SessionsDemo Sessions take <5 minutes to perform. This is the preferred method for providing data to FaceTec.
Your Team cannot reproduce the behavior, but a 3rd Party* can reproduce the behavior.Demo SessionsDemo Sessions take <5 minutes to perform. This is the preferred method for providing data to FaceTec.
Your Team cannot reproduce the behavior, and Your Team is unable to contact the User that can reproduce the behavior.Exported FaceTec Data & 2D ImagesThis method is less convenient, but it still provides FaceTec with the data needed to investigate reported behaviors.

* A Note about 3rd Parties: 3rd Parties include members on Your Team, employees at Your Company, employees of Your Customers & Partners, and Users of Your Application. FaceTec understands that working with 3rd Parties may require the use of additional procedures and resources, but this is generally the best way to gather the Recommended Data for Support Requests.


Performing Demo Sessions

The FaceTec Demo Apps (Android, iOS, and Browser) are routinely updated to use the latest version of the FaceTec SDKs. FaceTec only needs the Email and IP Address used for Your Team's Demo Sessions to examine the results.

For more details, please see Providing FaceTec Demo Sessions.


Providing Exported FaceTec Data & 2D Images

Your 3D FaceScans, 3D FaceMaps, and ID Scans are encrypted using Your Team's Keys. Since FaceTec does not have access to Your Team's Encryption Keys, Your FaceTec Data needs to be exported properly before FaceTec can analyze it.

There are five steps for Providing Exported FaceTec Data & 2D Images:

  1. Saving Your FaceTec Data
  2. Retrieving Your FaceTec Data
  3. Exporting Your FaceTec Data & 2D Images
  4. Organizing Your Exported FaceTec Data & 2D Images
  5. Sending Your Exported FaceTec Data & 2D Images

Step 1: Saving Your FaceTec Data

The FaceTec SDKs can be integrated into many different systems and architectures with varying degrees of customization. Your Team has 100% control over how the data from the FaceTec SDKs is stored and retrieved in Your Team's Database. This includes how the externalDatabaseRefID is set and used within the FaceTec SDKs.

Important Note: The externalDatabaseRefID is set by Your Team and not the FaceTec SDKs. The externalDatabaseRefID is only set in the Sample Apps for demonstrative purposes. In Your Team's Production System, setting and retrieving the externalDatabaseRefID should be done in Server-Side Code, not Your Team's Device-Side Code.
Creating an API Request Logging & Storage System

There are several options for storing the Raw API Requests sent to Your FaceTec Server, including the usage of Third-Party Logging, Network Management Tools, and Custom Code.

Regardless of Your Database Implementation, FaceTec recommends creating an API Request Logging & Storage System so that you have access to the raw data from all of Your Team's API requests. This recommendation pertains both to FaceTec Requests & Responses, but also to any of Your Team's Requests & Responses that are related to Your Onboarding, KYC, 3D Liveness, 3D:3D Matching, 3D:2D Matching, and Re-Verification Systems. Here are some reference tools for API Request Logging & Storage:

Saving Your Original Session Requests (via the FaceTec Server)

The FaceTec Server can also be configured to save the Original Session Request as a part of FaceTec's Session History Data. However, this setting can increase the speed at which Your Database grows. Your Team should only enable this functionality when Your Team needs to provide data for a Support Request.

Your Team can enable the "Saving Original Session Requests" Functionality by setting saveOriginalSessionRequests to true in the FaceTec Server Webservice's config.yaml file.

Saving Your 3D FaceMaps & Session History Data

MongoDB and PostgreSQL:

FaceTec Server's Default Implementation already saves the 3D FaceMaps and Session History Data (without the Original Session Request) to Your Team's Database.

Other Database Integrations:

For other Database Integrations, Your Team should examine the FaceTec Server's Default Implementation for MongoDB and PostgreSQL to determine how 3D FaceMaps and Session History Data should be stored in Your Chosen Database Technology.

Important Note: The Session History Data (SessionHistoryData) is a required data object to achieve correct behavior in v10.

Step 2: Retrieving Your FaceTec Data

As mentioned in Step 1, Your Team has 100% control over how the data from the FaceTec SDKs is stored and retrieved in Your Team's Database. FaceTec is not able to access or retrieve this data on Your Team's Behalf. Your Team will need to use the necessary queries and procedures for retrieving the FaceTec Data that is to be included in Your Team's Support Request.

The steps for retrieving 3D FaceMaps and Session History Data are dependent on Your Team's Integration and Chosen Database Technology.

For Integrations using one of FaceTec Server's Default Implementations, Your Team can use the steps provided in the MongoDB or PostgreSQL Example Videos.

Retrieving 3D FaceMaps & Session History Data from MongoDB

The video below shows how to retrieve a 3D FaceMap and the Session History Data stored in MongoDB.

  1. Find the 3D FaceMap with its externalDatabaseRefID:
    db.getCollection("Session").find(
      externalDatabaseRefID: "<INSERT_REF_ID>", 
      {externalDatabaseRefID: 1, "data.faceMap": 1, launchId: 1})
  2. Find the Session History Data with the Launch ID that was returned in Step 1:
    db.getCollection("SessionHistoryData").find(
      launchId: "<INSERT_LAUNCH_ID>",
      {sessionHistoryData: 1, launchId: 1})
  3. On success, the first query will return the 3D FaceMap and the second query will return the Session History Data.
Retrieving 3D FaceMaps & Session History Data from PostgreSQL

The video below shows how to retrieve a 3D FaceMap and the Session History Data stored in PostgreSQL.

  1. Find the 3D FaceMap with its externalDatabaseRefID:
    SELECT "externalDatabaseRefID", "launchId", data->>'faceMap'
      FROM "Session" 
      WHERE "externalDatabaseRefID" = "<INSERT_REF_ID>";
  2. Find the Session History Data with the Launch ID that was returned in Step 1:
    SELECT "launchId", "sessionHistoryData" 
      FROM "SessionHistoryData" 
      WHERE "launchId" = '<INSERT_LAUNCH_ID>';
  3. On success, the first query will return the 3D FaceMap and the second query will return the Session History Data.
Retrieving Anonymous Non-PII Data

The /get-anonymous-non-pii-data API can be used to retrieve Anonymous Non-PII Data from a specific 3D FaceScan, 3D FaceMap, 3D Liveness/Enrollment Session Request, or 3D:3D Re-Verification Session Request. This Anonymous Non-PII Data is the same type of data that is returned in Your Team's Usage Logs.

Important Note: The /get-anonymous-non-pii-data API cannot be used with ID Scan Session Requests and 3D:2D Photo ID Matching Session Requests.

This data is anonymous and does not contain Biometric Data, Image Data, Age/Gender/Ethnicity Data, or any Other PII. While it cannot be used to examine the Original Session, this Anonymous Non-PII Data still provides important details about the end results, such as whether 3D Liveness was Proven, a Match was Found, or all FaceTec Security Checks passed successfully.

For more information about the data returned, please see Usage Log Contents.

Below is an example of how to use the /get-anonymous-non-pii-data API with Postman.


Step 3: Exporting Your FaceTec Data

Your 3D FaceScans, 3D FaceMaps, and ID Scans are encrypted using Your Team's Keys. Since FaceTec does not have access to Your Team's Encryption Keys, Your FaceTec Data needs to be exported properly before FaceTec can examine it.

Important Note: The Anonymous Non-PII Data that is retrieved with the /get-anonymous-non-pii-data API does not need to be exported. For this type of data, Your Team can skip Step 3 and proceed directly to Step 4.

For Integrations using MongoDB or PostgreSQL, Your Team can use the steps provided in the Example Videos.

Video Walkthrough (MongoDB)

This video assumes that the FaceTec Data was originally stored in MongoDB.

  1. Copy the FaceTec Test Suite into Postman.
    • For 3D FaceMaps, use FaceTec Test Suite - (Export).
    • For Session History Data, use FaceTec Test Suite - (Export Session History).
  2. In the "Collections" tab, open the Postman Request.
  3. Replace FACETEC_SERVER_BASE_URL with the Server's IP Address and Port Number.
  4. Retrieve the 3D FaceMap or Session History Data using the steps in Retrieving Your FaceTec Data.
  5. Copy the Retrieved 3D FaceMap or Session History Data into the Postman Request's Body.
  6. Press "Send" to export the 3D FaceMap or Session History Data.
  7. Save the Exported FaceTec Data to a .txt file. The Exported FaceTec Data is the value for exportedFaceTecDataForDebugBase64.
Video Walkthrough (PostgreSQL)

This video assumes that the FaceTec Data was originally stored in PostgreSQL.

  1. Copy the FaceTec Test Suite into Postman.
    • For 3D FaceMaps, use FaceTec Test Suite - (Export).
    • For Session History Data, use FaceTec Test Suite - (Export Session History).
  2. In the "Collections" tab, open the Postman Request.
  3. Replace FACETEC_SERVER_BASE_URL with the Server's IP Address and Port Number.
  4. Retrieve the 3D FaceMap or Session History Data using the steps in Retrieving Your FaceTec Data.
  5. Copy the Retrieved 3D FaceMap or Session History Data into the Postman Request's Body.
  6. Press "Send" to export the 3D FaceMap or Session History Data.
  7. Save the Exported FaceTec Data to a .txt file. The Exported FaceTec Data is the value for exportedFaceTecDataForDebugBase64.
Exporting 2D Images

When preparing to export Your Images, please do not convert or modify them, as this could potentially alter or hide the behavior being investigated.


Step 4: Organizing the Exported FaceTec Data & 2D Images

The Exported FaceTec Data and 2D Images needs to be organized in a manner that allows FaceTec to easily identify them. This is especially true if the investigation pertains to Multiple Users, as FaceTec will need to determine which 3D FaceScans, 3D FaceMaps, ID Scans, and 2D Images are associated with each Specific User.

Organizing Data for a 3D Liveness Investigation

  1. Create a new folder and name it process-request-liveness.
  2. In process-request-liveness, create a new folder for each Unique User (user1, user2, user3, ...).
  3. In each User's Directory, create a new folder for the Exported Session Request Blobs or Session History Data (scans).
  4. In each User's scans directory, add all of the User's Scans (i.e. Exported Session Request Blobs or Session History Data) that were exported in Step 3: Exporting Your FaceTec Data & 2D Images.
  5. Create a zip file of the process-request-liveness directory.
Organizing Data for a 3D:3D Re-Verification Investigation

  1. Create a new folder and name it process-request-3d-3d.
  2. In process-request-3d-3d, create a new folder for each Unique User (user1, user2, user3, ...).
  3. In each User's Directory, create a new folder for the Exported 3D FaceMaps (facemaps) and the Exported Session Request Blobs or Session History Data (scans).
  4. In each User's facemaps directory, add all of the User's Enrolled 3D FaceMaps that were exported in Step 3: Exporting Your FaceTec Data & 2D Images.
  5. In each User's scans directory, add all of the User's Scans (i.e. Exported Session Request Blobs or Session History Data) that were exported in Step 3: Exporting Your FaceTec Data & 2D Images.
  6. Create a zip file of the process-request-3d-3d directory.
Organizing Data for a 3D:2D Photo ID Matching Investigation

  1. Create a new folder and name it process-request-3d-2d.
  2. In process-request-3d-2d, create a new folder for each Unique User (user1, user2, user3, ...).
  3. In each User's Directory, create a new folder for the Exported 3D FaceMaps (facemaps) and the Exported Session Request Blobs or Session History Data (scans).
  4. In each User's facemaps directory, add all of the User's Enrolled 3D FaceMaps that were exported in Step 3: Exporting Your FaceTec Data & 2D Images.
  5. In each User's scans directory, add all of the User's Scans (i.e. Exported Session Request Blobs or Session History Data) that were exported in Step 3: Exporting Your FaceTec Data & 2D Images.
  6. Create a zip file of the process-request-3d-2d directory.
Organizing Data for an ID Scan Only Investigation

  1. Create a new folder and name it process-request-idscan.
  2. In process-request-idscan, create a new folder for each Unique User (user1, user2, user3, ...).
  3. In each User's Directory, create a new folder for the Exported Session Request Blobs or Session History Data (scans).
  4. In each User's scans directory, add all of the User's Scans (i.e. Exported Session Request Blobs or Session History Data) that were exported in Step 3: Exporting Your FaceTec Data & 2D Images.
  5. Create a zip file of the process-request-idscan directory.
Organizing Data for a 3D:2D Matching with 3rd Party IDs/Photos Investigation

  1. Create a new folder and name it match the 3D:2D Matching API that is being used (i.e. match-3d-2d-3rdparty-idphoto, match-3d-2d-face-portrait, match-3d-2d-profile-pic, ...).
  2. In the 3D:2D Matching API Folder, create a new folder for each Unique User (user1, user2, user3, ...).
  3. In each User's Directory, create a new folder for the Exported 3D FaceMaps (facemaps) and Exported 2D Images (images).
  4. In each User's facemaps directory, add all of the User's Enrolled 3D FaceMaps that were exported in Step 3: Exporting Your FaceTec Data & 2D Images.
  5. In each User's images directory, add all of the User's 2D Images that were exported in Step 3: Exporting Your FaceTec Data & 2D Images.
  6. Create a zip file of the 3D:2D Matching API Folder (i.e. match-3d-2d-3rdparty-idphoto, match-3d-2d-face-portrait, match-3d-2d-profile-pic, ...).
Organizing Data for an Anonymous Non-PII Data Investigation

  1. Create a new folder and name it non-pii-data.
  2. In non-pii-data, create a new folder for each Unique User (user1, user2, user3, ...).
  3. In each User's Directory, create a new folder for the Non-PII Session Data (scans).
  4. In each User's scans directory, add the Non-PII Data retrieved from each scan in Step 2: Retrieving Your FaceTec Data.
  5. Create a zip file of the non-pii-data directory.

Step 5: Sending Your Exported FaceTec Data & 2D Images

Once the Exported FaceTec Data and 2D Images have been properly organized, Your Team can attach the resulting .zip file to Your Team's Support Request.