Sandbox template
RentDirect
A consent-first tenant onboarding pattern that keeps identity evidence inside DAJU.
- Verification purpose
- Confirm a prospective tenant controls the submitted contact channel and completes a Ghana identity-document journey before a tenancy application is reviewed.
- Workflow and checks
- Purpose-specific consent
- Email or phone control
- Ghana identity document capture
- Sandbox document and identity checks
- Risk, trust, decision, and manual-review routing
- Safe webhook events
verification.completedverification.review_requiredverification.retry_requiredverification.inconclusiveverification.failed- Retention boundary
- Retain only the DAJU session ID, final status, decision timestamp, and your synthetic application reference. Apply the tenancy process retention schedule; do not copy identity images into RentDirect.
Complete repository sample: packages/sdk/examples/rentdirect.ts
import { createDajuClient } from "@daju/sdk";
const daju = createDajuClient({
apiKey: process.env.DAJU_SANDBOX_API_KEY!,
});
const session = await daju.verificationSessions.create(
{
workflowId: process.env.DAJU_RENTDIRECT_WORKFLOW_ID!,
externalReference: "rent-sandbox-demo-001",
hostedReturnUrl: process.env.DAJU_HOSTED_RETURN_URL!,
},
{
idempotencyKey: "rent-sandbox-demo-001-v1",
},
);
// Redirect to DAJU. The configured return URL never carries outcome data.
return Response.redirect(session.hostedUrl, 303);