Workflows API (stable)
Download OpenAPI specification:Download
Esta API genera flujos customizables para la ejecucion de procesos de negocio, de manera flexible y dinamica.
Flujos
Los flujos son la base de la API, estos contienen pasos que se ejecutan en orden, y que pueden ser customizados para cada caso de uso.
Pasos
Los pasos son las unidades de ejecucion de un flujo, estos pueden ser de diferentes tipos, y pueden ser customizados para cada caso de uso.
Crear un Flujo
Authorizations:
Request Body schema: application/json
Parametros de creacion de un Flujo
people_uuid | string or null <uuid> Identificador de persona |
callback_url | string or null URL de notificaciones por medio de Webhook (debe ser HTTPS) |
disable_geolocation | boolean or null Indica si se desea deshabilitar la geolocalizacion en los pasos |
external_reference_id | string or null Referencia externa de ID para el usuario que ejecuta el flujo |
object or null Datos para autollenado de campos | |
object or null Algunos steps requieren un Setup inicial, en este parametro se envian tales configuraciones usando la llave con el nombre del Step | |
metadata | object or null Metadatos del Flujo |
expires_in | integer Default: 0 Tiempo en que tarda en expirar el token de este Flujo en minutos. Este campo se omite o se envia en 0 si no se queire que caduque. |
required | Array of Auth (string) or Biometric Sign (string) or Document Sign (string) or Document Sign (string) or Enroll Basic (string) or Enroll Full (string) or Liveness (string) or Document Preview (string) or Verify Email (string) or Verify Phone Number (string) or Personal Address (string) or CDC Authorization (string) or Document Analyzer (string) or Acceptance (string) or Files Upload (string) or Document QR (string) or Personal Financial (string) or Personal Job Detail (string) or Personal References (string) or Personal Bank Data (string) or Custom Form (string) or Address Proof (string) >= 1 [ items unique ] Arreglo de steps para el workflow |
Responses
Request samples
- Payload
{- "people_uuid": "86b9535d-50d9-419c-9965-ee4db5956871",
- "disable_geolocation": true,
- "external_reference_id": 123456,
- "autofill": {
- "template_binding_uuid": "86b9535d-50d9-419c-9965-ee4db5956871",
- "document_uuid": "86b9535d-50d9-419c-9965-ee4db5956871",
- "user_email": "example@mail.com"
}, - "setup": {
- "document_sign": {
- "token": "TOKEN",
- "store_sign": false
}
}, - "metadata": {
- "user_id": "uuid",
- "location": "US"
}, - "expires_in": 60,
- "steps": [
- "document_sign"
]
}
Response samples
- 200
- 400
{- "success": true,
- "result": {
- "uuid": "cf455647-34ad-4bf2-900a-83f385b07927",
- "people_uuid": "cf455647-34ad-4bf2-900a-83f385b07927",
- "status": "string",
- "error": {
- "fatal": true,
- "extra": {
- "user_id": "uuid",
- "location": "US"
}, - "details": {
- "reason": "Error al obtener la selfie",
- "error_id": 500,
- "stack": "Error al obtener la selfie"
}
}, - "external_reference_id": 123456789,
- "finished_at": "2022-04-12T22:10:12.000000Z",
- "callback_at": "2022-04-12T22:10:12.000000Z",
- "disable_geolocation": true,
- "expires_in": 60,
- "metadata": {
- "user_id": "uuid",
- "location": "US"
}, - "template_binding_uuid": "cf455647-34ad-4bf2-900a-83f385b07927",
- "document_uuid": "cf455647-34ad-4bf2-900a-83f385b07927",
- "user_email": "user@example.com",
- "updated_at": "2022-04-12T22:10:12.000000Z",
- "created_at": "2022-04-12T22:10:12.000000Z",
- "steps": [
- {
- "uuid": "cf455647-34ad-4bf2-900a-83f385b07927",
- "workflow_uuid": "cf455647-34ad-4bf2-900a-83f385b07927",
- "custom_id": "1",
- "coordinates": [
- [
- "-99.123456",
- "19.123456"
]
], - "error": {
- "fatal": true,
- "extra": {
- "idScanStatus": 500,
- "faceScanStatus": 500
}, - "details": {
- "reason": "Error al obtener la selfie",
- "error_id": 500,
- "stack": "Error al obtener la selfie"
}
}, - "metadata": {
- "name": "enroll_full",
- "title": "Enrolamiento Completo",
- "description": "Enrolamiento biometrico y obtencion de selfie con identificacion oficial"
}, - "status": "string",
- "step": "document_sign",
- "payload": {
- "biometrics": {
- "safe": true,
- "success": true,
- "matchLevel": 7,
- "executed_at": "2023-04-27T21:29:06.162Z",
- "referenceId": "dev-123adc51-ff0e-44f0-af93-456cad813dca",
- "wasProcessed": true,
- "nfcStatusEnumInt": 0,
- "fullIDStatusEnumInt": 0,
- "barcodeStatusEnumInt": 0,
- "matchLevelNFCToFaceMap": 0,
- "digitalIDSpoofStatusEnumInt": 0,
- "faceOnDocumentStatusEnumInt": "LIKELY_ORIGINAL_FACE",
- "textOnDocumentStatusEnumInt": "LIKELY_ORIGINAL_TEXT",
- "idScanAgeEstimateGroupEnumInt": 4
}, - "ocr_backside": {
- "cic": "8596841236",
- "date": "990311",
- "name": "JUAN",
- "lines": [
- "IDMEX85968412367<<4578965896412",
- "9903110H3112319MEX<06<<16540<3",
- "PEREZ<GONZALES<<JUAN<<<<<<<<<<"
], - "gender": "H",
- "last_name": "PEREZ",
- "last_names": "PEREZ GONZALES",
- "ocr_number": "4578965896412",
- "nationality": "MEX",
- "cic_digit_check": "7",
- "expiration_date": "241231",
- "date_check_digit": "0",
- "emission_and_fuar": "06-16540",
- "mothers_last_name": "GONZALEZ",
- "expiration_date_digit": "9",
- "section_and_consecutive": "54236975896321",
- "is_cic_digit_check_consistent": true
}, - "ocr_frontside": {
- "city": "XOCHIMILCO",
- "curp": "PEGU990311HDFRMZA4",
- "name": "JUAN",
- "type": "INE",
- "gender": "H",
- "street": "CALLE 1",
- "city_id": null,
- "control": "2",
- "ine_type": "EFGH",
- "province": "CDMX",
- "state_id": null,
- "zip_code": "01000",
- "last_name": "PEREZ",
- "birth_date": "1999-03-11",
- "elector_key": "PRJMER99031109H900",
- "neighborhood": "COL CENTRO",
- "emission_number": "06",
- "expiration_date": null,
- "mothers_last_name": "GOZALEZ"
}, - "is_address_complete": true
}, - "updated_at": "2022-04-12T22:10:12.000000Z",
- "created_at": "2022-04-12T22:10:12.000000Z"
}
]
}
}
Obtener detalle de un Flujo especifico
Authorizations:
path Parameters
uuid required | string Example: 86b9535d-50d9-419c-9965-ee4db5956871 Identificador del Flujo |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "uuid": "cf455647-34ad-4bf2-900a-83f385b07927",
- "people_uuid": "cf455647-34ad-4bf2-900a-83f385b07927",
- "status": "string",
- "error": {
- "fatal": true,
- "extra": {
- "user_id": "uuid",
- "location": "US"
}, - "details": {
- "reason": "Error al obtener la selfie",
- "error_id": 500,
- "stack": "Error al obtener la selfie"
}
}, - "external_reference_id": 123456789,
- "finished_at": "2022-04-12T22:10:12.000000Z",
- "callback_at": "2022-04-12T22:10:12.000000Z",
- "disable_geolocation": true,
- "expires_in": 60,
- "metadata": {
- "user_id": "uuid",
- "location": "US"
}, - "template_binding_uuid": "cf455647-34ad-4bf2-900a-83f385b07927",
- "document_uuid": "cf455647-34ad-4bf2-900a-83f385b07927",
- "user_email": "user@example.com",
- "updated_at": "2022-04-12T22:10:12.000000Z",
- "created_at": "2022-04-12T22:10:12.000000Z",
- "steps": [
- {
- "uuid": "cf455647-34ad-4bf2-900a-83f385b07927",
- "workflow_uuid": "cf455647-34ad-4bf2-900a-83f385b07927",
- "custom_id": "1",
- "coordinates": [
- [
- "-99.123456",
- "19.123456"
]
], - "error": {
- "fatal": true,
- "extra": {
- "idScanStatus": 500,
- "faceScanStatus": 500
}, - "details": {
- "reason": "Error al obtener la selfie",
- "error_id": 500,
- "stack": "Error al obtener la selfie"
}
}, - "metadata": {
- "name": "enroll_full",
- "title": "Enrolamiento Completo",
- "description": "Enrolamiento biometrico y obtencion de selfie con identificacion oficial"
}, - "status": "string",
- "step": "document_sign",
- "payload": {
- "biometrics": {
- "safe": true,
- "success": true,
- "matchLevel": 7,
- "executed_at": "2023-04-27T21:29:06.162Z",
- "referenceId": "dev-123adc51-ff0e-44f0-af93-456cad813dca",
- "wasProcessed": true,
- "nfcStatusEnumInt": 0,
- "fullIDStatusEnumInt": 0,
- "barcodeStatusEnumInt": 0,
- "matchLevelNFCToFaceMap": 0,
- "digitalIDSpoofStatusEnumInt": 0,
- "faceOnDocumentStatusEnumInt": "LIKELY_ORIGINAL_FACE",
- "textOnDocumentStatusEnumInt": "LIKELY_ORIGINAL_TEXT",
- "idScanAgeEstimateGroupEnumInt": 4
}, - "ocr_backside": {
- "cic": "8596841236",
- "date": "990311",
- "name": "JUAN",
- "lines": [
- "IDMEX85968412367<<4578965896412",
- "9903110H3112319MEX<06<<16540<3",
- "PEREZ<GONZALES<<JUAN<<<<<<<<<<"
], - "gender": "H",
- "last_name": "PEREZ",
- "last_names": "PEREZ GONZALES",
- "ocr_number": "4578965896412",
- "nationality": "MEX",
- "cic_digit_check": "7",
- "expiration_date": "241231",
- "date_check_digit": "0",
- "emission_and_fuar": "06-16540",
- "mothers_last_name": "GONZALEZ",
- "expiration_date_digit": "9",
- "section_and_consecutive": "54236975896321",
- "is_cic_digit_check_consistent": true
}, - "ocr_frontside": {
- "city": "XOCHIMILCO",
- "curp": "PEGU990311HDFRMZA4",
- "name": "JUAN",
- "type": "INE",
- "gender": "H",
- "street": "CALLE 1",
- "city_id": null,
- "control": "2",
- "ine_type": "EFGH",
- "province": "CDMX",
- "state_id": null,
- "zip_code": "01000",
- "last_name": "PEREZ",
- "birth_date": "1999-03-11",
- "elector_key": "PRJMER99031109H900",
- "neighborhood": "COL CENTRO",
- "emission_number": "06",
- "expiration_date": null,
- "mothers_last_name": "GOZALEZ"
}, - "is_address_complete": true
}, - "updated_at": "2022-04-12T22:10:12.000000Z",
- "created_at": "2022-04-12T22:10:12.000000Z"
}
]
}
}
Generar token y URL de ejecucion del Flujo
Authorizations:
path Parameters
uuid required | string Example: 86b9535d-50d9-419c-9965-ee4db5956871 Identificador del Flujo |
query Parameters
redirect_url | string Example: redirect_url=http://example.com URL al que se redireccionara al terminar el Flujo |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "token": "16968|r45IXIJHr9QfpHayecgFOw1R9Cs36zundce7VYk7",
- "token_encoded": "MzZ8czJhQUpFOWI2Z3IyNGFLOVBFcnRJODRrZDhjZ2pDQ0hxWmFCWUtFMA%3D%3D",
- "expiration": "2021-03-26 00:05:15"
}
}
Crear un token de acceso y URL de ejecucion del Flujo (Encode Safe)
Crear un token de acceso publico y URL de ejecucion del Flujo cuando hay problemas de encoding en la URL
Authorizations:
path Parameters
uuid required | string Example: 86b9535d-50d9-419c-9965-ee4db5956871 Identificador del Flujo |
Request Body schema: application/json
Parametros de creacion de un token
redirect_url | string URL al que se redireccionara al terminar el Flujo |
Responses
Request samples
- Payload
{
}
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "token": "16968|r45IXIJHr9QfpHayecgFOw1R9Cs36zundce7VYk7",
- "token_encoded": "MzZ8czJhQUpFOWI2Z3IyNGFLOVBFcnRJODRrZDhjZ2pDQ0hxWmFCWUtFMA%3D%3D",
- "expiration": "2021-03-26 00:05:15"
}
}
Obtener detalle del Step de un Flujo
Authorizations:
path Parameters
uuid required | string Example: 86b9535d-50d9-419c-9965-ee4db5956871 Identificador del Step |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "uuid": "cf455647-34ad-4bf2-900a-83f385b07927",
- "workflow_uuid": "cf455647-34ad-4bf2-900a-83f385b07927",
- "custom_id": "1",
- "coordinates": [
- [
- "-99.123456",
- "19.123456"
]
], - "error": {
- "fatal": true,
- "extra": {
- "idScanStatus": 500,
- "faceScanStatus": 500
}, - "details": {
- "reason": "Error al obtener la selfie",
- "error_id": 500,
- "stack": "Error al obtener la selfie"
}
}, - "metadata": {
- "name": "enroll_full",
- "title": "Enrolamiento Completo",
- "description": "Enrolamiento biometrico y obtencion de selfie con identificacion oficial"
}, - "status": "string",
- "step": "document_sign",
- "payload": {
- "biometrics": {
- "safe": true,
- "success": true,
- "matchLevel": 7,
- "executed_at": "2023-04-27T21:29:06.162Z",
- "referenceId": "dev-123adc51-ff0e-44f0-af93-456cad813dca",
- "wasProcessed": true,
- "nfcStatusEnumInt": 0,
- "fullIDStatusEnumInt": 0,
- "barcodeStatusEnumInt": 0,
- "matchLevelNFCToFaceMap": 0,
- "digitalIDSpoofStatusEnumInt": 0,
- "faceOnDocumentStatusEnumInt": "LIKELY_ORIGINAL_FACE",
- "textOnDocumentStatusEnumInt": "LIKELY_ORIGINAL_TEXT",
- "idScanAgeEstimateGroupEnumInt": 4
}, - "ocr_backside": {
- "cic": "8596841236",
- "date": "990311",
- "name": "JUAN",
- "lines": [
- "IDMEX85968412367<<4578965896412",
- "9903110H3112319MEX<06<<16540<3",
- "PEREZ<GONZALES<<JUAN<<<<<<<<<<"
], - "gender": "H",
- "last_name": "PEREZ",
- "last_names": "PEREZ GONZALES",
- "ocr_number": "4578965896412",
- "nationality": "MEX",
- "cic_digit_check": "7",
- "expiration_date": "241231",
- "date_check_digit": "0",
- "emission_and_fuar": "06-16540",
- "mothers_last_name": "GONZALEZ",
- "expiration_date_digit": "9",
- "section_and_consecutive": "54236975896321",
- "is_cic_digit_check_consistent": true
}, - "ocr_frontside": {
- "city": "XOCHIMILCO",
- "curp": "PEGU990311HDFRMZA4",
- "name": "JUAN",
- "type": "INE",
- "gender": "H",
- "street": "CALLE 1",
- "city_id": null,
- "control": "2",
- "ine_type": "EFGH",
- "province": "CDMX",
- "state_id": null,
- "zip_code": "01000",
- "last_name": "PEREZ",
- "birth_date": "1999-03-11",
- "elector_key": "PRJMER99031109H900",
- "neighborhood": "COL CENTRO",
- "emission_number": "06",
- "expiration_date": null,
- "mothers_last_name": "GOZALEZ"
}, - "is_address_complete": true
}, - "updated_at": "2022-04-12T22:10:12.000000Z",
- "created_at": "2022-04-12T22:10:12.000000Z"
}
}
Obtener Media (Video, Images, Documents) adjuntos a un Step
Authorizations:
path Parameters
uuid required | string Example: 86b9535d-50d9-419c-9965-ee4db5956871 Identificador del Step |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": [
- {
- "mime": "image/jpeg",
- "uuid": "52a7ac96-807f-4675-98a6-48d7383ade60",
- "size": 1500,
}
]
}
Obtener Media (Video, Images, Documents) adjuntos a un Step
Authorizations:
path Parameters
uuid required | string Example: 86b9535d-50d9-419c-9965-ee4db5956871 Identificador del Step |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": [
- {
- "mime": "image/jpeg",
- "uuid": "52a7ac96-807f-4675-98a6-48d7383ade60",
- "size": 1500,
}
]
}
Response samples
- 200
{- "success": true,
- "result": {
- "current_page": 1,
- "data": [
- {
- "uuid": "86b9535d-50d9-419c-9965-ee4db5956871",
- "name": "Template 1",
- "description": "Template 1",
- "config": {
- "metadata": {
- "user_id": "9c701122-defd-4ee7-9cd2-c4eca68b7af2"
}, - "expires_in": 20,
- "disable_geolocation": true
}, - "steps": [
- "acceptance"
], - "steps_setup": {
- "verify_email": { },
- "personal_address": { }
}, - "created_at": "2021-03-26T01:06:59.000000Z",
- "updated_at": "2021-03-26T01:06:59.000000Z"
}
], - "from": 1,
- "last_page": 1,
- "next_page_url": null,
- "per_page": 20,
- "prev_page_url": null,
- "to": 20,
- "total": 20
}
}
Crear una plantilla de workflow
Authorizations:
Request Body schema: application/json
name | string Nombre de la plantilla de workflow |
description | string Descripcion de la plantilla de workflow |
steps | Array of strings Items Enum: "acceptance" "auth" "biometric_sign" "cdc_authorization" "document_analyzer" "document_preview" "document_qr" "document_sign" "enroll_basic" "enroll_full" "files_upload" "personal_address" "verify_email" "verify_phone_number" "video_sign_step" Arreglo de pasos de la plantilla de workflow |
config | object Objeto de configuracion de la plantilla de workflow |
steps_setup | object |
Responses
Request samples
- Payload
{- "name": "Workflow Template 1",
- "description": "Workflow Template 1 description",
- "steps": [
- "acceptance"
], - "config": {
- "metadata": {
- "user_id": "{{$guid}}"
}, - "expires_in": 20,
- "disable_geolocation": true
}, - "steps_setup": {
- "personal_address": { },
- "verify_email": { }
}
}
Response samples
- 201
- 400
{- "success": true,
- "result": {
- "uuid": "86b9535d-50d9-419c-9965-ee4db5956871",
- "name": "Template 1",
- "description": "Template 1",
- "config": {
- "metadata": {
- "user_id": "9c701122-defd-4ee7-9cd2-c4eca68b7af2"
}, - "expires_in": 20,
- "disable_geolocation": true
}, - "steps": [
- "acceptance"
], - "steps_setup": {
- "verify_email": { },
- "personal_address": { }
}, - "created_at": "2021-03-26T01:06:59.000000Z",
- "updated_at": "2021-03-26T01:06:59.000000Z"
}
}
Obtener una plantilla de workflow
Authorizations:
path Parameters
uuid required | string <uuid> Example: 86b9535d-50d9-419c-9965-ee4db5956871 Identificador de la plantilla de workflow |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "uuid": "86b9535d-50d9-419c-9965-ee4db5956871",
- "name": "Template 1",
- "description": "Template 1",
- "config": {
- "metadata": {
- "user_id": "9c701122-defd-4ee7-9cd2-c4eca68b7af2"
}, - "expires_in": 20,
- "disable_geolocation": true
}, - "steps": [
- "acceptance"
], - "steps_setup": {
- "verify_email": { },
- "personal_address": { }
}, - "created_at": "2021-03-26T01:06:59.000000Z",
- "updated_at": "2021-03-26T01:06:59.000000Z"
}
}
Actualizar una plantilla de workflow
Authorizations:
path Parameters
uuid required | string <uuid> Example: 86b9535d-50d9-419c-9965-ee4db5956871 Identificador de la plantilla de workflow |
Request Body schema: application/json
name | string Nombre de la plantilla de workflow |
description | string Descripcion de la plantilla de workflow |
steps | Array of strings Items Enum: "acceptance" "auth" "biometric_sign" "cdc_authorization" "document_analyzer" "document_preview" "document_qr" "document_sign" "enroll_basic" "enroll_full" "files_upload" "personal_address" "verify_email" "verify_phone_number" "video_sign_step" Arreglo de pasos de la plantilla de workflow |
config | object Objeto de configuracion de la plantilla de workflow |
steps_setup | object |
Responses
Request samples
- Payload
{- "name": "Workflow Template 1",
- "description": "Workflow Template 1 description",
- "steps": [
- "acceptance"
], - "config": {
- "metadata": {
- "user_id": "{{$guid}}"
}, - "expires_in": 20,
- "disable_geolocation": true
}, - "steps_setup": {
- "personal_address": { },
- "verify_email": { }
}
}
Response samples
- 200
- 400
- 404
{- "success": true,
- "result": {
- "uuid": "86b9535d-50d9-419c-9965-ee4db5956871",
- "name": "Template 1",
- "description": "Template 1",
- "config": {
- "metadata": {
- "user_id": "9c701122-defd-4ee7-9cd2-c4eca68b7af2"
}, - "expires_in": 20,
- "disable_geolocation": true
}, - "steps": [
- "acceptance"
], - "steps_setup": {
- "verify_email": { },
- "personal_address": { }
}, - "created_at": "2021-03-26T01:06:59.000000Z",
- "updated_at": "2021-03-26T01:06:59.000000Z"
}
}
Crear un workflow a partir de una plantilla de workflow
Authorizations:
path Parameters
uuid required | string <uuid> Example: 86b9535d-50d9-419c-9965-ee4db5956871 Identificador de la plantilla de workflow |
Request Body schema: application/json
overwrites | object Objeto de configuracion de la plantilla de workflow |
Responses
Request samples
- Payload
{- "overwrites": {
- "setup": {
- "enroll_full": {
- "user_id": "86b9535d-50d9-419c-9965-ee4db5956871"
}, - "verify_email": {
- "user_id": "86b9535d-50d9-419c-9965-ee4db5956871"
}
}
}
}
Response samples
- 201
- 400
- 404
{- "success": true,
- "result": {
- "uuid": "cf455647-34ad-4bf2-900a-83f385b07927",
- "people_uuid": "cf455647-34ad-4bf2-900a-83f385b07927",
- "status": "string",
- "error": {
- "fatal": true,
- "extra": {
- "user_id": "uuid",
- "location": "US"
}, - "details": {
- "reason": "Error al obtener la selfie",
- "error_id": 500,
- "stack": "Error al obtener la selfie"
}
}, - "external_reference_id": 123456789,
- "finished_at": "2022-04-12T22:10:12.000000Z",
- "callback_at": "2022-04-12T22:10:12.000000Z",
- "disable_geolocation": true,
- "expires_in": 60,
- "metadata": {
- "user_id": "uuid",
- "location": "US"
}, - "template_binding_uuid": "cf455647-34ad-4bf2-900a-83f385b07927",
- "document_uuid": "cf455647-34ad-4bf2-900a-83f385b07927",
- "user_email": "user@example.com",
- "updated_at": "2022-04-12T22:10:12.000000Z",
- "created_at": "2022-04-12T22:10:12.000000Z",
- "steps": [
- {
- "uuid": "cf455647-34ad-4bf2-900a-83f385b07927",
- "workflow_uuid": "cf455647-34ad-4bf2-900a-83f385b07927",
- "custom_id": "1",
- "coordinates": [
- [
- "-99.123456",
- "19.123456"
]
], - "error": {
- "fatal": true,
- "extra": {
- "idScanStatus": 500,
- "faceScanStatus": 500
}, - "details": {
- "reason": "Error al obtener la selfie",
- "error_id": 500,
- "stack": "Error al obtener la selfie"
}
}, - "metadata": {
- "name": "enroll_full",
- "title": "Enrolamiento Completo",
- "description": "Enrolamiento biometrico y obtencion de selfie con identificacion oficial"
}, - "status": "string",
- "step": "document_sign",
- "payload": {
- "biometrics": {
- "safe": true,
- "success": true,
- "matchLevel": 7,
- "executed_at": "2023-04-27T21:29:06.162Z",
- "referenceId": "dev-123adc51-ff0e-44f0-af93-456cad813dca",
- "wasProcessed": true,
- "nfcStatusEnumInt": 0,
- "fullIDStatusEnumInt": 0,
- "barcodeStatusEnumInt": 0,
- "matchLevelNFCToFaceMap": 0,
- "digitalIDSpoofStatusEnumInt": 0,
- "faceOnDocumentStatusEnumInt": "LIKELY_ORIGINAL_FACE",
- "textOnDocumentStatusEnumInt": "LIKELY_ORIGINAL_TEXT",
- "idScanAgeEstimateGroupEnumInt": 4
}, - "ocr_backside": {
- "cic": "8596841236",
- "date": "990311",
- "name": "JUAN",
- "lines": [
- "IDMEX85968412367<<4578965896412",
- "9903110H3112319MEX<06<<16540<3",
- "PEREZ<GONZALES<<JUAN<<<<<<<<<<"
], - "gender": "H",
- "last_name": "PEREZ",
- "last_names": "PEREZ GONZALES",
- "ocr_number": "4578965896412",
- "nationality": "MEX",
- "cic_digit_check": "7",
- "expiration_date": "241231",
- "date_check_digit": "0",
- "emission_and_fuar": "06-16540",
- "mothers_last_name": "GONZALEZ",
- "expiration_date_digit": "9",
- "section_and_consecutive": "54236975896321",
- "is_cic_digit_check_consistent": true
}, - "ocr_frontside": {
- "city": "XOCHIMILCO",
- "curp": "PEGU990311HDFRMZA4",
- "name": "JUAN",
- "type": "INE",
- "gender": "H",
- "street": "CALLE 1",
- "city_id": null,
- "control": "2",
- "ine_type": "EFGH",
- "province": "CDMX",
- "state_id": null,
- "zip_code": "01000",
- "last_name": "PEREZ",
- "birth_date": "1999-03-11",
- "elector_key": "PRJMER99031109H900",
- "neighborhood": "COL CENTRO",
- "emission_number": "06",
- "expiration_date": null,
- "mothers_last_name": "GOZALEZ"
}, - "is_address_complete": true
}, - "updated_at": "2022-04-12T22:10:12.000000Z",
- "created_at": "2022-04-12T22:10:12.000000Z"
}
]
}
}
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "current_page": 1,
- "data": [
- {
- "uuid": "86b9535d-50d9-419c-9965-ee4db5956871",
- "name": "Template Binding 1",
- "text_bindings": {
- "77cf87f8-385a-463a-8088-c95322d70b95": {
- "steps": [
- "personal_address"
], - "template": "{personal_address.country}"
}, - "c6e6c76e-5a15-4f5f-9649-795da3d54f00": {
- "steps": [
- "verify_email"
], - "template": "{verify_email.email}"
}
}, - "sign_bindings": [
- "77cf87f8-385a-463a-8088-c95322d70b95",
- "c6e6c76e-5a15-4f5f-9649-795da3d54f00"
], - "created_at": "2021-03-26T01:06:59.000000Z",
- "updated_at": "2021-03-26T01:06:59.000000Z"
}
], - "from": 1,
- "last_page": 2,
- "links": [
], - "per_page": 20,
- "prev_page_url": null,
- "to": 20,
- "total": 30
}
}
Crear un template binding
Authorizations:
Request Body schema: application/json
name | string Nombre del template binding |
text_bindings | object Objeto de campos de texto del template binding |
sign_bindings | Array of strings Arreglo de campos de firma del template binding |
template_uuid | string Identificador del template |
Responses
Request samples
- Payload
{- "name": "Template Binding 1",
- "text_bindings": {
- "c6e6c76e-5a15-4f5f-9649-795da3d54f00": {
- "steps": [
- "verify_email"
], - "template": "{verify_email.email}"
}
}, - "sign_bindings": [
- "faf108d5-0fd4-4802-8e31-71b7a812680b"
], - "template_uuid": "86b9535d-50d9-419c-9965-ee4db5956871"
}
Response samples
- 201
- 400
{- "success": true,
- "result": {
- "uuid": "86b9535d-50d9-419c-9965-ee4db5956871",
- "name": "Template Binding 1",
- "text_bindings": {
- "77cf87f8-385a-463a-8088-c95322d70b95": {
- "steps": [
- "personal_address"
], - "template": "{personal_address.country}"
}, - "c6e6c76e-5a15-4f5f-9649-795da3d54f00": {
- "steps": [
- "verify_email"
], - "template": "{verify_email.email}"
}
}, - "sign_bindings": [
- "77cf87f8-385a-463a-8088-c95322d70b95",
- "c6e6c76e-5a15-4f5f-9649-795da3d54f00"
], - "created_at": "2021-03-26T01:06:59.000000Z",
- "updated_at": "2021-03-26T01:06:59.000000Z"
}
}
Obtener un template binding
Authorizations:
path Parameters
uuid required | string <uuid> Example: 86b9535d-50d9-419c-9965-ee4db5956871 Identificador del template binding |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "uuid": "86b9535d-50d9-419c-9965-ee4db5956871",
- "name": "Template Binding 1",
- "text_bindings": {
- "77cf87f8-385a-463a-8088-c95322d70b95": {
- "steps": [
- "personal_address"
], - "template": "{personal_address.country}"
}, - "c6e6c76e-5a15-4f5f-9649-795da3d54f00": {
- "steps": [
- "verify_email"
], - "template": "{verify_email.email}"
}
}, - "sign_bindings": [
- "77cf87f8-385a-463a-8088-c95322d70b95",
- "c6e6c76e-5a15-4f5f-9649-795da3d54f00"
], - "created_at": "2021-03-26T01:06:59.000000Z",
- "updated_at": "2021-03-26T01:06:59.000000Z"
}
}
Actualizar un template binding
Authorizations:
path Parameters
uuid required | string <uuid> Example: 86b9535d-50d9-419c-9965-ee4db5956871 Identificador del template binding |
Request Body schema: application/json
name | string Nombre del template binding |
text_bindings | object Objeto de campos de texto del template binding |
sign_bindings | Array of strings Arreglo de campos de firma del template binding |
Responses
Request samples
- Payload
{- "name": "Template Binding 1",
- "text_bindings": {
- "c6e6c76e-5a15-4f5f-9649-795da3d54f00": {
- "steps": [
- "verify_email"
], - "template": "{verify_email.email}"
}
}, - "sign_bindings": [
- "faf108d5-0fd4-4802-8e31-71b7a812680b"
]
}
Response samples
- 200
- 400
- 404
{- "success": true,
- "result": {
- "uuid": "86b9535d-50d9-419c-9965-ee4db5956871",
- "name": "Template Binding 1",
- "text_bindings": {
- "77cf87f8-385a-463a-8088-c95322d70b95": {
- "steps": [
- "personal_address"
], - "template": "{personal_address.country}"
}, - "c6e6c76e-5a15-4f5f-9649-795da3d54f00": {
- "steps": [
- "verify_email"
], - "template": "{verify_email.email}"
}
}, - "sign_bindings": [
- "77cf87f8-385a-463a-8088-c95322d70b95",
- "c6e6c76e-5a15-4f5f-9649-795da3d54f00"
], - "created_at": "2021-03-26T01:06:59.000000Z",
- "updated_at": "2021-03-26T01:06:59.000000Z"
}
}
Response samples
- 200
{- "success": true,
- "result": {
- "current_page": 1,
- "data": [
- {
- "name": "Rule 1",
- "template": "email != 'example@example.com'",
- "active": true,
- "step": "verify_email",
- "created_at": "2021-03-26T01:06:59.000000Z",
- "updated_at": "2021-03-26T01:06:59.000000Z"
}
], - "from": 1,
- "last_page": 1,
- "next_page_url": null,
- "per_page": 20,
- "prev_page_url": null,
- "to": 20,
- "total": 20
}
}
Crear una regla de knockout
Authorizations:
Request Body schema: application/json
name | string Nombre de la regla de knockout |
template | string Plantilla de knockout |
active | boolean Indica si la regla de knockout esta activa |
step | string Enum: "acceptance" "auth" "biometric_sign" "cdc_authorization" "document_analyzer" "document_preview" "document_qr" "document_sign" "enroll_basic" "enroll_full" "files_upload" "personal_address" "verify_email" "verify_phone_number" Tipo de step |
Responses
Request samples
- Payload
{- "name": "Knockout Rule 1",
- "template": "email != 'example@example.com'",
- "active": true,
- "step": "acceptance"
}
Response samples
- 201
- 400
{- "success": true,
- "result": {
- "name": "Rule 1",
- "template": "email != 'example@example.com'",
- "active": true,
- "step": "verify_email",
- "created_at": "2021-03-26T01:06:59.000000Z",
- "updated_at": "2021-03-26T01:06:59.000000Z"
}
}
Obtener una regla de knockout
Authorizations:
path Parameters
uuid required | string <uuid> Example: 86b9535d-50d9-419c-9965-ee4db5956871 Identificador de la regla de knockout |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "name": "Rule 1",
- "template": "email != 'example@example.com'",
- "active": true,
- "step": "verify_email",
- "created_at": "2021-03-26T01:06:59.000000Z",
- "updated_at": "2021-03-26T01:06:59.000000Z"
}
}
Actualizar una regla de knockout
Authorizations:
path Parameters
uuid required | string <uuid> Example: 86b9535d-50d9-419c-9965-ee4db5956871 Identificador de la regla de knockout |
Request Body schema: application/json
name | string Nombre de la regla de knockout |
template | string Plantilla de knockout |
active | boolean Indica si la regla de knockout esta activa |
step | string Enum: "acceptance" "auth" "biometric_sign" "cdc_authorization" "document_analyzer" "document_preview" "document_qr" "document_sign" "enroll_basic" "enroll_full" "files_upload" "personal_address" "verify_email" "verify_phone_number" Tipo de step |
Responses
Request samples
- Payload
{- "name": "Knockout Rule 1",
- "template": "email != 'example@example.com'",
- "active": true,
- "step": "acceptance"
}
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "name": "Rule 1",
- "template": "email != 'example@example.com'",
- "active": true,
- "step": "verify_email",
- "created_at": "2021-03-26T01:06:59.000000Z",
- "updated_at": "2021-03-26T01:06:59.000000Z"
}
}
Response samples
- 200
{- "success": true,
- "result": {
- "current_page": 1,
- "data": [
- {
- "name": "Rule Set 1",
- "description": "Rule Set 1",
- "active": true,
- "knockoutRules": [
- {
- "name": "Rule 1",
- "template": "email != 'example@example.com'",
- "active": true,
- "step": "verify_email",
- "created_at": "2021-03-26T01:06:59.000000Z",
- "updated_at": "2021-03-26T01:06:59.000000Z"
}
], - "created_at": "2021-03-26T01:06:59.000000Z",
- "updated_at": "2021-03-26T01:06:59.000000Z"
}
], - "from": 1,
- "last_page": 1,
- "next_page_url": null,
- "per_page": 20,
- "prev_page_url": null,
- "to": 20,
- "total": 20
}
}
Crear un conjunto de reglas
Authorizations:
Request Body schema: application/json
name | string Nombre del conjunto de reglas |
description | string Descripcion del conjunto de reglas |
active | boolean Indica si el conjunto de reglas esta activo |
knockout_rules | Array of strings <uuid> Arreglo de reglas |
Responses
Request samples
- Payload
{- "name": "Rule Set 1",
- "description": "Rule Set 1 description",
- "active": true,
- "knockout_rules": [
- "86b9535d-50d9-419c-9965-ee4db5956871",
- "86b9535d-50d9-419c-9965-ee4db5956871"
]
}
Response samples
- 201
- 400
{- "success": true,
- "result": {
- "name": "Rule Set 1",
- "description": "Rule Set 1",
- "active": true,
- "knockoutRules": [
- {
- "name": "Rule 1",
- "template": "email != 'example@example.com'",
- "active": true,
- "step": "verify_email",
- "created_at": "2021-03-26T01:06:59.000000Z",
- "updated_at": "2021-03-26T01:06:59.000000Z"
}
], - "created_at": "2021-03-26T01:06:59.000000Z",
- "updated_at": "2021-03-26T01:06:59.000000Z"
}
}
Obtener un conjunto de reglas
Authorizations:
path Parameters
uuid required | string <uuid> Example: 86b9535d-50d9-419c-9965-ee4db5956871 Identificador del conjunto de reglas |
Responses
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "name": "Rule Set 1",
- "description": "Rule Set 1",
- "active": true,
- "knockoutRules": [
- {
- "name": "Rule 1",
- "template": "email != 'example@example.com'",
- "active": true,
- "step": "verify_email",
- "created_at": "2021-03-26T01:06:59.000000Z",
- "updated_at": "2021-03-26T01:06:59.000000Z"
}
], - "created_at": "2021-03-26T01:06:59.000000Z",
- "updated_at": "2021-03-26T01:06:59.000000Z"
}
}
Actualizar un conjunto de reglas
Authorizations:
path Parameters
uuid required | string <uuid> Example: 86b9535d-50d9-419c-9965-ee4db5956871 Identificador del conjunto de reglas |
Request Body schema: application/json
name | string Nombre del conjunto de reglas |
description | string Descripcion del conjunto de reglas |
active | boolean Indica si el conjunto de reglas esta activo |
Responses
Request samples
- Payload
{- "name": "Rule Set 1",
- "description": "Rule Set 1 description",
- "active": true
}
Response samples
- 200
- 404
{- "success": true,
- "result": {
- "name": "Rule Set 1",
- "description": "Rule Set 1",
- "active": true,
- "knockoutRules": [
- {
- "name": "Rule 1",
- "template": "email != 'example@example.com'",
- "active": true,
- "step": "verify_email",
- "created_at": "2021-03-26T01:06:59.000000Z",
- "updated_at": "2021-03-26T01:06:59.000000Z"
}
], - "created_at": "2021-03-26T01:06:59.000000Z",
- "updated_at": "2021-03-26T01:06:59.000000Z"
}
}
Agregar reglas a un conjunto de reglas
Authorizations:
path Parameters
uuid required | string <uuid> Example: 86b9535d-50d9-419c-9965-ee4db5956871 Identificador del conjunto de reglas |
Request Body schema: application/json
knockout_rules | Array of strings <uuid> Arreglo de reglas |
Responses
Request samples
- Payload
{- "knockout_rules": [
- "86b9535d-50d9-419c-9965-ee4db5956871",
- "86b9535d-50d9-419c-9965-ee4db5956871"
]
}
Response samples
- 200
- 400
- 404
{- "success": true,
- "result": {
- "name": "Rule Set 1",
- "description": "Rule Set 1",
- "active": true,
- "knockoutRules": [
- {
- "name": "Rule 1",
- "template": "email != 'example@example.com'",
- "active": true,
- "step": "verify_email",
- "created_at": "2021-03-26T01:06:59.000000Z",
- "updated_at": "2021-03-26T01:06:59.000000Z"
}
], - "created_at": "2021-03-26T01:06:59.000000Z",
- "updated_at": "2021-03-26T01:06:59.000000Z"
}
}
Eliminar reglas de un conjunto de reglas
Authorizations:
path Parameters
uuid required | string <uuid> Example: 86b9535d-50d9-419c-9965-ee4db5956871 Identificador del conjunto de reglas |
Request Body schema: application/json
knockout_rules | Array of strings <uuid> Arreglo de reglas |
Responses
Request samples
- Payload
{- "knockout_rules": [
- "86b9535d-50d9-419c-9965-ee4db5956871",
- "86b9535d-50d9-419c-9965-ee4db5956871"
]
}
Response samples
- 200
- 400
- 404
{- "success": true,
- "result": {
- "name": "Rule Set 1",
- "description": "Rule Set 1",
- "active": true,
- "knockoutRules": [
- {
- "name": "Rule 1",
- "template": "email != 'example@example.com'",
- "active": true,
- "step": "verify_email",
- "created_at": "2021-03-26T01:06:59.000000Z",
- "updated_at": "2021-03-26T01:06:59.000000Z"
}
], - "created_at": "2021-03-26T01:06:59.000000Z",
- "updated_at": "2021-03-26T01:06:59.000000Z"
}
}
Notificacion de actualizacion de Step/Flujo Webhook
Authorizations:
Request Body schema: application/json
event | string Enum: "update" "create" |
resource | string Enum: "workflow" "step" |
resource_uuid | string |
Workflow (object) or WorkflowStep (object) |
Responses
Request samples
- Payload
{- "event": "update",
- "resource": "workflow",
- "resource_uuid": "cf455647-34ad-4bf2-900a-83f385b07927",
- "payload": {
- "uuid": "cf455647-34ad-4bf2-900a-83f385b07927",
- "people_uuid": "cf455647-34ad-4bf2-900a-83f385b07927",
- "status": "string",
- "error": {
- "fatal": true,
- "extra": {
- "user_id": "uuid",
- "location": "US"
}, - "details": {
- "reason": "Error al obtener la selfie",
- "error_id": 500,
- "stack": "Error al obtener la selfie"
}
}, - "external_reference_id": 123456789,
- "finished_at": "2022-04-12T22:10:12.000000Z",
- "callback_at": "2022-04-12T22:10:12.000000Z",
- "disable_geolocation": true,
- "expires_in": 60,
- "metadata": {
- "user_id": "uuid",
- "location": "US"
}, - "template_binding_uuid": "cf455647-34ad-4bf2-900a-83f385b07927",
- "document_uuid": "cf455647-34ad-4bf2-900a-83f385b07927",
- "user_email": "user@example.com",
- "updated_at": "2022-04-12T22:10:12.000000Z",
- "created_at": "2022-04-12T22:10:12.000000Z",
- "steps": [
- {
- "uuid": "cf455647-34ad-4bf2-900a-83f385b07927",
- "workflow_uuid": "cf455647-34ad-4bf2-900a-83f385b07927",
- "custom_id": "1",
- "coordinates": [
- [
- "-99.123456",
- "19.123456"
]
], - "error": {
- "fatal": true,
- "extra": {
- "idScanStatus": 500,
- "faceScanStatus": 500
}, - "details": {
- "reason": "Error al obtener la selfie",
- "error_id": 500,
- "stack": "Error al obtener la selfie"
}
}, - "metadata": {
- "name": "enroll_full",
- "title": "Enrolamiento Completo",
- "description": "Enrolamiento biometrico y obtencion de selfie con identificacion oficial"
}, - "status": "string",
- "step": "document_sign",
- "payload": {
- "biometrics": {
- "safe": true,
- "success": true,
- "matchLevel": 7,
- "executed_at": "2023-04-27T21:29:06.162Z",
- "referenceId": "dev-123adc51-ff0e-44f0-af93-456cad813dca",
- "wasProcessed": true,
- "nfcStatusEnumInt": 0,
- "fullIDStatusEnumInt": 0,
- "barcodeStatusEnumInt": 0,
- "matchLevelNFCToFaceMap": 0,
- "digitalIDSpoofStatusEnumInt": 0,
- "faceOnDocumentStatusEnumInt": "LIKELY_ORIGINAL_FACE",
- "textOnDocumentStatusEnumInt": "LIKELY_ORIGINAL_TEXT",
- "idScanAgeEstimateGroupEnumInt": 4
}, - "ocr_backside": {
- "cic": "8596841236",
- "date": "990311",
- "name": "JUAN",
- "lines": [
- "IDMEX85968412367<<4578965896412",
- "9903110H3112319MEX<06<<16540<3",
- "PEREZ<GONZALES<<JUAN<<<<<<<<<<"
], - "gender": "H",
- "last_name": "PEREZ",
- "last_names": "PEREZ GONZALES",
- "ocr_number": "4578965896412",
- "nationality": "MEX",
- "cic_digit_check": "7",
- "expiration_date": "241231",
- "date_check_digit": "0",
- "emission_and_fuar": "06-16540",
- "mothers_last_name": "GONZALEZ",
- "expiration_date_digit": "9",
- "section_and_consecutive": "54236975896321",
- "is_cic_digit_check_consistent": true
}, - "ocr_frontside": {
- "city": "XOCHIMILCO",
- "curp": "PEGU990311HDFRMZA4",
- "name": "JUAN",
- "type": "INE",
- "gender": "H",
- "street": "CALLE 1",
- "city_id": null,
- "control": "2",
- "ine_type": "EFGH",
- "province": "CDMX",
- "state_id": null,
- "zip_code": "01000",
- "last_name": "PEREZ",
- "birth_date": "1999-03-11",
- "elector_key": "PRJMER99031109H900",
- "neighborhood": "COL CENTRO",
- "emission_number": "06",
- "expiration_date": null,
- "mothers_last_name": "GOZALEZ"
}, - "is_address_complete": true
}, - "updated_at": "2022-04-12T22:10:12.000000Z",
- "created_at": "2022-04-12T22:10:12.000000Z"
}
]
}
}