Skip to main content

Retrieve a Project Flow / Recuperar un Flujo de Proyecto

Endpoint

GET https://api.verifik.co/v3/project-flows/{id}

Recupera un flujo de proyecto específico usando su identificador único.

Encabezados

NombreValor
Content-Typeapplication/json
AuthorizationBearer <token>

Parámetros

NombreTipoRequeridoDescripción
idstringID del flujo de proyecto a recuperar

Ejemplo de Solicitud

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

async function run() {
const flowId = "64a1b2c3d4e5f6789012346";
const res = await fetch(`https://api.verifik.co/v3/project-flows/${flowId}`, {
method: "GET",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.VERIFIK_TOKEN}`,
},
});
console.log(await res.json());
}

run();

Ejemplo de Respuesta

{
"data": {
"_id": "64a1b2c3d4e5f6789012346",
"project": "64a1b2c3d4e5f6789012345",
"type": "onboarding",
"status": "active",
"version": 3,
"name": "Onboarding Estándar",
"description": "Flujo con documentos y vitalidad",
"signUpForm": { "fullName": true, "email": true, "phone": true },
"documents": { "attemptLimit": 5, "verificationMethods": ["SCAN_PROMPT"] },
"liveness": { "attemptLimit": 3, "minScore": 0.7 },
"steps": { "document": "mandatory", "liveness": "mandatory" },
"integrations": { "webhook": "64a1b2c3...", "redirectUrl": "https://example.com/success" },
"createdAt": "2023-07-01T10:00:00.000Z",
"updatedAt": "2023-07-01T16:45:00.000Z"
}
}