Skip to main content

Create profiles using the API

This developer guide takes you through the steps to create a profile using the Passfort API 4.0.

About profile fields in the API

Profiles correspond to the applicants and customers who are applying for your products.

There are two profile types:

  • Individual profiles: Used for prospects and customers who are people.

  • Company profiles: Used for prospects and customers who are companies.

The profile’s type affects what data can be stored in it, which tasks it can have, and which checks can be run on it. But all profiles, regardless of type, go through the same product application processes for onboarding and monitoring.

There are three main fields for a profile when it’s first created:

  • role: This required field indicates whether the profile type is an individual or a company.

    If you're creating a company associate, the role field indicates it's a company associate.

  • collected_data: This required field is an object that contains most of the information about the individual or company. For example, for individual profiles, it can contain the individual’s name, address history, and more. On company profiles, it can contain the company’s name, company number, country of incorporation, and more.

  • applications: This optional field is an array of objects used to assign product applications to the profile. Each product application corresponds to one object in the array.

To learn how to add a product application after you create the profile, using a separate call, see Add a product application to a profile using the API.

Send the request

Make a request to the following endpoint.

Request endpoint:

POST https://api.passfort.com/4.0/profiles

When you make the request, you need to pass these parameters:

  • role: The profile’s type. For individual profiles, the value is INDIVIDUAL_CUSTOMER. For company profiles, the value is COMPANY_CUSTOMER.

  • collected_data: An object that contains basic profile information, such as the individual’s name.

You may also want to pass one or more product applications in the applications array so the profile applies for those products. If you don’t pass any product applications in the array, the profile automatically applies for any products on your account that have the auto_apply attribute.

All the required and optional fields you can pass are listed in the Create a profile API reference.

If you’re passing a product application in the request, use the product’s alias, rather than the product ID, where possible to identify the product for the product application.

Passfort does not have any character limitations for profile data unless otherwise specified in the API reference. However, your data provider may specify their own limitations for the data when it's used to run checks. Contact your data provider to find out more.

To use the portal to see if a product has the auto_apply attribute, go to Policy Builder > Products and select the product. If the New profiles will automatically apply for this product checkbox is selected, the product has the auto_apply attribute.

Reading the response

When the profile is created, there are some important parts that are added to the profile automatically, which you can see in the response:

  • tasks: An object containing a list of due diligence tasks that need to be completed for the profile’s product applications to be approved.

  • checks: An object containing a history of any checks that have been run on the profile to assist in completing tasks.

The smart policy for each product application determines which tasks are added to the profile and which checks are run automatically.

However, when you first create a profile, tasks and checks will likely be empty. This can happen for a number of reasons. For example, the product application’s risk level may still be calculating, or the smart policy may require more profile data to continue.

If the profile has any product applications, the applications.flag field contains the product application’s current state.

To get a notification when a check is completed, listen to the Check completed webhook. After you’ve created a profile, you can sync the profile data with your system data.

Additional information