Create an app registration

Endpoint:

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

Include the necessary authentication headers, as well as any other headers required for authorization and content-type, such as:

NameValue

Content-Type

application/json

Authorization

Bearer <token>

Body

  • project - ObjectId - Required The unique ID of the project associated with this registration.

  • projectFlow - ObjectId - Required The unique ID of the project flow that defines the registration and validation process.

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

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

  • countryCode - String - Optional The country code associated with the phone number. Required if phone is provided.

  • language - String - Optional The preferred language for communication during the registration process. Default: "en".

Minimal Body Data

{
  "project": "ObjectId('5f8d0a24c6345c001fa9e2b3')",
  "projectFlow": "ObjectId('5f8d0a24c6345c001fa9e2b4')",
  "email": "user@example.com",
  "phone": "1234567890",
  "countryCode": "+1"
}

Full Body Data

{
  "project": "ObjectId('5f8d0a24c6345c001fa9e2b3')",
  "projectFlow": "ObjectId('5f8d0a24c6345c001fa9e2b4')",
  "email": "user@example.com",
  "phone": "1234567890",
  "countryCode": "+1",
  "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": "5f8d0a24c6345c001fa9e2b3",
  "projectFlow": "5f8d0a24c6345c001fa9e2b4",
  "email": "user@example.com",
  "phone": "1234567890",
  "countryCode": "+1",
  "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 verify the registration.

Example Successful Response

{
  "data": {
    "appRegistration": {
      "_id": "65772f3b427932d45a3811f9",
      "client": "5f8d0a24c6345c001fa9e2b2",
      "project": "5f8d0a24c6345c001fa9e2b3",
      "projectFlow": "5f8d0a24c6345c001fa9e2b4",
      "status": "STARTED",
      "email": "user@example.com",
      "countryCode": "+1",
      "phone": "+123456789",
      "language": "es",
      "currentStep": 1,
      "createdAt": "2023-12-11T15:48:11.640Z",
      "updatedAt": "2023-12-11T15:48:11.640Z"
    },
    "informationValidation": {
      "_id": "65772f3b427932d45a3811fa"
    },
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
  }
}

Last updated