Cleared Logo
v1.0REST API

Cleared API

Powerful verification and signature platform with 200+ RESTful endpoints for identity verification, background screening, and digital document signing.

200+
API Endpoints
8
Verification Services
99.9%
API Uptime
24/7
Support

Core API Features

Enterprise Security

  • JWT Bearer token authentication
  • TLS 1.2+ encryption for all requests
  • IP whitelisting support
  • Complete audit logging
  • GDPR, CCPA, POPIA compliant

High Performance

  • Average response time < 200ms
  • 1000 requests/minute rate limit
  • Webhook notifications (no polling)
  • Pagination & filtering support
  • 99.9% uptime SLA

Developer Friendly

  • RESTful design with JSON responses
  • Comprehensive documentation
  • Code examples in 5+ languages
  • Sandbox environment (unlimited testing)
  • NPM packages & SDKs

Quick Start Guide

API Services

🪪

Identity Verification

ID document verification, biometric matching, liveness detection, tax ID validation

View Details
📍

Address Verification

Proof of address validation, GPS verification, company address checks

View Details
✍️

Digital Signatures

Secure document signing with digital certificates and audit trails

View Details
🔗

Verification Links

Shareable verification URLs with webhook integration

View Details
📋

Onboarding Pages

Complete application pages with verifications and document signing

View Details
📤

Verification Requests

Create and manage verification requests sent to customers

View Details
🔔

Merchant Updates

Real-time notification system for verification events

View Details
🔍

Background Checks

Criminal records, credit history, employment verification

View Details

Code Examples

Initiate Identity VerificationJavaScript
const axios = require('axios');

const response = await axios.post(
  'https://cleared.id/api/v1/merchant/identity/verification/initiate',
  {
    name: 'John Smith',
    emailAddress: 'john@example.com',
    phoneNumber: '+18761234567',
    trn: '123-456-789',
    verificationRequests: [
      { type: 'identity', required: true },
      { type: 'address', required: true }
    ],
    expiration: {
      expiresAt: new Date(Date.now() + 48 * 60 * 60 * 1000).toISOString()
    }
  },
  {
    headers: {
      'Authorization': `Bearer ${process.env.CLEARED_API_KEY}`,
      'Content-Type': 'application/json'
    }
  }
);

console.log('Request ID:', response.data.requestId);
console.log('Result ID:', response.data.resultId);
Retrieve Verification ResultsPython
import requests
import os

api_key = os.environ.get('CLEARED_API_KEY')
report_id = 'res_abc123'

response = requests.get(
    f'https://cleared.id/api/v1/merchant/identity/report/{report_id}',
    headers={
        'Authorization': f'Bearer {api_key}',
        'Content-Type': 'application/json'
    }
)

data = response.json()

if data['status'] == 'cleared':
    print(f"Verified: {data['name']}")
    print(f"Tax Number: {data['uniqueIdNumber']}")
    print(f"Document: {data['documentType']}")
else:
    print(f"Status: {data['status']}")
Send Document for SignaturePHP
<?php

$apiKey = getenv('CLEARED_API_KEY');
$documentId = 'doc_xyz789';

$data = [
    'signingParties' => [
        [
            'name' => 'John Smith',
            'email' => 'john@example.com',
            'role' => 'Employee',
            'order' => 1,
            'requireIdVerification' => true
        ]
    ],
    'configuration' => [
        'useDigitalSignature' => true,
        'enforceSigningOrder' => false,
        'expiration' => [
            'type' => 'relative',
            'relativeDays' => 30
        ]
    ]
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://cleared.id/api/v1/merchant/signatures/documents/$documentId/send");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer $apiKey",
    "Content-Type: application/json"
]);

$response = curl_exec($ch);
curl_close($ch);

$result = json_decode($response, true);
echo "Document sent. Status: " . $result['data']['status'];
?>
Create Verification LinkcURL
curl -X POST https://cleared.id/api/v1/merchant/verification-links/create \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "linkTitle": "Customer Verification",
    "linkId": "customer-kyc",
    "verificationType": "identity",
    "destination": "https://yoursite.com/verification/complete",
    "clientBranding": {
      "companyName": "Your Company",
      "logo": "https://yoursite.com/logo.png"
    },
    "webhookConfig": {
      "url": "https://yourapi.com/webhooks/cleared",
      "secret": "your-webhook-secret"
    }
  }'

# Response:
{
  "success": true,
  "link": {
    "linkId": "customer-kyc",
    "url": "https://cleared.id/v/customer-kyc"
  }
}

Key API Capabilities

Automatic Customer Lookup

No duplicate accounts. System automatically finds existing customers by tax number, email, or phone. Creates new users only when necessary.

// System checks: Tax ID → Email → Phone → Create if not found

Real-Time Webhooks

Receive instant notifications when verifications complete. No polling needed. HMAC signature verification for security.

POST https://yourapi.com/webhooks/verification

Multi-Service Bundling

Request multiple verifications in one API call. Identity + Address + Income + Background—all initiated together.

verificationRequests: [{type: 'identity'}, {type: 'address'}]

Sandbox Environment

Test with unlimited free requests. Same API structure as production. Perfect for development and QA.

Base URL: https://qa.cleared.id/api/v1/merchant

Flexible Authentication

Multiple API keys per organisation. Separate keys for different environments, apps, or team members.

Authorization: Bearer YOUR_API_KEY

Comprehensive Error Handling

Clear error messages with codes. Detailed validation errors. Consistent response structure across all endpoints.

{"success": false, "error": "...", "code": "..."}

Documentation Resources

API Overview

Complete overview of all 200+ endpoints, organised by service category

Read More

Authentication Guide

API key generation, JWT tokens, security best practices

Read More

Initiate Verification

Complete guide to creating verification requests via API

Read More
🪪

Identity API

ID verification, biometric matching, tax ID validation, duplicate detection

Read More
✍️

Signatures API

Documents, envelopes, templates, digital certificates

Read More
📋

Onboarding Pages

Custom application pages with verifications and signing

Read More
📱

Get the Cleared® App

Available on all devices

Download