Create an App Registration

POST https://api.verifik.co/v2/app-registrations

An App Registration is an instance within Verifik's system that allows a user to initiate the authentication and validation process using specified project flows, email, and/or phone details. This process ensures the identity of the user and provides secure validation through various verification steps.

Headers

Name
Value

Content-Type

application/json

Body

Name
Type
Description

project

string

The unique ID of the project associated with this registration.

projectFlow

string

The unique ID of the project flow that defines the registration and validation process.

email

string

The email address for the user to be registered. (Either email or phone is required).

phone

string

The phone number for the user to be registered. (Either email or phone is required).

countryCode

string

The country code associated with the phone number. Required if phone is provided. Format: +123

fullName

string

The full name of the person being registered.

language

string

The preferred language for communication during the registration process. Default: "en".

Minimal Body Data

{
  "project": "507f1f77bcf86cd799439011",
  "projectFlow": "507f1f77bcf86cd799439012",
  "email": "[email protected]"
}

Full Body Data

{
  "project": "507f1f77bcf86cd799439011",
  "projectFlow": "507f1f77bcf86cd799439012",
  "email": "[email protected]",
  "phone": "1234567890",
  "countryCode": "+1",
  "fullName": "John Doe",
  "language": "es"
}

Request

curl -X POST https://api.verifik.co/v2/app-registrations \
 -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{
   "project": "507f1f77bcf86cd799439011",
   "projectFlow": "507f1f77bcf86cd799439012",
   "email": "[email protected]",
   "phone": "1234567890",
   "countryCode": "+1",
   "fullName": "John Doe",
   "language": "es"
 }'

Response

The response will contain information about the new App Registration instance. Important fields include the unique identifier _id, the status of the registration process, and a token to use for subsequent requests to enroll the user.

{
  "data": {
    "appRegistration": {
      "_id": "507f1f77bcf86cd799439013",
      "client": "507f1f77bcf86cd799439014",
      "project": "507f1f77bcf86cd799439011",
      "projectFlow": "507f1f77bcf86cd799439012",
      "status": "STARTED",
      "email": "[email protected]",
      "countryCode": "+1",
      "phone": "1234567890",
      "fullName": "John Doe",
      "language": "es",
      "currentStep": "Document Verification",
      "createdAt": "2025-01-01T00:00:00.000Z",
      "updatedAt": "2025-01-01T00:00:00.000Z"
    },
    "informationValidation": {
      "_id": "507f1f77bcf86cd799439015"
    },
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
  }
}

Last updated

Was this helpful?