Legacy Restful API
1.0.0
1.0.0
  • Introduction
  • Biometric Engines
  • Getting Started
  • User
    • Create User
    • Delete User
  • Face Engine
    • Enroll Face
    • Verify Face
    • Adapt Face
    • Delete User Face Enroll
    • Find User Id by Face
    • Find Multiple Id by Face
    • Find Face Properties
  • Liveness
    • Biometrics Status
    • Biometrics Liveness
  • Voice Engine
    • Enroll Voice
    • Verify Voice
    • Adapt Voice
    • Delete User Voice Enroll
    • Get Available Languages
  • OCR Engine
    • Validate Document
    • Validate Document (base64)
    • Verify document photo
    • Verify document photo (base64)
  • Auxiliar Methods
    • Get enroll Status
    • Has Pending Dialogue
    • Restart User State
    • Find UserId by MacAddress
Powered by GitBook
On this page
  • Registration Activity Diagram
  • Create User

Was this helpful?

  1. User

Create User

PreviousGetting StartedNextDelete User

Last updated 6 years ago

Was this helpful?

As a starting point, we need to create a new user on the Biometrid System. To do so, we need to make a request to the method Create User. This method only needs a parameter called reference_id to be sent. This reference_id refers to the user’s identifier on the client’s database. This way Biometrid solution won’t hold any sensitive information regarding the client’s final users. At the end of this creation process it will be returned a Biometrid Identifier to that user, that needs to be stored on the client’s side because it will be used on every process regarding user itself. If an error occurs, it's necessary to repeat this process until a successful response of the service.

Registration Activity Diagram

Create User

POST Https://api.biometrid.com/api/1.0/users

This endpoint allows you to create an user

Query Parameters

Name
Type
Description

mac_address

string

If set, this field associate a the created user with a device by mac_address.

app_token

string

If using Firebase Notification Service, the app_token provided should be used to create user.

reference_id

string

Client's user identifier on client's database or just user's identifier

Headers

Name
Type
Description

x-biometrid-key

string

Application client key.

x-biometrid-secret

string

Application client secret

HTTP/1.1 200 OK
// new user created
{
    "status": true,
    "data": {
      "message": "NEW_USER_CREATED",
      "id": "59147e5afdda9b0ac0f5e31f"
    }
}

// user already associated with device
{
    "status": true,
    "data": {
      "message": "USER_ALREADY_ASSOCIATED_WITH_DEVICE",
      "id": "59147e5afdda9b0ac0f5e31f"
    }
}
HTTP/1.1 400 Bad Request
{
    "status": false,
    "data": {
        "message": "AUTHENTICATION_HEADERS_MISSING"
    }
}
HTTP/1.1 401 Unauthorized
{
    "status": false,
    "data": {
        "message": "INVALID_AUTHENTICATION_HEADERS"
    }
}
HTTP/1.1 402 Payment Required
//Request Limit Reached
    {
        "status": false,
        "data": {
            "message": "REQUEST_LIMIT_REACHED"
        }
    }
//User Limit Reached
    {
        "status": false,
        "data": {
            "message": "NOT_ALLOWED_TO_CREATE_USERS"
        }
    }
HTTP/1.1 404 Not Found
{
    "status": false,
    "data": {
        "message": "CLIENT_NOT_FOUND/CHECK_AUTHENTICATION_HEADERS"
    }
}
HTTP/1.1 500 Internal Server Error
{
    "status": false,
    "data": {
        "message": "PROBLEM_OCURRED_REPEAT_REQUEST"
    }
}