How to register a user's facial biometrics via Postman

Check out the walkthrough for enrolling a person and their facial image into a Biometric API using Postman.

Cameras and motion/security sensors are increasingly common in our daily lives, present in mobile devices, for example. The simplicity of access has expanded the possibilities of using biometrics applications that often require only these devices as a form of authentication and process monitoring. 

Behind this convenience is the presence of software that adopts biometrics as a verification method. 

Choosing which software to use is a recurring challenge for developers. After all, which platform should I trust with data as sensitive as collected biometrics? Where should you start implementing? How can you test it?

Understand now in this tutorial! 

1. Get access to the biometrics platform

To get started, create an account with the Biometrics API to receive an access key.

BioPass ID allows you to sign up without a payment method, and you can choose the free plan. This benefit makes it possible to test all the biometric identification features offered. 

In this tutorial, we have chosen the Multibiometrics package as an example:

Once the registration is complete, check that the status is active in the "Subscriptions" tab.

2. Create the project

For better organization, create multiple projects with the same signature. Each one allows you to create multiple applications with a single access key each. This way you can track the usage of each project and application independently, as well as better access control.

So let's get to it! 

With the subscription status active, create a project to access the biometrics API. 

Click "New project" and fill in the required fields. Here's how:

After creating the project, create an Application, which will be responsible for providing the API access key. In the "Applications" tab of the side menu, click "New Application", fill in the fields and choose the project that was created in the previous step. The new application will appear on the screen as shown below:

After that, just click the button with the key icon to view and copy the API access key. All set to go!

Apply with Postman

With the access key we move on to setting up the request in Postman, a platform for building and using APIs. 

To start the registration, the first step is to send the facial image of an individual. All the details for this request are in this tutorial, but having the API documentation handy is indispensable. 

The following steps were done on the version of Postman installed on the machine, but you can use the browser version.

3. Authorize the request

In the authorization header, select the type for the "API key". Then fill in the "Key" and "Value" fields respectively with Ocp-Apim-Subscription-Key and the value of the "API key" acquired from the previous step. Also select the "Header" option in the "Add to" field.

For this transaction, use the "POST" method and the url https://api.biopassid.com/multibiometrics/enroll, as described in the documentation. See below the result of these settings:

4. Set the parameters

The information in the body of the request is passed in JSON format (acronym for JavaScript Object Notation), a data formatting standard widely used in the exchange of information between systems because it is lightweight and easy for humans and machines to understand. 

Now, the body of the operation has a structure of Person type that represents an individual and his/her biometrics, where the CustomID variable is included. 

This variable is nothing more than a set of characters known as a string, used to identify an individual. It is important to know that the CustomID must necessarily be unique. For this, it is recommended to use the Social Security Number of the user to be registered. 

Finally, a collection of character sets, the variable Face, that is, an array of strings, stores the user's facial images. See an example of the structure in the image below:

If you send more than one capture, assign Face-1, Face-2, and so on.

To make it easier, have the following operation code available:

5. Convert the image to base64

To embed an image in a JSON-formatted text file, you need to convert it to base64. 

Base64 is an encoding algorithm that transforms different file types and characters of any language into a Latin alphabet, digits and signs. With this we can convert images into a sequence of computer-readable characters that can be saved and/or transferred anywhere. 

It is often used to transmit binary data through transmissions that deal only with text, such as requests in APIs.

There are several websites that perform this encoding quickly and efficiently. For the step-by-step, the converter from this link will be used: https://base64.guru/converter/encode/file. Once you are on the page, simply:

  • Choose the face image file.
  • Click on the button "Encode file to Base64".
  • And copy the content.

6. Request Response

It is always important to evaluate the response code of an API call, because it is through this code that we know if the operation occurred or not as expected.

In case of error, the response status will return a three-digit numeric code starting with the numbers 4 or 5. An example of failure for this type of request is the return of the message "Invalid JSON Format". 

The error occurs when the base64 of any of the Face or Fingers fields is empty, with punctuation errors, over or under characters. The following image demonstrates this situation:

Other types of errors and their causes can be found in the BioPass ID documentation. 

Now, if all the variables in the request body are correctly filled in and there is no error in the configuration of the call and in the syntax of the sent JSON (the request body), you get as response the status "200 OK" and the Person object with three fields: 

  • CustomerID
  • CustomID.
  • BioPassID.

