TruthStack API v3.1

MSME Lending Verification Platform

21 Epics 124 User Stories OAuth2 Auth

Overview

TruthStack is a comprehensive verification platform for MSME lending, providing real-time verification and AI-powered creditworthiness scoring.

Real-time Verification TruthScore AI PSB Xchange Fraud Detection Batch Operations Analytics Dashboard

Base URL

# Production
https://api.truthstack.io/api/v3

# Local Development
http://localhost:8100/api/v3

Authentication

TruthStack uses OAuth2 Client Credentials flow:

curl -X POST http://localhost:8100/api/v3/auth/token \
  -d "grant_type=client_credentials" \
  -d "client_id=YOUR_CLIENT_ID" \
  -d "client_secret=YOUR_CLIENT_SECRET"

Use the returned token in subsequent requests:

Authorization: Bearer <access_token>

API Endpoints

E00 - Lender Onboarding

POST/lendersRegister new lender
POST/auth/keysGenerate API credentials
POST/auth/tokenGet access token

E01 - Application Management

POST/applicationsCreate application
GET/applicationsList applications
GET/applications/{id}Get application details
POST/applications/{id}/documentsUpload documents
GET/applications/{id}/readinessCheck readiness
POST/applications/{id}/submitSubmit application

E03-E08 - Verification Services

POST/verifyRun verification
POST/verify/gstGST verification
POST/verify/mcaMCA verification
POST/verify/panPAN verification
POST/verify/bankBank statement verification

E09 - RRP Generation

GET/rrp/{request_id}Get verification report
GET/rrp/{request_id}/pdfDownload PDF report

E15 - PSB Xchange Platform

POST/platform/{id}/banksEnroll bank
GET/platform/{id}/banksList enrolled banks
PUT/platform/{id}/configUpdate platform config

E16 - Invoice Screening

POST/screen/invoiceScreen invoice for duplicates
POST/screen/batchBatch invoice screening

E17 - Fraud Consortium

POST/consortium/report-fraudReport fraud
POST/consortium/checkCheck fraud status
GET/consortium/alertsGet fraud alerts

E18 - SCF Products

GET/scf/productsList SCF products
GET/scf/products/{id}Get product details
POST/scf/eligibilityCheck eligibility

E19 - Batch Operations

POST/verify/batchBatch verification
GET/verify/batch/{id}Get batch status
GET/verify/batch/{id}/resultsGet batch results

E20 - Analytics

GET/analytics/dashboardDashboard metrics
GET/analytics/trendsTrend analysis
POST/analytics/exportExport reports

Response Codes

200Success
201Created
400Bad Request
401Unauthorized
403Forbidden
404Not Found
422Validation Error
500Internal Server Error

Interactive Documentation

Links