Bmonkey · Quickstart
-
Crea tu tenant desde el panel de Platform o vía
POST /tenants. Guarda elapi_keyywebhook_secretque devuelve la respuesta — no se pueden recuperar después. -
Configura tu webhook endpoint apuntando a una URL HTTPS pública.
Ventana de terminal curl -X PUT https://api.digital-jungle.bjungle.com/tenants/$ID/webhook-endpoints/bmonkey \-H "Authorization: Bearer $ADMIN_TOKEN" \-H "Content-Type: application/json" \-d '{"url": "https://tu-app.com/webhooks/bmonkey"}' -
Crea una plantilla de formulario con el Form Builder o por API.
-
Envía tu primer submission desde tu backend:
Ventana de terminal curl -X POST https://api.digital-jungle.bjungle.com/v1/kyc/submissions \-H "X-API-Key: $API_KEY" \-H "Content-Type: application/json" \-d '{"template_code":"persona-natural-v1", "answers":{...}}'import { BmonkeyClient } from '@bjungle/bmonkey-client';const client = new BmonkeyClient({ apiKey: process.env.BMONKEY_KEY });await client.kyc.submit({ templateCode: 'persona-natural-v1', answers: {...} }); -
Recibe el resultado por webhook (evento
bmonkey.subject.verified) y verifica la firma HMAC antes de procesarlo.