# Identity Validation

You can allow users from a selected domain or you can configure your API to allow only valid users.&#x20;

Once the API returns  userExists":"true" for the requested  id, e.g. for email "id":"<james@gmail.com>" or for phone  "id":"9196576XXXX". If the user exists he will be allowed to Login to your application.&#x20;

![](https://2956668860-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiVBIrxDmPKqx322_kk%2Fuploads%2FlqHeL0KpUTExGMktPv1z%2Fimage.png?alt=media\&token=efd651ae-a565-45e5-bfa3-8593c291b2b4)

```
[{"emailID":"james@gmail.com","userExists":"true","additionalInfo":{"group":"core","role":"admin"},"id":"james@gmail.com"},
```
