Smart Enroll Project Flow
Create a project flow specifically configured for Smart Enroll onboarding. This flow is optimized for the Smart Enroll system and includes all necessary configurations for a complete onboarding experience.
Endpoint
POST https://api.verifik.co/v2/project-flows
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
project | string | Yes | The project ID this flow belongs to |
type | string | Yes | Flow type: "onboarding" for Smart Enroll |
name | string | Yes | Name of the project flow |
target | string | Yes | Target type: "personal" or "business" |
status | string | Yes | Initial status: "draft" or "active" |
Request
- Node.js
- Python
const fetch = require("node-fetch");
async function run() {
const res = await fetch("https://api.verifik.co/v2/project-flows", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.VERIFIK_TOKEN}`,
},
body: JSON.stringify({
project: "64a1b2c3d4e5f6789012345",
type: "onboarding",
name: "Smart Enroll Project Flow",
target: "personal",
status: "draft",
signUpForm: {
fullName: true,
fullNameStyle: "separate",
email: true,
emailGateway: "mailgun",
phone: true,
phoneGateway: "whatsapp",
countryCode: "US",
showTermsAndConditions: true,
showPrivacyNotice: true
},
documents: {
attemptLimit: 3,
criminalHistoryVerification: true,
informationVerification: true,
screening: true,
verificationMethods: ["SCAN_PROMPT"],
documentTypes: [
{
country: "United States",
configurations: [
{
active: true,
documentCategory: "government_id",
documentTemplates: []
}
]
}
]
},
liveness: {
attemptLimit: 3,
minScore: 0.65,
searchMinScore: 0.8,
searchMode: "FAST"
},
steps: {
document: "mandatory",
liveness: "mandatory"
}
}),
});
console.log(await res.json());
}
run();
import os, requests
url = "https://api.verifik.co/v2/project-flows"
headers = {
"Content-Type": "application/json",
"Authorization": f"Bearer {os.getenv('VERIFIK_TOKEN')}"
}
payload = {
"project": "64a1b2c3d4e5f6789012345",
"type": "onboarding",
"name": "Smart Enroll Project Flow",
"target": "personal",
"status": "draft",
"signUpForm": {
"fullName": True,
"fullNameStyle": "separate",
"email": True,
"emailGateway": "mailgun",
"phone": True,
"phoneGateway": "whatsapp",
"countryCode": "US",
"showTermsAndConditions": True,
"showPrivacyNotice": True
},
"documents": {
"attemptLimit": 3,
"criminalHistoryVerification": True,
"informationVerification": True,
"screening": True,
"verificationMethods": ["SCAN_PROMPT"],
"documentTypes": [
{
"country": "United States",
"configurations": [
{
"active": True,
"documentCategory": "government_id",
"documentTemplates": []
}
]
}
]
},
"liveness": {
"attemptLimit": 3,
"minScore": 0.65,
"searchMinScore": 0.8,
"searchMode": "FAST"
},
"steps": {
"document": "mandatory",
"liveness": "mandatory"
}
}
r = requests.post(url, json=payload, headers=headers)
print(r.json())
Response
- 200
- 400
- 401/403
{
"data": {
"_id": "64a1b2c3d4e5f6789012346",
"project": "64a1b2c3d4e5f6789012345",
"type": "onboarding",
"name": "Smart Enroll Project Flow",
"target": "personal",
"status": "draft",
"version": 1,
"signUpForm": {
"fullName": true,
"fullNameStyle": "separate",
"email": true,
"emailGateway": "mailgun",
"phone": true,
"phoneGateway": "whatsapp",
"countryCode": "US",
"showTermsAndConditions": true,
"showPrivacyNotice": true
},
"documents": {
"attemptLimit": 3,
"criminalHistoryVerification": true,
"informationVerification": true,
"screening": true,
"verificationMethods": ["SCAN_PROMPT"],
"documentTypes": [
{
"country": "United States",
"configurations": [
{
"active": true,
"documentCategory": "government_id",
"documentTemplates": []
}
]
}
]
},
"liveness": {
"attemptLimit": 3,
"minScore": 0.65,
"searchMinScore": 0.8,
"searchMode": "FAST"
},
"steps": {
"document": "mandatory",
"liveness": "mandatory"
},
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}
}
{
"message": "Invalid project ID format",
"code": "BadRequest"
}
{
"message": "Access forbidden",
"code": "Forbidden"
}
Features
- Smart Enroll Optimized: Pre-configured for Smart Enroll onboarding flows
- Complete Configuration: Includes sign-up form, documents, and liveness settings
- Flexible Setup: Customize document types and verification methods
- Security Features: Criminal history and information verification included
- Multiple Countries: Support for various country configurations
Notes
- This flow is specifically designed for Smart Enroll onboarding processes
- The flow includes all necessary configurations for a complete verification journey
- Document verification methods can be customized based on your needs
- Liveness detection is configured with appropriate thresholds for security