Create

Create Client

POST https://biometridon.polygon.pt/api/clients

This endpoint allows you to create clients. This route is only for Master Users.

Headers

Name
Type
Description

Content-Type

string

application/json

Authorization

string

Authentication user token.

Request Body

Name
Type
Description

key

string

Unique key

secret

string

Password style field

name

string

Unique name

flows

array

List of flow id

settingsId

string

Client settings id

pusher

object

Pusher information

twilio

object

Twilio information

biometrid

object

Biometrid information

{
  "data": {
    "key": "key1",
    "name": "client1",
    "flows": [""],
    "pusher": {
      "appId": "",
      "key": "",
      "secret": "",
      "privateChannels": true
    },
    "twilio": {
      "account": "",
      "key": "",
      "secret": "",
      "smsAccountsId": "",
      "smsAuthToken": "",
      "smsFromNumber": ""
    },
    "biometrid": {
      "key": "",
      "secret": "",
      "url": "https://api.biometrid.com/api/1.1"
    },
    "settingsId": "",
    "userId": "",
    "active": true,
    "isMaster": false,
    "created_at": "2020-07-09T16:26:23.702Z",
    "updated_at": "2020-07-09T16:26:23.702Z",
    "id": "5f07452f79f2e851bc3eb837"
  },
  "meta": {
    "message": "Client created with success."
  },
  "status": true
}
// Example

{
	"key": "key1",
	"secret": "12345678",
	"name": "client1",
  "flows": [""],
  "settingsId": "",
	"pusher": {
		"appId": "",
		"key": "",
		"secret": "",
		"privateChannels": true
	},
	"twilio": {
		"account": "",
		"key": "",
		"secret": "",
		"smsAccountsId": "",
		"smsAuthToken": "",
		"smsFromNumber": ""
	},
	"biometrid": {
		"key": "",
		"secret": "",
		"url": "https://api.biometrid.com/api/1.1"
	},
	"liveness": {
		"url": "",
		"token": ""
	}
}

Last updated

Was this helpful?