Take a look at the image below to better understand what a successful operation should look like. It shows the content of the request and the response.

With the steps completed and a successful request, you have an individual's facial biometrics record stored and can later verify their identity based on this initial record. 

Get to know and test all the resources that the Biometric API package offers.

Translation: Thalita Ferreira

Don't miss out on our updates!

Subscribe to BioPass ID's newsletter and stay up-to-date with the world of biometrics and technology.

Thanks! We received your message!
Oops! Algo deu errado no envio do formulário.
Tente novamente em instantes.

Latest

Artificial Intelligence in Schools: Benefits for Educational Management

The use of artificial intelligence in schools improves the administrative processes and optimizes the financial management of schools. Learn more about the use of technology in teaching.

Features
Financial fraud: how multi-factor authentication can help solve the problem

Multi-factor authentication is the trend emerging to combat the rise in financial fraud. Find out how to use and apply the technology.

Business
Health 4.0: what it is, its benefits and challenges

Health 4.0 is data-driven and focused on personalizing patient care. This article explores the benefits and challenges of this approach.

Business
Contactless technology: learn about the innovation and its benefits

Contactless technology is growing at more than 180% annually, with strong adoption among the Brazilian public. Learn more about contactless payments.

Trend
Types of healthcare fraud: how biometrics can prevent them

Discover the most common healthcare frauds and how biometrics can help prevent these threats.

Privacy and Security
3 technology trends for the healthcare market

Technology helps improve both human and institutional health. Find out more about the emerging trends in the healthcare market.

Business
How to prevent fraud in public tenders with biometrics?

Fraud in public tenders can be prevented using biometrics, which brings more security and reliability to competitions. Find out more!

Business
How can BioPass ID APIs optimize healthcare services?

The use of APIs in healthcare simplifies processes and improves the quality of medical care. Learn more!

Business
How biometrics strengthens security in brazilian schools

The biggest benefit of using biometrics in schools is increased security. But there are many other benefits. Find out more here.

Business
Discover how BioPass ID prevents financial fraud

Fraudsters create new financial scams every day. Discover how BioPass ID protects companies and customer data from malicious actions.

Features
Telemedicine in Brazil: 5 advantages of using biometrics

The security and confidentiality of telemedicine in Brazil are concerns that are eliminated with the use of biometrics. Read more in the article.

Business
APIs for the financial market: how can they help your company?

APIs bring agility and savings to banks and fintechs. Discover other benefits that can also help financial institutions.

Features
3 APIs for the BioPass ID to streamline the education process

Biometric APIs can increase the security of educational institutions and improve operational efficiency and the student experience. Find out more.

Features
How to identify and prevent bank fraud

Learn how to identify bank fraud and how biometrics can help secure your information.

Business
Technology in Finance: trends and challenges

Artificial intelligence, open finance, and advanced biometrics promise to transform the financial marketplace. Learn more to stay ahead.

Business
5 security trends in education

Schools are facing complex security challenges and are trusting in technological innovation to solve these problems. Discover the top 5 trends.

Business
GDPL and biometrics: what to do to adapt

The GDPL has raised questions about the treatment and privacy of user data. Understand once and for all how it works.

Privacy and Security
5 benefits of using a Rest API

Rest APIs are ideal for cloud applications. Find out how to use them in your project.

Features
Cybersecurity: what it is and how to invest

Learn all about cybersecurity and find out how to protect your data online.

Privacy and Security
Liveness Detection: what’s the difference between passive and active?

The liveness detection technology may be used in a passive and active method to identify the proof of life authenticity of an image. Learn what’s the difference between them.

Features
ICAO standard: how to ensure biometric image quality

Quality biometric images meet ICAO standard to optimize identification and identity verification. Check out BioPass ID's solutions.

Features
Microservices architecture: what they are and their benefits

Learn what is the architecture model for software development using microservices and what are its advantages.

Business
How to speed up software developments with SDKs

The Face SDK, one of the BioPass ID SDKs, makes it possible to build and configure development platforms or applications quickly.

Features
Biometric boarding in Brazil: benefits and how it works

Meet the new technology that is breaking new ground in airport security.

News
Cloud Observability: what it is and how to use it

How to use web application monitoring and microservices in BioPass ID cloud-based biometrics platform. Check it out!

