Developers

GetUser

Usage

Use this method to obtain a specific user registered in a Benti instance. To obtain the data of multiple users, you need to send a separate request for each user.

client.getUser('<email_address>').then(data => {}).catch(error => {})

Data

This method requires the email address of the user you want to obtain.

Response data format

The getUser method returns the requested user. For the full response model, please see the Responses section for the GET /users/public endpoint on the Benti API Routes page.

Example

An example call could have the following structure:

client.getUser('email@email.com').then(function(result){
console.log(result);
});