Skip to main content

Sync App Registration Status

Endpoint​

PUT https://api.verifik.co/v2/app-registrations/{id}/sync

The App Registration Sync endpoint updates the status and step of an app registration process. This endpoint is useful for syncing the registration status, especially when specific conditions or criteria have been met.

warning

The JWT Token you should use when running the Sync is provided from the App Registration in creation. You must use the token returned when creating an App Registration to authenticate this request.

Headers​

NameValue
Content-Typeapplication/json
AuthorizationBearer <token>

Params​

NameTypeRequiredDescription
idstringYesThe unique identifier of the App Registration record you would like to sync. This is the _id returned when creating the app registration
stepstringYesSpecifies the step to update. Valid values: skipKYC, instructions, signUpForm, basicInformation, document, liveness, form, end
statusstringYesThe new status of the registration. Valid values depend on the step: For skipKYC: COMPLETED_WITHOUT_KYC. For instructions, signUpForm, basicInformation, document, liveness, form: ONGOING. For end: COMPLETED, FAILED, or NEEDS_MANUAL_VERIFICATION

Step Options and Status Combinations​

skipKYC Step​

Status: COMPLETED_WITHOUT_KYC

Description: Skip KYC verification

What Happens:

  • Validates sign-up form requirements
  • Updates status to ONGOING if KYC steps are not mandatory
  • Sends data to HubSpot integration
  • Returns sign-up form response with token

Note: This step only works if all mandatory KYC steps (basicInformation, document, form, liveness) are not set to "mandatory" in the project flow configuration.

warning

IMPORTANT: The skipKYC step is crucial for onboarding type flows as it provides the authentication token that users need to login to your system. This will provide your users with the token for accessing your application.

instructions Step​

Status: ONGOING

Description: Continue with instructions

What Happens:

  • Updates status to ONGOING
  • Moves to next step in the flow

signUpForm Step​

Status: ONGOING

Description: Continue with sign-up form

What Happens:

  • Validates sign-up form requirements
  • Updates status to ONGOING
  • Returns sign-up form response with token

basicInformation Step​

Status: ONGOING

Description: Continue with basic information

What Happens:

  • Updates status to ONGOING
  • Moves to next step in the flow

document Step​

Status: ONGOING

Description: Continue with document verification

What Happens:

  • Updates status to ONGOING
  • Returns sign-up form response with token

liveness Step​

Status: ONGOING

Description: Continue with liveness verification

What Happens:

  • Updates status to ONGOING
  • Returns liveness response with token

form Step​

Status: ONGOING

Description: Continue with form completion

What Happens:

  • Updates status to ONGOING
  • Moves to next step in the flow

end Step ⭐ CRUCIAL FOR ONBOARDING FLOWS​

Status: COMPLETED, FAILED, or NEEDS_MANUAL_VERIFICATION

Description: Complete registration successfully

What Happens:

  • Validates all required fields and verifications
  • Updates status to COMPLETED, FAILED, or NEEDS_MANUAL_VERIFICATION
  • Returns authentication token for user login
  • Sends completion data to HubSpot integration
  • Triggers webhook events
warning

IMPORTANT: The end step is crucial for onboarding type flows as it provides the authentication token that users need to login to your system. Without completing this step, users cannot access their accounts.

Request​

const fetch = require("node-fetch");

async function run() {
const appRegistrationId = "507f1f77bcf86cd799439011";
const res = await fetch(`https://api.verifik.co/v2/app-registrations/${appRegistrationId}/sync`, {
method: "PUT",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.VERIFIK_TOKEN}`,
},
body: JSON.stringify({
step: "end",
status: "COMPLETED"
}),
});
console.log(await res.json());
}

run();

Response​

{
"data": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"firstName": "John",
"lastName": "Doe",
"fullName": "John Doe",
"step": "signUpForm",
"steps": {
"signUpForm": "mandatory",
"basicInformation": "skip",
"document": "mandatory",
"liveness": "mandatory",
"form": "skip"
},
"appRegistrationId": "507f1f77bcf86cd799439011",
"status": "ONGOING"
}
}

Notes​

  • Token Generation: The end step is the only step that guarantees token generation for user authentication
  • Validation Requirements: Each step may have specific validation requirements that must be met
  • KYC Skip Logic: Skipping KYC only works if no mandatory verification steps are configured
  • Webhook Integration: All status changes trigger webhook events if configured in the project flow
  • Status Flow Control:
    • ONGOING - Continues the registration process to the next step
    • COMPLETED - Finalizes registration and provides full access
    • FAILED - Marks registration as unsuccessful but still provides access token
    • NEEDS_MANUAL_VERIFICATION - Requires human review before completion

Common Use Cases​

  • Complete Registration: Use end step with COMPLETED status to finalize user registration
  • Skip Verification: Use skipKYC step to bypass verification requirements when appropriate
  • Manual Review: Use end step with NEEDS_MANUAL_VERIFICATION status for flagged registrations
  • Step Progression: Use intermediate steps to move users through the registration flow

This endpoint provides comprehensive control over the app registration process, allowing you to manage user progression, handle edge cases, and ensure proper authentication token generation for onboarding flows.