How to use Postman to evaluate the quality of a facial biometrics

A quick guide on how to use Postman, an API testing tool, to evaluate the quality of facial biometrics.

Features
How to detect spoofing in facial biometrics with Postman

Learn how to use the Postman tool to detect possible spoofing attacks on facial recognition biometric authentication systems.

Features
How to detect and anonymize facial biometrics via Postman

Check out how to detect and anonymize facial biometrics using the Postman platform and the BioPass ID feature set.

Features
Proof of Life: learn more about Liveness 2D V2

Biometrics, liveness and BioPass ID: how these technologies can boost your company and applications in the world of Biometrics as a Service.

ABIS: what is it, and how does it work

Biometrics, ABIS and BioPass ID. How these technologies can boost your company and applications in the world of Biometrics as a Service.

Liveness: the technology used by INSS to prevent fraud

Do you know Liveness? Learn how this tool can enhance your everyday security.

Why should you use biometrics in the cloud

Learn how the connection between Cloud Computing and Biometrics can increase the competitivity of companies in today's market.

Biometrics
How to use Postman to match facial biometrics

Understand the match between biometrics, using the BioPass ID feature set and the Postman platform to make API requests.

How to test a biometric API using Postman

Learn how to test a few CRUD operations of biometric API using Postman platform.

4 steps to integrate a BioPass ID biometric API

Learn how to implement and manage BioPass ID API packages in just 4 steps.

How to register a user's facial biometrics via Postman

Understand how to enroll facial biometrics through the Postman platform.

Kubernetes: the technology that enables cloud applications

Learn how BioPass ID uses Kubernetes, Containers, and cloud-native applications in its infrastructure.

Certify processes with the Analytics API

The Analytics API pack provides technology lenses that count people inside vehicles as well as in classrooms.

Online fraud: prevention tips with biometric validation

As our security advances, hackers also evolve their strategies. Do you know how to protect yourself from them?

Does biometrics contribute to trustworthy digital accounts?

As it seems, digital accounts are here to stay, but did biometrics contribute to this achievement?

What does the Roman Empire and biometrics have in common?

Did you know that the Roman Empire and biometrics have something in common? Yes, in concern for information security.

Data security: get better results with biometrics

Nowadays, with the amount of people connected, we care about the security of our data. Biometric correspondence can help with that.

Facial recognition is already being used in condos

Facial recognition technology is already being used in condos around the world as a way to ensure security and validate the entry of residents. Read this text to see how this process works.

How to prevent fraud using biometrics

Biometrics is an excellent security and validation tool, but you need to be aware of possible frauds. Read this text and learn more about it.

Learn the requirements of the ICAO standard (ISO 19794-5)

Learn about the characteristics of the icao standard for using facial recognition technology at airports.

How does facial biometrics help to keep your data safe?

Facial biometrics was one of the greatest security tools used in the pandemic.

What is the difference between API and SDK?

Understand the main differences between API and SDK, two technological tools often used by developers in applications.

What is cyber security?

Understand how cyber security works and how it can protect your data.

Do you really know how biometrics work?

Check out the news about the universe of biometrics, which develop and is integrated more and more in the daily life of the population.

What is an SDK?

SDK is a tool widely used in the technological environment. Learn more about it and learn how it can help you develop your applications.

How does facial biometrics work on public transportation

Facial biometrics has already been used in public transportation in some parts of the world. Learn how this technology can optimize the life of your users.

What is an API?

Understand what an API is, how it works, and where it runs in biometric applications.

Learn about multifactor authentication with multibiometrics

Understand how multi-factor authentication ensures full security and provides a good experience for your users.

Have you ever paid for your lunch with facial recognition?

As technology modernizes, new forms of access and payment are also created, and one of these possibilities is to pay with facial recognition.

Increase the security of your onboarding with Biometric Qualification

Onboarding is increasingly present in our lives, and as such, it is important to invest in increasing your security with biometric qualification.

Security flaws tendencies for 2022

From ransomware to identity management, learn about the main security flaws for 2022.

Using Facial Recognition in Videoconferences

Video conferencing is already part of our lives, but we need to pay attention to safety, imagine with the convenience of facial recognition?

Forget passwords, the future is passwordless

Who has never come across the event of forgetting a password? Forget it, the future is passwordless, contactless and frictionless.