For Developers & Fintechs
Document locking
as infrastructure.
Nana's core — OTP confirmation, SHA-256 locking, QR verification, permanent records — is available as an API. Add verified, tamper-proof document creation to your product without building the infrastructure yourself.
Sandbox ready
REST API
Webhook events
White-label available
create_document.sh
# Lock a document in one call
curl -X POST https://api.asknana.co.ke/v1/documents \
  -H "Authorization: Bearer sk_live_…" \
  -d '{
    "type": "invoice",
    "parties": ["+254712…","+254722…"],
    "amount": 18500,
    "confirm": "otp"
  }'

# → 201 Created
{
  "id": "NANA-2026-K8F2",
  "status": "locked",
  "sha256": "9f2c…e81b"▋
}
webhook · document.locked
API overview
Simple endpoints.
Powerful results.
JavaScript
// Create a locked document in 3 API calls

// 1. Create the document
const doc = await fetch('https://api.asknana.co.ke/api/document/create', {
  method: 'POST',
  headers: { 'Authorization': 'Bearer nana_live_xxxx' },
  body: JSON.stringify({
    doc_type: 'invoice',
    creator_phone: '+254712345678',
    counterparty_phone: '+254722987654',
    items: [{ name: 'Service fee', quantity: 1, unit_price: 15000 }]
  })
});
// Returns: { doc_id, nana_ref: 'NANA-2026-0048', status: 'draft' }

// 2. Send OTP to counterparty
await fetch('https://api.asknana.co.ke/api/document/send-otp', { ... });

// 3. Verify OTP — document locks automatically
const result = await fetch('https://api.asknana.co.ke/api/document/verify-otp', { ... });
// Returns: { verified: true, verify_url, sha256_hash, locked_at }
Integration tiers
Three ways to
build with Nana.
Tier 1
White-Label API
Full document locking under your own brand. Your UI. Your users. Nana infrastructure. Zero Nana branding visible to your users.
✓
All API endpoints
✓
Custom document templates
✓
Webhook events
✓
White-label verify page
✓
Sandbox environment
Tier 3
Nana-Adjacent
Build a product that works alongside Nana. Your users have Nana accounts. Your product reads their document data with their consent.
✓
Read-only document access
✓
Trade statement access
✓
User consent flow
✓
Verification API
Key endpoints
The API
at a glance.
MethodEndpointWhat it does
POST/api/user/createRegister a new user. Returns nana_ref and plan tier.
POST/api/document/createCreate a new document in DRAFT status. Returns doc_id and preview.
POST/api/document/send-otpGenerate and deliver OTP to the counterparty's WhatsApp.
POST/api/document/verify-otpVerify OTP. Document locks automatically on success. Returns hash.
GET/api/verify/:doc_idPublic verification endpoint. No auth required. Returns document status and hash.
GET/api/document/:id/pdfGenerate and return the locked document as an A4 PDF.
POST/api/dispute/createFile a dispute on a locked document. Both parties notified.
GET/api/user/:id/trade-statementReturn verified trade history. Used for credit scoring integration.
API
Start building
Sandbox access.
No approval required.
Full sandbox environment. Test keys. Seeded data. Reset endpoint. Build your integration before going live.
dev@asknana.co.ke