Main API Docs
  • Welcome!
  • General
    • Introduction
    • Authentication
    • Personal Access Tokens
    • Test IDs
    • Check Wallet Balance
  • Appruve Identity
    • Introduction
    • Ghana 🇬🇭
      • Verify Ghana TIN
      • Verify Ghana Driver License
      • Verify Ghana SSNIT ID
      • Verify Ghana Passport
      • Verify Ghana Voter ID
      • Verify Ghana Digital Address
    • Nigeria 🇳🇬
      • Verify Nigeria TIN
      • Verify Nigeria Driver License
      • Verify Nigeria NIN
      • Verify Nigeria vNIN
      • Verify Nigeria Voter ID
      • Verify Nigeria BVN
    • Kenya 🇰🇪
      • Verify Kenya KRA PIN
      • Verify Kenya National ID
    • Uganda 🇺🇬
      • Verify Uganda Voter ID
      • Verify Uganda Telco Subscriber
      • BulK Uganda Telco Subscriber Verification
  • Appruve Business
    • Introduction
    • Business Lookups
      • Nigeria 🇳🇬
        • Lookup with CAC number
        • Lookup using Tax ID (TIN)
      • Uganda Business Lookup 🇺🇬
      • Ghana Business Lookup 🇬🇭
    • Business Beneficial Ownership
      • Nigeria 🇳🇬
  • Appruve Agency
    • OCR For Sequential Verification
      • Senegal 🇸🇳
      • Nigeria 🇳🇬
      • Ghana 🇬🇭
      • Kenya 🇰🇪
      • Côte d'Ivoire 🇨🇮
      • Cameroon 🇨🇲
    • Standalone OCR
      • Nigeria 🇳🇬
      • Ghana 🇬🇭
      • Kenya 🇰🇪
      • Côte d'Ivoire 🇨🇮
      • Cameroon 🇨🇲
      • Senegal 🇸🇳
    • Perform Face Matching
    • Upload Selfie Photo
    • Get Liveness Detection Challenge
    • Verify Liveness Detection Challenge
    • Confirm Extracted ID Number
    • Verify Business Document By OCR
    • Verify Nigeria vNIN with selfie
  • Guides
    • Webhooks
    • ID Document to Selfie Matching
  • Mobile Sdks
    • Android SDK
    • iOS SDK
  • Resources
    • Country Codes
    • ID Types
    • Face Liveness Check
Powered by GitBook
On this page
  1. Appruve Agency
  2. Standalone OCR

Senegal 🇸🇳

Extract PII data and perform analyses on Senegalese ID documents

PreviousCameroon 🇨🇲NextPerform Face Matching

Last updated 2 years ago

How It Works

The endpoint is constructed as follows.

https://api.appruve.co/v1/ocr_jobs/sn/{id_type}

id_type should be replaced with the specific ID type. Supported ID types are national_id and passport.

The request is a multipart POST request as shown in the example below. The front_id_image and back_id_image parameters are required and their values could be a or a web URL.

Example National ID Request

curl --location --request POST 'https://api.appruve.co/v1/ocr_jobs/sn/national_id' \
--header 'Authorization: Bearer TOKEN' \
--form 'front_id_image=@"/path/sn_national_id_front.jpg"' \
--form 'back_id_image=@"/path/sn_national_id_back.jpg"'

An example response is given below.

{
    "id_details": {
        "id_type": "national_id",
        "front_id": {
            "first_name": "John",
            "last_name": "Doe",
            "id_number": "12345678910",
            "date_of_birth": "1993-05-11",
            "issue_date": "2020-04-27",
            "expiry_date": "2030-04-26",
            "gender": "M",
            "place_of_birth": "",
            "height": "173 cm",
            "home_address": "",
            "registration_center": "Consulat Abidjan"
        },
        "back_id": {
            "country_name": "Senegal",
            "country_code": "SEN",
            "voter_id_number": "101234567",
            "diplomatic_representation": "",
            "nin": "1081234567",
            "locality": "",
            "polling_station": "",
            "mothers_name": "",
            "fathers_name": "",
            "region": "",
            "department": ""
        },
        "is_id_valid": true
    },
    "document_country": "sn",
    "front_id_submitted": "URL",
    "back_id_submitted": "URL",
    "front_id_face_photo": "URL",
    "transaction_reference": "8bc12a80-1bbb-4003-aa46-3dc0f7174c90",
    "document_analyses": [
        {
            "type": "TEMPLATE_MATCHING",
            "is_check_successful": true,
            "data": null
        }
    ],
    "id_confidence_score": 100,
    "face_sharpness": 7.59,
    "face_brightness": 66.06,
    "is_reenrollment": false
}
File Object