Enterprise Edition Automated Vendor Compliance & COI Expiration Radar
Industries Pricing ROI Calculator Security & Zero-PHI 📱 Mobile App (iOS & Android) Install
Log In Start 7-Day Free Trial →
RESTful Mobile API v1.0

Mobile App API Reference & Test Console

Complete REST API for iOS, Android, and cross-platform apps (Flutter / React Native). Features secure Bearer tokens, camera document uploads, AI OCR extraction, APNs/FCM mobile push notifications, and automated email alerts.

Base URL: https://complyexpiry.com/api/v1

📱 Mobile Client Integration Examples

// Flutter: Upload Camera Document with AI OCR Date Extraction
final uri = Uri.parse('https://complyexpiry.com/api/v1/documents/upload');
final request = http.MultipartRequest('POST', uri)
  ..headers['Authorization'] = 'Bearer $userBearerToken'
  ..headers['Accept'] = 'application/json'
  ..fields['title'] = 'ACORD 25 Certificate'
  ..fields['document_type'] = 'coi'
  ..files.add(await http.MultipartFile.fromPath('file', photoPath));

final response = await request.send();
final resData = jsonDecode(await response.stream.bytesToString());
// React Native / Axios: Get Traffic-Light Stats
import axios from 'axios';

const { data } = await axios.get('https://complyexpiry.com/api/v1/dashboard/stats', {
  headers: {
    'Authorization': `Bearer ${userBearerToken}`,
    'Accept': 'application/json'
  }
});
console.log('Compliance Score:', data.stats.compliance_score_percentage);
# Authenticate & Get Stats
curl -X GET "https://complyexpiry.com/api/v1/dashboard/stats" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Accept: application/json"

Authentication & Devices

POST /api/v1/auth/login Public

Mobile Login & Token Issuance

Authenticates user and returns a long-lived Bearer access token with registered device push token.

Sample Request Payload:
{
    "email": "support@webacedev.com",
    "password": "WebaceDev2026!#",
    "device_name": "iPhone 16 Pro",
    "platform": "ios",
    "device_token": "fcm_apns_push_token_xyz...",
    "device_model": "A3102",
    "app_version": "1.0.0"
}
POST /api/v1/auth/register Public

Mobile Organization Registration

Fast mobile sign-up with an instant 7-day Growth Trial (0 credit card required).

Sample Request Payload:
{
    "company_name": "Acme Construction Ltd",
    "name": "John Doe",
    "email": "john@acme.com",
    "password": "SecurePass2026!",
    "country": "US",
    "phone": "+15553829901",
    "device_name": "Pixel 8 Pro",
    "platform": "android"
}
GET /api/v1/auth/me 🔒 Bearer Token

Current User & Organization Profile

Returns active user details, organization compliance tier, trial days remaining, and document quotas.

POST /api/v1/auth/device-token 🔒 Bearer Token

Register / Update Push Token

Updates FCM or APNs device push token for the active mobile token.

Sample Request Payload:
{
    "device_token": "fcm_device_token_here...",
    "platform": "ios",
    "push_enabled": true
}
POST /api/v1/auth/logout 🔒 Bearer Token

Mobile Logout

Revokes the active mobile access token.

Dashboard & Real-time Metrics

GET /api/v1/dashboard/stats 🔒 Bearer Token

Traffic-Light Compliance Stats

Returns document totals, traffic light breakdown (green/amber/red), compliance score %, upcoming 5 renewals, and audit risk exposure.

Documents & Camera Upload

GET /api/v1/documents 🔒 Bearer Token

List Documents

Paginated document list with filters: status (expired, warning, valid, all), search, and vendor_id.

GET /api/v1/documents/{id} 🔒 Bearer Token

Get Document Details

Detailed view of single document with OCR extracted data, days remaining, file URL, and audit trail.

POST /api/v1/documents/upload 🔒 Bearer Token

Camera & File Upload with AI OCR

Direct multipart file upload from mobile device (camera or gallery). Triggers automated OCR expiration date extraction.

Sample Request Payload:
{
    "file": "(binary file: PDF, JPG, PNG, WEBP)",
    "title": "Subcontractor General Liability COI",
    "document_type": "coi",
    "vendor_name": "Apex Mechanical Corp"
}
POST /api/v1/documents/{id}/confirm-ocr 🔒 Bearer Token

One-Tap OCR Verification

Mobile compliance officer verifies and locks OCR candidate expiration date and policy number.

Sample Request Payload:
{
    "expiry_date": "2027-04-15",
    "document_number": "POL-98234-A",
    "issuer": "Travelers Insurance"
}

Vendors & Magic Links

GET /api/v1/vendors 🔒 Bearer Token

List Vendors & Compliance Health

Returns all vendors with document breakdown and compliance health badge.

POST /api/v1/vendors 🔒 Bearer Token

Quick Add Vendor

Quickly registers a vendor and generates a zero-login magic upload link.

Sample Request Payload:
{
    "name": "Delta Roofing LLC",
    "contact_name": "Mike Miller",
    "email": "mike@deltaroofing.com",
    "category": "Subcontractor"
}
POST /api/v1/vendors/{id}/magic-link 🔒 Bearer Token

Dispatch Zero-Login Magic Link

Regenerates token and emails the secure zero-login magic upload link to the vendor.

Push Notifications & Email Alerts

GET /api/v1/notifications 🔒 Bearer Token

Mobile In-App Notification Feed

Returns list of notification items with unread count badge.

POST /api/v1/notifications/{id}/read 🔒 Bearer Token

Mark Notification Read

Marks a single notification as read.

POST /api/v1/notifications/test 🔒 Bearer Token

Send Test Mobile & Email Alert

Dispatches a live test alert to verify both push notification and email delivery channels.

Sample Request Payload:
{
    "device_token": "optional_fcm_token_to_test"
}
POST /api/v1/notifications/dispatch-reminders 🔒 Bearer Token

Trigger Escalation Reminders Scan

Scans documents against standard thresholds (60, 30, 14, 7, 1 day) and sends push & email notifications.

Response Status: